/**
 * WooCommerce Checkout Page Styles
 *
 * File Name: assets/css/woocommerce-checkout.css
 * Description: Distraction-free checkout styling
 * Version: 3.1.14
 * Last Modified: 2026-04-29
 *
 * This file loads on:
 * - Checkout page only (is_checkout())
 * - Order received/thank you page
 *
 * Table of Contents:
 * 1. Distraction-Free Layout
 * 2. Checkout Header
 * 3. Billing & Shipping Forms
 * 3b. Floating Labels
 * 4. Order Review
 * 5. Payment Methods
 * 6. Place Order Button
 * 7. Checkout Notices
 * 8. Trust Signals (Optional)
 * 9. Responsive (Mobile)
 */

/* ===========================================
 * 1. Distraction-Free Layout
 * =========================================== */

/* Hide site chrome on checkout page */
/* GP native elements */
.distraction-free-checkout .site-header,
.distraction-free-checkout #masthead,
.distraction-free-checkout .site-footer,
.distraction-free-checkout .site-info,
.distraction-free-checkout #site-navigation,
.distraction-free-checkout .main-navigation,
.distraction-free-checkout .mobile-menu-control-wrapper,
.distraction-free-checkout .woocommerce-breadcrumb,
.distraction-free-checkout .top-bar,
.distraction-free-checkout .footer-widgets,
/* Elementor Theme Builder header/footer */
.distraction-free-checkout .elementor-location-header,
.distraction-free-checkout .elementor-location-footer {
    display: none;
}

/* Hide Elementor page content: CHECKOUT heading + Authorize.net badge (page 4180) */
.distraction-free-checkout .elementor-element-e587379,
.distraction-free-checkout .elementor-4180 > .elementor-element-e587379 {
    display: none !important;
}

/* Hide the bottom spacer section too */
.distraction-free-checkout .elementor-element-0db9941 {
    display: none !important;
}

/* Hide spacer above WooCommerce form */
.distraction-free-checkout .wp-block-spacer {
    display: none;
}

/* Collapsed login link (Option 1) — Ticket #429324
   Restyle the default WooCommerce "Returning customer?" banner as a compact
   inline text link. Login form stays collapsed until the link is clicked.
   WooCommerce's bundled JS handles the slideToggle. */
.distraction-free-checkout .woocommerce-form-login-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    text-align: left;
}

.distraction-free-checkout .woocommerce-form-login-toggle .woocommerce-info {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #5a5a72;
    font-size: 14px;
}

/* Hide the default WC info icon on the toggle */
.distraction-free-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
    display: none !important;
}

.distraction-free-checkout .woocommerce-form-login-toggle .showlogin {
    color: #4054b2;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.distraction-free-checkout .woocommerce-form-login-toggle .showlogin:hover {
    color: #2c3a8a;
}

/* Login form: collapsed by default (WC adds inline style="display:none"),
   restyle to fit distraction-free design when expanded */
.distraction-free-checkout .woocommerce-form-login {
    background: #fff;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 16px 0;
}

.distraction-free-checkout .woocommerce-form-login .form-row {
    margin-bottom: 12px;
}

.distraction-free-checkout .woocommerce-form-login .lost_password {
    margin-top: 8px;
    font-size: 13px;
}

/* Clean background */
.distraction-free-checkout {
    background-color: #fafbfc;
}

/* Constrain checkout content width */
.distraction-free-checkout .site-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ===========================================
 * 2. Checkout Header
 * =========================================== */

/* Sticky header bar with logo left, secure badge right */
.og-checkout-header {
    background: #fff;
    border-bottom: 1px solid #e2e4ea;
    padding: 12px 0;
    margin: 0 -24px 24px;
}

.og-checkout-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.og-checkout-logo-link {
    display: flex;
    align-items: center;
}

.og-checkout-logo,
.og-checkout-logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
}

.og-checkout-site-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

.og-checkout-secure-badge {
    font-size: 12px;
    color: #5a5a72;
    letter-spacing: 0.02em;
}


/* ===========================================
 * 3. Billing & Shipping Forms
 * =========================================== */

/* Compact field spacing */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.distraction-free-checkout .woocommerce-additional-fields__field-wrapper .form-row {
    margin-bottom: 10px;
}

