:root {
    --bg-color: #EFEFE8;
    --text-color: #323232;
    --heading-font: 'Lora', serif;
    --body-font: 'Montserrat', sans-serif;
    --border-color: #d1d1d1;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure consistent number formatting across the site */
.price, .total-price, .summary-price, .total-amount, .subtotal, 
.product-price, .summary-item, .detail-row, .orders-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
}

img { max-width: 100%; }
main { width: 100%; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #EFEFE8;
}

.logo { 
    display: flex;
    align-items: center;
}
.logo img { 
    height: 35px; 
    display: block;
}
.menu-button { 
    background: none; 
    border: none; 
    font-size: 1.5em; 
    cursor: pointer; 
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.header-icons { 
    display: flex; 
    align-items: center; 
    gap: 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--bg-color);
    gap: 50px;
    margin: 40px 80px 40px 80px;
}
.hero-text { max-width: 450px; }
.hero-text h1 { font-family: var(--heading-font); font-size: 3.5em; font-weight: 400; line-height: 1.2; margin: 0 0 20px; }
.hero-text p { font-size: 1.1em; margin-bottom: 30px; }
.hero-image { max-width: 400px; }

.cta-button {
    background-color: #008060;
    color: white;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    width: 100%;
}
.cta-button:hover { opacity: 0.8; }

.flower-divider img { display: block; width: 100%; }

.features, .reviews {
    background-color: #323232;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.features {
    padding-top: 0;
}

.features h2, .reviews h2 {
    font-family: var(--heading-font);
    font-size: 2.5em;
    font-weight: 400;
}
.reviews h3 { font-size: 1.2em; margin-top: -30px; margin-bottom: 40px; }

.feature-items, .review-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature, .review { flex-basis: 30%; }
.feature h3, .review .author { font-family: var(--heading-font); }

.product-display {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    background-color: var(--bg-color);
}
.product-display-image, .product-display-text { flex: 1; }
.product-display-text h2 { font-family: var(--heading-font); font-size: 2.5em; font-weight: 400; margin-bottom: 10px; }
.product-display-text .subtitle { text-transform: uppercase; letter-spacing: 1px; font-size: 0.9em; margin-bottom: 20px; }
.product-display-text .price { font-size: 1.2em; margin-bottom: 20px; }

.final-cta {
    padding: 100px 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
}
.final-cta h2 { font-family: var(--heading-font); font-size: 3em; font-weight: 400; margin-bottom: 30px; }
.final-cta .cta-button { background-color: white; color: var(--text-color); }

.site-footer {
    background-color: var(--bg-color);
    padding: 40px;
}
.footer-content { text-align: center; max-width: 500px; margin: 0 auto 30px; }
.footer-content h3 { font-family: var(--heading-font); font-weight: 400; font-size: 1.5em; }
.subscribe-form { display: flex; border-bottom: 1px solid var(--text-color); }
.subscribe-form input { border: none; background: none; padding: 10px; flex-grow: 1; font-size: 1em; }
.subscribe-form button { background: none; border: none; font-size: 1.5em; cursor: pointer; }
.site-footer p { text-align: center; font-size: 0.9em; margin: 0; }

.product-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    text-align: center;
}

.product-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    margin: 0.5em 0;
}

