/**
 * Clover Cart - Frontend Styles
 * CSS Isolation: All classes prefixed with .clvc-
 * Following the Clover Cart Style Guide
 */

/* ==========================================================================
   CSS Custom Properties (Theming) - Style Guide Colors
   ========================================================================== */
:root {
    /* Panel */
    --clvc-panel-bg: #FFFFFF;
    --clvc-panel-width: 420px;

    /* Text */
    --clvc-text-primary: #1A1A1A;
    --clvc-text-secondary: #666666;
    --clvc-text-muted: #999999;

    /* Interactive */
    --clvc-accent: #1A1A1A;
    --clvc-accent-hover: #333333;
    --clvc-danger: #D32F2F;
    --clvc-success: #4CAF50;
    --clvc-warning: #FFC107;

    /* Surfaces */
    --clvc-border: #EEEEEE;
    --clvc-divider: #F0F0F0;
    --clvc-surface-raised: #FAFAFA;
    --clvc-badge-bg: #D32F2F;

    /* Legacy fallbacks */
    --clvc-primary: #1A1A1A;
    --clvc-primary-hover: #333333;
    --clvc-bg: #FFFFFF;
    --clvc-bg-secondary: #F9F9F9;
    --clvc-text: #1A1A1A;
    --clvc-text-light: #666666;
    --clvc-shadow: rgba(0, 0, 0, 0.15);
    --clvc-overlay: rgba(0, 0, 0, 0.5);
    --clvc-transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
    --clvc-z-index: 999999;

    /* Spacing */
    --clvc-panel-padding: 16px;
    --clvc-radius: 8px;
}

/* ==========================================================================
   Cart Button - Base Styles
   ========================================================================== */
.clvc-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--clvc-transition);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: visible;
    will-change: transform;
}

.clvc-cart-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.clvc-cart-button:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

/* Icon styling */
.clvc-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Icon sizes */
.clvc-icon-small.clvc-icon svg {
    width: 16px;
    height: 16px;
}

.clvc-icon-medium.clvc-icon svg {
    width: 20px;
    height: 20px;
}

.clvc-icon-large.clvc-icon svg {
    width: 24px;
    height: 24px;
}

/* Ensure icon span has color set for currentColor */
.clvc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Style: icon-count (default for static) */
.clvc-style-icon-count {
    padding: 8px;
}

/* Style: icon only */
.clvc-style-icon {
    padding: 8px;
}

.clvc-style-icon .clvc-text,
.clvc-style-icon .clvc-count {
    display: none;
}

/* Style: button */
.clvc-style-button {
    padding: 12px 20px;
}

/* ==========================================================================
   Floating Button Styles (clover_cart_floating)
   ========================================================================== */
.clvc-floating {
    position: fixed;
    z-index: 999998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    background: #1A1A1A;
    border: none;
}

.clvc-floating .clvc-icon {
    color: #FFFFFF;
}

.clvc-floating.clvc-icon-small {
    width: 48px;
    height: 48px;
}

.clvc-floating.clvc-icon-small .clvc-icon svg {
    width: 20px;
    height: 20px;
}

.clvc-floating.clvc-icon-medium {
    width: 56px;
    height: 56px;
}

.clvc-floating.clvc-icon-medium .clvc-icon svg {
    width: 24px;
    height: 24px;
}

.clvc-floating.clvc-icon-large {
    width: 64px;
    height: 64px;
}

.clvc-floating.clvc-icon-large .clvc-icon svg {
    width: 28px;
    height: 28px;
}

.clvc-floating:hover {
    background: #333333;
}

.clvc-floating .clvc-style-icon-count {
    padding: 0;
}

/* Floating positions */
.clvc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.clvc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.clvc-position-top-right {
    top: 20px;
    right: 20px;
}

.clvc-position-top-left {
    top: 20px;
    left: 20px;
}

/* ==========================================================================
   Cart Count Badge
   ========================================================================== */
.clvc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--clvc-badge-bg);
    color: #FFFFFF;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: -6px;
    right: -6px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 1;
    transform: translateZ(0);
}