/* Field labels: small uppercase */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper label,
.distraction-free-checkout .woocommerce-additional-fields__field-wrapper label,
.distraction-free-checkout .woocommerce-account-fields label {
    font-size: 12px;
    font-weight: 500;
    color: #5a5a72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

/* ThemeHigh HTML field (T&C notice) — normal case, not uppercase */
.distraction-free-checkout .thwcfe-html-field-wrapper label {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    color: #5a5a72 !important;
}

/* Input styling */
.distraction-free-checkout .woocommerce input.input-text,
.distraction-free-checkout .woocommerce select,
.distraction-free-checkout .woocommerce textarea {
    padding: 10px 12px;
    border: 1px solid #e2e4ea;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.distraction-free-checkout .woocommerce input.input-text:focus,
.distraction-free-checkout .woocommerce select:focus,
.distraction-free-checkout .woocommerce textarea:focus {
    border-color: #4054b2;
    box-shadow: 0 0 0 3px rgba(64, 84, 178, 0.08);
    outline: none;
}

/* Hide company name and address_2 fields */
.distraction-free-checkout #billing_company_field,
.distraction-free-checkout #billing_address_2_field {
    display: none !important;
}

/* Override WooCommerce form-row-wide which forces width:100% and clear:both */
.distraction-free-checkout .woocommerce-checkout p.form-row.form-row-wide {
    clear: none !important;
}

/* All billing inputs and selects: full width within their container */
.distraction-free-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
.distraction-free-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper select,
.distraction-free-checkout .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .select2-container {
    width: 100% !important;
}

/* Allow select2 container to grow with content on tablet/mobile while filling parent */
.distraction-free-checkout span.select2.select2-container.select2-container--default {
    width: auto !important;
    min-width: 100%;
}

/* Hide select2 clear button (x) inside dropdown */
.distraction-free-checkout .select2-container--default .select2-selection--single .select2-selection__clear {
    display: none;
}

/* First name + Last name side by side */
.distraction-free-checkout .woocommerce-checkout #billing_first_name_field,
.distraction-free-checkout .woocommerce-checkout #billing_last_name_field {
    width: 50% !important;
    float: left !important;
    clear: none !important;
}

.distraction-free-checkout .woocommerce-checkout #billing_first_name_field {
    padding-right: 6px;
}

.distraction-free-checkout .woocommerce-checkout #billing_last_name_field {
    padding-left: 6px;
}

/* City, State, Postcode on one row */
.distraction-free-checkout .woocommerce-checkout #billing_city_field,
.distraction-free-checkout .woocommerce-checkout #billing_state_field,
.distraction-free-checkout .woocommerce-checkout #billing_postcode_field {
    width: 33.33% !important;
    float: left !important;
    clear: none !important;
}

.distraction-free-checkout .woocommerce-checkout #billing_city_field {
    padding-right: 6px;
}

.distraction-free-checkout .woocommerce-checkout #billing_state_field {
    padding-left: 6px;
    padding-right: 6px;
}

.distraction-free-checkout .woocommerce-checkout #billing_postcode_field {
    padding-left: 6px;
}

/* Phone and Email side by side */
.distraction-free-checkout .woocommerce-checkout #billing_phone_field,
.distraction-free-checkout .woocommerce-checkout #billing_email_field {
    width: 50% !important;
    float: left !important;
    clear: none !important;
}

.distraction-free-checkout .woocommerce-checkout #billing_phone_field {
    padding-right: 6px;
}

.distraction-free-checkout .woocommerce-checkout #billing_email_field {
    padding-left: 6px;
}

/* Clear floats after billing field wrapper */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper::after {
    content: '';
    display: table;
    clear: both;
}

/* Section headings */
.distraction-free-checkout .woocommerce-billing-fields h3,
.distraction-free-checkout .woocommerce-additional-fields h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 0 !important;
    margin-bottom: 16px;
    padding-top: 0 !important;
    letter-spacing: -0.01em;
}

/* Reset top spacing on column wrappers so left "Billing details" heading
   aligns with right "Your order" heading (both start at column top).
   Note: #customer_details and .col2-set excluded — handled separately to allow negative margin alignment */
