/* ============================================================
   CART PREMIUM - Indigo Order-Flow Design System
   Scope: body#clean-theme-client.html-cart
   Colors: Indigo #6366f1 (primary) | Deep Indigo #312e81 (secondary)
   Matches order page (of-*) design language.
   ============================================================ */

body#clean-theme-client.html-cart {
    --cp-primary: #6366f1;
    --cp-primary-hover: #4f46e5;
    --cp-primary-deep: #4338ca;
    --cp-primary-light: #eef2ff;
    --cp-primary-soft: #e0e7ff;
    --cp-primary-mist: #c7d2fe;
    --cp-secondary: #312e81;
    --cp-secondary-hover: #1e1b4b;
    --cp-surface: #ffffff;
    --cp-surface-alt: #f8f9fc;
    --cp-surface-muted: #f1f3f9;
    --cp-border: #e2e5f0;
    --cp-border-light: #eff1f8;
    --cp-text: #1e1b4b;
    --cp-text-body: #334155;
    --cp-text-muted: #64748b;
    --cp-text-placeholder: #94a3b8;
    --cp-success: #22c55e;
    --cp-success-bg: #f0fdf4;
    --cp-danger: #ef4444;
    --cp-danger-bg: #fef2f2;
    --cp-warning: #f59e0b;
    --cp-radius-sm: 0.625rem;
    --cp-radius: 1rem;
    --cp-radius-lg: 1.25rem;
    --cp-radius-xl: 1.75rem;
    --cp-shadow-sm: 0 1px 3px rgba(99, 102, 241, 0.04);
    --cp-shadow: 0 4px 24px rgba(99, 102, 241, 0.07);
    --cp-shadow-lg: 0 12px 48px rgba(99, 102, 241, 0.10);
    --cp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    background: linear-gradient(180deg, #f4f2ff 0%, #f8f9fc 50%, #ffffff 100%) !important;
}

/* ── Animations ── */
@keyframes cp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes cp-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cp-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes cp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ── Cart Shell ── */
body#clean-theme-client.html-cart .html-cart-shell {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}

body#clean-theme-client.html-cart .html-cart-shell__grid {
    align-items: flex-start;
}

/* ── Cart Stage (Left Column) ── */
body#clean-theme-client.html-cart .html-cart-stage {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-xl);
    box-shadow: var(--cp-shadow);
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: cp-fade-up 0.5s ease-out both;
}

body#clean-theme-client.html-cart .html-cart-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #818cf8, #a78bfa, #818cf8, #6366f1);
    background-size: 200% 100%;
    animation: cp-shimmer 4s ease-in-out infinite;
    z-index: 2;
}

body#clean-theme-client.html-cart .html-cart-stage::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body#clean-theme-client.html-cart .html-cart-stage > * {
    position: relative;
    z-index: 1;
}

body#clean-theme-client.html-cart .html-cart-stage > .d-flex {
    padding: 2rem 2.25rem 0;
}

body#clean-theme-client.html-cart .html-cart-stage > .html-cart-workspace {
    padding: 0 2.25rem;
}

body#clean-theme-client.html-cart .html-cart-stage > .html-cart-discovery {
    padding: 0 2.25rem;
}

body#clean-theme-client.html-cart .html-cart-stage > .html-cart-stage__footer {
    margin-top: 2.25rem !important;
    padding: 1.75rem 2.25rem 2rem !important;
    border-top: 1px solid var(--cp-border-light);
}

@media (max-width: 767.98px) {
    body#clean-theme-client.html-cart .html-cart-stage > .d-flex,
    body#clean-theme-client.html-cart .html-cart-stage > .html-cart-workspace,
    body#clean-theme-client.html-cart .html-cart-stage > .html-cart-discovery,
    body#clean-theme-client.html-cart .html-cart-stage > .html-cart-stage__footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    body#clean-theme-client.html-cart .html-cart-stage > .d-flex {
        padding-top: 1.5rem;
    }
    body#clean-theme-client.html-cart .html-cart-stage > .html-cart-stage__footer {
        margin-top: 1.75rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ── Eyebrow ── */
