/* ============================================
   Video Order Form - Modern CSS
   ============================================ */

/* CSS Variables */
.order-form-embed {
    /* Colors - KillerCreatives light corporate theme */
    --primary: #1B4FD8;
    --primary-light: #3B6FE8;
    --primary-dark: #143CA6;
    --primary-glow: rgba(27, 79, 216, 0.18);

    --secondary: #0F1F3D;
    --secondary-light: #1C2E52;

    --success: #15803D;
    --success-light: #22C55E;

    --warning: #B45309;
    --error: #DC2626;

    /* Neutral scale (semantic for a white page: 300-500 = text tones, 800-900 = surfaces) */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #334155;
    --gray-400: #475569;
    --gray-500: #64748B;
    --gray-600: #64748B;
    --gray-700: #CBD5E1;
    --gray-800: #FFFFFF;
    --gray-900: #FFFFFF;

    --text: #0F172A;
    --muted: #475569;
    --border: #E2E8F0;
    --surface: #FFFFFF;
    --surface-alt: #F5F7FA;
    --white: #ffffff;
    --black: #0F172A;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary-glow) 0%, rgba(15, 31, 61, 0.15) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 0 4px var(--primary-glow);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Base styles (moved from body) */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Reset & Base */
.order-form-embed *, .order-form-embed *::before, .order-form-embed *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset landing page globals — :where() keeps specificity at 0,1,0 so form's own classes win */
.order-form-embed :where(h1, h2, h3, h4, h5, h6) {
    font-size: inherit; font-weight: inherit; color: inherit;
    margin: 0; line-height: inherit; letter-spacing: normal;
}
.order-form-embed :where(p) { color: inherit; margin: 0; }
.order-form-embed :where(a, button) { min-height: 0; min-width: 0; }

/* Fix landing page .step-content class name collision (0,2,0 beats landing page's 0,1,1) */
.order-form-embed .step-description {
    font-size: 16px;
    color: var(--gray-400);
    line-height: inherit;
}
.order-form-embed .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.order-form-embed .card-description {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
    line-height: inherit;
}
.order-form-embed .summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #E2E8F0;
}
.order-form-embed .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}
.order-form-embed .helper-text {
    font-size: 13px;
    color: var(--gray-500);
}
.order-form-embed .paypal-notice p {
    color: var(--gray-400);
    font-size: 14px;
    margin: 0;
}
.order-form-embed .loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.order-form-embed .success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.order-form-embed .success-description {
    font-size: 15px;
    color: var(--gray-400);
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -2;
}

.bg-pattern {
    display: none; /* Disabled - causes performance issues */
}

/* Main Container */
.order-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Progress Pills */
.progress-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pill {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #F5F7FA;
    border: 2px solid #E2E8F0;
    color: var(--gray-500);
    transition: var(--transition);
    position: relative;
}

/* Connector line between pills */
.pill:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: var(--space-sm);
    height: 2px;
    background: #F5F7FA;
    transition: var(--transition);
}

/* Active state */
.pill.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(27, 79, 216, 0.18);
}

/* Completed state */
.pill.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Clickable state - for completed steps that can be clicked */
.pill.clickable {
    cursor: pointer;
}

.pill.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(27, 79, 216, 0.18);
}

/* Checkmark for completed */
.pill.completed::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Hide number when completed */
.pill.completed {
    font-size: 0;
}

/* Completed connector line */
.pill.completed:not(:last-child)::after {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 480px) {
    .pill {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pill.completed::before {
        width: 14px;
        height: 14px;
    }

    .progress-pills {
        gap: 6px;
    }

    .pill:not(:last-child)::after {
        width: 6px;
    }
}

/* Form Container */
.order-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-form-embed .step-content {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.step-badge {
    display: inline-block;
    color: #fff;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header > .step-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-sm);
    stroke: var(--text);
    stroke-width: 1.5;
    fill: none;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
}

.step-description {
    font-size: 16px;
    color: var(--gray-400);
}

/* Option Cards (Step 1) */
.option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 600px) {
    .option-cards {
        grid-template-columns: 1fr;
    }
}

.option-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card .card-content {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition);
}

.option-card:hover .card-content {
    background: #F5F7FA;
    border-color: #CBD5E1;
    transform: translateY(-4px);
}

.option-card input:checked + .card-content {
    background: rgba(27, 79, 216, 0.15);
    border-color: var(--primary);
    /* glow shadow removed */;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.card-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.card-check {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
}

.card-check svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.option-card input:checked ~ .card-check {
    opacity: 1;
    transform: scale(1);
}

/* Aspect Ratio Cards (Step 2) */
.aspect-ratio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    align-items: end;
}

@media (max-width: 700px) {
    .aspect-ratio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.aspect-card {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aspect-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aspect-card .aspect-preview {
    background: #F5F7FA;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspect-card .aspect-preview::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.25;
    border-radius: var(--radius-sm);
}

/* Aspect ratio previews - fixed widths, natural heights */
.ratio-16-9 {
    width: 100%;
    aspect-ratio: 16/9;
}

.ratio-9-16 {
    width: 60%;
    aspect-ratio: 9/16;
}

.ratio-1-1 {
    width: 80%;
    aspect-ratio: 1/1;
}

.ratio-4-5 {
    width: 70%;
    aspect-ratio: 4/5;
}

.aspect-card:hover .aspect-preview {
    border-color: #CBD5E1;
}

.aspect-card input:checked + .aspect-preview {
    border-color: var(--primary);
    background: rgba(27, 79, 216, 0.1);
}

.aspect-card input:checked + .aspect-preview::before {
    opacity: 0.5;
}

.aspect-info {
    text-align: center;
    margin-top: var(--space-sm);
    width: 100%;
}

.aspect-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.aspect-use {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
}

.aspect-check {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
    z-index: 10;
}

.aspect-check svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.aspect-card input:checked ~ .aspect-check {
    opacity: 1;
    transform: scale(1);
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group.floating {
    margin-bottom: var(--space-lg);
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-500);
    transition: opacity var(--transition-fast);
}

.form-input:focus::placeholder {
    opacity: 0;
}

.form-input:hover {
    border-color: #CBD5E1;
}

.form-input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.15);
}

