/* ==========================================================================
   Zocco Cart Progress Bar Styles (Premium Design System)
   ========================================================================== */

#zocco-cart-progress-bar {
    /*margin: 24px 0;*/
    max-width: var(--container-7xl) !important;
    padding: 24px;
    /*background: rgba(255, 255, 255, 0.7);*/
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Outfit", "Inter", "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

/* Dark mode compatibility if theme supports it */
@media (prefers-color-scheme: dark) {
    #zocco-cart-progress-bar {
        /*background: rgba(30, 30, 30, 0.8);*/
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    /*.zocco-progress-text {*/
    /*    color: #e2e8f0 !important;*/
    /*}*/
    
    /*.zocco-progress-text strong {*/
    /*    color: #ffffff !important;*/
    /*}*/
    
    .zocco-progress-bar-bg {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

.zocco-progress-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zocco-progress-text {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.6;
}

.zocco-progress-text strong {
    color: #1a202c;
    font-weight: 700;
}

.zocco-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.zocco-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9b26 0%, #ff5e00 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shine effect on the progress bar */
.zocco-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: zocco-shine 2.5s infinite linear;
}

@keyframes zocco-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Success state styles */
.zocco-progress-bar-wrap.success .zocco-progress-bar-fill {
    background: linear-gradient(90deg, #00b09b 0%, #96c93d 100%);
}

.zocco-progress-bar-wrap.success .zocco-progress-text {
    color: #2f855a !important;
}

.zocco-progress-bar-wrap.success .zocco-progress-text strong {
    color: #276749 !important;
}

/* ==========================================================================
   Hide Remove Button and Quantity Controls for the Free Product
   ========================================================================== */

/* Target the class applied via our javascript */
.zocco-free-product-row .wc-block-components-cart-item__remove,
.zocco-free-product-row .wc-block-cart-items__row-remove,
.zocco-free-product-row button[aria-label*="Remove"],
.zocco-free-product-row button[label*="Remove"],
.zocco-free-product-row .wc-block-components-cart-item__quantity,
.zocco-free-product-row .wc-block-cart-items__row-quantity,
.zocco-free-product-row .wc-block-components-cart-item__quantity-controls,
.zocco-free-product-row .wc-block-components-quantity-selector {
    display: none !important;
}
