/**
 * BB-WooAutomate Live Inventory Widget Styles
 * Version: 2.0.0
 */

/* ===== WIDGET CONTAINER ===== */
.bbwa-live-inventory {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

/* Title/Header */
.bbwa-header {
    margin-bottom: 20px;
}

.bbwa-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: inherit;
    font-family: inherit;
}

/* ===== COLOR SWATCHES ===== */
.bbwa-color-section {
    margin-bottom: 24px;
}

.bbwa-color-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
    color: inherit;
}

.bbwa-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bbwa-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bbwa-color-swatch:hover {
    transform: scale(1.08);
}

.bbwa-color-swatch .bbwa-swatch-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

/* Current selection (Green border) */
.bbwa-color-swatch.current .bbwa-swatch-indicator {
    border-color: #00cc00;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00cc00;
}

/* Has quantity (Show checkmark) */
.bbwa-color-swatch.has-qty .bbwa-swatch-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Prevent checkmark from triggering click events */
}

/* Previous selection (Gray) */
.bbwa-color-swatch.previous .bbwa-swatch-indicator {
    border-color: #888888;
    opacity: 0.7;
}

/* Selected Color Name Display */
.bbwa-selected-color-display {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    min-height: 20px;
}

.bbwa-selected-color-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Action Buttons */
.bbwa-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bbwa-action-buttons .bbwa-btn {
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.bbwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.bbwa-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.bbwa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.bbwa-preview-btn {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.bbwa-clear-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.bbwa-add-to-cart-btn {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bbwa-add-to-cart-btn:hover:not(:disabled) {
    background: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bbwa-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.bbwa-add-to-cart-btn.loading {
    position: relative;
    color: transparent;
}

.bbwa-add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: bbwa-spin 0.6s linear infinite;
}

@keyframes bbwa-spin {
    to { transform: rotate(360deg); }
}

.bbwa-icon-preview::before {
    content: '🔍';
    margin-right: 4px;
}

.bbwa-icon-clear::before {
    content: '✕';
    margin-right: 4px;
}

/* ===== SIZE TABLE ===== */
.bbwa-size-section {
    margin-bottom: 24px;
    overflow-x: auto;
}

.bbwa-size-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    font-size: 14px;
    font-family: inherit;
}

.bbwa-size-table thead {
    background: #f0f0f0;
}

.bbwa-size-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: inherit;
}

.bbwa-size-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    color: inherit;
}

.bbwa-size-table tbody tr:last-child td {
    border-bottom: none;
}

.bbwa-size-row.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
    background: #f9f9f9;
}

.bbwa-size-row.out-of-stock td {
    color: #999;
}

/* Quantity Selector */
.bbwa-qty-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.bbwa-qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbwa-qty-btn:hover {
    background: #f5f5f5;
    border-color: #333;
}

.bbwa-qty-btn:active {
    transform: scale(0.95);
}

.bbwa-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
}

.bbwa-qty-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Stock Info */
.bbwa-stock-info {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* ===== SIMPLE PRODUCT STYLES ===== */
.bbwa-live-inventory--simple {
    max-width: 400px;
}

.bbwa-qty-section {
    margin-bottom: 16px;
}

/* Quantity Header with stock info inline */
.bbwa-qty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bbwa-qty-label {
    font-weight: 600;
    font-size: 14px;
    color: inherit;
    margin: 0;
}

.bbwa-qty-header .bbwa-stock-info {
    font-size: 13px;
    color: #059669;
    font-weight: 500;
}

.bbwa-qty-header .bbwa-stock-remaining {
    color: #f59e0b;
}

/* Simple Product Subtotal */
.bbwa-simple-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bbwa-simple-subtotal .bbwa-subtotal-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.bbwa-simple-subtotal .bbwa-subtotal-value {
    font-weight: 700;
    color: #059669;
    font-size: 18px;
}

/* Simple Product Buttons */
.bbwa-simple-buttons {
    display: flex;
    gap: 12px;
}

.bbwa-simple-buttons .bbwa-add-to-cart-btn,
.bbwa-simple-buttons .bbwa-buy-now-btn {
    flex: 1;
    margin-top: 0;
}

/* Variable Product Buttons */
.bbwa-variable-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.bbwa-variable-buttons .bbwa-add-to-cart-btn,
.bbwa-variable-buttons .bbwa-buy-now-btn {
    flex: 1;
    margin-top: 0;
}

.bbwa-buy-now-btn {
    display: block;
    background: #059669 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bbwa-buy-now-btn:hover:not(:disabled) {
    background: #047857 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.bbwa-buy-now-btn:disabled {
    background: #a7f3d0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== IMAGE POPUP ===== */
.bbwa-image-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 99999;
}

.bbwa-image-popup.active {
    display: block;
}

.bbwa-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.bbwa-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    animation: bbwa-popup-enter 0.3s ease;
}

