/* ==========================================
   WORLD-CLASS CHECKOUT SYSTEM
   Inspired by top e-commerce platforms
   ========================================== */

/* Reset & Base Styles */
:root {
    /* Color Palette - Moroccan Luxury */
    --primary-gold: #D4AF37;
    --deep-indigo: #2E4F99;
    --navy-blue: #1a365d;
    --warm-cream: #FFF8E7;
    --soft-gray: #F7FAFC;
    --charcoal: #2D3748;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    --gradient-indigo: linear-gradient(135deg, #2E4F99 0%, #1a365d 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.progress-bar {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-smooth);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0.5;
    transition: all var(--transition-smooth);
}

.step.completed,
.step.active {
    opacity: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid currentColor;
    transition: all var(--transition-smooth);
    position: relative;
}

.step.completed .step-circle {
    background: var(--gradient-primary);
    border-color: var(--primary-gold);
    color: white;
    box-shadow: var(--shadow-glow);
}

.step.active .step-circle {
    background: var(--gradient-indigo);
    border-color: var(--deep-indigo);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.step span {
    font-size: 12px;
    font-weight: 500;
    color: var(--charcoal);
}

/* Main Container */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px);
}

/* Main Content Layout */
.checkout-content {
    display: grid;
    grid-template-columns: 400px 600px;
    gap: var(--spacing-2xl);
    align-items: start;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

/* Header */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    width: 100%;
    max-width: 1000px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    transition: transform var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: logoShine 3s infinite;
}

@keyframes logoShine {

    0%,
    100% {
        transform: rotate(45deg) translateX(-100%);
    }

    50% {
        transform: rotate(45deg) translateX(100%);
    }
}

.logo-icon span {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
}

.brand-tagline {
    font-size: 12px;
    color: var(--primary-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-badges {
    display: flex;
    gap: var(--spacing-md);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(46, 79, 153, 0.1);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--deep-indigo);
    font-weight: 500;
}

.security-badge i {
    color: var(--primary-gold);
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 120px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.summary-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
}

.toggle-summary {
    display: none;
    background: none;
    border: none;
    color: var(--deep-indigo);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    gap: var(--spacing-xs);
    align-items: center;
    transition: color var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.toggle-summary:hover {
    color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.summary-content {
    padding: var(--spacing-lg);
    /* On desktop, content is always visible */
    max-height: none;
    opacity: 1;
    overflow: visible;
}

/* Summary content states - only apply on mobile/tablet */
@media (max-width: 1024px) {
    .summary-content {
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .summary-content.summary-collapsed {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .summary-content.summary-expanded {
        max-height: 2000px;
        opacity: 1;
        padding: var(--spacing-lg);
    }
}

/* Product Showcase */
.product-showcase {
    margin-bottom: var(--spacing-xl);
}

.product-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
}

.product-details h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--spacing-xs);
}

.product-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--charcoal);
}

.feature i {
    color: var(--primary-gold);
    font-size: 12px;
}

/* Pricing Breakdown */
.pricing-breakdown {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.price-row.discount {
    color: #dc2626;
}

.price-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--primary-gold);
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.discount-amount {
    font-weight: 600;
}

.free-shipping {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #059669;
    font-weight: 600;
}

.strikethrough {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
}

.total-amount {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--charcoal);
}

.trust-item i {
    color: var(--primary-gold);
    width: 14px;
}

/* Payment Section */
.payment-section {
    max-width: 600px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-strong);
    padding: var(--spacing-2xl);
}

/* Express Checkout */
.express-checkout {
    margin-bottom: var(--spacing-2xl);
}

.express-checkout h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.payment-request-button {
    margin-bottom: var(--spacing-lg);
}

.express-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.express-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.express-divider span {
    background: white;
    padding: 0 var(--spacing-md);
    color: #64748b;
    font-size: 14px;
    position: relative;
}

/* Form Sections */
.form-section {
    margin-bottom: var(--spacing-2xl);
}

.form-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: var(--spacing-xs);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.field-error.show {
    opacity: 1;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-gold);
}

.form-checkbox label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: var(--spacing-lg);
}

.payment-method {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-smooth);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
}

.payment-method.active {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.method-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-indigo);
}

.accepted-cards {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: auto;
}

.accepted-cards i {
    font-size: 20px;
    opacity: 0.7;
}

/* Stripe Elements */
.card-element {
    padding: var(--spacing-md);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-smooth);
}

