/* ============================================
   SIMPLIFIEDCIRCLE STUDIO - CHECKOUT
   Matches the Yoga & Wellness Theme exactly
   ============================================ */

/* Use the same theme variables */
:root {
    /* Primary - Deep Teal (from theme-yoga.css) */
    --checkout-primary: #146a7f;
    --checkout-primary-hover: #0f5666;
    --checkout-primary-light: #1a8299;

    /* Secondary - Warm Gold */
    --checkout-secondary: #c98c30;
    --checkout-secondary-light: #daa44d;

    /* Accent - Warm Cream */
    --checkout-accent: #f7f3ec;
    --checkout-accent-light: #fdfcfa;
    --checkout-accent-dark: #ebe5da;

    /* Text */
    --checkout-text: #1d1e36;
    --checkout-text-muted: #5a5b6d;

    /* Gradients */
    --checkout-gradient: linear-gradient(135deg, #146a7f 0%, #1a8299 100%);
    --checkout-gradient-gold: linear-gradient(135deg, #c98c30 0%, #daa44d 100%);
    --checkout-gradient-warm: linear-gradient(180deg, #f7f3ec 0%, #ffffff 100%);

    /* Shadows */
    --checkout-shadow: 0 4px 20px rgba(20, 106, 127, 0.12);
    --checkout-shadow-hover: 0 8px 30px rgba(20, 106, 127, 0.18);

    /* Border radius */
    --checkout-radius: 16px;
    --checkout-radius-sm: 10px;
}

/* ============================================
   FULL PAGE TAKEOVER
   ============================================ */

body.woocommerce-checkout {
    background: var(--checkout-gradient-warm) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh !important;
}

/* Hide ALL theme and plugin chrome - clean slate */
body.woocommerce-checkout #wpadminbar,
body.woocommerce-checkout header,
body.woocommerce-checkout footer,
body.woocommerce-checkout #masthead,
body.woocommerce-checkout #colophon,
body.woocommerce-checkout .site-header,
body.woocommerce-checkout .site-footer,
body.woocommerce-checkout .site-branding,
body.woocommerce-checkout .storefront-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-checkout .storefront-handheld-footer-bar,
body.woocommerce-checkout #secondary,
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message:not(.woocommerce-error),
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
body.woocommerce-checkout .scs-checkout-header,
body.woocommerce-checkout .scs-checkout-progress,
body.woocommerce-checkout .scs-checkout-branding,
body.woocommerce-checkout .scs-secure-checkout,
body.woocommerce-checkout .scs-checkout-studio-name,
body.woocommerce-checkout .scs-progress-step,
body.woocommerce-checkout .scs-progress-line,
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout nav.woocommerce-breadcrumb,
body.woocommerce-checkout .edit-link,
body.woocommerce-checkout .post-edit-link,
body.woocommerce-checkout a[href*="post.php"],
body.woocommerce-checkout a[href*="action=edit"],
body.woocommerce-checkout .entry-footer,
body.woocommerce-checkout footer.entry-footer,
body.woocommerce-checkout span.edit-link,
body.woocommerce-checkout .wp-block-post-edit-link {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-checkout,
html.admin-bar body.woocommerce-checkout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.woocommerce-checkout #page,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout main,
body.woocommerce-checkout article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

body.woocommerce-checkout .woocommerce {
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 40px 24px 60px !important;
}

/* ============================================
   HERO SECTION - PRODUCT SHOWCASE
   ============================================ */

.scs-checkout-hero {
    background: #ffffff;
    border-radius: var(--checkout-radius);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--checkout-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Teal accent bar at top (matches theme) */
.scs-checkout-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--checkout-gradient);
}

/* Greeting */
.scs-hero-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: var(--checkout-text-muted);
    margin-bottom: 24px;
}

.scs-wave {
    font-size: 20px;
}

/* Product Card - Teal gradient */
.scs-hero-product {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--checkout-gradient);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: white;
    text-align: left;
    box-shadow: 0 4px 15px rgba(20, 106, 127, 0.35);
}

.scs-product-badge {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scs-product-badge svg {
    stroke: white;
    width: 22px;
    height: 22px;
}

.scs-product-info {
    flex: 1;
    min-width: 0;
}

.scs-product-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: white;
}

.scs-product-description {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.scs-product-price {
    text-align: right;
    flex-shrink: 0;
}

.scs-price-amount {
    font-size: 26px;
    font-weight: 700;
}

/* Benefits */
.scs-hero-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.scs-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--checkout-text-muted);
}

.scs-benefit svg {
    stroke: var(--checkout-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Guest header */
.scs-checkout-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--checkout-text);
    margin: 0 0 8px 0;
}

.scs-checkout-subtitle {
    font-size: 15px;
    color: var(--checkout-text-muted);
    margin: 0;
}

/* ============================================
   FORM SECTION
   ============================================ */

body.woocommerce-checkout form.checkout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.woocommerce-checkout #customer_details {
    background: #ffffff;
    border-radius: var(--checkout-radius);
    padding: 24px;
    box-shadow: var(--checkout-shadow);
    border: 1px solid var(--checkout-accent-dark);
    width: 100% !important;
}

/* Override WooCommerce col2-set layout */
body.woocommerce-checkout #customer_details.col2-set {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-checkout #customer_details.col2-set::before,
body.woocommerce-checkout #customer_details.col2-set::after {
    display: none !important;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide shipping column */
body.woocommerce-checkout #customer_details .col-2 {
    display: none !important;
}

/* Billing details header */
body.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--checkout-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

body.woocommerce-checkout .woocommerce-billing-fields h3::before {
    display: none !important;
}