.distraction-free-checkout .col2-set > .col-1,
.distraction-free-checkout .col2-set > .col-2,
.distraction-free-checkout .woocommerce-billing-fields,
.distraction-free-checkout .woocommerce-shipping-fields,
.distraction-free-checkout .woocommerce-additional-fields {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.distraction-free-checkout .woocommerce-additional-fields h3 {
    margin-top: 24px;
    padding-top: 24px !important;
    border-top: 1px solid #e2e4ea;
}

/* Textarea compact */
.distraction-free-checkout .woocommerce textarea {
    min-height: 60px;
}

/* --- Floating Labels --- */

/* Hide original billing labels (additional info fields keep their labels) */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row > label.hidden,
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row > label:not(.checkbox) {
    display: none !important;
}

/* Wrapper positioning for floating label */
.distraction-free-checkout .woocommerce form .form-row .woocommerce-input-wrapper.has-float-label {
    position: relative;
    display: block;
    width: 100%;
}

/* Floating label via ::before pseudo-element */
.distraction-free-checkout .woocommerce form .form-row .woocommerce-input-wrapper.has-float-label::before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 4px;
    font-size: 14px;
    color: #888;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: all 0.15s ease;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Float label up on focus or has content */
.distraction-free-checkout .woocommerce form .form-row .woocommerce-input-wrapper.has-float-label.is-active::before,
.distraction-free-checkout .woocommerce form .form-row .woocommerce-input-wrapper.has-float-label.has-content::before {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: #4054b2;
    background-color: #fff;
    opacity: 1;
}

/* Placeholder visible when empty, hidden when floating */
.distraction-free-checkout .form-row .has-float-label input::placeholder,
.distraction-free-checkout .form-row .has-float-label textarea::placeholder {
    color: #888;
    transition: opacity 0.15s ease;
}

.distraction-free-checkout .form-row .has-float-label.is-active input::placeholder,
.distraction-free-checkout .form-row .has-float-label.has-content input::placeholder,
.distraction-free-checkout .form-row .has-float-label.is-active textarea::placeholder,
.distraction-free-checkout .form-row .has-float-label.has-content textarea::placeholder {
    opacity: 0;
}

/* Textarea — label at top not vertically centered */
.distraction-free-checkout .form-row .woocommerce-input-wrapper.has-float-label:has(textarea)::before {
    top: 14px;
    transform: none;
}

.distraction-free-checkout .form-row .woocommerce-input-wrapper.has-float-label.is-active:has(textarea)::before,
.distraction-free-checkout .form-row .woocommerce-input-wrapper.has-float-label.has-content:has(textarea)::before {
    top: 0;
    transform: translateY(-50%);
}

/* Hide native input/textarea placeholders — ::before acts as the floating label */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row .has-float-label input::placeholder,
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row .has-float-label textarea::placeholder {
    opacity: 0 !important;
}

/* Hide select2 placeholder text — ::before acts as the floating label */
.distraction-free-checkout .woocommerce-billing-fields__field-wrapper .form-row .has-float-label .select2-selection__placeholder {
    opacity: 0 !important;
}

/* Country and State fields use select2 — adjust label position */
.distraction-free-checkout #billing_country_field .woocommerce-input-wrapper.has-float-label::before,
.distraction-free-checkout #billing_state_field .woocommerce-input-wrapper.has-float-label::before {
    top: 15% !important;
    transform: none !important;
}
.distraction-free-checkout #billing_country_field .woocommerce-input-wrapper.has-float-label.is-active::before,
.distraction-free-checkout #billing_country_field .woocommerce-input-wrapper.has-float-label.has-content::before,
.distraction-free-checkout #billing_state_field .woocommerce-input-wrapper.has-float-label.is-active::before,
.distraction-free-checkout #billing_state_field .woocommerce-input-wrapper.has-float-label.has-content::before {
    top: 0 !important;
    transform: translateY(-50%) !important;
}

/* Select2 country/state fields — display: block breaks Select2 layout on all browsers.
   Use inline-block to preserve Select2 rendering while keeping position: relative intact. */
.distraction-free-checkout #billing_country_field .woocommerce-input-wrapper.has-float-label,
.distraction-free-checkout #billing_state_field .woocommerce-input-wrapper.has-float-label {
    display: inline-block !important;
}

/* ===========================================
 * 4. Order Review
 * =========================================== */

/* Order review heading */
/* Align "Your order" heading with "Billing details" */
.distraction-free-checkout #order_review_heading {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.01em;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Remove extra spacing from col-2 to align with col-1 */
.distraction-free-checkout .col2-set .col-2 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Note: sticky not applied — floated elements cannot be sticky */

