/**
 * Custom Checkout Styles
 * Hides default WooCommerce notices and adds custom validation styling
 */

 #main .woocommerce-breadcrumb {
    display: none !important;
 }
/* Hide "You cannot add another" notice on checkout */
.woocommerce-info:has(a[href*="cart"]) {
    display: none !important;
}

/* Hide default WooCommerce messages (we'll show custom ones) */
.woocommerce-message {
    display: none !important;
}

/* Hide ONLY the "cannot add another" cart errors, NOT checkout validation errors */
.woocommerce-error:has(a[href*="cart"]) {
    display: none !important;
}

/* Show checkout validation errors */
.woocommerce-NoticeGroup-checkout {
    display: block !important;
}
.woocommerce-NoticeGroup {

}

/**
 * Custom validation error styling
 */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}

.woocommerce-invalid label {
    color: #ef4444 !important;
}

/* Custom error message below field */
.field-error-message,
.coupon-error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

/* Coupon input error/success states */
input[name="coupon_code"].border-red-500 {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}

input[name="coupon_code"].border-green-500 {
    border-color: #10b981 !important;
    border-width: 2px !important;
}

/* Ensure remove coupon link is clickable */
a.woocommerce-remove-coupon {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1012 !important;
    display: inline !important;
}

/* Hide WooCommerce block UI overlays on checkout (they prevent clicking) */
.woocommerce-checkout-review-order-table .blockUI,
.woocommerce-checkout-review-order-table .blockOverlay,
.woocommerce-checkout-review-order-table .blockElement {
    display: none !important;
}

/* Only show block UI on the entire checkout form, not on order review */
.woocommerce-checkout.processing .blockUI.blockOverlay {
    display: block !important;
}

/* Custom error alert at top of form */
.checkout-error-alert,
.woocommerce-NoticeGroup {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-error-alert-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #ef4444;
}

.checkout-error-alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #991b1b;
}

.checkout-error-alert-content ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.checkout-error-alert-content li {
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 0.25rem;
}

.checkout-error-alert-content li:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   SUBSCRIPTION RECURRING TOTALS - HIDDEN FOR COMPACT ORDER SUMMARY
   ============================================================================ */

/* Hide recurring totals section for cleaner order summary */
.woocommerce-checkout-review-order-table .recurring-totals,
.woocommerce-checkout-review-order-table .recurring-total,
.woocommerce-checkout-review-order-table .first-payment-date,
.woocommerce-checkout-review-order-table .subscription-details,
.woocommerce-checkout-review-order-table .recurring-totals-heading {
    display: none !important;
}

/* Subscription badge/label (kept for potential future use) */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-left: 0.5rem;
}

/* ============================================================================
   SHOPIFY-STYLE CHECKOUT IMPROVEMENTS
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. MODERN INPUT STYLING
   ---------------------------------------------------------------------------- */

/* Base input appearance - consistent heights and SHARP corners */
.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="tel"],
.woocommerce-billing-fields input[type="password"],
.woocommerce-billing-fields select,
.woocommerce-billing-fields textarea,
.woocommerce-account-fields input[type="text"],
.woocommerce-account-fields input[type="password"],
.woocommerce-account-fields select,
#coupon_code {
    height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    border: 1px solid #d1d5db;
    background-color: #fff;
    font-size: 0.9375rem;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
}

.woocommerce-billing-fields textarea {
    height: auto;
    min-height: 60px;
}

/* Brand focus states - teal border */
.woocommerce-billing-fields input[type="text"]:focus,
.woocommerce-billing-fields input[type="email"]:focus,
.woocommerce-billing-fields input[type="tel"]:focus,
.woocommerce-billing-fields input[type="password"]:focus,
.woocommerce-billing-fields select:focus,
.woocommerce-billing-fields textarea:focus,
.woocommerce-account-fields input:focus,
#coupon_code:focus {
    border-color: #104B54;
    box-shadow: 0 0 0 2px rgba(16, 75, 84, 0.1);
    outline: none;
}