body#clean-theme-client.html-cart .html-cart-stage__eyebrow {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

body#clean-theme-client.html-cart .html-cart-stage__eyebrow-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cp-radius);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

body#clean-theme-client.html-cart .html-cart-stage__eyebrow-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

body#clean-theme-client.html-cart .html-cart-stage__eyebrow h6 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

body#clean-theme-client.html-cart .html-cart-stage__eyebrow-text {
    font-size: 0.85rem;
    color: var(--cp-text-muted);
    line-height: 1.55;
}

/* ── Status Badges ── */
body#clean-theme-client.html-cart .html-cart-stage__status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body#clean-theme-client.html-cart .html-cart-stage__status > .badge {
    background: var(--cp-primary-light) !important;
    color: var(--cp-primary) !important;
    border-color: var(--cp-primary-soft) !important;
    font-size: 0.8rem;
    font-weight: 700;
}

body#clean-theme-client.html-cart .html-cart-stage__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cp-success);
    background: var(--cp-success-bg);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

/* ── Cart Workspace ── */
body#clean-theme-client.html-cart .html-cart-workspace {
    margin-top: 1.5rem;
}

body#clean-theme-client.html-cart .html-cart-workspace__intro {
    background: linear-gradient(135deg, var(--cp-primary-light) 0%, #faf8ff 60%, #ffffff 100%);
    border: 1px solid var(--cp-primary-soft);
    border-radius: var(--cp-radius-lg);
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

body#clean-theme-client.html-cart .html-cart-workspace__intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1);
    background-size: 200% 100%;
    animation: cp-shimmer 3s ease-in-out infinite;
}

body#clean-theme-client.html-cart .html-cart-workspace__copy {
    flex: 1 1 320px;
}

body#clean-theme-client.html-cart .html-cart-workspace__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-workspace__copy h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
}

body#clean-theme-client.html-cart .html-cart-workspace__copy p {
    font-size: 0.85rem;
    color: var(--cp-text-muted);
    margin: 0;
    line-height: 1.6;
}

body#clean-theme-client.html-cart .html-cart-workspace__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-workspace__chips > span {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--cp-primary);
    background: #ffffff;
    border: 1px solid var(--cp-primary-soft);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

/* ── Cart Items ── */
body#clean-theme-client.html-cart .html-cart-items-wrap {
    min-height: 120px;
}

body#clean-theme-client.html-cart .html-cart-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

body#clean-theme-client.html-cart .html-cart-item {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
    padding: 1.5rem 1.75rem;
    transition: var(--cp-transition);
    position: relative;
    overflow: hidden;
}

body#clean-theme-client.html-cart .html-cart-item {
    overflow: visible;
}

body#clean-theme-client.html-cart .html-cart-item:has(.of-custom-select--open) {
    z-index: 2;
}

body#clean-theme-client.html-cart .html-cart-item .table-responsive {
    overflow: visible !important;
}

body#clean-theme-client.html-cart .html-cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #a78bfa 100%);
    opacity: 0;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-item:hover {
    border-color: var(--cp-primary-mist);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

body#clean-theme-client.html-cart .html-cart-item:hover::before {
    opacity: 1;
}

body#clean-theme-client.html-cart .html-cart-item__layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

body#clean-theme-client.html-cart .html-cart-item__main {
    flex: 1 1 300px;
    min-width: 0;
}

body#clean-theme-client.html-cart .html-cart-item__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 150px;
}

@media (max-width: 575.98px) {
    body#clean-theme-client.html-cart .html-cart-item__aside {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* ── Item Badges ── */
body#clean-theme-client.html-cart .html-cart-item__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-item__category {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cp-primary);
    background: var(--cp-primary-light);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

body#clean-theme-client.html-cart .html-cart-item__badges .badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

body#clean-theme-client.html-cart .html-cart-item__badges .badge.bg-success {
    background: var(--cp-success-bg) !important;
    color: #15803d !important;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── Item Title & Meta ── */
body#clean-theme-client.html-cart .html-cart-item__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

body#clean-theme-client.html-cart .html-cart-item__meta {
    font-size: 0.85rem;
    color: var(--cp-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

body#clean-theme-client.html-cart .html-cart-addon,
body#clean-theme-client.html-cart .html-cart-addons {
    margin-top: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-addon .form-check-input:checked {
    background-color: var(--cp-primary);
    border-color: var(--cp-primary);
}

body#clean-theme-client.html-cart .html-cart-addon .form-check-label {
    font-size: 0.8125rem;
    color: var(--cp-text-body);
}

body#clean-theme-client.html-cart .html-cart-addons > span {
    font-size: 0.8125rem;
    color: var(--cp-text-muted);
    line-height: 1.7;
}