@keyframes bbwa-popup-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.bbwa-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bbwa-popup-close:hover {
    color: #333;
}

.bbwa-popup-image-container {
    text-align: center;
    margin-top: 20px;
}

.bbwa-popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .bbwa-live-inventory {
        padding: 16px;
    }

    .bbwa-color-swatches {
        gap: 6px;
    }

    .bbwa-color-swatch {
        width: 36px;
        height: 36px;
    }

    .bbwa-size-table {
        font-size: 13px;
    }

    .bbwa-size-table th,
    .bbwa-size-table td {
        padding: 10px 12px;
    }

    .bbwa-qty-selector {
        gap: 6px;
    }

    .bbwa-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .bbwa-qty-input {
        width: 45px;
        height: 28px;
        font-size: 13px;
    }

    .bbwa-popup-content {
        max-width: 95%;
        width: 95%;
        padding: 16px;
        max-height: 95vh;
    }

    .bbwa-popup-close {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .bbwa-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .bbwa-add-to-cart-btn {
        padding: 12px 16px;
        font-size: 14px;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .bbwa-live-inventory {
        padding: 12px;
        margin: 16px 0;
    }

    .bbwa-title {
        font-size: 16px;
    }

    .bbwa-color-swatches {
        gap: 5px;
    }

    .bbwa-color-swatch {
        width: 32px;
        height: 32px;
    }

    .bbwa-size-table {
        font-size: 12px;
    }

    .bbwa-size-table th,
    .bbwa-size-table td {
        padding: 8px 10px;
    }

    .bbwa-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .bbwa-qty-input {
        width: 40px;
        height: 26px;
    }

    .bbwa-action-buttons {
        flex-direction: column;
    }

    .bbwa-action-buttons .bbwa-btn {
        width: 100%;
    }

    .bbwa-popup-content {
        padding: 12px;
    }
}

/* ===== UTILITY CLASSES ===== */
.bbwa-error {
    background: #fce4e4;
    border: 1px solid #f5a6a6;
    color: #d8000c;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 14px;
}

.bbwa-success {
    background: #e4fce4;
    border: 1px solid #a6f5a6;
    color: #0c8c0c;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 14px;
}

.bbwa-hidden {
    display: none !important;
}

/* ==========================================================================
   BULK DISCOUNT MILESTONE STYLES
   ========================================================================== */

.bbwa-milestone-section {
    display: none; /* Hidden by default, shown when qty >= 1 */
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e6ff 100%);
    border: 1px solid #e8dcff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    animation: bbwa-fade-in 0.3s ease-out;
}

.bbwa-milestone-section.is-visible {
    display: block;
}