/* Pull billing column up to align with order review heading */
.distraction-free-checkout .col2-set {
    margin-top: -15px !important;
}

/* Spacing between billing heading and form */
.distraction-free-checkout .woocommerce-billing-fields h3 {
    margin-bottom: 33px;
}

/* Stripe express checkout separator spacing */
p#wc-stripe-express-checkout-button-separator {
    margin-bottom: 3em;
}

/* Remove default margins on Cloudflare Turnstile and other empty <p> wrappers */
.distraction-free-checkout #order_review > p,
.distraction-free-checkout form.checkout > p {
    margin: 0;
}

/* Checkout two-column layout: col2-set (left) + order_review (right) must = 100%
   GP Premium default: 53% + 6% gap + 41% = 100% (too much white space)
   Override: 55% + 2% gap + 43% = 100% (tighter, less gap) */
.distraction-free-checkout .col2-set {
    width: 55% !important;
    margin-right: 2% !important;
}

.distraction-free-checkout #order_review,
.distraction-free-checkout #order_review_heading {
    width: 43% !important;
    float: right !important;
    margin-right: 0 !important;
}

/* Remove gap between heading and table, flex for reordering turnstile */
.distraction-free-checkout .woocommerce-checkout-review-order {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Order review card container */
.distraction-free-checkout .woocommerce table.shop_table.woocommerce-checkout-review-order-table {
    background: #fff !important;
    border: 1px solid #e2e4ea !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
}

/* Table header row */
.distraction-free-checkout .woocommerce table.shop_table thead th {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #5a5a72 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    background: #fafbfc !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid #e2e4ea !important;
    border-top: none !important;
}

/* Table body cells */
.distraction-free-checkout .woocommerce table.shop_table tbody td {
    padding: 14px 20px !important;
    font-size: 13px !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    border-top: none !important;
    border-bottom: 1px solid #f4f5f7 !important;
    background: #fff !important;
    text-align: left !important;
}

.distraction-free-checkout .woocommerce table.shop_table tbody td.product-total {
    font-weight: 600 !important;
    white-space: nowrap;
    text-align: right !important;
}

/* Product name left aligned */
.distraction-free-checkout .woocommerce table.shop_table tbody td.product-name {
    text-align: left !important;
}

/* Table footer (subtotal, total) */
.distraction-free-checkout .woocommerce table.shop_table tfoot th,
.distraction-free-checkout .woocommerce table.shop_table tfoot td {
    padding: 10px 20px !important;
    font-size: 13px !important;
    color: #5a5a72 !important;
    border-top: none !important;
    border-bottom: 1px solid #f4f5f7 !important;
    background: #fff !important;
}

.distraction-free-checkout .woocommerce table.shop_table tfoot th {
    text-align: left !important;
    font-weight: 600 !important;
}

.distraction-free-checkout .woocommerce table.shop_table tfoot td {
    text-align: right !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
}

/* Total row — prominent */
.distraction-free-checkout .woocommerce table.shop_table .order-total th,
.distraction-free-checkout .woocommerce table.shop_table .order-total td {
    border-top: 1px solid #e2e4ea !important;
    border-bottom: none !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background: #fff !important;
}

.distraction-free-checkout .woocommerce table.shop_table .order-total th {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
}

.distraction-free-checkout .woocommerce table.shop_table .order-total td {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    letter-spacing: -0.02em;
}

/* Recurring totals (subscriptions) — smaller */
.distraction-free-checkout .woocommerce table.shop_table .recurring-totals th {
    font-size: 12px !important;
    color: #5a5a72 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    background: #fafbfc !important;
}


/* ===========================================
 * 5. Payment Methods
 * =========================================== */

/* Payment card container — matches mockup: white bg, border, rounded, padding */
.distraction-free-checkout #payment {
    background: #fff !important;
    border: 1px solid #e2e4ea !important;
    border-radius: 10px !important;
    margin-top: 16px !important;
    padding: 20px !important;
    overflow: visible !important;
}

/* Remove WooCommerce default payment background/border */
.distraction-free-checkout #payment .payment_methods {
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    list-style: none !important;
    border-bottom: 1px solid #e2e4ea !important;
    background: transparent !important;
}