body#clean-theme-client.html-cart .html-cart-addons .fw-medium {
    color: var(--cp-text-body);
}

/* ── Item Links ── */
body#clean-theme-client.html-cart .html-cart-item__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-item__links .link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cp-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-item__links .link:hover {
    color: var(--cp-primary-hover) !important;
}

/* ── Period Select ── */
body#clean-theme-client.html-cart .html-cart-item__period {
    display: flex;
    align-items: center;
}

body#clean-theme-client.html-cart .html-cart-period-select {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cp-text-body);
    background: var(--cp-surface-alt);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    padding: 0.45rem 2rem 0.45rem 0.85rem;
    cursor: pointer;
    transition: var(--cp-transition);
    min-width: 130px;
}

body#clean-theme-client.html-cart .html-cart-period-select:focus {
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

body#clean-theme-client.html-cart .html-cart-period-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

/* ── Item Discount ── */
body#clean-theme-client.html-cart .html-cart-item__discount {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--cp-success);
    background: var(--cp-success-bg);
    padding: 0.25rem 0.6rem;
    border-radius: var(--cp-radius-sm);
}

/* ── Item Price ── */
body#clean-theme-client.html-cart .html-cart-item__price {
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body#clean-theme-client.html-cart .html-cart-item__price.text-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ── Item Remove ── */
body#clean-theme-client.html-cart .html-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--cp-text-placeholder);
    background: transparent;
    border: 1px solid var(--cp-border);
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--cp-transition);
    text-decoration: none;
}

body#clean-theme-client.html-cart .html-cart-item__remove:hover {
    color: var(--cp-danger);
    background: var(--cp-danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.1) rotate(8deg);
}

/* ── Empty State ── */
body#clean-theme-client.html-cart .html-cart-empty-state {
    background: linear-gradient(135deg, var(--cp-primary-light) 0%, #ffffff 100%);
    border: 2px dashed var(--cp-primary-mist);
    border-radius: var(--cp-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

body#clean-theme-client.html-cart .html-cart-empty-state__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

body#clean-theme-client.html-cart .html-cart-empty-state__media {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cp-float 3s ease-in-out infinite;
}

body#clean-theme-client.html-cart .html-cart-empty-state__glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    filter: blur(16px);
}

body#clean-theme-client.html-cart .html-cart-empty-state__icon {
    position: relative;
    font-size: 2.25rem;
    color: var(--cp-primary);
}

body#clean-theme-client.html-cart .html-cart-empty-state__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

body#clean-theme-client.html-cart .html-cart-empty-state__content h6 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

body#clean-theme-client.html-cart .html-cart-empty-state__content p {
    font-size: 0.875rem;
    color: var(--cp-text-muted);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.65;
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions .btn {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions .btn-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions .btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions .btn-outline-secondary {
    border-color: var(--cp-primary-mist) !important;
    color: var(--cp-primary) !important;
}

body#clean-theme-client.html-cart .html-cart-empty-state__actions .btn-outline-secondary:hover {
    background: var(--cp-primary-light) !important;
    border-color: var(--cp-primary) !important;
}

body#clean-theme-client.html-cart .html-cart-empty-state__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

body#clean-theme-client.html-cart .html-cart-empty-state__benefits > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--cp-text-muted);
    background: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--cp-border);
}

body#clean-theme-client.html-cart .html-cart-empty-state__benefits iconify-icon {
    font-size: 1rem;
    color: var(--cp-primary);
}

/* ── Summary Stack (Right Column) ── */
body#clean-theme-client.html-cart .html-cart-summary-stack {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: cp-fade-up 0.5s ease-out 0.1s both;
}

