/* Funnel Side Cart – Common Styles */
:root {
    --fsc-primary: #2563eb;
    --fsc-secondary: #16a34a;
    --fsc-text: #1f2937;
    --fsc-bg: #ffffff;
    --fsc-overlay: rgba(0, 0, 0, 0.5);
    --fsc-radius: 8px;
    --fsc-font: inherit;
    --fsc-cart-width: 420px;
    --fsc-border: #e5e7eb;
    --fsc-muted: #6b7280;
    --fsc-light-bg: #f9fafb;
    --fsc-danger: #ef4444;
    --fsc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset for FSC elements */
.fsc-wrap,
.fsc-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fsc-wrap {
    font-family: var(--fsc-font);
    color: var(--fsc-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Fixed elements need explicit font (they don't inherit from Elementor containers) */
.fsc-side-cart,
.fsc-overlay,
.fsc-cart-icon,
.fsc-checkout {
    font-family: var(--fsc-font);
}

/* Buttons */
.fsc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    border-radius: var(--fsc-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--fsc-font);
    cursor: pointer;
    transition: opacity var(--fsc-transition), background var(--fsc-transition);
    text-decoration: none;
    line-height: 1.4;
}

.fsc-btn:hover {
    opacity: 0.9;
}

.fsc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fsc-btn--primary {
    background: var(--fsc-primary);
    color: #fff;
}

.fsc-btn--secondary {
    background: transparent;
    color: var(--fsc-primary);
    border: 1px solid var(--fsc-primary);
}

.fsc-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.fsc-btn--full {
    width: 100%;
}

/* Spinner */
.fsc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: fsc-spin 0.6s linear infinite;
}

@keyframes fsc-spin {
    to { transform: rotate(360deg); }
}

/* Loading overlay */
.fsc-loading {
    position: relative;
    pointer-events: none;
}

.fsc-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

/* Screen reader only */
.fsc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body scroll lock when cart is open */
body.fsc-cart-open {
    overflow: hidden;
}