/* For floating button - badge outside */
.clvc-floating .clvc-count {
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
}

/* Pulse animation on add-to-cart */
@keyframes clvc-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.clvc-pulse {
    animation: clvc-pulse 400ms ease-out;
}

/* Badge bounce */
@keyframes clvc-badge-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.clvc-badge-bounce {
    animation: clvc-badge-bounce 300ms ease-out;
}

/* Just added item animation */
@keyframes clvc-item-pop {
    0% {
        transform: scale(1);
        background-color: transparent;
    }

    30% {
        background-color: rgba(76, 175, 80, 0.15);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        background-color: transparent;
    }
}

.clvc-just-added {
    animation: clvc-item-pop 1.5s ease-out;
}

/* ==========================================================================
   Panel Pop Animation
   ========================================================================== */

/* Panel slide-in with scale pop */
@keyframes clvc-panel-pop-in-right {
    0% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateX(-10px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes clvc-panel-pop-in-left {
    0% {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateX(10px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Overlay fade in with slight darkening animation */
@keyframes clvc-overlay-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Apply pop animation when panel opens */
.clvc-panel-right.clvc-open {
    animation: clvc-panel-pop-in-right 450ms cubic-bezier(0.2, 0.8, 0.3, 1.1) forwards;
}

.clvc-panel-left.clvc-open {
    animation: clvc-panel-pop-in-left 450ms cubic-bezier(0.2, 0.8, 0.3, 1.1) forwards;
}

/* Overlay fade in */
.clvc-overlay.active {
    animation: clvc-overlay-fade-in 400ms ease-out forwards;
}

/* Overlay fade out */
@keyframes clvc-overlay-fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.clvc-overlay.clvc-closing {
    animation: clvc-overlay-fade-out 350ms ease-in forwards;
}

/* Panel exit animation - reverse of entrance pop */
@keyframes clvc-panel-pop-out-right {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    40% {
        transform: translateX(-10px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
}

@keyframes clvc-panel-pop-out-left {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    40% {
        transform: translateX(10px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }
}

/* Apply exit animation when panel is closing */
.clvc-panel-right.clvc-closing {
    animation: clvc-panel-pop-out-right 400ms cubic-bezier(0.4, 0, 0.8, 0.2) forwards;
}

.clvc-panel-left.clvc-closing {
    animation: clvc-panel-pop-out-left 400ms cubic-bezier(0.4, 0, 0.8, 0.2) forwards;
}

/* Header title fade-in on open */
@keyframes clvc-header-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.clvc-panel.clvc-open .clvc-header {
    animation: clvc-header-fade-in 400ms ease-out 150ms both;
}

/* Header fade-out on close */
@keyframes clvc-header-fade-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.clvc-panel.clvc-closing .clvc-header {
    animation: clvc-header-fade-out 250ms ease-in forwards;
}

/* Items container fade in on open */
@keyframes clvc-items-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.clvc-panel.clvc-open .clvc-items {
    animation: clvc-items-fade-in 400ms ease-out 250ms both;
}

/* Items fade-out on close */
@keyframes clvc-items-fade-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.clvc-panel.clvc-closing .clvc-items {
    animation: clvc-items-fade-out 200ms ease-in forwards;
}

/* Footer fade in on open */
@keyframes clvc-footer-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.clvc-panel.clvc-open .clvc-footer {
    animation: clvc-footer-fade-in 350ms ease-out 350ms both;
}

/* Footer fade-out on close */
@keyframes clvc-footer-fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.clvc-panel.clvc-closing .clvc-footer {
    animation: clvc-footer-fade-out 200ms ease-in forwards;
}

/* ==========================================================================
   Side Panel
   ========================================================================== */
.clvc-panel {
    position: fixed;
    top: 0;
    width: var(--clvc-panel-width);
    max-width: 100vw;
    height: 100vh;
    background: var(--clvc-panel-bg);
    border-left: 1px solid var(--clvc-border);
    z-index: var(--clvc-z-index);
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--clvc-text-primary);
    box-sizing: border-box;
}

.clvc-panel *,
.clvc-panel *::before,
.clvc-panel *::after {
    box-sizing: border-box;
}

.clvc-panel-right {
    right: 0;
    transform: translateX(100%);
    transition: transform var(--clvc-transition);
}

.clvc-panel-left {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    border-left: none;
    border-right: 1px solid var(--clvc-border);
}

.clvc-panel-right.clvc-open,
.clvc-panel-left.clvc-open {
    transform: translateX(0);
}

/* Panel inner container */
.clvc-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Header */
.clvc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 var(--clvc-panel-padding);
    border-bottom: 1px solid var(--clvc-border);
    flex-shrink: 0;
}

.clvc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--clvc-text-primary);
}

.clvc-title-count {
    font-weight: 400;
    color: var(--clvc-text-secondary);
}

.clvc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--clvc-transition);
    color: #666666;
}

.clvc-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A1A;
}

.clvc-close:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

.clvc-close svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */
.clvc-progress {
    padding: var(--clvc-panel-padding);
    background: #FFF8E1;
    border-bottom: 1px solid var(--clvc-border);
    flex-shrink: 0;
}

.clvc-progress-text {
    font-size: 13px;
    color: var(--clvc-text-secondary);
    margin-bottom: 8px;
}

.clvc-progress-text strong {
    color: #E65100;
    font-weight: 700;
}

.clvc-progress-achieved {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clvc-success);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.clvc-progress-bar {
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
}

.clvc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFC107, #4CAF50);
    border-radius: 3px;
    transition: width 300ms ease;
}