.card-element.focused {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.card-errors {
    color: #dc2626;
    font-size: 14px;
    margin-top: var(--spacing-sm);
    min-height: 20px;
}

/* Submit Section */
.submit-section {
    margin-top: var(--spacing-2xl);
}

.submit-button {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    font-family: var(--font-primary);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

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

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-content,
.button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.button-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(10px);
}

.submit-button.loading .button-content {
    opacity: 0;
    transform: translateY(-10px);
}

.submit-button.loading .button-loader {
    opacity: 1;
    transform: translateY(0);
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.button-text .action {
    font-size: 16px;
}

.button-text .amount {
    font-size: 20px;
    font-family: var(--font-display);
}

.button-icon {
    margin-left: var(--spacing-md);
    transition: transform var(--transition-smooth);
}

.submit-button:hover .button-icon {
    transform: translateX(4px);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-sm);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    font-size: 12px;
    color: #64748b;
}

.security-notice i {
    color: var(--primary-gold);
}

/* Responsive Design */
/* iPad specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        max-width: 700px;
        margin: 0 auto;
    }

    .order-summary {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .summary-card {
        margin: 0 auto;
    }

    .checkout-header {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .checkout-container {
        padding: var(--spacing-md);
    }

    .checkout-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        max-width: 600px;
    }

    .checkout-header {
        max-width: 600px;
    }

    .order-summary {
        position: static;
    }

    .toggle-summary {
        display: flex;
    }
    
    .summary-header {
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .checkout-container {
        padding: var(--spacing-md);
        min-height: calc(100vh - 80px);
    }

    .checkout-content {
        max-width: 100%;
        gap: var(--spacing-lg);
    }

    .checkout-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        max-width: 100%;
    }

    .security-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .progress-steps {
        gap: var(--spacing-lg);
    }

    .step span {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-card {
        padding: var(--spacing-lg);
    }

    .logo-text {
        display: none;
    }

    .brand-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 95%;
    }

    .modal-content {
        padding: var(--spacing-lg);
    }

    .checkmark {
        width: 60px;
        height: 60px;
    }

    .checkmark i {
        font-size: 24px;
    }

    .success-content h2 {
        font-size: 22px;
    }
}

/* Animation for form validation */
.form-group.error input {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .modal-overlay {
        display: none !important;
    }

    .checkout-container {
        max-width: none;
        padding: 0;
    }

    .progress-container,
    .security-badges,
    .express-checkout,
    .submit-section {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #B8860B;
        --deep-indigo: #000080;
        --charcoal: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer Styles */
.checkout-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.footer-content p {
    margin: 0;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content p:first-child {
    margin-bottom: 4px;
}

.footer-content .fas.fa-heart {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .footer-content p {
        font-size: 0.85rem;
    }
}



/* Ensure card elements are always visible and functional */
#payment-element {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    min-height: 60px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

#payment-element.payment-ready {
    border-color: #10b981;
}

#payment-element.payment-focused {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#payment-element.payment-complete {
    border-color: #10b981;
}

#payment-element.payment-error {
    border-color: #ef4444;
}

/* Quantity Controls Styling - Clean & Modern */
.quantity-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-header span {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    user-select: none;
}

.quantity-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #374151;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

#quantity {
    width: 48px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    font-weight: 500;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

/* Payment Messages */
.payment-messages {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.payment-messages.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.payment-messages.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Legacy card element styles for compatibility */
#card-element {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    min-height: 40px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

#card-element.card-ready {
    border-color: #D4AF37;
}

#card-element.card-focused {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

#card-element.card-complete {
    border-color: #10b981;
}

#card-element.card-error {
    border-color: #dc2626;
}

#card-errors {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
    display: block;
}

#card-errors.error-visible {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading overlay styles */
#loading-overlay {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Express checkout button container */
#payment-request-button {
    margin-bottom: 20px;
}

/* Ensure payment section is always visible */
.payment-section {
    display: block !important;
    visibility: visible !important;
}

.card-element {
    display: block !important;
    visibility: visible !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #payment-element {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px;
        min-height: 44px;
        /* iOS touch target */
    }

    .phone-input-container {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .phone-input-container select,
    .phone-input-container input {
        width: 100% !important;
    }

    .quantity-controls {
        transform: none;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    #quantity {
        width: 52px;
        height: 36px;
        font-size: 16px;
    }

    .quantity-section {
        padding: 16px;
    }

    .quantity-header span {
        font-size: 15px;
    }
}