/* ── Summary Intro Card ── */
body#clean-theme-client.html-cart .html-cart-summary-intro {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
    border-radius: var(--cp-radius-lg);
    padding: 1.35rem 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

body#clean-theme-client.html-cart .html-cart-summary-intro::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

body#clean-theme-client.html-cart .html-cart-summary-intro::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

body#clean-theme-client.html-cart .html-cart-summary-intro__eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

body#clean-theme-client.html-cart .html-cart-summary-intro p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ── Summary Card ── */
body#clean-theme-client.html-cart .html-cart-summary-card {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
    box-shadow: var(--cp-shadow);
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

body#clean-theme-client.html-cart .html-cart-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1);
    background-size: 200% 100%;
    animation: cp-shimmer 4s ease-in-out infinite;
}

body#clean-theme-client.html-cart .html-cart-summary-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cp-border-light);
}

body#clean-theme-client.html-cart .html-cart-summary-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cp-radius);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

body#clean-theme-client.html-cart .html-cart-summary-card__kicker {
    display: block;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cp-primary);
    margin-bottom: 0.15rem;
}

body#clean-theme-client.html-cart .html-cart-summary-card__hint {
    font-size: 0.8rem;
    color: var(--cp-text-muted);
    margin: 0;
}

body#clean-theme-client.html-cart .html-cart-summary-card > h6 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cp-text);
    letter-spacing: -0.015em;
}

/* ── Summary Rows ── */
body#clean-theme-client.html-cart .html-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cp-border-light);
}

body#clean-theme-client.html-cart .html-cart-summary-row:last-child {
    border-bottom: none;
}

body#clean-theme-client.html-cart .html-cart-summary-row__label {
    font-size: 0.85rem;
    color: var(--cp-text-body);
    line-height: 1.4;
}

body#clean-theme-client.html-cart .html-cart-summary-row__label strong {
    font-weight: 700;
    color: var(--cp-text);
}

body#clean-theme-client.html-cart .html-cart-summary-row__label span {
    display: block;
    font-size: 0.78rem;
    color: var(--cp-text-muted);
    margin-top: 0.1rem;
}

body#clean-theme-client.html-cart .html-cart-summary-row__value {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--cp-text);
    text-align: right;
    white-space: nowrap;
}

body#clean-theme-client.html-cart .html-cart-summary-row--coupon .html-cart-summary-row__value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-summary-row__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    color: var(--cp-text-placeholder);
    background: transparent;
    border: 1px solid var(--cp-border);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--cp-transition);
    text-decoration: none;
}

body#clean-theme-client.html-cart .html-cart-summary-row__delete:hover {
    color: var(--cp-danger);
    background: var(--cp-danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
}

body#clean-theme-client.html-cart #dealership_discounts .html-cart-summary-row__value,
body#clean-theme-client.html-cart #coupon_discounts .html-cart-summary-row__value {
    color: var(--cp-success);
}

/* ── Summary Coupon ── */
body#clean-theme-client.html-cart .html-cart-summary-coupon {
    padding-top: 1rem;
    border-top: 1px solid var(--cp-border-light);
    margin-top: 0.5rem;
}

body#clean-theme-client.html-cart .html-cart-summary-coupon .link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cp-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-summary-coupon .link:hover {
    color: var(--cp-primary-hover) !important;
}

body#clean-theme-client.html-cart .html-cart-summary-coupon #coupon_code {
    font-size: 0.875rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-alt);
    color: var(--cp-text);
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-summary-coupon #coupon_code:focus {
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
    background: var(--cp-surface);
}

body#clean-theme-client.html-cart .html-cart-summary-coupon #coupon_result {
    font-size: 0.8rem;
    font-weight: 700;
}

/* ── Summary Total ── */
body#clean-theme-client.html-cart .html-cart-summary-total {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--cp-primary-soft);
}

body#clean-theme-client.html-cart .html-cart-summary-total h6 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cp-text);
}

body#clean-theme-client.html-cart .html-cart-summary-total #total-amount-payable {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

