/* ============================================================
   SWEETALERT2 — TecCommerce Custom Skin
   Custom icons: use imageUrl + /icons/*.svg
   ============================================================ */


/* ============================================================
   POPUP SHELL
   ============================================================ */

.swal-popup {
    width: 540px !important;
    padding: 1rem 1.5rem 1rem !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13) !important;
    text-align: center !important;
}


/* ============================================================
   TITLE
   ============================================================ */

.swal-title {
    padding: 0 !important;
    margin-bottom: 6px !important;
    color: #1a1a1a !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: center !important;
}


/* ============================================================
   BODY / HTML
   ============================================================ */

.swal-html {
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
    color: #888 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ============================================================
   CLOSE BUTTON
   ============================================================ */

.swal-close {
    top: 14px !important;
    right: 14px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    color: #999 !important;
    font-size: 25px !important;
    transition: background 0.15s, color 0.15s !important;
}

    .swal-close:hover {
        background: #e8e8e8 !important;
        color: #333 !important;
    }


/* ============================================================
   BACKDROP
   ============================================================ */

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.32) !important;
}


/* ============================================================
   CUSTOM IMAGE ICON
   Use:
   imageUrl: '/icons/success.svg'
   imageClass: 'swal-img-success'
   ============================================================ */

.swal2-image {
    width: 52px !important;
    height: 52px !important;
    padding: 12px !important;
    margin: 0 auto 1.1rem !important;
    border-radius: 50% !important;
    border: 1.5px solid #e0dcd8 !important;
    background: #f5f3f0 !important;
    object-fit: contain !important;
}

.swal-img-question {
    background: #f5f3f0 !important;
    border-color: #d4cfc8 !important;
}

.swal-img-success {
    background: #edfaf4 !important;
    border-color: #6edba8 !important;
}

.swal-img-error {
    background: #fff0f0 !important;
    border-color: #f9a8a8 !important;
}

.swal-img-warning {
    background: #fff8eb !important;
    border-color: #fcd34d !important;
}

.swal-img-info {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}


/* ============================================================
   BUTTON ROW
   ============================================================ */

.swal2-actions {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 1rem 0 0 !important;
}


    /* ============================================================
   BASE BUTTON
   All buttons have equal width and height
   ============================================================ */

    .swal2-actions .swal-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 10px 9px !important;
       
        border-radius: 4px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        line-height: 20px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        transition: opacity 0.15s, transform 0.1s !important;
    }

        .swal2-actions .swal-btn:active {
            transform: scale(0.97) !important;
        }

        .swal2-actions .swal-btn:hover {
            opacity: 0.86 !important;
        }


/* ============================================================
   CANCEL / GHOST BUTTON
   ============================================================ */

.swal-btn-cancel {
    background: transparent !important;
    border: 1.5px solid #e0dcd8 !important;
    color: #1a1a1a !important;
}

    .swal-btn-cancel:hover {
        background: #f7f5f3 !important;
        opacity: 1 !important;
    }


/* ============================================================
   BUTTON COLORS
   ============================================================ */

.swal-btn-black {
    background: #48432e !important;
    color: #fff !important;
}

.swal-btn-danger {
    background: #e8376a !important;
    color: #fff !important;
}

.swal-btn-success {
    background: #1a9e5c !important;
    color: #fff !important;
}

.swal-btn-warning {
    background: #f59e0b !important;
    color: #1a1a1a !important;
}

.swal-btn-info {
    background: #2563eb !important;
    color: #fff !important;
}

.swal-btn-purple {
    background: #7c3aed !important;
    color: #fff !important;
}

.swal-btn-pink {
    background: #e8376a !important;
    color: #fff !important;
}


/* ============================================================
   SINGLE BUTTON
   Prevent a single button from stretching unnecessarily
   ============================================================ */

.swal2-actions .swal-btn:only-child {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px !important;
}