/* Ensure forms work on all browsers */
input,
select,
button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* Fix for Safari */
input[type="text"],
input[type="email"],
input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* Premium Success Modal Design System */
:root {
    /* Success Modal Color Palette - Based on Marosoap Theme */
    --success-primary-gold: #D4AF37;
    --success-accent-gold: #B8941F;
    --success-deep-indigo: #2E4F99;
    --success-navy: #1a365d;
    --success-warm-cream: #FFF8E7;
    --success-soft-gray: #F7FAFC;
    --success-charcoal: #2D3748;
    --success-white: #ffffff;
    
    /* Success Modal Gradients */
    --success-gradient-primary: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    --success-gradient-indigo: linear-gradient(135deg, #2E4F99 0%, #1a365d 100%);
    --success-gradient-background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(46, 79, 153, 0.05) 50%, 
        rgba(184, 148, 31, 0.08) 100%);
    --success-gradient-glass: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 248, 231, 0.15) 100%);
    
    /* Success Modal Shadows & Effects */
    --success-shadow-soft: 0 8px 32px rgba(45, 55, 72, 0.15);
    --success-shadow-medium: 0 16px 48px rgba(45, 55, 72, 0.2);
    --success-shadow-strong: 0 24px 64px rgba(45, 55, 72, 0.25);
    --success-glow-gold: 0 0 40px rgba(212, 175, 55, 0.4);
    --success-glow-indigo: 0 0 30px rgba(46, 79, 153, 0.3);
}

/* Premium Success Modal Overlay */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(25px) saturate(140%) brightness(85%);
    -webkit-backdrop-filter: blur(25px) saturate(140%) brightness(85%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    animation: backdropFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.success-modal-overlay.show {
    display: flex;
}

/* Premium Success Modal Container */
.success-modal-container {
    /* Modern glass morphism with Marosoap colors */
    background: white;
    backdrop-filter: blur(40px) saturate(180%) brightness(110%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(110%);
    border-radius: 32px;
    border: 2px solid;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    animation: modalSlideIn 1.0s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}


.success-modal-container::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: -25px;
    width: 80px;
    height: 80px;
    background:
        radial-gradient(circle at 30% 30%, rgba(184, 148, 31, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(46, 79, 153, 0.4) 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(20px);
    animation: floatParticle 6s ease-in-out infinite reverse;
    opacity: 0.6;
}

/* Premium Modal Content */
.success-modal-content {
    padding: 48px 36px;
    text-align: center;
    color: var(--success-charcoal);
    position: relative;
    z-index: 1;
}

/* Modal Close Button */
.modal-close-btn {
    position: sticky;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(45, 55, 72, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--charcoal);
    font-size: 16px;
    transition: all var(--transition-smooth);
    z-index: 1000;
    margin-top: 20px;
    margin-left: auto;
    margin-bottom: 10px;
}

.modal-close-btn:hover {
    background: rgba(45, 55, 72, 0.2);
    transform: scale(1.05);
    color: #e53e3e;
}

.modal-close-btn:active {
    transform: scale(0.95);
}

/* Elegant Animation Keyframes */
@keyframes backdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(25px) saturate(140%) brightness(85%);
        -webkit-backdrop-filter: blur(25px) saturate(140%) brightness(85%);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.92);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-18px) translateX(12px) rotate(90deg) scale(1.15);
        opacity: 0.9;
    }

    50% {
        transform: translateY(10px) translateX(-10px) rotate(180deg) scale(0.85);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-12px) translateX(-15px) rotate(270deg) scale(1.08);
        opacity: 0.8;
    }
}

/* Premium Success Icon & Celebration */
.success-celebration {
    margin-bottom: 36px;
    position: relative;
}

.success-icon-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-bg {
    width: 100%;
    height: 100%;
    background: var(--success-gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow:
        var(--success-glow-gold),
        var(--success-shadow-medium),
        inset 0 3px 0 rgba(255, 248, 231, 0.4),
        0 0 0 4px rgba(212, 175, 55, 0.15);
    animation: successIconPulse 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both;
}

.success-icon-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 248, 231, 0.5) 50%,
            transparent 70%);
    border-radius: 50%;
    animation: iconShimmer 3s ease-in-out infinite;
}

