/**
 * Frontend styles for 11 Tier Pricing & Order Motivation (v1.2.0)
 * BangVapes Dark Neon (#17ef97) & Gold (#fbbf24) Wholesale Edition
 * Includes Mobile & Slide-Up Variation Drawer (body.drawer-open) Optimizations
 */

.wc-motivation-wrapper {
    margin: 12px 0 14px 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    order: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.wc-motivation-wrapper *,
.wc-motivation-wrapper *::before,
.wc-motivation-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Interactive Quick-Select Bulk Tier Matrix Pills
   ========================================================================== */

.wc-motivation-tier-pills {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    width: 100%;
}

.wc-motivation-tier-pills__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.wc-motivation-tier-pills__title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    min-width: 0;
}

.wc-motivation-tier-pills__title svg {
    color: #fbbf24;
    flex-shrink: 0;
}

.wc-motivation-tier-pills__tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wc-motivation-tier-pills__step-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.wc-motivation-tier-pills__fs-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #17ef97;
    background: rgba(23, 239, 151, 0.12);
    border: 1px solid rgba(23, 239, 151, 0.32);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.wc-motivation-tier-pills__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.wc-motivation-tier-pill.is-step-superseded,
.wc-motivation-tier-row.is-step-superseded {
    display: none !important;
}

.wc-motivation-tier-pill {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 6px;
    min-width: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.wc-motivation-tier-pill:hover {
    background: rgba(23, 239, 151, 0.1);
    border-color: rgba(23, 239, 151, 0.45);
    transform: translateY(-1px);
}

.wc-motivation-tier-pill.is-active {
    background: linear-gradient(135deg, rgba(23, 239, 151, 0.18) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: #17ef97;
    box-shadow: 0 0 0 1px rgba(23, 239, 151, 0.35), 0 4px 12px rgba(23, 239, 151, 0.15);
}

.wc-motivation-tier-pill.is-free-shipping-tier {
    border-color: rgba(251, 191, 36, 0.38);
}

.wc-motivation-tier-pill.is-free-shipping-tier.is-active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(23, 239, 151, 0.12) 100%);
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45), 0 4px 14px rgba(251, 191, 36, 0.18);
}

.wc-tier-pill__qty {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.wc-motivation-tier-pill.is-active .wc-tier-pill__qty {
    color: #ffffff;
}

.wc-tier-pill__price {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-tier-pill__price small {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 1px;
}

.wc-tier-pill__badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(23, 239, 151, 0.16);
    color: #17ef97;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-motivation-tier-pill.is-free-shipping-tier .wc-tier-pill__badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* ==========================================================================
   Motivation Progress Card (Single Product)
   ========================================================================== */

.wc-motivation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: linear-gradient(135deg, rgba(23, 239, 151, 0.11) 0%, rgba(24, 24, 28, 0.96) 100%);
    border: 1px solid rgba(23, 239, 151, 0.32);
    border-left: 3px solid #17ef97;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.wc-motivation-card.is-top-tier {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(24, 24, 28, 0.96) 100%);
    border-color: rgba(251, 191, 36, 0.45);
    border-left-color: #fbbf24;
}

.wc-motivation-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(23, 239, 151, 0.16);
    color: #17ef97;
}

.wc-motivation-card.is-top-tier .wc-motivation-icon-wrap {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.wc-motivation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wc-motivation-content {
    flex-grow: 1;
    min-width: 0;
}

.wc-motivation-main-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    line-height: 1.35;
}

.wc-motivation-main-text {
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
    line-height: 1.35;
    min-width: 0;
    flex: 1;
}

.wc-motivation-main-text strong {
    color: #17ef97;
    font-weight: 700;
}

.wc-motivation-card.is-top-tier .wc-motivation-main-text strong {
    color: #fbbf24;
}

.wc-motivation-modal-trigger {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-motivation-modal-trigger:hover {
    border-color: #17ef97;
    color: #17ef97;
    background: rgba(23, 239, 151, 0.15);
}

.wc-motivation-sub-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    line-height: 1.3;
}

.wc-motivation-sub-text .wc-saving-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(23, 239, 151, 0.16);
    color: #17ef97;
    border: 1px solid rgba(23, 239, 151, 0.32);
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.wc-fs-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
}

.wc-fs-status-tag strong {
    color: #fbbf24;
}

.wc-fs-status-tag.is-unlocked {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-weight: 700;
}

.wc-cart-count-hint {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    white-space: nowrap;
}

.wc-motivation-progress-bar-wrap {
    margin-top: 7px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wc-motivation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #17ef97);
    border-radius: 10px;
    transition: width 0.35s ease;
}

.wc-motivation-card.is-top-tier .wc-motivation-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ==========================================================================
   Modal Popup for Bulk Pricing Tiers
   ========================================================================== */

body.wc-motivation-modal-open {
    overflow: hidden;
}

.wc-motivation-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wc-motivation-modal-dialog {
    background: #18181c;
    color: #f3f4f6;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.wc-motivation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.wc-motivation-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-motivation-modal-badge-icon {
    color: #17ef97;
    display: inline-flex;
}

.wc-motivation-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.wc-motivation-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.wc-motivation-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
}

.wc-motivation-modal-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.wc-motivation-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.wc-motivation-modal-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wc-motivation-modal-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.wc-motivation-modal-table tr.is-active {
    background: rgba(23, 239, 151, 0.14) !important;
    font-weight: 600;
}