/* ============================================================
   DANGER TEXT ROW
   ============================================================ */

.swal-btn-danger-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 11px 16px !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    background: #fff5f5 !important;
    color: #dc2626 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.15s !important;
}

    .swal-btn-danger-row:hover {
        opacity: 0.85 !important;
    }


/* ============================================================
   INPUTS
   ============================================================ */

.swal2-input,
.swal2-textarea {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 10px 13px !important;
    border: 1px solid #e0dcd8 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    background: #fafafa !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: border-color 0.15s !important;
}

    .swal2-input:focus,
    .swal2-textarea:focus {
        border-color: #1a1a1a !important;
        box-shadow: none !important;
        outline: none !important;
    }


/* ============================================================
   VALIDATION MESSAGE
   ============================================================ */

.swal2-validation-message {
    padding: 0 !important;
    margin-bottom: 8px !important;
    border: none !important;
    background: none !important;
    color: #e8376a !important;
    font-size: 11.5px !important;
}

    .swal2-validation-message::before {
        display: none !important;
    }


/* ============================================================
   ORDER DETAIL CARD
   ============================================================ */

.swal-order-detail {
    padding: 10px 14px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #f7f5f3;
    font-size: 12.5px;
    text-align: left;
}

.swal-order-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 0.5px solid #ece9e4;
    color: #666;
}

    .swal-order-row:last-child {
        border-bottom: none;
    }

    .swal-order-row span:last-child {
        color: #1a1a1a;
        font-weight: 600;
    }


/* ============================================================
   PRODUCT ROW
   ============================================================ */

.swal-prod-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.swal-prod-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f5f3f0;
    object-fit: cover;
}

.swal-prod-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.swal-prod-qty {
    margin-top: 2px;
    font-size: 11.5px;
    color: #aaa;
}

.swal-prod-price {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.swal-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.swal-pay-hint {
    margin: 4px 0 1rem;
    font-size: 12px;
    color: #bbb;
    text-align: center;
}


/* ============================================================
   FLASH SALE POPUP
   ============================================================ */

.swal-popup--sale {
    max-width: 430px !important;
}

    .swal-popup--sale .swal-title {
        margin-bottom: 0.4rem;
    }

.swal-sale {
    padding: 2px 0 4px;
    text-align: center;
}

.swal-sale__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #fff0f4;
    color: #e8376a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.swal-sale__discount {
    margin-bottom: 8px;
    color: #e8376a;
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 800;
    line-height: 1;
}

.swal-sale__subtitle {
    max-width: 320px;
    margin: 0 auto 15px;
    color: #888;
    font-size: 12.5px;
    line-height: 1.5;
}

.swal-sale__timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fafafa;
}

.swal-sale__timer-label {
    margin-bottom: 4px;
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.swal-sale__timer {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.swal-sale__note {
    margin: 0;
    color: #aaa;
    font-size: 10.5px;
}


/* ============================================================
   COUPONS
   ============================================================ */

.swal-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    padding: 0.6rem 0.2rem;
    overflow-y: auto;
    text-align: left;
}

.swal-coupon-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    overflow: hidden;
    border: 1px dashed #333;
    border-radius: 8px;
    background: #fff;
}

.swal-coupon-card__code {
    padding-right: 12px;
    border-right: 1.5px dashed #333;
    color: #333;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.swal-coupon-card__body {
    min-width: 0;
}

.swal-coupon-card__title {
    margin: 0;
    color: #333;
    font-size: 12.5px;
    font-weight: 700;
}

.swal-coupon-card__subtitle {
    margin: 2px 0 0;
    color: #333;
    font-size: 11px;
}

.swal-coupon-card__use {
    padding: 7px 16px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .swal-coupon-card__use:hover {
        border: 1px solid #333;
        background: #ffffff;
        color: #333;
    }


/* ============================================================
   TOGGLE
   ============================================================ */

.swal-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #333;
}