.success-checkmark {
    color: var(--success-warm-cream);
    font-size: 36px;
    font-weight: bold;
    z-index: 2;
    position: relative;
    animation: checkmarkAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.0s both;
    text-shadow: 0 3px 10px rgba(45, 55, 72, 0.3);
}

/* Floating celebration particles with Marosoap colors */
.celebration-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
    animation: celebrationFloat 4s ease-in-out infinite;
}

.celebration-particle:nth-child(1) {
    top: 10%;
    left: 20%;
    background: var(--success-primary-gold);
    animation-delay: 0s;
}

.celebration-particle:nth-child(2) {
    top: 25%;
    right: 15%;
    background: var(--success-deep-indigo);
    animation-delay: 0.5s;
}

.celebration-particle:nth-child(3) {
    bottom: 30%;
    left: 15%;
    background: var(--success-accent-gold);
    animation-delay: 1s;
}

.celebration-particle:nth-child(4) {
    bottom: 15%;
    right: 25%;
    background: var(--success-navy);
    animation-delay: 1.5s;
}

@keyframes successIconPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.9;
        box-shadow: var(--success-glow-gold);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        box-shadow: var(--success-glow-gold);
    }
}

@keyframes iconShimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 1;
    }
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes celebrationFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-25px) scale(1.3);
        opacity: 1;
    }

    50% {
        transform: translateY(8px) scale(0.7);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-18px) scale(1.2);
        opacity: 0.9;
    }
}

/* Premium Typography & Header */
.success-header {
    margin-bottom: 40px;
    position: relative;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--success-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: titleSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
    position: relative;
    text-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.success-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--success-gradient-indigo);
    border-radius: 2px;
    opacity: 0.8;
    animation: underlineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
    box-shadow: var(--success-glow-indigo);
}

.success-subtitle {
    font-size: 1.25rem;
    color: var(--success-charcoal);
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.5;
    opacity: 0.9;
    animation: titleSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.success-tagline {
    font-size: 1rem;
    color: var(--success-charcoal);
    margin: 0;
    font-weight: 400;
    opacity: 0.75;
    font-style: italic;
    animation: titleSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
        box-shadow: none;
    }

    to {
        width: 100px;
        opacity: 0.8;
        box-shadow: var(--success-glow-indigo);
    }
}

/* Premium Order Details Card */
.order-summary-card {
    background:
        /* Soft inner glow with website colors */
        radial-gradient(circle at 50% 0%, rgba(255, 248, 231, 0.7) 0%, transparent 50%),
        /* Main card surface */
        var(--success-gradient-glass),
        rgba(255, 248, 231, 0.85);
    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);
    border-radius: 24px;
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(212, 175, 55, 0.3) 0%,
            rgba(46, 79, 153, 0.2) 50%,
            rgba(184, 148, 31, 0.25) 100%) 1;
    padding: 36px;
    margin: 32px 0;
    text-align: left;
    box-shadow:
        var(--success-shadow-soft),
        0 8px 16px rgba(212, 175, 55, 0.1),
        inset 0 2px 0 rgba(255, 248, 231, 0.7),
        inset 0 -2px 0 rgba(212, 175, 55, 0.15);
    position: relative;
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

.order-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--success-gradient-primary);
    border-radius: 24px 24px 0 0;
    opacity: 0.9;
    box-shadow: var(--success-glow-gold);
}

.order-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    background: var(--success-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 28px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(45, 55, 72, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    position: relative;
}

.order-detail-row:hover {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(46, 79, 153, 0.04) 100%);
    transform: translateX(10px);
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 -20px;
    box-shadow: var(--success-shadow-soft);
}

.order-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-detail-label {
    font-weight: 600;
    color: var(--success-charcoal);
    font-size: 1.0rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-detail-label i {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--success-slate);
}

.order-detail-value {
    font-weight: 600;
    color: var(--success-deep);
    font-size: 1.0rem;
    text-align: right;
}

.order-detail-value.amount {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--success-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-detail-value.status {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.1) 0%,
            rgba(245, 158, 11, 0.05) 100%);
    color: var(--success-emerald);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.1);
    letter-spacing: 0.02em;
}