.wc-tier-price {
    font-weight: 700;
    color: #ffffff;
}

.wc-tier-saving {
    color: #17ef97;
    font-weight: 600;
}

.wc-tier-fs-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    white-space: nowrap;
}

.wc-motivation-modal-footer {
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   100+ PCS Free Shipping Progress Banner (Mini Cart, Cart, Checkout)
   ========================================================================== */

.wc-fs-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 12px;
    color: #f3f4f6;
    box-sizing: border-box;
}

.wc-fs-banner.is-unlocked {
    background: linear-gradient(135deg, rgba(23, 239, 151, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(23, 239, 151, 0.38);
}

.wc-fs-banner__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.wc-fs-banner__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
    flex-shrink: 0;
}

.wc-fs-banner.is-unlocked .wc-fs-banner__icon-wrap {
    background: rgba(23, 239, 151, 0.2);
    color: #17ef97;
}

.wc-fs-banner__text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.wc-fs-banner__text strong {
    color: #fbbf24;
    font-weight: 700;
}

.wc-fs-banner.is-unlocked .wc-fs-banner__text strong {
    color: #17ef97;
}

.wc-fs-banner__counter {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    flex-shrink: 0;
}

.wc-fs-banner__track {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.wc-fs-banner__fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #17ef97 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.wc-fs-banner.is-unlocked .wc-fs-banner__fill {
    background: linear-gradient(90deg, #10b981 0%, #17ef97 100%);
}

.wc-fs-banner__savings {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    color: #17ef97;
}

.wc-fs-banner__savings strong {
    color: #ffffff;
}

/* ==========================================================================
   Cart & Mini-Cart Item Badges & Single-Item Motivation Hints
   ========================================================================== */

.wc-motivation-cart-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(23, 239, 151, 0.15);
    color: #17ef97;
    border: 1px solid rgba(23, 239, 151, 0.35);
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.25;
    white-space: nowrap;
}

.wc-motivation-cart-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.wc-motivation-cart-price del {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.88em;
}

.wc-motivation-cart-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #17ef97;
}

.wc-motivation-cart-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.wc-motivation-cart-hint strong {
    color: #ffffff;
    font-weight: 700;
}

.wc-motivation-cart-hint.is-unlocked {
    color: #17ef97;
    background: rgba(23, 239, 151, 0.1);
    border-color: rgba(23, 239, 151, 0.26);
}

.wc-motivation-cart-hint.is-unlocked strong {
    color: #17ef97;
}

.wc-motivation-hint-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Mobile & Slide-Up Variation Drawer Responsive Adaptations (<= 767px)
   ========================================================================== */

@media (max-width: 767px) {
    .wc-motivation-wrapper {
        margin: 10px 0 12px 0;
    }

    .wc-motivation-tier-pills {
        padding: 8px 10px;
        margin-bottom: 8px;
        border-radius: 9px;
    }

    .wc-motivation-tier-pills__header {
        gap: 4px;
        margin-bottom: 6px;
    }

    .wc-motivation-tier-pills__title {
        font-size: 10px;
        letter-spacing: 0.03em;
    }

    .wc-motivation-tier-pills__step-tag,
    .wc-motivation-tier-pills__fs-tag {
        font-size: 9.5px;
        padding: 1px 6px;
    }

    .wc-motivation-tier-pills__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .wc-motivation-tier-pill {
        padding: 6px 4px;
        border-radius: 7px;
    }

    .wc-tier-pill__qty {
        font-size: 10px;
    }

    .wc-tier-pill__price {
        font-size: 12px;
    }

    .wc-tier-pill__price small {
        font-size: 9px;
    }

    .wc-tier-pill__badge {
        font-size: 8.5px;
        padding: 1px 4px;
    }

    .wc-motivation-card {
        padding: 9px 11px;
        gap: 9px;
        border-radius: 9px;
    }

    .wc-motivation-icon-wrap {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .wc-motivation-main-text {
        font-size: 12px;
    }

    .wc-motivation-sub-text {
        font-size: 10.5px;
        gap: 4px;
        margin-top: 3px;
    }

    .wc-fs-status-tag {
        font-size: 10px;
        padding: 1px 6px;
    }

    /* Compact mode inside mobile slide-up variation drawer (body.drawer-open) */
    body.drawer-open form.cart .wc-motivation-wrapper {
        margin: 6px 0 4px 0;
    }

    body.drawer-open form.cart .wc-motivation-tier-pills {
        padding: 7px 8px;
        margin-bottom: 6px;
    }

    body.drawer-open form.cart .wc-motivation-tier-pills__header {
        margin-bottom: 5px;
    }

    body.drawer-open form.cart .wc-motivation-tier-pill {
        padding: 5px 3px;
    }

    body.drawer-open form.cart .wc-motivation-card {
        padding: 8px 10px;
        gap: 8px;
    }

    body.drawer-open form.cart .wc-motivation-progress-bar-wrap {
        margin-top: 5px;
        height: 4px;
    }

    /* Bottom-sheet style modal on mobile */
    .wc-motivation-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .wc-motivation-modal-dialog {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 82vh;
        border-bottom: none;
    }

    .wc-motivation-modal-header {
        padding: 14px 16px;
    }

    .wc-motivation-modal-body {
        padding: 14px 16px;
    }

    .wc-motivation-modal-table th,
    .wc-motivation-modal-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .wc-motivation-cart-hint {
        font-size: 10.5px;
        padding: 3px 7px;
    }
}