body#clean-theme-client.html-cart .html-cart-summary-actions {
    margin-top: 1.25rem;
}

body#clean-theme-client.html-cart .html-cart-summary-actions .btn {
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    letter-spacing: -0.01em;
    transition: var(--cp-transition);
    border: none;
}

body#clean-theme-client.html-cart .html-cart-summary-actions #continue_go {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

body#clean-theme-client.html-cart .html-cart-summary-actions #continue_go:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

body#clean-theme-client.html-cart .html-cart-summary-actions #continue_block {
    background: var(--cp-surface-muted);
    color: var(--cp-text-placeholder);
    cursor: not-allowed;
}

body#clean-theme-client.html-cart .html-cart-summary-footnote {
    font-size: 0.78rem;
    color: var(--cp-text-muted);
    text-align: center;
    margin-top: 0.85rem;
    line-height: 1.55;
}

/* ── Sidekick ── */
body#clean-theme-client.html-cart .html-cart-sidekick {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body#clean-theme-client.html-cart .cartflow-assurance {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--cp-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body#clean-theme-client.html-cart .cartflow-assurance__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cp-text-body);
}

body#clean-theme-client.html-cart .cartflow-assurance__icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cp-surface-alt);
    color: var(--cp-text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
}

body#clean-theme-client.html-cart .cartflow-assurance__row--success .cartflow-assurance__icon {
    background: var(--cp-success-bg);
    color: var(--cp-success);
}

body#clean-theme-client.html-cart .cartflow-assurance__row--gold .cartflow-assurance__icon {
    background: #fffbeb;
    color: var(--cp-warning);
}

body#clean-theme-client.html-cart .html-cart-sidekick-card {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--cp-shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1);
    background-size: 200% 100%;
    animation: cp-shimmer 4s ease-in-out infinite;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cp-primary-light) 0%, var(--cp-primary-soft) 100%);
    color: var(--cp-primary);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card h6 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card p {
    font-size: 0.8125rem;
    color: var(--cp-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card .btn {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    border-color: var(--cp-primary-mist) !important;
    color: var(--cp-primary) !important;
}

body#clean-theme-client.html-cart .html-cart-sidekick-card .btn:hover {
    background: var(--cp-primary-light) !important;
    border-color: var(--cp-primary) !important;
}

/* ── Discovery Section ── */
body#clean-theme-client.html-cart .html-cart-discovery {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--cp-border-light);
}

body#clean-theme-client.html-cart .html-cart-discovery__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

body#clean-theme-client.html-cart .html-cart-discovery__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

body#clean-theme-client.html-cart .html-cart-discovery__header h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cp-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
}

body#clean-theme-client.html-cart .html-cart-discovery__header p {
    font-size: 0.85rem;
    color: var(--cp-text-muted);
    margin: 0;
    max-width: 540px;
    line-height: 1.6;
}

body#clean-theme-client.html-cart .html-cart-discovery__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--cp-primary);
    text-decoration: none;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-discovery__link:hover {
    color: var(--cp-primary-hover);
    gap: 0.6rem;
}

/* ── Loader ── */
body#clean-theme-client.html-cart .html-cart-summary-loader,
body#clean-theme-client.html-cart #basket_loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
}

body#clean-theme-client.html-cart .spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--cp-primary-soft);
    border-top-color: var(--cp-primary);
    border-radius: 50%;
    animation: cp-spinner 0.75s linear infinite;
}

@keyframes cp-spinner {
    to { transform: rotate(360deg); }
}

/* ── Continue Shopping ── */
body#clean-theme-client.html-cart .html-cart-stage__continue {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--cp-border) !important;
    color: var(--cp-text-muted) !important;
    background: var(--cp-surface) !important;
    transition: var(--cp-transition);
}

body#clean-theme-client.html-cart .html-cart-stage__continue:hover {
    border-color: var(--cp-primary) !important;
    color: var(--cp-primary) !important;
    background: var(--cp-primary-light) !important;
    transform: translateX(-3px);
}

/* ── Amount Spot View ── */
body#clean-theme-client.html-cart .amount_spot_view {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