/* Hover state for inputs */
.woocommerce-billing-fields input:hover:not(:focus),
.woocommerce-billing-fields select:hover:not(:focus),
.woocommerce-account-fields input:hover:not(:focus),
#coupon_code:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Select dropdown styling - Enhanced */
.woocommerce-billing-fields select,
.woocommerce-checkout select,
#billing_country,
#billing_state {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 40px;
}
.woocommerce-input-wrapper .select2-container .select2-selection--single {
    height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    font-size: 0.9375rem;
    color: #111827;
}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
}
.woocommerce-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}
/* .wc_payment_method.payment_method_stripe,
.wc_payment_method.payment_method_ppcp-gateway {
    display: flex;
    align-items: center;
    gap: 0.75rem;
} */
.wc_payment_methods .payment_box {
    justify-self: end;
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: none !important;
}
.woocommerce-billing-fields select:hover,
.woocommerce-checkout select:hover {
    border-color: #9ca3af;
}

.woocommerce-billing-fields select:focus,
.woocommerce-checkout select:focus {
    border-color: #104B54;
    box-shadow: 0 0 0 3px rgba(16, 75, 84, 0.1);
    outline: none;
}

/* Select option styling */
.woocommerce-billing-fields select option,
.woocommerce-checkout select option {
    padding: 0.75rem 1rem;
    background: #fff;
    color: #374151;
}

/* Selected option with checkmark effect */
.woocommerce-billing-fields select option:checked,
.woocommerce-checkout select option:checked {
    background: #f0f7f8;
    color: #104B54;
    font-weight: 500;
}

/* Label styling */
.woocommerce-billing-fields .form-row label,
.woocommerce-account-fields .form-row label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Required field asterisk */
.woocommerce-billing-fields .form-row label .required,
.woocommerce-account-fields .form-row label .required {
    color: #ef4444;
    margin-left: 0.125rem;
}

/* Optional label styling */
.woocommerce-billing-fields .form-row label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.8125rem;
}

/* Placeholder styling */
.woocommerce-billing-fields input::placeholder,
.woocommerce-account-fields input::placeholder,
#coupon_code::placeholder {
    color: #9ca3af;
}

/* Compact form rows */
.woocommerce-billing-fields .form-row,
.woocommerce-account-fields .form-row {
    margin-bottom: 0.625rem;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-account-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section headings - more compact */
.woocommerce-billing-fields h3,
#customer_details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ----------------------------------------------------------------------------
   2. TRUST INDICATORS
   ---------------------------------------------------------------------------- */

/* Lock icon on Place Order button */
#place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#place_order::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Trust badges below payment button */
.form-row.place-order::after {
    content: "🔒 SSL Encrypted · 💳 Secure Payment · ✓ Money-back Guarantee";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* ----------------------------------------------------------------------------
   3. BUTTON/CTA STYLING
   ---------------------------------------------------------------------------- */

/* Note: Main #place_order button styles are in Section 8 below */

/* Apply Coupon button - brand secondary style */
.apply-coupon-btn {
    height: 38px;
    padding: 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    background: #104B54;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.apply-coupon-btn:hover {
    background: #156660;
}

.apply-coupon-btn:active {
    background: #0d3d44;
}

/* Coupon form layout improvements */
.coupon-form-wrapper .flex {
    gap: 0.75rem;
}

/* Payment method selection styling improvements */
.wc_payment_methods .wc_payment_method {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    list-style: none !important;
}

.wc_payment_methods .wc_payment_method:hover {
    border-color: #d1d5db;
}

.wc_payment_methods .wc_payment_method:has(input:checked) {
    border-color: #104B54;
    box-shadow: 0 0 0 3px rgba(16, 75, 84, 0.1);
    background-color: #f8fdfb;
}

/* Radio button styling for payment methods */
.wc_payment_methods input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #104B54;
}

/* Payment box inner content */
.wc_payment_methods .payment_box {
    padding: 1rem 0 0.5rem 1.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive adjustments for Shopify styles */
@media (max-width: 640px) {
    #place_order {
        height: 52px;
        font-size: 0.9375rem;
    }
    
    .woocommerce-billing-fields input,
    .woocommerce-billing-fields select {
        height: 44px;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    
    .form-row.place-order::after {
        font-size: 0.6875rem;
    }
}

/* ============================================================================
   DRTALKS CHECKOUT DESIGN STYLES
   Following: https://drtalks.com/checkouts/depression-and-anxiety-solutions-summit-all-access-2024/
   ============================================================================ */

/* ----------------------------------------------------------------------------
   4. SECTION HEADINGS (Your Order, Your Information, etc.)
   ---------------------------------------------------------------------------- */

/* Billing section heading */
.woocommerce-billing-fields > h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #104B54;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* ----------------------------------------------------------------------------
   5. FORM SECTION STYLING (Non-invasive - works with existing Tailwind layout)
   ---------------------------------------------------------------------------- */

/* Form row spacing - only add if not already styled */
.woocommerce-billing-fields .form-row {
    margin-bottom: 0.625rem;
}

.woocommerce-billing-fields .form-row:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------------------
   6. ORDER SUMMARY BOX (Right sidebar)
   ---------------------------------------------------------------------------- */

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.625rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    color: #374151;
    text-align: left;
}

.woocommerce-checkout-review-order-table tbody td {
    color: #111827;
}

/* Product name in cart */
.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: #111827;
}