.clvc-progress-fill.achieved {
    background: #4CAF50;
}

/* ==========================================================================
   Cart Items
   ========================================================================== */
.clvc-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Empty state */
.clvc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px var(--clvc-panel-padding);
    text-align: center;
    color: var(--clvc-text-muted);
}

.clvc-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.clvc-empty p {
    margin: 0 0 20px;
    font-size: 16px;
}

.clvc-continue-shopping {
    padding: 12px 24px;
    background: transparent;
    color: var(--clvc-text-primary);
    border: 1px solid var(--clvc-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--clvc-transition);
}

.clvc-continue-shopping:hover {
    background: var(--clvc-border);
}

/* Cart item */
.clvc-item {
    display: flex;
    gap: 12px;
    padding: var(--clvc-panel-padding);
    border-bottom: 1px solid var(--clvc-divider);
    transition: opacity var(--clvc-transition), transform var(--clvc-transition), background-color 0.3s ease;
    background-color: transparent;
}

.clvc-item.clvc-removing {
    opacity: 0;
    transform: translateX(100%);
}

.clvc-item-thumbnail {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.clvc-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.clvc-item-details {
    flex: 1;
    min-width: 0;
}

.clvc-item-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clvc-text-primary);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.clvc-item-variation {
    margin: 0 0 4px;
    font-size: 12px;
    color: #888888;
}

.clvc-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--clvc-text-primary);
}

.clvc-item-price .sale {
    text-decoration: line-through;
    color: #888888;
    font-weight: 400;
}

.clvc-item-price .sale-price {
    color: var(--clvc-danger);
    margin-left: 8px;
}

.clvc-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.clvc-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--clvc-transition);
}

.clvc-qty-btn:hover {
    background: #F5F5F5;
}

.clvc-qty-btn:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

.clvc-item-quantity input {
    width: 32px;
    height: 28px;
    text-align: center;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.clvc-item-quantity input::-webkit-outer-spin-button,
.clvc-item-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clvc-item-remove {
    flex-shrink: 0;
}

.clvc-remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #BBBBBB;
    border-radius: 4px;
    transition: all var(--clvc-transition);
}

.clvc-remove-item:hover {
    background: #FFEBEE;
    color: var(--clvc-danger);
}

.clvc-remove-item:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Review Reel
   ========================================================================== */
