﻿#toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px;
    z-index: 999999 !important;
    pointer-events: none;
}
/* =========================================
   APP TOAST
========================================= */

.app-toast {
    pointer-events: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: appToastSlideIn 0.3s ease-out;
    border-left: 4px solid;
    min-width: 400px;
    position: relative;
    overflow: hidden;
}


    /* =========================================
   PROGRESS BAR
========================================= */

    .app-toast::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: currentColor;
        animation: appToastProgress 5s linear;
        width: 100%;
    }

@keyframes appToastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}


/* =========================================
   SUCCESS
========================================= */

.app-toast-success {
    border-left-color: #10b981;
    color: #10b981;
}


/* =========================================
   ERROR
========================================= */

.app-toast-error {
    border-left-color: #ef4444;
    color: #ef4444;
}


/* =========================================
   WARNING
========================================= */

.app-toast-warning {
    border-left-color: #f59e0b;
    color: #f59e0b;
}


/* =========================================
   INFO
========================================= */

.app-toast-info {
    border-left-color: #3b82f6;
    color: #3b82f6;
}


/* =========================================
   ICON
========================================= */

.app-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* Success Icon */

.app-toast-success .app-toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}


/* Error Icon */

.app-toast-error .app-toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


/* Warning Icon */

.app-toast-warning .app-toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}


/* Info Icon */

.app-toast-info .app-toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}


/* =========================================
   CONTENT
========================================= */

.app-toast-content {
    flex: 1;
    color: #2c3e50;
}


.app-toast-message {
    font-size: 12px;
    color: #676E8A;
    line-height: 1.5;
    font-weight: 500;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.app-toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .app-toast-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #2c3e50;
    }


/* =========================================
   ANIMATION
========================================= */

@keyframes appToastSlideIn {

    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes appToastSlideOut {

    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}


.app-toast-removing {
    animation: appToastSlideOut 0.3s ease-out forwards;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    #app-toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .app-toast {
        min-width: auto;
        width: 100%;
    }
}


/* =========================================
   OTHER
========================================= */

img.imagelogo {
    width: 100%;
    height: 100% !important;
}


.ri-spin {
    display: inline-block;
    animation: ri-spin 1s linear infinite;
    transform-origin: center center;
    font-size: 1.25rem;
}


@keyframes ri-spin {

    100% {
        transform: rotate(360deg);
    }
}


.store-success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.store-success-modal {
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: storePopup 0.3s ease;
}

@keyframes storePopup {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.store-success-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
}

.btn-close-popup {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.store-receipt {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.receipt-header {
    text-align: center;
    padding: 35px 25px 25px;
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: #fff;
}

.success-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.receipt-header h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
}

.receipt-header p {
    margin: 7px 0 0;
    opacity: .9;
    font-size: 14px;
}

.store-code-box {
    margin: 22px;
    padding: 18px;
    text-align: center;
    border: 2px dashed #16a34a;
    border-radius: 14px;
    background: #f0fdf4;
}

    .store-code-box span {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #64748b;
    }

    .store-code-box strong {
        display: block;
        margin-top: 5px;
        font-size: 28px;
        color: #15803d;
        letter-spacing: 2px;
    }

.store-details {
    padding: 0 22px 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .detail-row span {
        color: #64748b;
        font-size: 13px;
    }

    .detail-row strong {
        color: #1e293b;
        font-size: 13px;
        text-align: right;
        word-break: break-word;
    }

.receipt-footer {
    margin-top: 5px;
    padding: 15px 22px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .receipt-footer i {
        color: #16a34a;
        font-size: 16px;
    }

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
}

    .popup-buttons .btn {
        min-width: 150px;
        border-radius: 10px;
        padding: 10px 18px;
    }

@media(max-width: 576px) {

    .store-success-modal {
        max-width: 100%;
    }

    .detail-row {
        align-items: flex-start;
    }

        .detail-row strong {
            max-width: 55%;
        }

    .popup-buttons {
        flex-direction: column;
    }

        .popup-buttons .btn {
            width: 100%;
        }
}