.swal-toggle-label {
    color: #555;
    font-size: 12.5px;
    font-weight: 500;
}

.swal-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
    border: none;
    border-radius: 11px;
    outline: none;
    background: #d0ccc5;
    cursor: pointer;
    transition: background 0.2s;
}

    .swal-toggle.on {
        background: #1a9e5c;
    }

    .swal-toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: left 0.2s;
    }

    .swal-toggle.on::after {
        left: 18px;
    }


/* ============================================================
   TABS
   ============================================================ */

.swal-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #f0ece6;
}

.swal-tab {
    flex: 1;
    padding: 7px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

    .swal-tab.active {
        background: #fff;
        color: #1a1a1a;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
    }


/* ============================================================
   STARS
   ============================================================ */

.swal-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 28px;
    cursor: pointer;
}

.swal-star {
    display: inline-block;
    color: #e0dcd8;
    transition: color 0.1s, transform 0.1s;
}

    .swal-star:hover {
        transform: scale(1.2);
    }

    .swal-star.lit {
        color: #f59e0b;
    }


/* ============================================================
   FILE UPLOAD
   ============================================================ */

.swal-drop-zone {
    padding: 20px;
    margin-bottom: 10px;
    border: 2px dashed #d0ccc5;
    border-radius: 12px;
    background: #fafaf9;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

    .swal-drop-zone:hover,
    .swal-drop-zone.drag {
        border-color: #1a1a1a;
        background: #f0ece6;
    }

.swal-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.swal-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f5f3f0;
    color: #555;
    font-size: 12px;
}

.swal-file-prog {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 2px;
    background: #e0dcd6;
}

.swal-file-prog-fill {
    height: 100%;
    border-radius: 2px;
    background: #1a9e5c;
    transition: width 0.4s ease;
}


/* ============================================================
   CALENDAR
   ============================================================ */

.swal-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .swal-cal-nav span {
        color: #1a1a1a;
        font-size: 13px;
        font-weight: 600;
    }

    .swal-cal-nav button {
        padding: 2px 10px;
        border: none;
        border-radius: 6px;
        background: none;
        color: #888;
        font-size: 18px;
        cursor: pointer;
    }

        .swal-cal-nav button:hover {
            background: #f0ece6;
        }

.swal-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.swal-cal-hd {
    padding: 4px 0;
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
}

.swal-cal-day {
    padding: 6px 2px;
    border-radius: 50%;
    color: #333;
    font-size: 12px;
    cursor: pointer;
}

    .swal-cal-day:hover {
        background: #f0ece6;
    }

    .swal-cal-day.today {
        background: #1a1a1a;
        color: #fff;
    }

    .swal-cal-day.selected {
        background: #e8376a;
        color: #fff;
    }

    .swal-cal-day.dim {
        color: #ccc;
        pointer-events: none;
    }


/* ============================================================
   PROGRESS STEPS
   ============================================================ */

.swal2-progress-steps .swal2-progress-step {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #1a1a1a !important;
    color: #fff !important;
    font-size: 11px !important;
}

.swal2-progress-steps .swal2-progress-step-line {
    height: 2px !important;
    background: #d0ccc5 !important;
}

.swal2-progress-steps .swal2-active-progress-step {
    background: #1a9e5c !important;
}


/* ============================================================
   TOAST
   ============================================================ */

.swal2-toast {
    min-width: unset !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14) !important;
}

    .swal2-toast .swal2-title {
        padding: 0 !important;
        margin: 0 !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    .swal2-toast.swal2-show {
        animation: toastIn 0.28s ease !important;
    }

@keyframes toastIn {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.swal2-toast-success {
    background: #1a9e5c !important;
}

.swal2-toast-danger {
    background: #e8376a !important;
}

.swal2-toast-warning {
    background: #f59e0b !important;
}

.swal2-toast-info {
    background: #2563eb !important;
}