.order-detail-value.highlight {
    background: var(--success-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Premium Action Buttons & Next Steps */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    animation: actionsSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.0rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.action-button-primary {
    background: var(--success-gradient-primary);
    color: var(--success-pearl);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow:
        0 8px 16px rgba(102, 126, 234, 0.2),
        0 4px 8px rgba(118, 75, 162, 0.15),
        inset 0 1px 0 rgba(248, 250, 252, 0.2);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.action-button-secondary {
    background:
        linear-gradient(135deg,
            rgba(248, 250, 252, 0.6) 0%,
            rgba(254, 252, 243, 0.4) 100%);
    color: var(--success-deep);
    border: 1px solid rgba(51, 65, 85, 0.15);
    box-shadow:
        0 6px 12px var(--success-shadow-soft),
        inset 0 1px 0 rgba(248, 250, 252, 0.6);
}

.action-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(248, 250, 252, 0.3) 50%,
            transparent 70%);
    transition: transform 0.6s ease;
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.action-button:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.action-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.action-button-primary:hover {
    box-shadow:
        0 12px 24px rgba(102, 126, 234, 0.25),
        0 6px 12px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(248, 250, 252, 0.3);
}

.action-button-secondary:hover {
    box-shadow:
        0 8px 16px var(--success-shadow-medium),
        inset 0 1px 0 rgba(248, 250, 252, 0.8);
    background:
        linear-gradient(135deg,
            rgba(248, 250, 252, 0.8) 0%,
            rgba(254, 252, 243, 0.6) 100%);
}

.action-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-button:hover i {
    transform: scale(1.1);
}

/* Next Steps Information */
.next-steps-info {
    background:
        linear-gradient(135deg,
            rgba(245, 158, 11, 0.08) 0%,
            rgba(16, 185, 129, 0.04) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 24px;
    margin: 24px 0;
    text-align: left;
    box-shadow:
        0 8px 16px rgba(245, 158, 11, 0.04),
        inset 0 1px 0 rgba(248, 250, 252, 0.3);
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
}

.next-steps-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    background: var(--success-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    text-align: center;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--success-deep);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    opacity: 0.9;
}

.step-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg,
            rgba(245, 158, 11, 0.05) 0%,
            rgba(16, 185, 129, 0.02) 100%);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
    opacity: 1;
}