/* Product total */
.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

/* Cart subtotal row */
.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    font-weight: 500;
    color: #6b7280;
}

/* Order total row */
.woocommerce-checkout-review-order-table .order-total th {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.woocommerce-checkout-review-order-table .order-total td {
    font-weight: 700;
    font-size: 1.125rem;
    color: #104B54;
    text-align: right;
}

/* Remove bottom border from last row */
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: none;
}

/* Discount/coupon row styling */
.woocommerce-checkout-review-order-table .cart-discount th,
.woocommerce-checkout-review-order-table .cart-discount td {
    color: #059669;
}

/* ----------------------------------------------------------------------------
   7. PAYMENT INFORMATION SECTION
   ---------------------------------------------------------------------------- */

/* Payment section wrapper - minimal styling */
#payment-wrapper {
    margin-top: 1rem;
}

/* Payment security notice - clean text */
.woocommerce-checkout-payment::before {
    content: "All transactions are secure and encrypted. Credit card information is never stored on our servers.";
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 0.875rem;
}

/* Payment methods list */
.wc_payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual payment method styling - enhanced */
.wc_payment_methods .wc_payment_method {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.375rem;
    background: #fff;
    transition: all 0.15s ease;
    list-style: none !important;
}

.wc_payment_methods .wc_payment_method::marker {
    display: none !important;
    content: none !important;
}

.wc_payment_methods .wc_payment_method:last-child {
    margin-bottom: 0;
}

.wc_payment_methods .wc_payment_method:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.wc_payment_methods .wc_payment_method:has(input:checked) {
    border-color: #104B54;
    box-shadow: 0 0 0 3px rgba(16, 75, 84, 0.1);
    background-color: #f0f7f8;
}

/* Payment method label */
.wc_payment_methods .wc_payment_method label {
    display: inline-block;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

/* Payment method icons (Visa, MC, etc.) */
.wc_payment_methods .wc_payment_method label img {
    height: 24px;
    width: auto;
}

/* Payment box description */
.wc_payment_methods .payment_box {
    padding: 0.75rem 0 0 0;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
    width: 100%;
    display: block;
}

.wc_payment_methods .payment_box p {
    margin: 0 0 0.5rem 0;
}

.wc_payment_methods .payment_box p:last-child {
    margin-bottom: 0;
}

/* Saved payment methods list - hide bullet points */
.wc_payment_methods .payment_box ul,
.wc_payment_methods .payment_box ol,
.woocommerce-SavedPaymentMethods {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.wc_payment_methods .payment_box li,
.woocommerce-SavedPaymentMethods li {
    list-style: none !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wc_payment_methods .payment_box li::before,
.wc_payment_methods .payment_box li::marker,
.woocommerce-SavedPaymentMethods li::before,
.woocommerce-SavedPaymentMethods li::marker {
    display: none !important;
    content: none !important;
}

.wc_payment_methods .payment_box li:last-child,
.woocommerce-SavedPaymentMethods li:last-child {
    border-bottom: none;
}

/* Saved payment method radio buttons */
.wc_payment_methods .payment_box input[type="radio"],
.woocommerce-SavedPaymentMethods input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #104B54;
    flex-shrink: 0;
}

/* Saved payment method labels */
.wc_payment_methods .payment_box label,
.woocommerce-SavedPaymentMethods label {
    font-size: 0.9375rem;
    color: #374151;
    cursor: pointer;
}

/* Stripe card fields container */
.wc_payment_methods .wc-stripe-elements-field,
.wc_payment_methods .wc-stripe-upe-element {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 0.75rem 0.875rem;
    margin-top: 0.5rem;
}
.wc_payment_methods .wc-stripe-elements-field, .wc_payment_methods .wc-stripe-upe-element {
    background: transparent!important;
    border: none!important;
    padding: 0!important;
    margin-top: 16px!important;
}

/* ----------------------------------------------------------------------------
   8. PLACE ORDER BUTTON - DrTalks Orange/Coral Style
   ---------------------------------------------------------------------------- */

/* Place Order button - Sharp corners, solid brand color */
#place_order {
    width: 100%;
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    background: #48BA76;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.15s ease;
    margin-top: 0.75rem;
}

#place_order:hover {
    background: #3da866;
}