@keyframes bbwa-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bbwa-milestone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.bbwa-milestone-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbwa-milestone-character {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.bbwa-milestone-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

/* Status message (inline with title) */
.bbwa-milestone-status {
    display: flex;
    align-items: center;
}

.bbwa-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.bbwa-status-text.is-achieved {
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
}

.bbwa-status-text.is-max {
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}

/* Progress Bar */
.bbwa-progress-container {
    margin-bottom: 0;
}

.bbwa-progress-track {
    position: relative;
    height: 14px;
    background: linear-gradient(to right, #e5e7eb, #d1d5db);
    border-radius: 7px;
    overflow: visible;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.bbwa-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 7px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}

.bbwa-progress-fill.tier-1 {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.bbwa-progress-fill.tier-2 {
    background: linear-gradient(90deg, #9333ea, #c084fc);
}

.bbwa-progress-fill.tier-3 {
    background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.bbwa-progress-fill.tier-max {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Tier Markers on Progress Bar */
.bbwa-tier-marker {
    position: absolute;
    top: -5px;
    width: 10px;
    height: 24px;
    background: linear-gradient(180deg, #9ca3af, #6b7280);
    border-radius: 5px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    cursor: help;
}

.bbwa-tier-marker:hover {
    transform: translateX(-50%) scale(1.15);
}

.bbwa-tier-marker.achieved {
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.bbwa-tier-marker::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b7280;
    transition: border-color 0.3s ease;
}

.bbwa-tier-marker.achieved::after {
    border-top-color: #059669;
}

/* Tiers Data (hidden, for JS) */
.bbwa-tiers-data {
    display: none !important;
}

/* Tiers List */
.bbwa-tiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.bbwa-tier-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: default;
}

.bbwa-tier-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.bbwa-tier-item.achieved {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.bbwa-tier-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.bbwa-tier-item.achieved .bbwa-tier-check {
    color: #fff;
    background: #10b981;
}

.bbwa-check-icon {
    font-weight: bold;
    line-height: 1;
}

.bbwa-tier-qty {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    min-width: 28px;
}

.bbwa-tier-discount {
    font-weight: 700;
    color: #7c3aed;
    font-size: 14px;
    background: rgba(124, 58, 237, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.bbwa-tier-item.achieved .bbwa-tier-discount {
    color: #059669;
    background: rgba(5, 150, 105, 0.15);
}

/* Discount Messages */
.bbwa-discount-message {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.bbwa-discount-message::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.bbwa-discount-text {
    font-size: 14px;
    color: #059669;
    font-weight: 500;
}

.bbwa-next-tier-message {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.bbwa-next-tier-message::before {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f59e0b;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.bbwa-next-tier-text {
    font-size: 13px;
    color: #d97706;
    font-weight: 500;
}

.bbwa-next-tier-text strong {
    color: #b45309;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
    .bbwa-milestone-section {
        padding: 12px;
    }

    .bbwa-milestone-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bbwa-milestone-status {
        width: 100%;
    }

    .bbwa-status-text {
        font-size: 12px;
        display: block;
        text-align: center;
        width: 100%;
    }
}
/* =============================================
   CART MILESTONES WIDGET STYLES
   ============================================= */

/* Cart Page Milestone Widget */
.bbwa-cart-milestones-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Progress Header */
.bbwa-cart-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bbwa-cart-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.bbwa-cart-progress-value {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

/* Progress Bar Container */
.bbwa-cart-progress-bar-container {
    position: relative;
    margin-bottom: 24px;
}

.bbwa-cart-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.bbwa-cart-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Progress Markers */
.bbwa-cart-progress-markers {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
}

.bbwa-cart-progress-marker {
    position: absolute;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: default;
    pointer-events: auto;
}

.bbwa-cart-progress-marker.unlocked {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.bbwa-cart-progress-marker.locked {
    opacity: 0.7;
}

.bbwa-marker-icon {
    font-size: 14px;
    line-height: 1;
}

/* Milestone List */
.bbwa-cart-milestone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bbwa-layout-horizontal .bbwa-cart-milestone-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.bbwa-cart-milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bbwa-cart-milestone-item.unlocked {
    background: #ecfdf5;
    border-color: #10b981;
}

.bbwa-layout-horizontal .bbwa-cart-milestone-item {
    flex: 1;
    min-width: 200px;
}

/* Milestone Icon Wrap */
.bbwa-milestone-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.bbwa-cart-milestone-item.unlocked .bbwa-milestone-icon-wrap {
    border-color: #10b981;
}

.bbwa-milestone-icon {
    font-size: 20px;
}

.bbwa-milestone-check {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Milestone Content */
.bbwa-milestone-content {
    flex: 1;
    min-width: 0;
}

.bbwa-milestone-threshold {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 2px;
}

.bbwa-cart-milestone-item.unlocked .bbwa-milestone-threshold {
    color: #059669;
}

.bbwa-milestone-message {
    font-size: 13px;
    color: #6b7280;
}

.bbwa-cart-milestone-item.unlocked .bbwa-milestone-message {
    color: #047857;
}

.bbwa-milestone-remaining {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 4px;
    font-weight: 500;
}

/* Mini Progress Bar in Item */
.bbwa-milestone-progress-mini {
    width: 60px;
    flex-shrink: 0;
}

.bbwa-mini-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.bbwa-mini-progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* CTA Section */
.bbwa-cart-milestone-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-radius: 8px;
}

.bbwa-cta-icon {
    font-size: 24px;
}

.bbwa-cta-text {
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* =============================================
   MINI-CART MILESTONE STYLES
   ============================================= */

.bbwa-mini-cart-milestones {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 10px 0;
}

.bbwa-mini-cart-milestones.bbwa-compact {
    padding: 10px;
}

/* Mini Progress Bar */
.bbwa-mini-progress-wrap {
    margin-bottom: 10px;
}

.bbwa-mini-progress-track {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: visible;
}

.bbwa-mini-cart-milestones .bbwa-mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Mini Milestone Dots */
.bbwa-mini-milestone-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bbwa-mini-milestone-dot.unlocked {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Mini Milestone List */
.bbwa-mini-milestone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.bbwa-mini-milestone-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
}

.bbwa-mini-milestone-item.unlocked {
    background: #ecfdf5;
    border-color: #10b981;
}

.bbwa-mini-icon {
    font-size: 14px;
}

.bbwa-mini-threshold {
    color: #374151;
    font-weight: 500;
}

.bbwa-mini-check {
    color: #10b981;
    font-weight: bold;
}

/* Next Milestone */
.bbwa-mini-next-milestone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 6px;
}

.bbwa-mini-next-icon {
    font-size: 18px;
}

.bbwa-mini-next-text {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

/* All Unlocked */
.bbwa-mini-all-unlocked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 6px;
}

.bbwa-mini-congrats-icon {
    font-size: 18px;
}

.bbwa-mini-congrats-text {
    font-size: 12px;
    color: #047857;
    font-weight: 600;
}

/* Unlocked Summary Badge */
.bbwa-mini-unlocked-summary {
    margin-top: 8px;
    text-align: center;
}

.bbwa-unlocked-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

/* Style Variants */
.bbwa-style-minimal .bbwa-cart-milestone-item {
    background: transparent;
    border: none;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
}

.bbwa-style-minimal .bbwa-cart-milestone-item:last-child {
    border-bottom: none;
}

.bbwa-style-cards .bbwa-cart-milestone-item {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
    .bbwa-cart-milestones-widget {
        padding: 16px;
    }

    .bbwa-cart-milestone-item {
        flex-wrap: wrap;
    }

    .bbwa-milestone-progress-mini {
        width: 100%;
        margin-top: 8px;
    }

    .bbwa-layout-horizontal .bbwa-cart-milestone-list {
        flex-direction: column;
    }

    .bbwa-layout-horizontal .bbwa-cart-milestone-item {
        min-width: 100%;
    }
}

/* ===== COLOR-ONLY QUANTITY TABLE ===== */
.bbwa-color-qty-section {
    margin-bottom: 24px;
}

.bbwa-color-qty-table {
    width: 100%;
}

.bbwa-color-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbwa-color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

/* ===== OUT OF STOCK MESSAGE ===== */
.bbwa-out-of-stock {
    padding: 12px 16px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    margin: 16px 0;
}

/* ===== SIMPLE PRODUCT STYLES ===== */
.bbwa-live-inventory--simple .bbwa-simple-qty-section {
    margin-bottom: 20px;
}

/* ===== LIVE STOCK REMAINING DISPLAY ===== */
.bbwa-stock-remaining {
    color: #059669;
    font-weight: 500;
    font-size: 0.9em;
}

.bbwa-size-stock.bbwa-stock-reduced {
    font-weight: 600;
}

.bbwa-stock-info.bbwa-stock-reduced .bbwa-stock-remaining {
    display: inline;
}

/* ===== SELECT COLOR PROMPT ===== */
.bbwa-select-color-prompt td {
    text-align: center;
    padding: 24px 16px;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
}

/* ===== CART SUMMARY ===== */
.bbwa-cart-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    margin-left: auto;
}

.bbwa-cart-summary .bbwa-summary-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bbwa-cart-summary .bbwa-summary-label {
    font-weight: 500;
    color: #666;
    font-size: 12px;
}

.bbwa-cart-summary .bbwa-summary-qty,
.bbwa-cart-summary .bbwa-summary-price {
    font-weight: 700;
    color: #059669;
    font-size: 14px;
}

/* ===== SIZE PRICE DISPLAY ===== */
.bbwa-size-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bbwa-size-label {
    font-weight: 500;
}

.bbwa-size-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.bbwa-size-price {
    color: #333;
}

.bbwa-size-price--regular {
    color: #999;
    font-size: 12px;
}

.bbwa-size-price--regular del {
    text-decoration: line-through;
}

.bbwa-size-price--sale {
    color: #059669;
    font-weight: 600;
}

/* ===== ROW SUBTOTAL ===== */
.bbwa-subtotal-header {
    text-align: right;
}

.bbwa-size-subtotal {
    text-align: right;
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.bbwa-size-subtotal.bbwa-has-subtotal {
    color: #333;
    font-weight: 600;
}

.bbwa-subtotal-value {
    display: inline-block;
}

/* ===== STOCK STATUS BADGES ===== */
.bbwa-size-stock-badge {
    white-space: nowrap;
}

.bbwa-stock-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bbwa-stock-badge--in-stock {
    background: #dcfce7;
    color: #15803d;
}

.bbwa-stock-badge--low-stock {
    background: #fef3c7;
    color: #b45309;
}

.bbwa-stock-badge--out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

/* Out of stock row styling */
.bbwa-row-out-of-stock {
    opacity: 0.6;
}

.bbwa-row-out-of-stock .bbwa-size-name,
.bbwa-row-out-of-stock .bbwa-size-price {
    text-decoration: line-through;
    color: #999;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NEW ELEMENTS ===== */
@media (max-width: 600px) {
    .bbwa-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bbwa-action-buttons .bbwa-btn {
        width: 100%;
    }
    
    .bbwa-cart-summary {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 16px;
        padding: 10px 14px;
    }
    
    .bbwa-size-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .bbwa-size-price-wrap {
        font-size: 11px;
    }
    
    .bbwa-size-subtotal {
        min-width: 60px;
        font-size: 12px;
    }
    
    .bbwa-stock-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .bbwa-subtotal-header {
        display: none;
    }
    
    .bbwa-size-table .bbwa-size-subtotal {
        display: none;
    }
    
    /* Simple product responsive */
    .bbwa-qty-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .bbwa-simple-buttons {
        flex-direction: column;
    }
    
    .bbwa-simple-buttons .bbwa-add-to-cart-btn,
    .bbwa-simple-buttons .bbwa-buy-now-btn {
        width: 100%;
    }
    
    /* Variable product responsive */
    .bbwa-variable-buttons {
        flex-direction: column;
    }
    
    .bbwa-variable-buttons .bbwa-add-to-cart-btn,
    .bbwa-variable-buttons .bbwa-buy-now-btn {
        width: 100%;
    }
    
    .bbwa-simple-subtotal {
        padding: 10px 14px;
    }
    
    .bbwa-simple-subtotal .bbwa-subtotal-value {
        font-size: 16px;
    }
}

/* ===== EXTRA SMALL SCREENS (under 420px) ===== */
@media (max-width: 420px) {
    .bbwa-live-inventory {
        padding: 16px;
        margin: 10px 0;
    }
    
    .bbwa-title {
        font-size: 16px;
    }
    
    /* Table: Hide Available column, compact layout */
    .bbwa-size-table th:nth-child(2),
    .bbwa-size-table td:nth-child(2) {
        display: none;
    }
    
    .bbwa-size-table th,
    .bbwa-size-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .bbwa-size-table th:first-child {
        min-width: 80px;
    }
    
    /* Size/Price column compact */
    .bbwa-size-name {
        gap: 2px;
    }
    
    .bbwa-size-label {
        font-size: 13px;
        font-weight: 600;
    }
    
    .bbwa-size-price-wrap {
        font-size: 10px;
    }
    
    .bbwa-size-price--regular {
        display: none; /* Hide strikethrough on very small screens */
    }
    
    /* Quantity controls smaller */
    .bbwa-qty-selector {
        gap: 2px;
    }
    
    .bbwa-qty-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .bbwa-qty-input {
        width: 32px;
        height: 24px;
        font-size: 12px;
    }
    
    /* Cart summary compact */
    .bbwa-cart-summary {
        padding: 6px 10px;
        gap: 8px;
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bbwa-cart-summary .bbwa-summary-label {
        font-size: 10px;
    }
    
    .bbwa-cart-summary .bbwa-summary-qty,
    .bbwa-cart-summary .bbwa-summary-price {
        font-size: 12px;
    }
    
    /* Action buttons stack */
    .bbwa-size-only-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .bbwa-size-only-actions .bbwa-cart-summary {
        width: 100%;
        margin-left: 0;
    }
    
    /* Add to cart button */
    .bbwa-add-to-cart-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* =============================================
   CART MILESTONE SECTION (Live Inventory Widget)
   Real-time cart discount progress bar
   ============================================= */

.bbwa-cart-milestone-section {
    margin: 8px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

.bbwa-cart-milestone-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #166534;
    line-height: 1.4;
}

.bbwa-cart-milestone-message .bbwa-milestone-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.bbwa-cart-milestone-message .bbwa-milestone-text {
    flex: 1;
}

.bbwa-cart-milestone-message .bbwa-remaining {
    color: #dc2626;
    font-weight: 600;
}

.bbwa-cart-milestone-message .bbwa-reward {
    color: #166534;
    font-weight: 600;
}

.bbwa-cart-milestone-message .bbwa-milestone-complete {
    color: #166534;
    font-weight: 600;
}

/* Progress Bar Container */
.bbwa-cart-milestone-bar {
    position: relative;
    height: 8px;
    background: #d1d5db;
    border-radius: 4px;
    margin: 10px 10px 30px 10px;
    overflow: visible;
}

.bbwa-cart-milestone-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 4px;
    transition: width 0.4s ease;
    z-index: 1;
}

/* Tier Markers - Positioned ON the progress bar */
.bbwa-cart-tier-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 3px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bbwa-cart-tier-marker.reached {
    background: #22c55e;
    border-color: #16a34a;
}

.bbwa-cart-tier-marker.reached .bbwa-tier-icon {
    filter: brightness(0) invert(1);
}

.bbwa-cart-tier-marker .bbwa-tier-icon {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon images inside tier markers */
.bbwa-cart-tier-marker .bbwa-tier-icon img,
.bbwa-cart-tier-marker .bbwa-tier-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 0;
}

.bbwa-cart-tier-marker.reached .bbwa-tier-icon img,
.bbwa-cart-tier-marker.reached .bbwa-tier-icon-img {
    filter: brightness(0) invert(1);
}

/* Tier Labels - Below the progress bar */
.bbwa-cart-milestone-labels {
    position: relative;
    height: 24px;
    margin: 0 10px;
}

.bbwa-cart-tier-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bbwa-cart-tier-label.reached {
    color: #16a34a;
    font-weight: 700;
}

/* =============================================
   STATIC DISCOUNT TIERS SECTION
   ============================================= */

.bbwa-discount-tiers-section {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
}

.bbwa-discount-tiers-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.bbwa-discount-tiers-icon {
    font-size: 18px;
}

/* New Grid Layout */
.bbwa-discount-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.bbwa-discount-tier-cell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.bbwa-discount-tier-cell:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.bbwa-tier-price-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.bbwa-tier-price {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.bbwa-tier-discount {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: lowercase;
}

.bbwa-tier-qty-range {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Legacy table styles (keep for backwards compatibility) */
.bbwa-discount-tiers-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.bbwa-discount-tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.bbwa-discount-tier-row:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.bbwa-tier-range {
    color: #475569;
    font-weight: 500;
}

.bbwa-tier-arrow {
    color: #94a3b8;
    font-size: 12px;
}

.bbwa-tier-reward {
    color: #16a34a;
    font-weight: 600;
    margin-left: auto;
}

/* =============================================
   RESPONSIVE - Tablet (768px)
   ============================================= */
@media (max-width: 768px) {
    .bbwa-cart-milestone-section {
        padding: 0;
        margin: 6px 0;
    }
    
    .bbwa-cart-milestone-message {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .bbwa-cart-milestone-bar {
        height: 6px;
        margin: 8px 8px 28px 8px;
    }
    
    .bbwa-cart-tier-marker {
        width: 26px;
        height: 26px;
        border-width: 2px;
    }
    
    .bbwa-cart-tier-marker .bbwa-tier-icon {
        font-size: 12px;
    }
    
    .bbwa-cart-tier-marker .bbwa-tier-icon img,
    .bbwa-cart-tier-marker .bbwa-tier-icon-img {
        width: 16px;
        height: 16px;
    }
    
    .bbwa-cart-milestone-labels {
        margin: 0 8px;
    }
    
    .bbwa-cart-tier-label {
        font-size: 10px;
    }
    
    .bbwa-discount-tiers-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .bbwa-discount-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .bbwa-discount-tier-cell {
        padding: 8px 10px;
    }
    
    .bbwa-tier-price {
        font-size: 14px;
    }
    
    .bbwa-tier-discount {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .bbwa-tier-qty-range {
        font-size: 11px;
    }
    
    .bbwa-discount-tiers-table {
        grid-template-columns: 1fr;
    }
    
    .bbwa-discount-tier-row {
        padding: 10px 12px;
    }
}

/* =============================================
   RESPONSIVE - Mobile (480px)
   ============================================= */
@media (max-width: 480px) {
    .bbwa-cart-milestone-section {
        padding: 0;
        margin: 4px 0;
        border-radius: 0;
    }
    
    .bbwa-cart-milestone-message {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .bbwa-cart-milestone-message .bbwa-milestone-icon {
        font-size: 16px;
    }
    
    .bbwa-cart-milestone-bar {
        height: 5px;
        margin: 6px 6px 24px 6px;
    }
    
    .bbwa-cart-tier-marker {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }
    
    .bbwa-cart-tier-marker .bbwa-tier-icon {
        font-size: 10px;
    }
    
    .bbwa-cart-tier-marker .bbwa-tier-icon img,
    .bbwa-cart-tier-marker .bbwa-tier-icon-img {
        width: 14px;
        height: 14px;
    }
    
    .bbwa-cart-milestone-labels {
        margin: 0 6px;
        height: 20px;
    }
    
    .bbwa-cart-tier-label {
        font-size: 9px;
    }
    
    .bbwa-discount-tiers-section {
        padding: 10px;
        border-radius: 8px;
    }
    
    .bbwa-discount-tiers-header {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .bbwa-discount-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .bbwa-discount-tier-cell {
        padding: 6px 8px;
    }
    
    .bbwa-tier-price-line {
        gap: 4px;
    }
    
    .bbwa-tier-price {
        font-size: 13px;
    }
    
    .bbwa-tier-discount {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .bbwa-tier-qty-range {
        font-size: 10px;
    }
    
    .bbwa-discount-tier-row {
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .bbwa-tier-range {
        font-size: 11px;
    }
    
    .bbwa-tier-reward {
        font-size: 12px;
    }
}