.step-icon {
    width: 24px;
    height: 24px;
    background: var(--success-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    box-shadow: 0 4px 8px rgba(240, 147, 251, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.step-item:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animation Keyframes */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes actionsSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Premium Responsive Design */
@media (max-width: 768px) {
    .success-modal-container {
        margin: 15px;
        border-radius: 24px;
        max-height: 95vh;
    }

    .success-modal-content {
        padding: 32px 24px;
    }

    .success-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .success-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .success-checkmark {
        font-size: 28px;
    }

    .order-summary-card,
    .next-steps-info {
        padding: 24px 20px;
        border-radius: 20px;
        margin: 24px 0;
    }

    .success-actions {
        gap: 12px;
        margin-top: 28px;
    }

    .action-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .order-detail-row {
        padding: 14px 0;
    }

    .order-detail-row:hover {
        transform: translateX(6px);
        padding-left: 12px;
        padding-right: 12px;
        margin: 0 -12px;
    }
}

@media (max-width: 480px) {
    .success-modal-content {
        padding: 24px 16px;
    }

    .success-title {
        font-size: 1.9rem;
    }

    .success-subtitle {
        font-size: 1.0rem;
    }

    .success-tagline {
        font-size: 0.9rem;
    }

    .order-summary-card,
    .next-steps-info {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .order-card-title,
    .next-steps-title {
        font-size: 1.3rem;
    }

    .order-detail-label,
    .order-detail-value {
        font-size: 0.95rem;
    }

    .order-detail-value.amount {
        font-size: 1.2rem;
    }

    .action-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .step-item {
        font-size: 0.9rem;
    }
}

/* Accessibility Enhancements */
.action-button:focus {
    outline: 2px solid var(--success-indigo);
    outline-offset: 2px;
}

.order-detail-row:focus-within {
    background: linear-gradient(135deg,
            rgba(245, 158, 11, 0.06) 0%,
            rgba(16, 185, 129, 0.03) 100%);
    outline: 1px solid var(--success-gold);
    outline-offset: 1px;
}

/* Remove all scrollbars from modal */
.success-modal-container {
    scroll-behavior: smooth;
    overflow: hidden !important;
}

.success-modal-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.success-modal-container::-webkit-scrollbar-track {
    display: none !important;
}

.success-modal-container::-webkit-scrollbar-thumb {
    display: none !important;
}

.success-modal-container::-webkit-scrollbar-thumb:hover {
    display: none !important;
}

/* Print styles for receipts */
@media print {
    .success-modal-overlay {
        background: white !important;
        backdrop-filter: none !important;
    }

    .success-modal-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
    }

    .success-actions {
        display: none !important;
    }

    .celebration-particle {
        display: none !important;
    }
}

.glassmorphic-modal-overlay.show {
    display: flex;
}

.glassmorphic-modal-container {
    /* Premium Glass Container */
    background:
        /* Inner glow */
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        /* Main glass surface */
        linear-gradient(135deg,
            rgba(248, 249, 255, 0.25) 0%,
            rgba(255, 248, 240, 0.2) 25%,
            rgba(248, 249, 255, 0.15) 50%,
            rgba(255, 248, 240, 0.25) 75%,
            rgba(248, 249, 255, 0.2) 100%);
    backdrop-filter: blur(60px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(110%);
    border-radius: 40px;
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 216, 155, 0.4) 25%,
            rgba(102, 126, 234, 0.3) 50%,
            rgba(240, 147, 251, 0.4) 75%,
            rgba(255, 255, 255, 0.5) 100%) 2;
    box-shadow:
        /* Outer glow */
        0 40px 80px rgba(102, 126, 234, 0.15),
        0 20px 40px rgba(240, 147, 251, 0.1),
        0 10px 30px rgba(255, 216, 155, 0.08),
        /* Inner highlights */
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3),
        /* Depth shadows */
        0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Floating Ambient Elements */
.glassmorphic-modal-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -30px;
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(240, 147, 251, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
    animation: ambientFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.glassmorphic-modal-container::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 216, 155, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(11, 163, 96, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: ambientFloat 6s ease-in-out infinite reverse;
    opacity: 0.5;
}

.glassmorphic-modal-content {
    padding: 60px 50px;
    text-align: center;
    color: var(--modal-midnight);
    position: relative;
    z-index: 1;
    /* Subtle text shadow for better readability */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Advanced Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes ambientFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translateY(20px) translateX(-15px) rotate(240deg) scale(0.9);
        opacity: 0.6;
    }
}

/* Enhanced Success Elements */
.checkmark-circle {
    width: 100px;
    height: 100px;
    background:
        linear-gradient(135deg,
            var(--modal-sage) 0%,
            var(--modal-gold) 50%,
            var(--modal-sage) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow:
        0 20px 40px rgba(11, 163, 96, 0.3),
        0 10px 25px rgba(255, 216, 155, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3);
    animation: successPulse 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
    position: relative;
    overflow: hidden;
}

.checkmark-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 70%);
    animation: shimmerSuccess 3s ease-in-out infinite;
}

@keyframes successPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shimmerSuccess {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Success Animation */
.success-animation {
    position: relative;
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #D4AF37, #F4E4B8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.checkmark {
    color: white;
    font-size: 40px;
    font-weight: bold;
    animation: checkmarkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s both;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Premium Modal Header */
.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg,
            var(--modal-midnight) 0%,
            var(--modal-secondary) 50%,
            var(--modal-midnight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px;
    text-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    animation: headerSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    position: relative;
}

.modal-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--modal-primary),
            var(--modal-accent),
            var(--modal-gold));
    border-radius: 2px;
    opacity: 0.7;
}

.modal-header p {
    font-size: 1.25rem;
    color: var(--modal-midnight);
    margin: 0 0 40px;
    font-weight: 500;
    opacity: 0.8;
    animation: headerSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Premium Order Details Card */
.order-details-card {
    background:
        linear-gradient(135deg,
            rgba(248, 249, 255, 0.4) 0%,
            rgba(255, 248, 240, 0.3) 50%,
            rgba(248, 249, 255, 0.4) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 28px;
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(102, 126, 234, 0.3) 0%,
            rgba(255, 216, 155, 0.4) 50%,
            rgba(240, 147, 251, 0.3) 100%) 2;
    padding: 36px;
    margin: 32px 0;
    text-align: left;
    box-shadow:
        0 15px 35px rgba(102, 126, 234, 0.08),
        0 8px 20px rgba(240, 147, 251, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.order-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            var(--modal-primary) 0%,
            var(--modal-gold) 25%,
            var(--modal-accent) 50%,
            var(--modal-sage) 75%,
            var(--modal-lavender) 100%);
    border-radius: 28px 28px 0 0;
}

.order-details-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg,
            var(--modal-midnight) 0%,
            var(--modal-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 28px;
    text-align: center;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
}

.detail-row:hover {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.05) 0%,
            rgba(240, 147, 251, 0.03) 100%);
    transform: translateX(8px);
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 -20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: var(--modal-midnight);
    font-size: 1.1rem;
    opacity: 0.8;
}