body#clean-theme-client.html-cart .amount_spot_view i {
    font-style: normal;
}

body#clean-theme-client.html-cart .amount_spot_view i.currposleft {
    margin-right: 0.15rem;
}

body#clean-theme-client.html-cart .amount_spot_view i.currposright {
    margin-left: 0.15rem;
}

/* ── Override btn-secondary globally in cart ── */
body#clean-theme-client.html-cart .btn-secondary {
    background-color: var(--cp-primary) !important;
    border-color: var(--cp-primary) !important;
}

body#clean-theme-client.html-cart .btn-secondary:hover {
    background-color: var(--cp-primary-hover) !important;
    border-color: var(--cp-primary-hover) !important;
}

body#clean-theme-client.html-cart .btn-outline-secondary {
    color: var(--cp-primary) !important;
    border-color: var(--cp-primary-mist) !important;
}

body#clean-theme-client.html-cart .btn-outline-secondary:hover {
    background: var(--cp-primary-light) !important;
    color: var(--cp-primary-hover) !important;
    border-color: var(--cp-primary) !important;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    body#clean-theme-client.html-cart .html-cart-summary-stack {
        position: relative;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    body#clean-theme-client.html-cart .html-cart-item {
        padding: 1.25rem;
    }
    body#clean-theme-client.html-cart .html-cart-workspace__intro {
        padding: 1.25rem;
    }
    body#clean-theme-client.html-cart .html-cart-summary-card {
        padding: 1.25rem;
    }
}

/* ── Hero Card (from shared partial) ── */
body#clean-theme-client.html-cart .order-flow-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.4vw, 1.85rem) clamp(1.25rem, 2.8vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 22px 64px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
}

body#clean-theme-client.html-cart .order-flow-hero-card::before {
    content: "";
    position: absolute;
    inset: -35% auto auto 58%;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    filter: blur(4px);
    pointer-events: none;
}

body#clean-theme-client.html-cart .order-flow-hero-card__main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 920px;
}

body#clean-theme-client.html-cart .order-flow-hero-card__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.1rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body#clean-theme-client.html-cart .order-flow-hero-card__icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

body#clean-theme-client.html-cart .order-flow-hero-card__eyebrow {
    display: inline-flex;
    margin-bottom: 0.42rem;
    color: #c7d2fe;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

body#clean-theme-client.html-cart .order-flow-hero-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

body#clean-theme-client.html-cart .order-flow-hero-card p {
    max-width: 760px;
    margin: 0.58rem 0 0;
    color: rgba(248, 250, 252, 0.74);
    font-size: 0.98rem;
    line-height: 1.65;
}

body#clean-theme-client.html-cart .order-flow-hero-card__points {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.05rem 0 0;
    padding: 0;
    list-style: none;
}

body#clean-theme-client.html-cart .order-flow-hero-card__points li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.12rem;
    padding: 0.46rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 650;
}

body#clean-theme-client.html-cart .order-flow-hero-card__points li::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
    flex: 0 0 0.42rem;
}

@media (max-width: 767.98px) {
    body#clean-theme-client.html-cart .order-flow-hero-card {
        padding: 1.1rem 1.25rem;
        border-radius: 18px;
    }
    body#clean-theme-client.html-cart .order-flow-hero-card__main {
        gap: 0.75rem;
    }
    body#clean-theme-client.html-cart .order-flow-hero-card__icon {
        width: 2.65rem;
        height: 2.65rem;
        flex-basis: 2.65rem;
    }
    body#clean-theme-client.html-cart .order-flow-hero-card h1 {
        font-size: clamp(1.3rem, 5vw, 1.65rem);
    }
    body#clean-theme-client.html-cart .order-flow-hero-card__points {
        gap: 0.4rem;
    }
    body#clean-theme-client.html-cart .order-flow-hero-card__points li {
        font-size: 0.78rem;
        padding: 0.36rem 0.65rem;
    }
}

/* ============================================================
   Payment balance modals
   ============================================================ */
