/**
 * Volume Discount Banner Styles
 */

.bollypiano-volume-discount-banner {
    border: 1px solid rgba(220, 129, 0, 0.3);
    border-left: 4px solid var(--primary);
    background: var(--accent);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.bollypiano-vd-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.bollypiano-vd-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    line-height: 1;
}

.bollypiano-vd-body {
    flex: 1;
    min-width: 0;
}

.bollypiano-vd-message {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #1f1f1f;
}

.bollypiano-vd-track {
    height: 6px;
    background: rgba(220, 129, 0, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.bollypiano-vd-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
    min-width: 4px; /* always show a sliver so the bar is visible */
}

/* Mid tier: discount applied, upselling to next */
.bollypiano-vd-mid {
    border-left-color: var(--primary);
}

.bollypiano-vd-mid .bollypiano-vd-message strong {
    color: var(--primary);
}

/* Max tier: full discount achieved */
.bollypiano-vd-max {
    border-left-color: var(--secondary);
    border-color: rgba(62, 153, 6, 0.3);
    background: #f0faf0;
}

.bollypiano-vd-max .bollypiano-vd-fill {
    background: var(--secondary);
}

.bollypiano-vd-max .bollypiano-vd-message strong {
    color: var(--secondary);
}

/* No tier yet: incentive state */
.bollypiano-vd-none .bollypiano-vd-message strong {
    color: var(--primary);
}

@media (max-width: 600px) {
    .bollypiano-vd-icon {
        display: none;
    }
}

/* -------------------------------------------------------------------------
 * Hint line (membership upsell inside in-cart banner)
 * ----------------------------------------------------------------------- */

.bollypiano-vd-hint {
    margin: 0.4rem 0 0;
    font-size: 0.925rem;
    color: #555;
    line-height: 1.4;
}

.bollypiano-vd-hint strong {
    color: var(--primary);
}

/* -------------------------------------------------------------------------
 * Floating bar
 * ----------------------------------------------------------------------- */

.bollypiano-vd-floatbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--accent);
    box-shadow: 0 -2px 12px rgba(220, 129, 0, 0.2);
    color: #1f1f1f;
}

/* Suppress on cart and checkout — in-cart banner handles those pages */
.woocommerce-cart .bollypiano-vd-floatbar,
.woocommerce-checkout .bollypiano-vd-floatbar {
    display: none !important;
}

/* Suppress when the Elementor off-canvas mini-cart is open */
body:has(.elementor-menu-cart--shown) .bollypiano-vd-floatbar {
    display: none !important;
}

/* Lift the JoinChat button above the floatbar so it doesn't overlap.
 * JoinChat uses .joinchat (class) and controls position via --bottom CSS variable. */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .joinchat {
    --bottom: 64px !important;
}

@media (max-width: 480px) {
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .joinchat {
        --bottom: 76px !important;
    }
}

.bollypiano-vd-floatbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    text-align: center;
}

.bollypiano-vd-floatbar-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.bollypiano-vd-floatbar-msg strong {
    color: var(--primary);
}

.bollypiano-vd-floatbar-sep {
    color: #bbb;
}

.bollypiano-vd-floatbar-hint {
    color: #555;
    font-size: 1rem;
}

.bollypiano-vd-floatbar-hint strong {
    color: var(--primary);
}

.bollypiano-vd-floatbar-track {
    height: 8px;
    background: rgba(220, 129, 0, 0.2);
}

.bollypiano-vd-floatbar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
    min-width: 4px;
    box-shadow: 0 0 6px rgba(220, 129, 0, 0.5);
}

/* Max tier: green accent */
.bollypiano-vd-floatbar-max {
    background: #f0faf0;
    box-shadow: 0 -2px 12px rgba(62, 153, 6, 0.15);
}

.bollypiano-vd-floatbar-max .bollypiano-vd-floatbar-msg strong {
    color: var(--secondary);
}

.bollypiano-vd-floatbar-max .bollypiano-vd-floatbar-fill {
    background: var(--secondary);
    box-shadow: 0 0 6px rgba(62, 153, 6, 0.5);
}

.bollypiano-vd-floatbar-max .bollypiano-vd-floatbar-hint strong {
    color: var(--secondary);
}

@media (max-width: 480px) {
    .bollypiano-vd-floatbar-icon,
    .bollypiano-vd-floatbar-sep {
        display: none;
    }

    .bollypiano-vd-floatbar-inner {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .bollypiano-vd-floatbar-hint {
        font-size: 0.925rem;
        width: 100%;
        text-align: center;
        margin-top: 0.1rem;
    }
}

/* -------------------------------------------------------------------------
 * Volume discount row in Order Summary
 * ----------------------------------------------------------------------- */

.bollypiano-summary-label--green {
    color: var(--secondary);
    font-weight: 600;
}

.bollypiano-summary-value--saving {
    color: var(--secondary);
    font-weight: 600;
}