.detail-row .value {
    font-weight: 600;
    color: var(--modal-midnight);
    font-size: 1.1rem;
}

.detail-row .value.amount {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg,
            var(--modal-sage) 0%,
            var(--modal-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-row .value.status {
    background: linear-gradient(135deg,
            rgba(11, 163, 96, 0.15) 0%,
            rgba(255, 216, 155, 0.1) 100%);
    color: var(--modal-sage);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(11, 163, 96, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(11, 163, 96, 0.15);
}

/* Premium Next Steps Card */
.next-steps-card {
    background:
        linear-gradient(135deg,
            rgba(255, 248, 240, 0.4) 0%,
            rgba(248, 249, 255, 0.3) 50%,
            rgba(255, 248, 240, 0.4) 100%);
    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);
    border-radius: 28px;
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(255, 216, 155, 0.4) 0%,
            rgba(196, 113, 237, 0.3) 50%,
            rgba(102, 126, 234, 0.3) 100%) 2;
    padding: 36px;
    margin: 32px 0;
    text-align: left;
    box-shadow:
        0 12px 28px rgba(255, 216, 155, 0.08),
        0 6px 16px rgba(196, 113, 237, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.next-steps-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    background: linear-gradient(135deg,
            var(--modal-midnight) 0%,
            var(--modal-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px;
    text-align: center;
    font-weight: 600;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: center;
    padding: 16px 0;
    color: var(--modal-midnight);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    opacity: 0.9;
}

.steps-list li:hover {
    transform: translateX(12px);
    background: linear-gradient(135deg,
            rgba(255, 216, 155, 0.1) 0%,
            rgba(196, 113, 237, 0.05) 100%);
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 -16px;
    opacity: 1;
}

.steps-list li i {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    background: linear-gradient(135deg,
            var(--modal-gold) 0%,
            var(--modal-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    transition: transform 0.3s ease;
}

.steps-list li:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Professional Responsive Design */
@media (max-width: 768px) {
    .glassmorphic-modal-container {
        margin: 10px;
        border-radius: 20px;
        max-height: 95vh;
    }

    .glassmorphic-modal-content {
        padding: 35px 25px;
    }

    .modal-header h2 {
        font-size: 2.2rem;
    }

    .checkmark-circle {
        width: 75px;
        height: 75px;
    }

    .checkmark {
        font-size: 30px;
    }

    .order-details-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .glassmorphic-modal-content {
        padding: 25px 15px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

.next-steps-card {
    padding: 28px 24px;
    border-radius: 24px;
}

.modal-actions {
    flex-direction: column;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 16px 32px;
}


@media (max-width: 480px) {
    .glassmorphic-modal-content {
        padding: 25px 15px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================
   EXPRESS CHECKOUT ELEMENT STYLES
   Modern one-click payment methods
   ========================================== */

/* Express Checkout Section */
.express-checkout-section {
    margin-bottom: 24px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.express-checkout-section[hidden] {
    display: none !important;
}

/* Express Checkout Element Container */
#express-checkout-element {
    margin-bottom: 16px;
    min-height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Express Checkout Divider */
.express-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.express-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    transform: translateY(-50%);
}

.express-divider span {
    background: #ffffff;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment Methods Section (updated to remove icon) */
.payment-method label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 12px;
}

.payment-method label:hover {
    border-color: var(--primary-gold);
    background: #fffbf0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.payment-method.active label {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e7 100%);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.payment-method input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
}

.accepted-cards {
    margin-left: auto;
    display: flex;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-method.active .accepted-cards {
    opacity: 1;
}

.accepted-cards i {
    font-size: 20px;
    color: #64748b;
    transition: color 0.3s ease;
}

.payment-method.active .accepted-cards i {
    color: var(--primary-gold);
}

/* Express Checkout Loading State */
.express-checkout-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.express-checkout-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Express Checkout Error State */
.express-checkout-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.express-checkout-error::before {
    content: '⚠️';
    font-size: 16px;
}

/* Express Checkout Success Animation */
.express-checkout-success {
    animation: expressSuccessSlide 0.5s ease-out;
}

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

/* Mobile Optimizations for Express Checkout */
@media (max-width: 768px) {
    .express-checkout-section {
        margin-bottom: 20px;
    }
    
    #express-checkout-element {
        min-height: 44px;
    }
    
    .express-divider {
        margin: 16px 0;
        font-size: 13px;
    }
    
    .express-divider span {
        padding: 0 12px;
    }
    
    .payment-method label {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .accepted-cards {
        gap: 6px;
    }
    
    .accepted-cards i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .express-checkout-section {
        margin-bottom: 16px;
    }
    
    #express-checkout-element {
        min-height: 40px;
    }
    
    .express-divider {
        margin: 12px 0;
        font-size: 12px;
    }
    
    .payment-method label {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .accepted-cards i {
        font-size: 16px;
    }
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ==========================================
   PAYMENT INFORMATION DISPLAY
   Order summary and payment details
   ========================================== */

.payment-info-container {
    margin: 20px 0;
    animation: slideInUp 0.5s ease-out;
}

.payment-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.payment-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), #D4AF37, var(--primary-gold));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.payment-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.payment-info-header h4 {
    margin: 0;
    color: var(--charcoal);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-number {
    background: linear-gradient(135deg, var(--primary-gold), #B8941F);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.payment-info-details {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 16px;
    color: var(--charcoal);
}

.info-row .label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.info-row .value {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 14px;
}

.info-row .value.free {
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row.total .value {
    color: var(--primary-gold);
    font-size: 18px;
    font-weight: 700;
}

/* Payment Info Actions (Buttons) */
.payment-info-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Download Dropdown Styles */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-btn .dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.download-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    min-width: 220px;
}

.download-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.download-option:last-child {
    border-bottom: none;
}

.download-option:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: var(--primary-gold);
}

.download-option:active {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.download-option i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: var(--primary-gold);
}

.download-option span {
    flex: 1;
    text-align: left;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-gold), #B8941F);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.action-btn:hover {
    background: linear-gradient(135deg, #B8941F, var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.action-btn i {
    font-size: 16px;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid #64748b;
    border-radius: 8px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.close-btn:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

.close-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

.close-btn i {
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-info-card {
        padding: 20px;
        margin: 16px 0;
    }
    
    .payment-info-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    
    .payment-info-header h4 {
        font-size: 16px;
    }
    
    .info-row {
        padding: 6px 0;
    }
    
    .info-row .label,
    .info-row .value {
        font-size: 13px;
    }
    
    .info-row.total .value {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .payment-info-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .order-number {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .action-btn, .close-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

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

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* ==========================================
   MODAL SPECIFIC STYLES - NO SCROLLBARS
   Complete scrollbar removal for all modal elements
   ========================================== */

/* Remove ALL scrollbars from modal and its content */
.success-modal-overlay,
.success-modal-container,
.success-modal-content,
.glassmorphic-modal-overlay,
.glassmorphic-modal-container,
.glassmorphic-modal-content,
#modal-payment-info-display,
#modal-payment-info-display *,
#success-modal,
#success-modal * {
    overflow: hidden !important;
    max-height: none !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

/* Hide webkit scrollbars completely */
.success-modal-overlay::-webkit-scrollbar,
.success-modal-container::-webkit-scrollbar,
.success-modal-content::-webkit-scrollbar,
.glassmorphic-modal-overlay::-webkit-scrollbar,
.glassmorphic-modal-container::-webkit-scrollbar,
.glassmorphic-modal-content::-webkit-scrollbar,
#modal-payment-info-display::-webkit-scrollbar,
#modal-payment-info-display *::-webkit-scrollbar,
#success-modal::-webkit-scrollbar,
#success-modal *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Force no scroll for modal content */
#success-modal {
    overflow: hidden !important;
}

#success-modal .success-modal-container {
    overflow: hidden !important;
    max-height: 90vh !important;
}

/* #success-modal .success-modal-content {
    overflow: hidden !important;
    max-height: 85vh !important;
} */

#modal-payment-info-display {
    overflow: hidden !important;
    max-height: none !important;
}

#modal-payment-info-display .payment-info-container {
    overflow: hidden !important;
    margin: 10px 0;
}

#modal-payment-info-display .payment-info-card {
    overflow: hidden !important;
    max-height: none !important;
}

#modal-payment-info-display .payment-info-details {
    overflow: hidden !important;
    max-height: none !important;
}