.clvc-reviews {
    padding: var(--clvc-panel-padding);
    background: var(--clvc-surface-raised);
    border-top: 1px solid var(--clvc-divider);
    flex-shrink: 0;
}

.clvc-reviews-heading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--clvc-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clvc-reviews-carousel {
    position: relative;
}

.clvc-review {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.clvc-review-photo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.clvc-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clvc-review-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clvc-primary);
    color: #FFFFFF;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clvc-review-content {
    flex: 1;
    min-width: 0;
}

.clvc-review-stars {
    display: flex;
    gap: 2px;
    color: var(--clvc-warning);
    margin-bottom: 4px;
}

.clvc-review-stars svg {
    width: 12px;
    height: 12px;
}

.clvc-review-text {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #444444;
    font-style: italic;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.clvc-review-name {
    margin: 0;
    font-size: 12px;
    color: var(--clvc-text-muted);
    font-weight: 500;
}

.clvc-review-name::before {
    content: "— ";
}

.clvc-reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.clvc-reviews-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    background: #E0E0E0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--clvc-transition);
}

.clvc-reviews-dot.active,
.clvc-reviews-dot:hover {
    background: var(--clvc-text-primary);
}

.clvc-reviews-dot:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Footer / Cart Summary
   ========================================================================== */
.clvc-footer {
    padding: var(--clvc-panel-padding);
    background: var(--clvc-panel-bg);
    border-top: 1px solid var(--clvc-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Coupon */
.clvc-coupon {
    margin-bottom: 16px;
}

.clvc-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--clvc-text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--clvc-transition);
}

.clvc-coupon-toggle:hover {
    color: var(--clvc-text-primary);
}

.clvc-coupon-toggle:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

.clvc-coupon-form {
    display: none;
    gap: 8px;
    margin-top: 8px;
}

.clvc-coupon-form.active {
    display: flex;
}

.clvc-coupon-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 13px;
}

.clvc-coupon-input:focus {
    outline: none;
    border-color: var(--clvc-primary);
}

.clvc-coupon-apply {
    height: 36px;
    padding: 0 16px;
    background: #333333;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--clvc-transition);
}

.clvc-coupon-apply:hover {
    background: #1A1A1A;
}

.clvc-coupon-message {
    margin-top: 8px;
    padding: 8px;
    background: #E8F5E9;
    color: var(--clvc-success);
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.clvc-coupon-error {
    margin-top: 8px;
    padding: 8px;
    background: #FFEBEE;
    color: var(--clvc-danger);
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

/* Subtotal */
.clvc-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.clvc-subtotal-label {
    color: var(--clvc-text-secondary);
}

.clvc-subtotal-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--clvc-text-primary);
}

.clvc-subtotal-amount .original {
    text-decoration: line-through;
    color: #888888;
    font-weight: 400;
    margin-right: 8px;
}

.clvc-shipping-note {
    display: block;
    font-size: 11px;
    color: var(--clvc-text-muted);
    margin-top: 4px;
    text-align: right;
}

/* Checkout Button */
.clvc-checkout-btn {
    display: block;
    width: 100%;
    height: 50px;
    background: #1A1A1A;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--clvc-transition);
    line-height: 50px;
}

.clvc-checkout-btn:hover {
    background: #333333;
    color: #FFFFFF;
}

.clvc-checkout-btn:active {
    transform: scale(0.98);
}

.clvc-checkout-btn:focus {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}

.clvc-checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* View Cart Link */
.clvc-view-cart {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--clvc-text-muted);
    text-decoration: underline;
    transition: color var(--clvc-transition);
}

.clvc-view-cart:hover {
    color: var(--clvc-text-primary);
}

/* Trust Badges */
.clvc-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.clvc-trust-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--clvc-text-muted);
}

.clvc-trust-badge svg {
    width: 16px;
    height: 16px;
}

.clvc-trust-badges img {
    height: 24px;
    width: auto;
}

/* ==========================================================================
   Overlay
   ========================================================================== */
.clvc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clvc-overlay);
    z-index: calc(var(--clvc-z-index) - 1);
    opacity: 0;
    transition: opacity var(--clvc-transition);
}