body#clean-theme-client.html-cart-payment-page {
    --cpay-modal-text: #0f172a;
    --cpay-modal-muted: #64748b;
    --cpay-modal-border: #e2e8f0;
    --cpay-modal-soft: #f8fafc;
    --cpay-modal-success: #15803d;
    --cpay-modal-success-bg: #ecfdf5;
    --cpay-modal-danger: #dc2626;
    --cpay-modal-danger-bg: #fef2f2;
}

body#clean-theme-client.html-cart-payment-page .iziModal-overlay {
    z-index: 30000 !important;
    background: rgba(15, 23, 42, 0.62) !important;
    backdrop-filter: blur(4px);
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning.iziModal,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance.iziModal {
    z-index: 30001 !important;
    width: min(92vw, 560px) !important;
    max-width: 560px !important;
    border: 1px solid rgba(226, 232, 240, 0.92) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28) !important;
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning .iziModal-header,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance .iziModal-header {
    height: auto !important;
    padding: 1rem 1.25rem !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--cpay-modal-border) !important;
    box-shadow: none !important;
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning .iziModal-header-title,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance .iziModal-header-title {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 3rem 0 0 !important;
    color: var(--cpay-modal-text) !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning .iziModal-button-close,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance .iziModal-button-close {
    top: 0.75rem !important;
    right: 0.85rem !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 999px !important;
    background-color: #f1f5f9 !important;
    background-size: 0.7rem !important;
    opacity: 1 !important;
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning .iziModal-button-close:hover,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance .iziModal-button-close:hover {
    background-color: #e2e8f0 !important;
}

body#clean-theme-client.html-cart-payment-page #BalanceWarning .iziModal-content,
body#clean-theme-client.html-cart-payment-page #InsufficientBalance .iziModal-content {
    overflow: visible !important;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal {
    padding: 1.35rem;
    color: var(--cpay-modal-text);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--cpay-modal-border);
    border-radius: 14px;
    background: var(--cpay-modal-soft);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero--danger {
    border-color: #fecaca;
    background: var(--cpay-modal-danger-bg);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero--success {
    border-color: #bbf7d0;
    background: var(--cpay-modal-success-bg);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__icon svg,
body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__icon svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-basis: 1.2rem;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero--danger .cart-payment-modal__icon {
    color: var(--cpay-modal-danger);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero--success .cart-payment-modal__icon {
    color: var(--cpay-modal-success);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero h3 {
    margin: 0 0 0.28rem;
    color: var(--cpay-modal-text);
    font-size: 1.03rem;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero p,
body#clean-theme-client.html-cart-payment-page .cart-payment-modal__note {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.62;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__metric {
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--cpay-modal-border);
    border-radius: 12px;
    background: #ffffff;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__metric span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--cpay-modal-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__metric strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--cpay-modal-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__note {
    margin-top: 1rem;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.7rem;
    padding: 0.72rem 1.05rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action:hover {
    transform: translateY(-1px);
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action--muted {
    border: 1px solid var(--cpay-modal-border);
    background: #ffffff;
    color: #334155;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action--muted:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action--success {
    border: 1px solid #16a34a;
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: none !important;
}

body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action--success:hover {
    border-color: #15803d;
    background: #15803d;
    color: #ffffff !important;
}

@media (max-width: 575.98px) {
    body#clean-theme-client.html-cart-payment-page #BalanceWarning.iziModal,
    body#clean-theme-client.html-cart-payment-page #InsufficientBalance.iziModal {
        width: calc(100vw - 1.5rem) !important;
        border-radius: 16px !important;
    }

    body#clean-theme-client.html-cart-payment-page .cart-payment-modal {
        padding: 1rem;
    }

    body#clean-theme-client.html-cart-payment-page .cart-payment-modal__hero {
        padding: 0.9rem;
    }

    body#clean-theme-client.html-cart-payment-page .cart-payment-modal__metrics,
    body#clean-theme-client.html-cart-payment-page .cart-payment-modal__actions {
        grid-template-columns: 1fr;
    }

    body#clean-theme-client.html-cart-payment-page .cart-payment-modal__actions {
        flex-direction: column-reverse;
    }

    body#clean-theme-client.html-cart-payment-page .cart-payment-modal__action {
        width: 100%;
    }
}