.distraction-free-checkout #payment .payment_methods li {
    background: transparent !important;
    margin: 0 !important;
}

/* Payment method label — mockup: white bg, flex row, space-between for icons */
.distraction-free-checkout #payment .payment_methods li label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 0 16px 0 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.distraction-free-checkout #payment .payment_methods li label img {
    height: 24px !important;
    width: auto !important;
    border-radius: 3px;
}

/* Payment box content (card form area) */
.distraction-free-checkout #payment .payment_box {
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
}

.distraction-free-checkout #payment .payment_box::before {
    display: none !important;
}

.distraction-free-checkout #payment .payment_box p {
    font-size: 13px;
    color: #5a5a72;
    margin-bottom: 16px;
}

/* Credit card form fields */
.distraction-free-checkout .wc-credit-card-form {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.distraction-free-checkout .wc-credit-card-form .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
}

.distraction-free-checkout .wc-credit-card-form label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #5a5a72 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.distraction-free-checkout .wc-credit-card-form input.input-text {
    padding: 10px 12px !important;
    border: 1px solid #e2e4ea !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    width: 100% !important;
    background: #fff !important;
    color: #1a1a2e !important;
}

.distraction-free-checkout .wc-credit-card-form input.input-text:focus {
    border-color: #4054b2 !important;
    box-shadow: 0 0 0 3px rgba(64, 84, 178, 0.08) !important;
    outline: none !important;
}

/* Expiry and CVC side by side */
.distraction-free-checkout .wc-credit-card-form .form-row-first {
    width: 50% !important;
    float: left !important;
    padding-right: 6px !important;
    clear: none !important;
}

.distraction-free-checkout .wc-credit-card-form .form-row-last {
    width: 50% !important;
    float: left !important;
    padding-left: 6px !important;
    clear: none !important;
}

/* Clear after card fields */
.distraction-free-checkout .wc-credit-card-form .clear {
    clear: both;
}

/* Save to account checkbox — inline */
.distraction-free-checkout .woocommerce-SavedPaymentMethods-saveNew {
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.distraction-free-checkout .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
    margin: 0 !important;
    width: auto !important;
}

.distraction-free-checkout .woocommerce-SavedPaymentMethods-saveNew label {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    color: #1a1a2e !important;
    margin: 0 !important;
}

/* Hide saved payment methods empty list */
.distraction-free-checkout .wc-saved-payment-methods[data-count="0"] {
    display: none !important;
}

/* Place order section — inside payment card, inherit card padding */
.distraction-free-checkout .place-order {
    padding: 16px 0 0 0 !important;
    margin: 0 !important;
    border-top: none !important;
    clear: both;
}

/* Remove WooCommerce float on place order button */
.distraction-free-checkout #payment #place_order {
    float: none !important;
}


/* ===========================================
 * 6. Place Order Button
 * =========================================== */

/* Full-width prominent button */
.distraction-free-checkout #place_order {
    width: 100%;
    padding: 14px 24px;
    background: #4054b2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
    margin-top: 12px;
}

.distraction-free-checkout #place_order:hover {
    background: #2e3d8f;
}

.distraction-free-checkout #place_order:active {
    transform: scale(0.995);
}

/* Secure note below button */
.distraction-free-checkout #place_order + .woocommerce-process-checkout-nonce,
.distraction-free-checkout .place-order::after {
    content: none;
}

/* Add secure note after the entire payment card */
.distraction-free-checkout #payment::after {
    content: '\1F512  Secure 256-bit SSL encrypted checkout';
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #5a5a72;
}


/* ===========================================
 * 7. Checkout Notices
 * =========================================== */

/* Terms and conditions compact styling */
.distraction-free-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 13px;
    color: #5a5a72;
    line-height: 1.45;
}

.distraction-free-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #4054b2;
    text-decoration: none;
    font-weight: 500;
}

/* Privacy policy text */
.distraction-free-checkout .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #5a5a72;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e4ea;
}

/* Terms checkbox inline */
.distraction-free-checkout .woocommerce-terms-and-conditions-wrapper .form-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.distraction-free-checkout .woocommerce-terms-and-conditions-wrapper .form-row input[type="checkbox"] {
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}

/* Flex order: PayPal button first, then table, payment, turnstile */
.distraction-free-checkout .ppc-button-wrapper {
    order: -1 !important;
}