.floating-label {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 var(--space-xs);
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 12px;
    color: var(--primary-light);
    background: var(--gray-900);
}

/* Niche Input */
.niche-input-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.niche-suggestions {
    margin-top: var(--space-xl);
}

.suggestion-label {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.chip {
    padding: var(--space-sm) var(--space-md);
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.chip:hover {
    background: rgba(27, 79, 216, 0.15);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* Example Links (Step 4) */
.examples-container {
    max-width: 600px;
    margin: 0 auto;
}

.example-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.example-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.link-number {
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.example-link-item .input-group {
    flex: 1;
    position: relative;
}

.link-input {
    padding-right: 48px;
}

.input-icon {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.remove-link-btn {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 0.6;
}

.remove-link-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    opacity: 1;
}

.remove-link-btn svg {
    width: 16px;
    height: 16px;
    color: var(--error);
}

.example-link-item:first-child .remove-link-btn {
    visibility: hidden;
}

.add-link-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(27, 79, 216, 0.1);
    border: 2px dashed rgba(27, 79, 216, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.add-link-btn:hover {
    background: rgba(27, 79, 216, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.add-link-btn svg {
    width: 20px;
    height: 20px;
}

.helper-text {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--gray-500);
    margin-top: var(--space-lg);
}

.helper-text svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Textarea (Step 6) */
.instructions-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.step6-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
}

.step6-optional {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 2px 6px;
}

.textarea-group {
    position: relative;
}

.form-textarea {
    width: 100%;
    padding: var(--space-lg);
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-textarea::placeholder {
    color: var(--gray-500);
}

.form-textarea:hover {
    border-color: #CBD5E1;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.15);
}

.char-counter {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-md);
    font-size: 12px;
    color: var(--gray-500);
}

.prompt-suggestions {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid #E2E8F0;
}

.prompt-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.prompt-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
}

.prompt-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--gray-400);
}

.prompt-list li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

/* Step 6: Cart Section */
.cart-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cart-item {
    padding: var(--space-lg);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: #E2E8F0;
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: var(--space-md);
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.cart-item-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-detail-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.cart-detail-label {
    font-size: 13px;
    color: var(--gray-500);
    min-width: 120px;
    flex-shrink: 0;
}

.cart-detail-value {
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.cart-detail-value.empty {
    color: var(--gray-500);
    font-style: italic;
}

.cart-detail-instructions-row {
    align-items: center;
}

.instructions-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.instructions-toggle:hover {
    color: var(--text);
}

.instructions-toggle .toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.instructions-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.cart-instructions-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.cart-instructions-expanded.expanded {
    max-height: none;
    overflow: visible;
    padding-top: var(--space-md);
}

.instructions-content {
    padding: var(--space-md);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-300);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cart-item-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #E2E8F0;
}

.cart-edit-btn {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.cart-edit-btn:hover {
    background: rgba(27, 79, 216, 0.1);
    border-color: var(--primary);
}

.cart-edit-btn svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.cart-edit-btn:hover svg {
    color: var(--primary-light);
}

.cart-remove-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.cart-remove-btn:hover {
    color: var(--error);
}

.cart-remove-btn svg {
    width: 16px;
    height: 16px;
}


/* Responsive cart items */
@media (max-width: 500px) {
    .cart-detail-label {
        min-width: 100px;
    }
}

.cart-totals {
    padding-top: var(--space-md);
    border-top: 1px solid #E2E8F0;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 14px;
    color: var(--gray-400);
}

.cart-totals-row span:last-child {
    color: var(--text);
}

.cart-totals-final {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid #E2E8F0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.cart-totals-final span:last-child {
    color: var(--primary);
    font-size: 20px;
}

/* Review Action Buttons */
.review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (max-width: 500px) {
    .review-actions {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border: none;
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.btn-add-more {
    background: #FFFFFF;
    border: 2px dashed #CBD5E1;
    color: var(--gray-300);
}

.btn-add-more:hover {
    background: rgba(27, 79, 216, 0.1);
    border-color: var(--primary);
    color: var(--text);
}

.btn-checkout {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Add More Choices (Step 6) */
.add-more-choices--single {
    grid-template-columns: 1fr;
}

.add-more-card--full {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
}

.add-more-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 500px;
    margin: var(--space-xl) auto 0;
}

@media (max-width: 480px) {
    .add-more-choices {
        grid-template-columns: 1fr;
    }
}

.add-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
}

.add-more-card:hover {
    background: #F5F7FA;
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.add-more-card--proceed {
    border-color: rgba(27, 79, 216, 0.5);
    background: rgba(27, 79, 216, 0.1);
}

.add-more-card--proceed:hover {
    background: rgba(27, 79, 216, 0.15);
    border-color: var(--primary);
}

.add-more-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F7FA;
}

.add-more-card--proceed .add-more-icon {
    background: rgba(27, 79, 216, 0.15);
}

.add-more-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
}

.add-more-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.add-more-sub {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: -4px;
}

.add-more-card--reuse.active {
    border-color: var(--primary);
    background: rgba(27, 79, 216, 0.1);
}

/* Quantity row spans full width in the 2-col grid */
.reuse-quantity-row {
    grid-column: 1 / -1;
}

/* Continue to checkout button (below the add-more grid) */
.btn-proceed-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 500px;
    margin: var(--space-lg) auto 0;
    padding: 16px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(27, 79, 216, 0.25);
}

.btn-proceed-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 79, 216, 0.25);
}

.btn-proceed-checkout svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Re-use quantity selector row */
.reuse-quantity-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(27, 79, 216, 0.08);
    border: 1px solid rgba(27, 79, 216, 0.25);
    border-radius: var(--radius-md);
    animation: fadeIn 0.2s ease;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: rgba(27, 79, 216, 0.15);
    border-color: var(--primary);
}

