/* Smart Cart & Checkout Pro v2.0 - Main CSS - Icy Glassmorphism */
*, *::before, *::after { box-sizing: border-box; }

/* ── FONT & BASE ── */
.scc-cart-form,
.woocommerce-cart .scc-cart-form,
.woocommerce-checkout,
.scc-buy-together,
.scc-sticky-bar,
.scc-geo-box {
    font-family: var(--scc-font, 'Inter', sans-serif);
}

/* ── ANIMATED BACKGROUNDS ── */
@keyframes scc-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes scc-shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes scc-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes scc-slide-up { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes scc-slide-in { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:none} }
@keyframes scc-pulse-glow { 0%,100%{box-shadow:0 0 0 0 rgba(0,180,216,0.3)} 50%{box-shadow:0 0 0 8px rgba(0,180,216,0)} }
@keyframes scc-fill-bar { from{width:0} to{width:var(--target-width)} }
@keyframes scc-badge-bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

.scc-spin { animation: scc-spin 1s linear infinite; }

/* ── GLASS CARD MIXIN ── */
.scc-glass {
    background: var(--scc-glass-bg, rgba(255,255,255,0.65));
    backdrop-filter: var(--scc-blur, blur(18px));
    -webkit-backdrop-filter: var(--scc-blur, blur(18px));
    border: 1.5px solid var(--scc-glass-border, rgba(255,255,255,0.8));
    box-shadow: var(--scc-glass-shadow, 0 8px 32px rgba(0,180,216,0.12)),
                0 1px 0 rgba(255,255,255,0.9) inset;
    border-radius: var(--scc-radius, 14px);
}

/* ── PAGE BACKGROUND: use theme default, do not override ── */

/* ── TEXT COLOR FIXES — ensure readability on any theme background ── */
.scc-cart-title-text h2,
.scc-cart-title-text span,
.scc-card-name,
.scc-card-meta,
.scc-cart-header,
.scc-qty-input,
.scc-bt-name,
.cart_totals h2,
.cart_totals table th,
.cart_totals table td,
.scc-checkout-sticky-total,
.scc-sticky-total-amount,
.scc-section-title,
.scc-section-subtitle,
.woocommerce-checkout label,
.woocommerce-checkout h3,
.woocommerce-billing-fields__field-wrapper label,
.woocommerce-shipping-fields__field-wrapper label {
    color: #0d1b2a !important;
}
.scc-cart-title-text span,
.scc-card-meta,
.scc-section-subtitle {
    color: #475569 !important;
}
.scc-card-price,
.scc-bt-price,
.cart_totals .order-total td { color: var(--scc-primary, #00b4d8) !important; }

/* ── WOOCOMMERCE NOTICE OVERRIDES ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(0,180,216,0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,180,216,0.1) !important;
    font-family: var(--scc-font) !important;
}

/* ── SHIPPING BAR ── */
.scc-shipping-bar {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,180,216,0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
    animation: scc-slide-up 0.5s ease;
}
.scc-shipping-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.scc-shipping-bar-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,180,216,0.35);
    animation: scc-float 3s ease-in-out infinite;
}
.scc-shipping-bar-icon svg { width: 22px; height: 22px; stroke: #fff; }
.scc-shipping-bar-content { flex: 1; min-width: 0; }
.scc-shipping-msg,
.scc-shipping-done {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 10px;
    line-height: 1.4;
}
.scc-shipping-done {
    color: #047857;
}
.scc-shipping-done svg { width: 18px; height: 18px; stroke: #047857; flex-shrink: 0; }
.scc-shipping-track {
    height: 8px;
    background: rgba(0,180,216,0.15);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.scc-shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--scc-primary, #00b4d8), #0077b6);
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.scc-shipping-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    border-radius: 0 100px 100px 0;
}

/* ── MIN ITEMS NOTICE ── */
.scc-min-items-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,250,230,0.85) !important;
    border: 1.5px solid rgba(234,179,8,0.4) !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 16px;
}