.distraction-free-checkout .woocommerce-checkout-review-order-table {
    order: 1;
}

.distraction-free-checkout #payment {
    order: 2;
}

/* Turnstile — sits below payment card */
.distraction-free-checkout .cf-turnstile {
    order: 3;
    margin: 0 !important;
    padding: 8px 0 !important;
    text-align: center;
}

.distraction-free-checkout .cf-turnstile-br {
    display: none !important;
}

/* Hide stray br tags from turnstile */
.distraction-free-checkout .woocommerce-checkout-review-order > br {
    display: none !important;
}

/* Select2 dropdown styling to match inputs */
.distraction-free-checkout .select2-container--default .select2-selection--single {
    border: 1px solid #e2e4ea;
    border-radius: 6px;
    height: auto;
    padding: 10px 12px;
}

.distraction-free-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    color: #1a1a2e;
    font-size: 14px;
}

.distraction-free-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
}


/* ===========================================
 * 8. Trust Signals (Optional)
 * =========================================== */

/* Hide the "Have a coupon? Click here" toggle banner — form is always visible */
.distraction-free-checkout .woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Coupon form — always visible, input and button on one row.
 * WooCommerce renders input in .form-row-first and button in .form-row-last
 * as separate <p> elements. Flex on the form aligns them into one row.
 * display:flex overrides WooCommerce's default display:none on the form. */
.distraction-free-checkout .checkout_coupon.woocommerce-form-coupon {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.distraction-free-checkout .checkout_coupon .form-row-first {
    flex: 0 0 250px !important;
    float: none !important;
    width: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.distraction-free-checkout .checkout_coupon .form-row-last {
    flex-shrink: 0 !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 17px !important;
}

.distraction-free-checkout .checkout_coupon .input-text {
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

.distraction-free-checkout .checkout_coupon .input-text::placeholder {
    color: #aaa !important;
    font-size: 14px !important;
}

.distraction-free-checkout .checkout_coupon .button {
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.distraction-free-checkout .checkout_coupon .clear {
    display: none !important;
}

/* Account creation notice — shown above Place Order when WC Subscriptions
 * bypasses the checkbox (always present for subscription-containing carts) */
.og-account-creation-notice {
    font-size: 13px;
    color: #1a1a2e;
    background: #f0f4ff;
    border-left: 3px solid #4054b2;
    margin: 0 0 14px;
    padding: 10px 12px;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
}

/* Trust signals bar below payment button (disabled by default) */
.og-checkout-trust-signals {
    text-align: center;
    padding: 15px 0;
    margin-top: 15px;
    color: #5a5a72;
    font-size: 13px;
}

.og-trust-item {
    display: inline-block;
    margin: 0 12px;
}


/* ===========================================
 * 9. Responsive (Mobile)
 * =========================================== */

@media (max-width: 860px) {
    /* Stack columns */
    .distraction-free-checkout .col2-set .col-1,
    .distraction-free-checkout .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
    }

    .distraction-free-checkout .col-2 {
        position: static !important;
        margin-top: 24px !important;
    }

    /* Stack all paired fields on mobile */
    .distraction-free-checkout .woocommerce-checkout #billing_first_name_field,
    .distraction-free-checkout .woocommerce-checkout #billing_last_name_field,
    .distraction-free-checkout .woocommerce-checkout #billing_city_field,
    .distraction-free-checkout .woocommerce-checkout #billing_state_field,
    .distraction-free-checkout .woocommerce-checkout #billing_postcode_field,
    .distraction-free-checkout .woocommerce-checkout #billing_phone_field,
    .distraction-free-checkout .woocommerce-checkout #billing_email_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Stack payment card fields */
    .distraction-free-checkout .wc-credit-card-form .form-row-first,
    .distraction-free-checkout .wc-credit-card-form .form-row-last {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Tighten content padding */
    .distraction-free-checkout .site-content {
        padding: 0 16px;
    }

    .og-checkout-header {
        margin: 0 -16px 20px;
    }

    .og-checkout-header-inner {
        padding: 0 16px;
    }

    /* Reset order review and col2-set float/width on mobile */
    .distraction-free-checkout .col2-set,
    .distraction-free-checkout #order_review_heading,
    .distraction-free-checkout #order_review {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
    }

    .distraction-free-checkout #order_review_heading {
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }
}