.qty-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.qty-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    min-width: 32px;
    text-align: center;
}

.btn-add-reuse {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-add-reuse:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Success confirmation banner */
.inline-success-banner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #15803D;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-md);
    animation: fadeIn 0.2s ease;
}

.inline-success-banner svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Video Cards in Checkout Summary */
.summary-videos {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.summary-video-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}

.summary-product-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 79, 216, 0.1);
    border: 1px solid rgba(27, 79, 216, 0.15);
    border-radius: var(--radius-sm);
}

.summary-product-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-light);
}

.summary-card-body {
    flex: 1;
    min-width: 0;
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-type {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.summary-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.summary-card-details {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Payment Step (Step 7) */
.order-summary {
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #E2E8F0;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-300);
}

/* Coupon Section */
.coupon-section {
    padding: var(--space-md) 0;
    border-top: 1px solid #E2E8F0;
}

.coupon-input-row {
    display: flex;
    gap: var(--space-sm);
}

.coupon-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.coupon-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    pointer-events: none;
}

.coupon-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.coupon-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-500);
}

.coupon-input:focus {
    outline: none;
    border-color: #CBD5E1;
    background: #F5F7FA;
}

.coupon-apply-btn {
    padding: 10px 20px;
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.coupon-apply-btn:hover {
    background: #F5F7FA;
    border-color: #CBD5E1;
}

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

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
}

.coupon-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-badge svg {
    width: 14px;
    height: 14px;
    color: #15803D;
}

.coupon-badge span:first-of-type {
    font-size: 13px;
    font-weight: 600;
    color: #15803D;
    letter-spacing: 0.5px;
}

.coupon-discount-label {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 400 !important;
}

.coupon-remove-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: var(--transition);
}

.coupon-remove-btn svg {
    width: 14px;
    height: 14px;
    color: var(--gray-500);
}

.coupon-remove-btn:hover svg {
    color: #DC2626;
}

.coupon-error {
    margin-top: var(--space-sm);
    font-size: 13px;
    color: #DC2626;
}

.summary-discount-row {
    color: #15803D !important;
}

.summary-discount-row .discount-amount {
    color: #15803D;
    font-weight: 500;
}

.summary-totals {
    padding-top: var(--space-md);
    border-top: 1px solid #E2E8F0;
}

.summary-totals-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 14px;
    color: var(--gray-400);
}

.summary-totals-row span:last-child {
    color: var(--text);
}

.summary-totals-final {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid #E2E8F0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.total-amount {
    color: var(--primary);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-section {
    margin-bottom: var(--space-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-grid .full-width {
    grid-column: 1 / -1;
}

@media (max-width: 500px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.payment-section {
    margin-bottom: var(--space-xl);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: stretch;
}

@media (max-width: 500px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

.payment-method {
    position: relative;
    cursor: pointer;
    height: 100%;
}

.payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-content {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-lg);
    display: grid;
    grid-template-rows: 48px auto auto;
    justify-items: center;
    align-content: start;
    gap: var(--space-sm);
    transition: var(--transition);
    height: 100%;
}

.payment-method:hover .method-content {
    border-color: #CBD5E1;
}

.payment-method input:checked + .method-content {
    border-color: var(--primary);
    background: rgba(27, 79, 216, 0.1);
}

.method-icon {
    width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon.card-icon {
    background: none;
}

.method-icon.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
}

.paypal-icon {
    background: none;
}

.paypal-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 20px;
}

.method-desc {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.2;
    min-height: 16px;
}

.method-check {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
}

.method-check svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.payment-method input:checked ~ .method-check {
    opacity: 1;
    transform: scale(1);
}

/* Stripe Card Form */
.stripe-form {
    margin-top: var(--space-lg);
}

.card-element-wrapper {
    margin-bottom: var(--space-md);
}

.card-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: var(--space-sm);
}

.card-element {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    transition: var(--transition);
}

.card-element:hover {
    border-color: #CBD5E1;
}

.card-element.StripeElement--focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.15);
}

.card-element.StripeElement--invalid {
    border-color: var(--error);
}

.card-errors {
    color: var(--error);
    font-size: 13px;
    margin-top: var(--space-sm);
    min-height: 20px;
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.card-icons img {
    height: 24px;
    opacity: 0.6;
}

/* PayPal Form */
.paypal-form {
    margin-top: var(--space-lg);
}

.paypal-notice {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
}

.paypal-logo {
    height: 32px;
    margin-bottom: var(--space-md);
}

.paypal-notice p {
    color: var(--gray-400);
    font-size: 14px;
    margin: 0;
}

/* Priority Delivery Upsell */
.priority-upsell {
    margin-bottom: var(--space-xl);
}

.priority-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.priority-toggle:hover {
    border-color: #E2E8F0;
    background: #FFFFFF;
}

.priority-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.priority-icon-wrap {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
}

.priority-bolt,
.priority-check {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition);
}

.priority-bolt {
    color: var(--gray-500);
    opacity: 1;
}