/* Hide address fields */
body.woocommerce-checkout #billing_company_field,
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_address_2_field,
body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_postcode_field,
body.woocommerce-checkout #order_comments_field,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

/* Form fields */
body.woocommerce-checkout .form-row {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--checkout-text);
    margin-bottom: 6px;
}

body.woocommerce-checkout .form-row label .optional {
    color: var(--checkout-text-muted);
    font-weight: 400;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid var(--checkout-accent-dark);
    border-radius: var(--checkout-radius-sm);
    background: #ffffff;
    color: var(--checkout-text);
    transition: all 0.25s ease;
    -webkit-appearance: none;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row select:focus {
    border-color: var(--checkout-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 106, 127, 0.12);
}

/* Name fields side by side */
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout .form-row-first {
    margin-right: 16px !important;
}

/* Ensure billing fields wrapper is full width */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    width: 100% !important;
}

/* Readonly email field */
body.woocommerce-checkout .scs-readonly-field input {
    background: var(--checkout-accent) !important;
    border-color: transparent !important;
    color: var(--checkout-text) !important;
}

/* ============================================
   TERMS CHECKBOX
   ============================================ */

body.woocommerce-checkout .scs-checkout-fields {
    background: transparent;
    padding: 0;
    margin-top: 4px;
}

body.woocommerce-checkout .scs-terms-section,
body.woocommerce-checkout .scs-waiver-section {
    margin: 0;
}

body.woocommerce-checkout .scs-terms-checkbox,
body.woocommerce-checkout .scs-waiver-checkbox,
body.woocommerce-checkout .scs-terms-section .form-row,
body.woocommerce-checkout .scs-waiver-section .form-row {
    width: 100% !important;
}

body.woocommerce-checkout .scs-terms-checkbox label,
body.woocommerce-checkout .scs-waiver-checkbox label {
    display: inline !important;
    font-size: 14px;
    line-height: 1.6;
    color: var(--checkout-text-muted);
    cursor: pointer;
}

body.woocommerce-checkout .scs-terms-checkbox input[type="checkbox"],
body.woocommerce-checkout .scs-waiver-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    accent-color: var(--checkout-primary);
    cursor: pointer;
}

body.woocommerce-checkout .scs-terms-link,
body.woocommerce-checkout .scs-waiver-link {
    color: var(--checkout-primary) !important;
    text-decoration: underline;
}

/* ============================================
   ORDER REVIEW / PAYMENT
   ============================================ */

body.woocommerce-checkout #order_review {
    background: #ffffff;
    border-radius: var(--checkout-radius);
    padding: 24px;
    box-shadow: var(--checkout-shadow);
    border: 1px solid var(--checkout-accent-dark);
    width: 100% !important;
}

body.woocommerce-checkout #order_review * {
    max-width: 100% !important;
}

body.woocommerce-checkout #payment .form-row {
    width: 100% !important;
}

/* Hide order table when hero shows product */
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    display: none !important;
}

/* Payment methods */
body.woocommerce-checkout #payment {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

body.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border: none;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    background: var(--checkout-accent);
    border: 2px solid var(--checkout-accent-dark);
    border-radius: var(--checkout-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

body.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--checkout-primary-light);
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input:checked + label {
    color: var(--checkout-primary);
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--checkout-text);
    cursor: pointer;
}

body.woocommerce-checkout #payment .payment_box {
    background: transparent;
    padding: 10px 0 0 28px;
    margin: 0;
    font-size: 13px;
    color: var(--checkout-text-muted);
}

body.woocommerce-checkout #payment .payment_box::before {
    display: none;
}

/* Privacy text */
body.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--checkout-text-muted);
    text-align: center;
    margin: 16px 0;
    padding: 0;
    background: transparent;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: var(--checkout-primary);
}

/* ============================================
   THE BUTTON - TEAL GRADIENT (MATCHES THEME)
   ============================================ */

body.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--checkout-gradient);
    border: none;
    border-radius: var(--checkout-radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(20, 106, 127, 0.35);
    white-space: nowrap;
}

body.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: var(--checkout-shadow-hover);
}

body.woocommerce-checkout #place_order:active {
    transform: translateY(0);
}

/* ============================================
   SECURE FOOTER
   ============================================ */

body.woocommerce-checkout #payment::after {
    content: '🔒 Secure checkout';
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--checkout-text-muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--checkout-accent-dark);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    body.woocommerce-checkout .woocommerce {
        padding: 24px 16px 40px;
    }

    .scs-checkout-hero {
        padding: 24px 20px;
    }

    .scs-hero-greeting {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .scs-hero-product {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }

    .scs-product-info {
        text-align: center;
    }

    .scs-product-name {
        font-size: 17px;
    }

    .scs-product-price {
        text-align: center;
    }

    .scs-price-amount {
        font-size: 24px;
    }

    .scs-hero-benefits {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .scs-checkout-title {
        font-size: 22px;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review {
        padding: 20px 16px;
    }

    body.woocommerce-checkout .form-row-first,
    body.woocommerce-checkout .form-row-last {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
    }

    body.woocommerce-checkout #place_order {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ============================================
   ERROR STATES
   ============================================ */

body.woocommerce-checkout .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--checkout-radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    list-style: none;
}

body.woocommerce-checkout .woocommerce-error::before {
    display: none;
}

/* ============================================
   LOADING STATES
   ============================================ */

body.woocommerce-checkout.processing .woocommerce {
    opacity: 0.6;
    pointer-events: none;
}

body.woocommerce-checkout .blockUI.blockOverlay {
    background: transparent !important;
}