.price {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.buy-button {
    display: inline-block;
    background-color: #ff7f50; /* Coral */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #ff6347; /* Tomato */
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px;
    }

    .hero {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .feature-items, .review-items, .product-display, .product-page-content {
        flex-direction: column;
        gap: 30px;
    }

    .product-display, .product-page-content {
        padding: 40px 20px;
    }

    .final-cta h2 {
        font-size: 2em;
    }
}

/* FAQ Page */
.faq-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
.faq-page h1 { font-family: var(--heading-font); font-size: 2.5em; text-align: center; }
.faq-page .intro { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.faq-section { margin-bottom: 40px; }
.faq-section h2 { font-family: var(--heading-font); font-size: 1.8em; margin-bottom: 20px; }
.faq-section ul { list-style: none; padding: 0; }
.faq-section li { margin-bottom: 20px; }
.faq-section li strong { display: block; margin-bottom: 5px; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(-100%); /* Hidden off-screen */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    margin-top: 50px; /* Add margin to push nav down */
}
.mobile-menu nav a {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.2s;
}
.mobile-menu nav a:hover {
    background-color: #d1d1d1;
}
.mobile-menu nav a.active {
    background-color: #d1d1d1;
}
.close-menu-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}
.menu-footer { margin-top: auto; padding-top: 20px; }
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.cart-icon { 
    height: 20px; 
    display: block;
}

.cart-link { 
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.cart-badge {
    display: none; /* Hidden by default */
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #E56346; /* Coral color */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    justify-content: center;
    align-items: center;
}

/* Product Page */
.product-page-content {
    display: flex;
    gap: 60px;
    padding: 20x;
    max-width: 1200px;
    margin: 0 auto;
}
.product-gallery, .product-details {
    flex: 1;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.thumbnail-image {
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0.6;
}
.thumbnail-image.active-thumb, .thumbnail-image:hover {
    opacity: 1;
}
.product-details h2 {
    font-family: var(--heading-font);
    font-size: 2.5em;
    font-weight: 400;
    margin: 0 0 10px;
}
.product-details .subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    margin-bottom: 20px;
}
.product-details .price {
    font-size: 1.2em;
    margin-bottom: 20px;
}
.product-details .notice {
    font-size: 0.9em;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
}
.purchase-actions {
    margin-top: 30px;
}
.purchase-actions .quantity-selector {
    margin: 10px 0 20px;
}
.purchase-actions .cta-button {
    width: 100%;
    text-align: center;
}

/* --- Cart & Checkout Pages --- */
#start-order-page .site-header, #start-order-page .site-footer {
    max-width: 600px;
    margin: 0 auto;
    border: none;
    padding-left: 0;
    padding-right: 0;
}
#start-order-page .site-header {
    justify-content: center;
}
#start-order-page .logo-placeholder {
    font-family: var(--heading-font);
    font-size: 1.5em;
    font-weight: 700;
}
body.checkout-page {
    background-color: #fff;
}
.checkout-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.checkout-header .logo-placeholder {
    font-family: var(--heading-font);
    font-size: 1.5em;
    font-weight: 700;
}
/* Cart Page: start-order.html */
.cart-container { max-width: 600px; margin: 20px auto; background-color: white; padding: 20px 40px; border: 1px solid var(--border-color); }
.cart-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; font-size: 0.8em; color: #666; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 20px; }
.product-info { display: flex; }
.product-thumbnail { width: 80px; height: 80px; object-fit: cover; margin-right: 20px; }
.product-name { font-weight: bold; margin: 5px 0; }
.total-price { font-weight: bold; font-size: 1em; }
.quantity-selector { display: flex; align-items: center; width: fit-content; max-width: 150px; margin-top: 10px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border-color); }
.quantity-selector input { width: 50px; text-align: center; border: none; font-size: 1em; -moz-appearance: textfield; background: none; padding: 8px 0; border-radius: 0 !important; }
.quantity-selector input[type="number"]::-webkit-inner-spin-button, .quantity-selector input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-btn { background: none; border: none; cursor: pointer; padding: 8px 16px; font-size: 1.2em; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); transition: background-color 0.2s; }
.quantity-btn:hover { background-color: rgba(0,0,0,0.05); }
.quantity-btn:first-child { border-left: none; }
.quantity-btn:last-child { border-right: none; }
.cart-footer { border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 20px; text-align: right; }
.cart-footer .subtotal { display: flex; justify-content: space-between; font-size: 1.2em; font-weight: bold; margin-bottom: 10px; }
.shipping-incentive { text-align: center; margin: 20px 0; padding: 15px; background-color: #EFEFE8; border-radius: 4px; font-size: 0.9em; }
.progress-bar-container { width: 100%; background-color: #ffffff; border-radius: 10px; height: 10px; margin-top: 10px; padding: 0; overflow: hidden; }
.shipping-incentive .progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #B19CD9 0%, #8B4F9F 100%); border-radius: 10px; transition: width 0.5s ease; }
.cart-footer .cta-button { width: 100%; border: none; margin-top: 10px; }

/* CHECKOUT PAGE: confirm-order.html */
.mobile-summary { display: none; }
.sidebar {
    width: 40%;
    background-color: var(--bg-color);
    padding: 40px 6%;
}
.checkout-container { display: flex; }
.main-content {
    flex-grow: 1;
    padding: 20px 8% 40px;
    border-right: 1px solid var(--border-color);
}
#order-form h2 { font-size: 1.2em; margin-bottom: 20px; }
#order-form input:not([type="checkbox"]), #order-form select { 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    width: 100%; 
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
}
.name-fields, .address-fields { display: flex; gap: 15px; }
.checkbox-container { display: flex; align-items: flex-start; margin: 10px 0 25px; gap: 10px;}
.checkbox-container input[type="checkbox"] { width: auto !important; margin: 0; margin-top: 2px; flex-shrink: 0; min-width: 16px; max-width: 16px; }
.checkbox-container label { line-height: 1.5; margin: 0; text-align: left; }
.summary-item, .summary-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.thumbnail-container { position: relative; }
.quantity-badge { position: absolute; top: -10px; right: -10px; background-color: var(--text-color); color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 0.8em; font-weight: bold; }
.summary-item-info { display: flex; align-items: center; gap: 15px; }
.summary-thumbnail { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.summary-product-name { font-size: 0.9em; }
.summary-price { font-size: 1em; }
.summary-total .total-amount { font-size: 1.4em; font-weight: bold; }

@media (max-width: 900px) {
    .sidebar { display: none; }
    .mobile-summary { display: block; background-color: var(--bg-color); border-bottom: 1px solid var(--border-color); }
    .mobile-summary-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; cursor: pointer; font-size: 0.9em; }
    .mobile-summary-header .dropdown-arrow { transition: transform 0.3s ease; display: inline-block; transform: rotate(90deg); }
    .mobile-summary-header .total-amount { font-size: 1em; font-weight: normal; }
    .mobile-summary-content { display: none; padding: 20px; border-top: 1px solid var(--border-color); }
    .main-content { padding: 20px; border-right: none; }
}

@media (max-width: 768px) {
    .cart-container {
        margin: 20px;
        padding: 20px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .main-content {
        flex: 1;
        max-width: 100%;
        padding: 20px 20px 80px 20px; /* Extra bottom padding for button visibility */
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-summary {
        display: block;
    }
    
    .address-fields, .name-fields {
        flex-direction: column;
        gap: 0; /* Remove gap to use individual margins */
    }
    
    .address-fields input, .address-fields select,
    .name-fields input {
        margin-bottom: 15px; /* Match the standard field spacing */
    }
    
    .address-fields input, .address-fields select,
    .name-fields input {
        flex: 1;
    }
    
    /* Enhanced mobile input styling */
    #order-form input:not([type="checkbox"]), #order-form select {
        padding: 16px 12px; /* Larger padding for easier touch */
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px; /* Apple's recommended minimum touch target */
        border: 1px solid #ccc;
        border-radius: 6px; /* Slightly more rounded for mobile */
        -webkit-appearance: none;
        appearance: none;
        background-color: white;
        line-height: 1.4;
    }
    
    /* Specific dropdown styling to match other inputs */
    #order-form select {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='m2 0-2 2h4zm0 5 2-2h-4z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 40px; /* Space for dropdown arrow */
    }
    
    /* Larger touch targets for mobile */
    .checkbox-container {
        margin: 15px 0 30px;
        gap: 12px;
    }
    
    .checkbox-container input[type="checkbox"] {
        min-width: 20px;
        max-width: 20px;
        height: 20px;
        margin-top: 0;
    }
    
    .checkbox-container label {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* CTA Button mobile styling */
    .cta-button {
        padding: 16px 24px;
        font-size: 18px;
        min-height: 56px; /* Larger touch target */
        border-radius: 6px;
    }
    
    /* Consistent header spacing */
    #order-form h2 {
        font-size: 1.3em;
        margin-bottom: 24px;
        margin-top: 32px;
    }
    
    #order-form h2:first-child {
        margin-top: 0;
    }
    
    /* Hide desktop Payment header and show mobile version with icons */
    h2.payment-header-desktop {
        display: none !important; /* Hide desktop version on mobile */
    }
    
    h2.payment-header-with-icons {
        font-size: 1.3em;
        margin: 32px 0 24px 0; /* Ensure proper spacing */
        display: flex !important; /* Show mobile version on mobile */
        align-items: center;
        gap: 12px; /* Space between "Payment" text and icons */
    }
    
    h2.payment-header-with-icons .card-icons-image {
        display: inline-block !important; /* Override desktop hidden */
        height: 1.4em; /* 2x bigger relative to the h2 text */
        width: auto; /* Maintain aspect ratio */
        opacity: 0.8;
    }
    

    
    /* Add text wrapping for product name on mobile */
    .summary-product-name {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    /* Consistent mobile padding throughout */
    .mobile-summary-content {
        padding: 24px;
    }
    
    .mobile-summary-header {
        padding: 20px 24px;
    }
}

/* Address Validation Modal */
.validation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.validation-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.validation-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.validation-status {
    margin-bottom: 20px;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 10px;
}

.warning-message {
    color: #f57c00;
    margin-bottom: 10px;
}

.validation-messages {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.validation-messages li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.address-comparison {
    margin: 20px 0;
}

.address-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.address-column {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.address-column.suggested {
    border-color: #4caf50;
    background: #f1f8e9;
}

.address-column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.address-display {
    font-size: 14px;
    line-height: 1.6;
}

.address-display p {
    margin: 5px 0;
}

.address-display.single {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.validation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.validation-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

@media (max-width: 600px) {
    .address-columns {
        grid-template-columns: 1fr;
    }
    
    .validation-actions {
        flex-direction: column;
    }
    
    .validation-actions button {
        width: 100%;
    }
}

/* Stripe Payment Element Styles */
.payment-element {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #fff;
}

/* Clean Stripe Payment Element Styles - No custom overrides */

/* Payment headers - show desktop version on desktop, mobile version on mobile */
h2.payment-header-with-icons {
    display: none; /* Hidden by default on desktop */
}
h2.payment-header-desktop {
    display: block; /* Shown by default on desktop */
}
.card-icons-image {
    display: none; /* Hidden by default on desktop */
}

/* Mobile specific adjustments for Stripe Payment Element */
@media (max-width: 768px) {
    .payment-element {
        padding: 20px;
        min-height: 60px; /* Ensure adequate touch area */
    }
    
    /* Ensure Stripe elements have proper mobile sizing */
    .payment-element input,
    .payment-element .p-Input,
    .payment-element [data-testid] input {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px !important;
        padding: 12px !important;
    }
}

.payment-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
    background-color: #ffebee;
    border: 1px solid #f8bbd9;
    display: none; /* Hidden by default, can be overridden by JavaScript */
    font-weight: 500;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.spinner-border {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Disabled button state */
.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Address confirmation message */
.address-confirmation {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
} 

/* Start order page - black CHECK OUT button */
#start-order-page .cta-button {
    background-color: #323232 !important;
    color: white !important;
}

#start-order-page .cta-button:hover {
    opacity: 0.8 !important;
}

/* Confirm order page - green PAY button */
body.checkout-page .cta-button {
    background-color: #008060 !important;
    color: white !important;
}

body.checkout-page .cta-button:hover {
    opacity: 0.8 !important;
}

/* Hero and Product section buttons - black styling */
.hero .cta-button,
.product-display .cta-button {
    background-color: #323232 !important;
    color: white !important;
}

.hero .cta-button:hover,
.product-display .cta-button:hover {
    opacity: 0.8 !important;
}

/* Hide Stripe Link elements - Comprehensive targeting */
#payment-element .p-LinkAutofillInlineSignup,
#payment-element .p-LinkAutofillModal,
#payment-element [class*="LinkAutofill"],
#payment-element [class*="link-autofill"],
#payment-element [class*="Link__"],
#payment-element [class*="--link"],
#payment-element [class*="LinkPaymentMethodPickerHeader"],
#payment-element [class*="LinkPaymentMethodPicker"],
#payment-element [class*="ConsumerLink"],
#payment-element div[class*="InlineLinkSignup"],
#payment-element div[class*="LinkCardBrand"],
#payment-element label[for*="link"],
#payment-element input[name*="link"],
#payment-element [aria-label*="Link"],
#payment-element [title*="Link"],
#payment-element .p-Link,
#payment-element .p-LinkIcon,
#payment-element .p-LinkText,
#payment-element .p-SaveForFutureUse__LinkInlineSignup,
#payment-element .p-InlineLinkSignup,
#payment-element .p-CollapsibleContainer--link,
#payment-element .Label--with-link-icon,
#payment-element input[type="checkbox"][name*="link"],
#payment-element input[type="checkbox"] + label,
#payment-element .p-CheckboxInput--link,
#payment-element .p-SaveForFutureUse,
#payment-element [data-testid*="link"] {
    display: none !important;
}

/* IMPORTANT: DO NOT hide the main payment element container or its children */
/* This was causing the entire payment form to disappear */

/* Ensure the card form is still visible */
#payment-element .p-Input,
#payment-element .p-CardNumberInput,
#payment-element .p-CardCvcInput,
#payment-element .p-CardExpiryInput {
    display: block !important;
}

/* Processing Modal Styles */
.processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.processing-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.processing-header {
    text-align: left;
    margin-bottom: 30px;
}

.processing-header h2 {
    color: #000;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 500;
}

/* Progress bar removed for minimal design */

.processing-steps {
    margin: 0;
}

.processing-step {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.processing-step:last-child {
    border-bottom: none;
}

/* Active and completed states use default styling for minimal design */

.processing-step.error .step-status {
    color: #d32f2f;
}

.processing-step.error .step-icon {
    color: #d32f2f;
}

.step-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.step-info {
    flex: 1;
}

.step-title {
    font-weight: 400;
    color: #000;
    font-size: 14px;
    margin: 0;
}

.step-status {
    color: #000;
    font-size: 12px;
    margin: 2px 0 0 0;
}

.processing-step.active .step-status {
    color: #000;
}

.processing-step.completed .step-status {
    color: #000;
}

.processing-footer {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