.priority-check {
    color: #15803D;
    opacity: 0;
}

.priority-toggle input:checked ~ .priority-icon-wrap .priority-bolt {
    opacity: 0;
}

.priority-toggle input:checked ~ .priority-icon-wrap .priority-check {
    opacity: 1;
}

.priority-toggle input:checked {
    /* trigger checked styles on parent via ~ */
}

.priority-toggle:has(input:checked) {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
}

.priority-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--gray-300);
}

.priority-sub {
    font-size: 12px;
    color: var(--gray-500);
}

.priority-price-default,
.priority-price-added {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.priority-price-default {
    color: var(--gray-400);
}

.priority-price-added {
    color: #15803D;
    display: none;
}

.priority-toggle input:checked ~ .priority-price-default {
    display: none;
}

.priority-toggle input:checked ~ .priority-price-added {
    display: inline;
}

.summary-priority-row span:last-child {
    color: var(--text);
}

/* Secure Payment Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-lg);
    padding: var(--space-sm) 0;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.secure-badge-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.secure-badge-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}

.secure-badge-desc {
    font-size: 12px;
    color: var(--gray-600);
}

/* Payment Error */
.payment-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--error);
    font-size: 14px;
    margin-top: var(--space-md);
}

/* Terms Agreement */
.terms-agreement {
    margin-top: var(--space-md);
    padding: 10px 12px;
    background: rgba(27, 79, 216, 0.04);
    border: 1px solid rgba(27, 79, 216, 0.15);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.terms-agreement.terms-error {
    border-color: var(--error);
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.06);
}
.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.terms-label input[type="checkbox"] {
    display: none;
}
.terms-checkmark {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: 3px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.terms-label:hover .terms-checkmark {
    border-color: var(--primary-light);
}
.terms-label input[type="checkbox"]:checked + .terms-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.terms-label input[type="checkbox"]:checked + .terms-checkmark::after {
    content: '';
    display: block;
    width: 3px;
    height: 6px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.terms-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}
.terms-link {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 79, 216, 0.4);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.terms-link:hover {
    color: var(--text);
    border-bottom-color: #CBD5E1;
}

/* Terms Modal */
.terms-modal-box {
    max-width: 500px;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
}
.terms-modal-body {
    overflow-y: auto;
    padding-right: 6px;
    flex: 1;
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
}
.terms-modal-body h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin: 20px 0 6px;
}
.terms-modal-body h3:first-child {
    margin-top: 0;
}
.terms-modal-body p {
    margin: 0 0 8px;
}
.modal-terms-accept {
    margin-top: var(--space-md);
    width: 100%;
    flex-shrink: 0;
}

/* Inline Submit Button (inside payment section) */
.btn-submit-inline {
    display: none; /* shown by JS on step 7 */
    width: 100%;
    max-width: 420px;
    margin: var(--space-xl) auto 0;
    padding: 16px var(--space-xl);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 4px 15px rgba(27, 79, 216, 0.25);
    letter-spacing: 0.3px;
}

.btn-submit-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 79, 216, 0.25);
}

.btn-submit-inline:active {
    transform: translateY(0);
}

.btn-submit-inline svg {
    width: 18px;
    height: 18px;
}

.btn-submit-inline .btn-submit-lock {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .btn-submit-inline {
        max-width: 100%;
    }
}

/* Checkbox */
.terms-section {
    padding-top: var(--space-md);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.checkbox-label a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border: none;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.btn-prev {
    display: none; /* Hidden by default, shown by JS on step 2+ */
    background: #FFFFFF;
    color: var(--gray-300);
    border: 1px solid #E2E8F0;
}

.btn-prev:hover:not(:disabled) {
    background: #F5F7FA;
    border-color: #CBD5E1;
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    display: none; /* Hidden by default, shown by JS on steps 3-5 */
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.btn-next:active {
    transform: translateY(0);
}

/* Modal */
/* Success Screen (inline, replaces form) */
.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    min-height: 60vh;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-animation {
    margin-bottom: var(--space-xl);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--success);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark-check {
    stroke: var(--success);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.success-description {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
}

.success-details {
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid #E2E8F0;
}

.detail-label {
    font-size: 14px;
    color: var(--gray-400);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.detail-item--stacked {
    flex-direction: column;
    gap: 4px;
}

.detail-value--email {
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.success-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Loading Screen (inline, replaces form) */
.loading-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    min-height: 60vh;
    animation: fadeInUp 0.4s ease-out;
}

.loading-screen.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #E2E8F0;
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--space-xl);
    animation: spin 1s linear infinite;
}

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


.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 14px;
    color: var(--gray-400);
    opacity: 0.5;
    transition: var(--transition);
}

.loading-step.active {
    opacity: 1;
    color: var(--text);
}

.loading-step.completed {
    opacity: 1;
    color: var(--success);
}

.loading-step .step-icon {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-step.active .step-icon {
    border-color: var(--primary);
}

.loading-step.completed .step-icon::after {
    content: '\2713';
    font-size: 12px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        display: none;
    }

    .step-content {
        padding: var(--space-xl);
    }

    .step-title {
        font-size: 24px;
    }

    .form-navigation {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .order-container {
        padding: var(--space-md);
    }

    .step-content {
        padding: var(--space-lg);
    }

    .step-title {
        font-size: 20px;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

    .aspect-ratio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Error States */
.form-input.error,
.form-textarea.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Inline Error Banner (shown inside step after header) */
.inline-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    animation: errorSlideIn 0.3s ease-out;
}

.inline-error-banner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--error);
}

.inline-error-banner span {
    font-size: 14px;
    font-weight: 500;
    color: #B91C1C;
    line-height: 1.4;
}

.inline-error-banner.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

@keyframes errorSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shake animation for validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Info Tooltip */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-sm);
    vertical-align: middle;
}