.clvc-overlay.active {
    opacity: 1;
}

/* ==========================================================================
   Body scroll lock
   ========================================================================== */
body.clvc-panel-open {
    overflow: hidden;
    padding-right: var(--clvc-scrollbar-width, 0px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .clvc-panel {
        width: 100vw;
    }

    .clvc-floating {
        bottom: 10px;
        right: 10px;
    }

    .clvc-position-bottom-left,
    .clvc-position-top-left {
        left: 10px;
        right: auto;
    }

    .clvc-position-top-right,
    .clvc-position-bottom-right {
        right: 10px;
        left: auto;
    }

    .clvc-item {
        padding: 12px var(--clvc-panel-padding);
    }

    .clvc-item-thumbnail {
        width: 56px;
        height: 56px;
    }

    .clvc-floating {
        width: 48px;
        height: 48px;
    }

    .clvc-floating .clvc-icon svg {
        width: 20px;
        height: 20px;
    }

    .clvc-checkout-btn {
        height: 54px;
        line-height: 54px;
    }

    .clvc-footer {
        padding: 20px var(--clvc-panel-padding);
    }

    .clvc-review-photo,
    .clvc-review-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --clvc-panel-bg: #1A1A1A;
        --clvc-text-primary: #E0E0E0;
        --clvc-text-secondary: #AAAAAA;
        --clvc-text-muted: #777777;
        --clvc-accent: #FFFFFF;
        --clvc-accent-hover: #E0E0E0;
        --clvc-border: #333333;
        --clvc-divider: #2A2A2A;
        --clvc-surface-raised: #222222;
        --clvc-bg: #1A1A1A;
        --clvc-bg-secondary: #222222;
        --clvc-text: #E0E0E0;
        --clvc-text-light: #AAAAAA;
    }

    .clvc-panel {
        border-left-color: #333333;
    }

    .clvc-panel-left {
        border-right-color: #333333;
    }

    .clvc-floating {
        background: #FFFFFF;
    }

    .clvc-floating .clvc-icon {
        color: #1A1A1A;
    }

    .clvc-floating:hover {
        background: #E0E0E0;
    }

    .clvc-checkout-btn {
        background: #FFFFFF;
        color: #1A1A1A;
    }

    .clvc-checkout-btn:hover {
        background: #E0E0E0;
    }

    .clvc-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .clvc-qty-btn {
        background: #2A2A2A;
        border-color: #444444;
        color: #E0E0E0;
    }

    .clvc-qty-btn:hover {
        background: #333333;
    }

    .clvc-item-quantity input {
        background: #2A2A2A;
        border-color: #444444;
        color: #E0E0E0;
    }

    .clvc-coupon-input {
        background: #2A2A2A;
        border-color: #444444;
        color: #E0E0E0;
    }

    .clvc-coupon-apply {
        background: #FFFFFF;
        color: #1A1A1A;
    }

    .clvc-coupon-apply:hover {
        background: #E0E0E0;
    }

    .clvc-continue-shopping {
        border-color: #444444;
        color: #E0E0E0;
    }

    .clvc-continue-shopping:hover {
        background: #333333;
    }

    .clvc-progress {
        background: #2A2A20;
    }

    .clvc-progress-text strong {
        color: #FFB74D;
    }
}

/* ==========================================================================
   Accessibility - Focus Visible
   ========================================================================== */
.clvc-cart-button:focus:not(:focus-visible),
.clvc-close:focus:not(:focus-visible),
.clvc-qty-btn:focus:not(:focus-visible),
.clvc-remove-item:focus:not(:focus-visible),
.clvc-checkout-btn:focus:not(:focus-visible) {
    outline: none;
}

.clvc-cart-button:focus-visible,
.clvc-close:focus-visible,
.clvc-qty-btn:focus-visible,
.clvc-remove-item:focus-visible,
.clvc-checkout-btn:focus-visible {
    outline: 2px solid var(--clvc-primary);
    outline-offset: 2px;
}