#place_order:active {
    background: #359959;
}

#place_order:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Lock icon on button */
#place_order::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* Trust message below button - cleaner */
.form-row.place-order::after {
    content: "";
    display: none; /* Hide the emoji version, use proper elements instead */
}

/* ----------------------------------------------------------------------------
   9. COUPON SECTION
   ---------------------------------------------------------------------------- */

/* Coupon toggle link */
.showcoupon,
.woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #48BA76;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.showcoupon:hover,
.woocommerce-form-coupon-toggle .woocommerce-info a:hover {
    color: #3da866;
    text-decoration: underline;
}

/* Coupon form container */
.coupon-form-wrapper,
.checkout_coupon {
    /* background: #f9fafb; */
    /* border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 0.625rem; */
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------------------------
   10. RETURNING CUSTOMER LOGIN LINK
   ---------------------------------------------------------------------------- */

/* Login toggle styling */
.woocommerce-form-login-toggle .woocommerce-info,
.showlogin-wrapper {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: #166534;
}

.woocommerce-form-login-toggle .woocommerce-info a,
.showlogin-wrapper a {
    color: #15803d;
    font-weight: 600;
    text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   11. PRIVACY POLICY TEXT
   ---------------------------------------------------------------------------- */

.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text  p{
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 0.75rem;
}

.woocommerce-privacy-policy-text a {
    color: #48BA76;
    text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   12. RESPONSIVE DESIGN
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Adjust button for mobile */
    #place_order {
        height: 44px;
        font-size: 0.8125rem;
    }
    
    /* Compact inputs on mobile */
    .woocommerce-billing-fields input,
    .woocommerce-billing-fields select {
        height: 40px;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        font-size: 0.75rem;
        padding: 0.375rem 0;
    }
}

.checkout-heading h3 s {
    font-weight: 700;
    font-size: 1.25rem;
    color: #600f0b;
}

/* ============================================================================
   13. CHECKOUT AUTHENTICATION FLOW
   ============================================================================ */

/* Email field states */
#billing_email.checking {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cstyle%3E.spinner{transform-origin:center;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}%3C/style%3E%3Cpath class='spinner' fill='%236b7280' d='M12 2a10 10 0 0 0-10 10h2a8 8 0 0 1 8-8V2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

#billing_email.email-exists {
    border-color: #f59e0b !important;
    background-color: #fffbeb;
}

/* Login prompt styling */
.checkout-login-prompt {
    transition: all 0.2s ease;

}
.checkout-login-prompt .bg-amber-50  {
    background-color: #feeedd;
    border: none!important;
    border-left: 4px solid #ecb481!important;
    border-radius: 0!important;
}
.checkout-login-prompt .bg-amber-50 svg {
    color: #ecb481!important;
}

.checkout-login-prompt a {
    color: inherit!important;
    font-weight: 600;
    text-decoration: underline;
}

.checkout-login-prompt a:hover {
    text-decoration: none;
}

/* Password field styling */
#checkout-password-field {
    margin-top: 1rem;
    transition: all 0.2s ease;
}

#checkout-password-field .password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#checkout-password-field input[type="password"],
#checkout-password-field input[type="text"] {
    padding-right: 44px;
    width: 100%;
}

#checkout-password-field .password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4px;
}

#checkout-password-field .password-toggle:hover svg {
    color: #374151;
}

#checkout-password-field .password-requirements {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

#checkout-password-field.password-valid input {
    border-color: #10b981 !important;
}

#checkout-password-field.password-invalid input {
    border-color: #ef4444 !important;
}

/* Place order button disabled state */
#place_order.disabled,
#place_order:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Checkout auth error styling */
.checkout-auth-error {
    margin-bottom: 1rem;
}

/* Hide elements utility */
.hidden {
    display: none !important;
}
.checkout-inline-error-message {
    color: #ef4444 !important;
    margin-top: 0.5rem;
}