.info-icon {
    cursor: help;
    color: var(--gray-500);
    transition: var(--transition);
    -webkit-text-fill-color: initial;
}

.info-icon:hover {
    color: var(--primary-light);
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 16px 18px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.20);
    text-align: left;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #E2E8F0;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--gray-800);
}

.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.info-tooltip .tooltip-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.info-tooltip .tooltip-item {
    font-size: 13px;
    color: var(--gray-400);
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.info-tooltip .tooltip-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

.info-tooltip .tooltip-label {
    color: var(--text);
    font-weight: 500;
    margin-right: 6px;
}

.info-tooltip .tooltip-label::after {
    content: ':';
}

/* Responsive tooltip positioning */
@media (max-width: 480px) {
    .info-tooltip {
        left: auto;
        right: -60px;
        transform: none;
        width: 260px;
    }

    .info-tooltip::before,
    .info-tooltip::after {
        left: auto;
        right: 70px;
        transform: none;
    }
}

/* ===== Extra Minutes Upsell (Step 5) ===== */
.minutes-upsell {
    padding: 4px 0;
}

.minutes-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Base card — shared by both */
.minutes-opt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px;
    border-radius: 14px;
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    width: 100%;
    color: var(--text);
    font-family: inherit;
}

.minutes-opt-card:hover {
    border-color: rgba(27, 79, 216, 0.4);
    background: rgba(27, 79, 216, 0.05);
}

.minutes-opt-card.minutes-opt-selected {
    border-color: var(--primary, #1B4FD8);
    background: rgba(27, 79, 216, 0.08);
    box-shadow: 0 0 0 1px rgba(27, 79, 216, 0.2);
}

/* Icon */
.minutes-opt-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.minutes-opt-icon svg {
    width: 22px;
    height: 22px;
    stroke: #334155;
    transition: stroke 0.2s ease;
}

.minutes-opt-selected .minutes-opt-icon {
    background: rgba(27, 79, 216, 0.15);
}

.minutes-opt-selected .minutes-opt-icon svg {
    stroke: var(--primary, #1B4FD8);
}

/* Text */
.minutes-opt-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minutes-opt-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.minutes-opt-sub {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

/* Stepper reveal — slides in below both cards when add is selected */
.minutes-stepper-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.32s ease, opacity 0.25s ease, margin-top 0.32s ease;
}

.minutes-upsell.minutes-active .minutes-stepper-reveal {
    max-height: 160px;
    opacity: 1;
    margin-top: 14px;
}

.minutes-stepper-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Stepper control */
.minutes-stepper {
    display: flex;
    align-items: center;
    background: #F5F7FA;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    width: 100%;
    max-width: 240px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: rgba(27, 79, 216, 0.15);
}

.stepper-btn:active {
    background: rgba(27, 79, 216, 0.15);
    transform: scale(0.92);
}

.stepper-btn svg {
    width: 15px;
    height: 15px;
}

.stepper-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stepper-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    min-width: 24px;
    text-align: center;
}

.stepper-unit {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.minutes-add-cost {
    font-size: 13px;
    color: #334155;
    text-align: center;
    margin: 0;
}

/* Stack cards on small screens */
@media (max-width: 480px) {
    .minutes-options {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI SCRIPT UPSELL — MODALS
═══════════════════════════════════════════════════════════════════════════ */

.ai-modal-overlay {
    /* Re-declare design tokens — JS moves these modals to <body>,
       outside .order-form-embed where the variables are defined */
    --primary: #1B4FD8;
    --primary-dark: #143CA6;
    --primary-light: #3B6FE8;
    --error: #DC2626;
    --white: #ffffff;
    --text: #0F172A;
    --gray-300: #334155;
    --gray-400: #475569;
    --gray-500: #64748B;
    --radius: 8px;
    --radius-full: 9999px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 31, 61, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ai-modal {
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 32px 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
    animation: aiModalIn 0.25s ease-out;
}

.ai-modal--variants {
    max-width: 600px;
}

@keyframes aiModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-modal-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(27, 79, 216, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ai-modal-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: #1B4FD8;
}

.ai-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.3;
    text-align: center;
}

.ai-modal-desc {
    font-size: 14px;
    color: #334155;
    margin: 0 0 20px;
    line-height: 1.6;
}

.ai-modal-variants-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.ai-modal-variants-header .ai-modal-title {
    margin-bottom: 6px;
}

.ai-modal-variants-header .ai-modal-desc {
    margin-bottom: 0;
}

.script-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.script-download-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.script-download-btn:hover {
    background: rgba(27, 79, 216, 0.1);
    border-color: rgba(27, 79, 216, 0.35);
    color: #1B4FD8;
}

.ai-modal-desc strong {
    color: #0F172A;
}

.ai-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-modal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0F172A;
}

.ai-modal-features li svg {
    width: 16px;
    height: 16px;
    fill: #1B4FD8;
    flex-shrink: 0;
}

.ai-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-modal-btn-yes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #1B4FD8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.ai-modal-btn-yes:hover {
    background: #143CA6;
    transform: translateY(-1px);
}

.ai-modal-price-tag {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 700;
}

.ai-modal-btn-no {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
    transition: color 0.2s;
    text-align: center;
}

.ai-modal-btn-no:hover {
    color: #334155;
}

/* Payment state */
.ai-modal-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    font-family: inherit;
    transition: color 0.2s;
}

.ai-modal-back svg {
    width: 16px;
    height: 16px;
}

.ai-modal-back:hover { color: var(--text); }

.ai-card-wrapper {
    margin: 20px 0;
}

.ai-card-label {
    display: block;
    font-size: 12px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ai-card-element {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 12px;
}

.ai-card-errors {
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.ai-modal-btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #1B4FD8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.ai-modal-btn-pay svg { width: 18px; height: 18px; }
.ai-modal-btn-pay:hover:not(:disabled) { background: #143CA6; }
.ai-modal-btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }

.ai-pay-error {
    color: #1B4FD8;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

/* Modal contact fields */
.ai-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ai-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.ai-field-input {
    width: 100%;
    padding: 11px 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ai-field-input::placeholder {
    color: #94A3B8;
}

.ai-field-input:hover {
    border-color: #CBD5E1;
}

.ai-field-input:focus {
    border-color: #1B4FD8;
    background: rgba(27, 79, 216, 0.07);
}

.ai-field-input--error {
    border-color: #1B4FD8 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.ai-field-label--error {
    color: #DC2626;
}

@media (max-width: 420px) {
    .ai-contact-row {
        grid-template-columns: 1fr;
    }
}

.ai-payment-methods {
    margin: 16px 0;
    gap: 10px;
}

#aiPayPalBtn {
    margin-top: 20px;
}

.ai-paypal-buttons {
    margin: 16px 0;
    min-height: 45px;
}

/* Loading state */
.ai-loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #E2E8F0;
    border-top-color: #1B4FD8;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 20px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SCRIPT VARIANT CARDS
═══════════════════════════════════════════════════════════════════════════ */

.script-variants-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.script-variant-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 16px;
    transition: border-color 0.2s;
}

.script-variant-card:hover {
    border-color: rgba(27, 79, 216, 0.4);
}

.script-variant-header {
    margin-bottom: 12px;
}

.script-variant-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.script-variant-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.script-variant-badge {
    background: #F5F7FA;
    color: #334155;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.script-variant-badge--dur {
    background: rgba(27, 79, 216, 0.12);
    color: #1B4FD8;
}

.script-variant-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 14px;
    white-space: pre-wrap;
    max-height: 130px;
    overflow: hidden;
    padding-right: 4px;
    transition: max-height 0.35s ease;
}

.script-variant-body--expanded {
    max-height: 1000px;
    overflow-y: auto;
}

.script-variant-body--expanded::-webkit-scrollbar { width: 4px; }
.script-variant-body--expanded::-webkit-scrollbar-track { background: transparent; }
.script-variant-body--expanded::-webkit-scrollbar-thumb { background: #EEF2F7; border-radius: 2px; }

.script-variant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.script-variant-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #475569;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}

.script-variant-expand-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.script-variant-expand-btn:hover { color: #334155; }

.script-variant-expand-btn--open svg {
    transform: rotate(180deg);
}

.script-variant-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(27, 79, 216, 0.5);
    color: #1B4FD8;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.script-variant-select-btn:hover {
    background: #1B4FD8;
    color: #fff;
}

.script-variant-select-btn:hover .svs-radio {
    border-color: #fff;
    background: rgba(255,255,255,0.3);
}

.svs-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #1B4FD8;
    flex-shrink: 0;
    transition: background 0.15s;
}

.script-variant-number {
    font-size: 11px;
    font-weight: 700;
    color: #1B4FD8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(27, 79, 216, 0.1);
    padding: 2px 7px;
    border-radius: 20px;
}

.script-variant-card--selected {
    border-color: #1B4FD8 !important;
    background: rgba(27, 79, 216, 0.06);
}

.script-variant-card--selected .script-variant-select-btn {
    background: #1B4FD8;
    color: #fff;
}

.script-variant-card--selected .svs-radio {
    background: #1B4FD8;
    border-color: #1B4FD8;
    box-shadow: inset 0 0 0 3px #FFFFFF;
}

.script-change-btn {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 6 — SCRIPT SUMMARY BLOCK & LENGTH WARNING
═══════════════════════════════════════════════════════════════════════════ */

/* Unified script box */
.script-box {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.script-box.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

.script-box-textarea {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.script-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
}

.script-summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.script-summary-label svg {
    width: 16px;
    height: 16px;
    stroke: #64748B;
}

.script-meta {
    display: flex;
    gap: 6px;
}

.script-badge {
    background: #F5F7FA;
    color: #334155;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.script-badge--duration {
    background: rgba(27, 79, 216, 0.12);
    color: #1B4FD8;
}


.script-summary-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.script-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.script-edit-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.script-edit-btn:hover {
    background: rgba(27, 79, 216, 0.1);
    border-color: rgba(27, 79, 216, 0.35);
    color: #1B4FD8;
}

.script-edit-btn--active {
    background: rgba(27, 79, 216, 0.12);
    border-color: rgba(27, 79, 216, 0.4);
    color: #1B4FD8;
}

.script-textarea--readonly {
    opacity: 0.7;
    cursor: default;
    background: #FFFFFF !important;
}

/* Black Box: script auto-generated notice */
.bb-script-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
}
.bb-script-notice svg {
    width: 22px;
    height: 22px;
    stroke: #4F46E5;
    flex-shrink: 0;
    margin-top: 1px;
}
.bb-script-notice-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bb-script-notice-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #3730A3;
}
.bb-script-notice-text span {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

/* AI decline note in Step 5 */
.ai-decline-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.ai-decline-note svg {
    width: 18px;
    height: 18px;
    stroke: #B45309;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAVED PAYMENT METHOD BLOCK (Step 8)
═══════════════════════════════════════════════════════════════════════════ */

.saved-pm-block {
    background: rgba(27, 79, 216, 0.06);
    border: 1px solid rgba(27, 79, 216, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.saved-pm-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0F172A;
}

.saved-pm-info svg {
    width: 20px;
    height: 20px;
    stroke: #334155;
    flex-shrink: 0;
}

.saved-pm-change {
    background: none;
    border: none;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
    white-space: nowrap;
}

.saved-pm-change:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   STEP 5 — VIDEO UPLOAD ZONE
═══════════════════════════════════════════════════════════════ */

.upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #F8FAFC;
    margin-bottom: 28px;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #1B4FD8;
    background: #EFF4FF;
}
.upload-zone.drag-over { border-style: solid; }

.upload-state { display: block; }

.upload-icon-wrap {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    background: #EEF2F7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.upload-icon-wrap svg { width: 26px; height: 26px; color: #1B4FD8; }

.upload-main-text {
    color: #0F172A;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px;
}
.upload-sub-text {
    color: #64748B;
    font-size: 14px;
    margin: 0 0 8px;
}
.upload-browse-btn {
    background: none; border: none; padding: 0;
    color: #1B4FD8; font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: underline;
    font-family: inherit;
}
.upload-browse-btn:hover { color: #143CA6; }
.upload-hint {
    color: #64748B;
    font-size: 12px;
    margin: 0;
}
.upload-hint--success { color: #15803D !important; }
#uploadDoneFileName, #uploadFileName {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Processing state */
.upload-processing-spinner {
    width: 40px; height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #1B4FD8;
    border-radius: 50%;
    animation: uploadSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes uploadSpin { to { transform: rotate(360deg); } }

.upload-processing-label {
    color: #0F172A;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 14px;
}

.upload-progress-bar-wrap {
    width: 100%; max-width: 280px;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin: 0 auto 10px;
    overflow: hidden;
}
.upload-progress-bar {
    height: 100%;
    background: #1B4FD8;
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s ease;
}

/* Done state */
.upload-done-icon {
    width: 44px; height: 44px;
    background: rgba(27, 79, 216, 0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.upload-done-icon svg { width: 22px; height: 22px; color: #1B4FD8; }

/* Transcription preview */
.transcription-preview {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px auto 0;
    max-width: 480px;
    text-align: left;
    max-height: 120px;
    overflow-y: auto;
}
.transcription-preview-label {
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.transcription-text {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.upload-change-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #CBD5E1;
    color: #64748B; font-size: 12px;
    border-radius: 6px; padding: 6px 12px;
    cursor: pointer; margin-top: 14px;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}
.upload-change-btn:hover { border-color: #94A3B8; color: #475569; }

/* ── Transcription length indicator (step 5 done state) ─────── */
.transcription-length-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 12px;
}
.tli-duration {
    color: #475569;
    font-weight: 500;
}
.tli-status {
    font-weight: 600;
}
.tli-status--ok   { color: #15803D; }
.tli-status--warn { color: #B45309; }
.tli-status--bad  { color: #DC2626; }

/* ── AI modal — length mismatch warning banner ───────────────── */
.ai-length-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.ai-length-warning svg {
    width: 18px;
    height: 18px;
    stroke: #B45309;
    flex-shrink: 0;
    margin-top: 1px;
}
.ai-length-warning p {
    font-size: 13px;
    color: #0F172A;
    line-height: 1.5;
    margin: 0;
}
.ai-length-warning strong {
    color: #B45309;
}


/* ── Upload / transcription modal ───────────────────────────── */
.upload-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 61, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.upload-modal-overlay.active { display: flex; }
.upload-modal {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.upload-modal-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #E2E8F0;
    border-top-color: #1B4FD8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
.upload-modal-label {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.upload-modal-progress-wrap {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
}
.upload-modal-progress-bar {
    height: 100%;
    width: 0%;
    background: #1B4FD8;
    border-radius: 2px;
    transition: width 0.2s ease;
}
.upload-modal-filename {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: inherit;
}
.upload-modal-notice {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
    font-family: inherit;
}

/* ── Script-too-short modal ──────────────────────────────────── */
.script-short-modal { gap: 14px; }
.script-short-icon { width: 48px; height: 48px; background: rgba(27, 79, 216, 0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.script-short-icon svg { width: 22px; height: 22px; stroke: #1B4FD8; }
.script-short-desc { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; text-align: center; }
.script-short-desc strong { color: #B91C1C; }
.script-short-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.script-short-btn { width: 100%; padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s, border-color 0.2s; }
.script-short-btn--primary { background: #1B4FD8; border: 1px solid #1B4FD8; color: #fff; }
.script-short-btn--primary:hover { background: #143CA6; border-color: #143CA6; }
.script-short-btn--edit { background: #FFFFFF; border: 1px solid #E2E8F0; color: #0F172A; }
.script-short-btn--edit:hover { background: #F5F7FA; border-color: #CBD5E1; color: var(--text); }
.script-short-btn--step4 { background: none; border: 1px solid #E2E8F0; color: #64748B; }
.script-short-btn--step4:hover { border-color: #CBD5E1; color: #475569; }
.script-short-or { display: flex; align-items: center; gap: 10px; width: 100%; }
.script-short-or-line { flex: 1; height: 1px; background: #E2E8F0; }
.script-short-or-text { font-size: 11px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Style examples section ──────────────────────────────────── */
.style-examples-section { margin-top: 28px; }

.style-examples-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 11px 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}
.style-examples-toggle:hover {
    background: #FFFFFF;
    border-color: #94A3B8;
}
.style-examples-toggle[aria-expanded="true"] {
    border-style: solid;
    border-color: #CBD5E1;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.style-examples-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.style-examples-chevron {
    width: 16px;
    height: 16px;
    color: #64748B;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.style-examples-toggle[aria-expanded="true"] .style-examples-chevron {
    transform: rotate(180deg);
}
.style-examples-body {
    border: 1px solid #CBD5E1;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0 14px 14px;
}
.style-examples-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.optional-badge {
    font-size: 11px;
    color: #64748B;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 1px 7px;
    font-weight: 500;
}

/* ── Step 5 AI offer (inline, not modal) ─────────────────────── */
#step5AiOffer .ai-modal-actions {
    flex-direction: column;
    gap: 10px;
}
#step5AiOffer .ai-modal-btn-yes,
#step5AiOffer .ai-modal-btn-no {
    width: 100%;
}

/* ── Inspo video chips ───────────────────────────────────────── */
.inspo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.inspo-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #0F172A;
}
.inspo-chip svg:first-child {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #64748B;
}
.inspo-chip span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inspo-chip button {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #64748B;
    display: flex;
    align-items: center;
}
.inspo-chip button:hover { color: #0F172A; }
.inspo-chip button svg { width: 14px; height: 14px; }

.optional-badge--prominent {
    font-size: 13px;
    color: #1B4FD8;
    -webkit-text-fill-color: #1B4FD8;
    background: rgba(27, 79, 216, 0.08);
    border-color: rgba(27, 79, 216, 0.35);
    font-weight: 600;
    padding: 2px 9px;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════
   CART ICON BUTTON
══════════════════════════════════════════════ */
.order-form-embed .cart-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7FA;
    border: 2px solid #E2E8F0;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    font-family: inherit;
    flex-shrink: 0;
}
.order-form-embed .cart-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(27, 79, 216, 0.18);
    border-color: var(--primary);
    color: var(--text);
}
@media (max-width: 480px) {
    .order-form-embed .cart-icon-btn { width: 36px; height: 36px; }
}
.order-form-embed .cart-icon-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.order-form-embed .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1B4FD8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* ══════════════════════════════════════════════
   CART OVERLAY
══════════════════════════════════════════════ */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 61, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════════════
   CART PANEL
══════════════════════════════════════════════ */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: #FFFFFF;
    border-left: 1px solid #E2E8F0;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0F172A;
}
.cart-panel.open {
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(0);
}
.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 18px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}
.cart-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.cart-panel-title svg {
    width: 18px;
    height: 18px;
    stroke: #1B4FD8;
    flex-shrink: 0;
}
.cart-panel-close {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}
.cart-panel-close:hover {
    background: #F5F7FA;
    color: var(--text);
}
.cart-panel-close svg {
    width: 14px;
    height: 14px;
}
.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-panel-body::-webkit-scrollbar { width: 4px; }
.cart-panel-body::-webkit-scrollbar-track { background: transparent; }
.cart-panel-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 2px; }

/* Empty cart state */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}
.cart-empty svg {
    width: 48px;
    height: 48px;
    stroke: #94A3B8;
}
.cart-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #64748B;
    margin: 0;
}

/* Cart panel items */
.cp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.2s;
}
.cp-item:hover { border-color: #E2E8F0; }
.cp-item-icon {
    width: 36px;
    height: 36px;
    background: rgba(27, 79, 216, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cp-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: #1B4FD8;
}
.cp-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cp-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cp-item-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1B4FD8;
    white-space: nowrap;
    flex-shrink: 0;
}
.cp-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.cp-detail {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 2px 7px;
}
.cp-item-instructions {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    margin-top: 4px;
    word-break: break-word;
}
.cp-item--draft {
    border-style: dashed;
    opacity: 0.75;
}
.cp-detail--progress {
    color: #B45309;
    background: rgba(245,158,11,0.1);
}
.cp-detail--black-box {
    color: #0F172A;
    background: #F5F7FA;
}
.cp-remove-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}
.cp-remove-btn:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.2);
    color: #DC2626;
}
.cp-remove-btn svg { width: 14px; height: 14px; }

/* Cart panel footer */
.cart-panel-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-panel-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
}
.cart-panel-discount-row {
    color: #15803D;
}
.cart-panel-discount-amount {
    font-weight: 600;
}
.cart-panel-total-row {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    padding-top: 6px;
    border-top: 1px solid #E2E8F0;
    margin-top: 2px;
}
.cart-panel-total-row span:last-child {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}
.cart-checkout-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1B4FD8 0%, #143CA6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}
.cart-checkout-btn svg { width: 16px; height: 16px; }
.cart-checkout-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.cart-checkout-btn:disabled,
.cart-checkout-btn.disabled {
    background: #E2E8F0;
    color: #64748B;
    cursor: not-allowed;
    transform: none;
}
.cart-checkout-note {
    font-size: 12px;
    color: #64748B;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .cart-panel { width: 100vw; }
}

/* ── Black Box ── */
.bb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--gray-500);
    font-size: 13px;
}
.bb-divider::before,
.bb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F5F7FA;
}
.bb-badge {
    background: rgba(27, 79, 216, 0.15);
    border: 1px solid rgba(27, 79, 216, 0.4);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.bb-level-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}
.bb-terms-check.terms-error {
    outline: 1px solid var(--primary);
    border-radius: 6px;
    padding: 6px;
    color: var(--primary-light) !important;
}

.bb-level-content {
    display: flex !important;
    align-items: center;
    gap: 14px;
    text-align: left !important;
    padding: 14px 18px !important;
}
.bb-level-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--gray-400);
    transition: var(--transition);
}
.option-card input:checked + .bb-level-content .bb-level-icon {
    color: var(--primary-light);
}
.bb-level-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.bb-level-sub {
    font-size: 12px;
    color: var(--gray-400);
}
