/*** WooCommerce Checkout Page ***/
/* =========================================================
   International Implant Institute - Checkout Redesign
   Main updates:
   - Primary color: #e14c2b
   - Section heading dash restored
   - Place Order button radius: 10px
   - Wider right column for payment usability
   - Card icons aligned inline with card number field
   - Expiry / CVV corrected
========================================================= */


/* =========================================================
   Base Layout
========================================================= */

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

body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .entry-content > .woocommerce {
    max-width: 1240px !important;
    margin-left: auto;
    margin-right: auto;
}

body.woocommerce-checkout .entry-content {
    padding: 2rem 1rem 4rem;
}

/* Optional: hide breadcrumbs on checkout if present
body.woocommerce-checkout nav.woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-checkout .breadcrumbs,
body.woocommerce-checkout .rank-math-breadcrumb,
body.woocommerce-checkout .yoast-breadcrumb {
    display: none !important;
}*/


/* =========================================================
   Notices
========================================================= */

body.woocommerce-checkout .entry-content .woocommerce-message,
body.woocommerce-checkout .entry-content .woocommerce-error {
    border: 0 !important;
    border-top: 4px solid #e14c2b !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    padding: 0.9rem 1rem !important;
    color: #1f1720;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    column-gap: 0.9rem !important;
    row-gap: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout .entry-content .woocommerce-message {
    border-top-color: #e14c2b !important;
}

body.woocommerce-checkout .entry-content .woocommerce-error {
    border-top-color: #e14c2b !important;
}

body.woocommerce-checkout .entry-content .woocommerce-message::before,
body.woocommerce-checkout .entry-content .woocommerce-error::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    display: block !important;
    color: #e14c2b !important;
}

body.woocommerce-checkout .entry-content .woocommerce-message .button,
body.woocommerce-checkout .entry-content .woocommerce-error .button {
    float: none !important;
    margin: 0 0 0 1rem !important;
    white-space: nowrap !important;
    align-self: center !important;
    background: #e14c2b !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.woocommerce-checkout .entry-content .woocommerce-message .button:hover,
body.woocommerce-checkout .entry-content .woocommerce-error .button:hover {
    background: #c7482c !important;
    color: #ffffff !important;
}


/* =========================================================
   Coupon Toggle
========================================================= */

body.woocommerce-checkout .entry-content .woocommerce-form-coupon-toggle .woocommerce-info {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #1f1720 !important;
    padding: 0.25rem 0 !important;
    padding-left: 1rem !important;
    margin: 0 0 1rem !important;
    font-size: 1rem !important;
}

body.woocommerce-checkout .entry-content .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}

body.woocommerce-checkout .entry-content .checkout_coupon,
body.woocommerce-checkout .entry-content .woocommerce-form-login {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 22px rgba(31, 23, 32, 0.05);
}


/* =========================================================
   Reset WooCommerce Layout Defaults
========================================================= */

body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after,
body.woocommerce-checkout #customer_details::before,
body.woocommerce-checkout #customer_details::after {
    content: "";
    display: table;
    clear: both;
}

body.woocommerce-checkout .entry-content .col2-set,
body.woocommerce-checkout .entry-content .col2-set .col-1,
body.woocommerce-checkout .entry-content .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}


/* =========================================================
   Main Checkout Layout
   Right column widened for payment usability
========================================================= */

body.woocommerce-checkout form.checkout {
    display: block !important;
    margin-top: 1.5rem;
    width: 100%;
}

body.woocommerce-checkout #customer_details {
    float: left !important;
    width: calc(60% - 1rem) !important;
    margin-right: 2rem !important;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(31, 23, 32, 0.06);
}

body.woocommerce-checkout #order_review_heading {
    float: right !important;
    width: calc(40% - 1rem) !important;
    clear: right !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem 1.5rem 0.75rem;
    color: #333333 !important;
    box-shadow: 0 12px 32px rgba(31, 23, 32, 0.06);
}

body.woocommerce-checkout #order_review {
    float: right !important;
    width: calc(40% - 1rem) !important;
    clear: right !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 0.75rem 1.5rem 1.5rem;
    box-shadow: 0 12px 32px rgba(31, 23, 32, 0.06);
    position: static !important;
    top: auto !important;
}

body.woocommerce-checkout form.checkout::after {
    content: "";
    display: block;
    clear: both;
}

body.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eeeeee;
}


/* =========================================================
   Section Headings
   Dash restored
========================================================= */

body.woocommerce-checkout .entry-content h3,
body.woocommerce-checkout .entry-content .woocommerce-billing-fields h3,
body.woocommerce-checkout .entry-content .woocommerce-additional-fields h3,
body.woocommerce-checkout .entry-content #order_review_heading {
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
    color: #1f1720;
    position: relative;
    padding-bottom: 0.85rem;
    margin-bottom: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.woocommerce-checkout .entry-content h3::after,
body.woocommerce-checkout .entry-content .woocommerce-billing-fields h3::after,
body.woocommerce-checkout .entry-content .woocommerce-additional-fields h3::after,
body.woocommerce-checkout .entry-content #order_review_heading::after {
    content: "";
    width: 44px;
    height: 3px;
    background: #e14c2b;
    border-radius: 999px;
    position: absolute;
    left: 0;
    bottom: 0;
}


/* =========================================================
   Billing / Standard Form Fields
========================================================= */

body.woocommerce-checkout form.checkout .form-row {
    margin-bottom: 1.1rem;
}

body.woocommerce-checkout form.checkout .form-row label,
body.woocommerce-checkout .entry-content .checkout_coupon label,
body.woocommerce-checkout .entry-content .woocommerce-form-login label {
    color: #1f1720;
    font-size: 1rem !important;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

body.woocommerce-checkout form.checkout abbr.required {
    color: #e14c2b;
    text-decoration: none;
}

body.woocommerce-checkout form.checkout #billing_first_name_field,
body.woocommerce-checkout form.checkout #billing_last_name_field {
    width: calc(50% - 0.6rem) !important;
    float: left !important;
    clear: none !important;
}

body.woocommerce-checkout form.checkout #billing_first_name_field {
    margin-right: 1.2rem;
}

body.woocommerce-checkout form.checkout #billing_last_name_field {
    margin-right: 0;
}

body.woocommerce-checkout form.checkout #billing_company_field,
body.woocommerce-checkout form.checkout #billing_country_field,
body.woocommerce-checkout form.checkout #billing_address_1_field,
body.woocommerce-checkout form.checkout #billing_address_2_field,
body.woocommerce-checkout form.checkout #billing_city_field,
body.woocommerce-checkout form.checkout #billing_state_field,
body.woocommerce-checkout form.checkout #billing_postcode_field,
body.woocommerce-checkout form.checkout #billing_phone_field,
body.woocommerce-checkout form.checkout #billing_email_field {
    clear: both !important;
}

body.woocommerce-checkout form.checkout .form-row input.input-text,
body.woocommerce-checkout form.checkout .form-row textarea,
body.woocommerce-checkout form.checkout .form-row select,
body.woocommerce-checkout form.checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .entry-content .checkout_coupon input.input-text,
body.woocommerce-checkout .entry-content .woocommerce-form-login input.input-text {
    min-height: 48px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    color: #1f1720;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    padding: 0.75rem 0.9rem;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.woocommerce-checkout form.checkout .form-row input.input-text::placeholder,
body.woocommerce-checkout form.checkout .form-row textarea::placeholder,
body.woocommerce-checkout .entry-content .checkout_coupon input.input-text::placeholder,
body.woocommerce-checkout .entry-content .woocommerce-form-login input.input-text::placeholder {
    font-size: 1rem !important;
    line-height: 1.35 !important;
}

body.woocommerce-checkout form.checkout .select2-container {
    width: 100% !important;
}

body.woocommerce-checkout form.checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f1720;
    line-height: 46px;
    padding-left: 0;
    padding-right: 1.5rem;
    font-size: 1rem !important;
    min-height: 46px;
}

body.woocommerce-checkout form.checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

body.woocommerce-checkout form.checkout .form-row textarea {
    min-height: 110px;
    resize: vertical;
}

body.woocommerce-checkout form.checkout .form-row input.input-text:focus,
body.woocommerce-checkout form.checkout .form-row textarea:focus,
body.woocommerce-checkout form.checkout .form-row select:focus,
body.woocommerce-checkout form.checkout .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-checkout .entry-content .checkout_coupon input.input-text:focus,
body.woocommerce-checkout .entry-content .woocommerce-form-login input.input-text:focus {
    background: #ffffff;
    border-color: #e14c2b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 76, 43, 0.13);
}


/* =========================================================
   Order Review Table
========================================================= */

body.woocommerce-checkout #order_review table.shop_table {
    width: 100%;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    margin: 0 0 1.25rem 0 !important;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
    border-top: 1px solid #eeeeee;
    padding: 0.95rem;
    color: #1f1720;
    vertical-align: top;
}

body.woocommerce-checkout #order_review table.shop_table thead th {
    border-top: 0;
    background: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.woocommerce-checkout #order_review table.shop_table .product-name {
    line-height: 1.4;
}

body.woocommerce-checkout #order_review table.shop_table .order-total th,
body.woocommerce-checkout #order_review table.shop_table .order-total td {
    font-size: 1.05rem;
    font-weight: 900;
}

body.woocommerce-checkout #order_review table.shop_table .order-total .amount {
    color: #e14c2b;
    font-size: 1.25rem;
}


/* =========================================================
   Payment Section Base
========================================================= */

body.woocommerce-checkout #payment {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    overflow: visible !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #eeeeee;
    padding: 1rem;
    overflow: visible !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    padding: 0.65rem 0;
    overflow: visible !important;
    position: relative;
}

body.woocommerce-checkout #payment ul.payment_methods li label,
body.woocommerce-checkout #payment ul.payment_methods li input,
body.woocommerce-checkout #payment ul.payment_methods li span {
    font-size: 1rem !important;
}

#wc-ppcp-credit-card-gateway-cc-form > p.form-row.form-row-wide.woocommerce-validated > label
body.woocommerce-checkout #payment .wc-credit-card-form label {
    padding-left: 10px;
}

body.woocommerce-checkout #payment div.payment_box {
    background: #fcf7f2;
    color: #1f1720;
    border-radius: 10px;
    margin-top: 0.75rem;
    padding: 1.25rem !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #fcf7f2;
}

body.woocommerce-checkout #payment div.form-row {
    padding: 0 !important;
    margin-bottom: 1rem !important;
    overflow: visible !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4c4249;
    padding: 20px;
}


/* =========================================================
   Payment Gateway Fixes
   - removes clipping
   - keeps card icons inline
   - fixes expiry / cvv
========================================================= */

body.woocommerce-checkout #payment .payment_box,
body.woocommerce-checkout #payment .payment_method_paypal,
body.woocommerce-checkout #payment .payment_method_ppcp-gateway,
body.woocommerce-checkout #payment .payment_method_woocommerce_payments,
body.woocommerce-checkout #payment .payment_method_stripe,
body.woocommerce-checkout #payment .wc-credit-card-form,
body.woocommerce-checkout #payment .wc-payment-form,
body.woocommerce-checkout #payment .woocommerce-SavedPaymentMethods,
body.woocommerce-checkout #payment .ppcp-credit-card-gateway,
body.woocommerce-checkout #payment .ppcp-card-fields,
body.woocommerce-checkout #payment .ppcp-card-fields-container,
body.woocommerce-checkout #payment .paypal-card-fields-container {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment .payment_box label,
body.woocommerce-checkout #payment .wc-credit-card-form label,
body.woocommerce-checkout #payment .wc-payment-form label,
body.woocommerce-checkout #payment .woocommerce-SavedPaymentMethods label,
body.woocommerce-checkout #payment .ppcp-card-fields label,
body.woocommerce-checkout #payment .paypal-card-fields-container label {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #1f1720 !important;
    margin-bottom: 0.45rem !important;
}

body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-number,
body.woocommerce-checkout #payment .payment_box .form-row-wide,
body.woocommerce-checkout #payment .payment_box .ppcp-credit-card-number,
body.woocommerce-checkout #payment .payment_box [class*="card-number"] {
    position: relative !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment .payment_box .card-icons,
body.woocommerce-checkout #payment .payment_box [class*="card-icons"],
body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-icons,
body.woocommerce-checkout #payment .payment_box .ppcp-card-icons {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout #payment .payment_box .card-icons img,
body.woocommerce-checkout #payment .payment_box [class*="card-icons"] img,
body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-icons img,
body.woocommerce-checkout #payment .payment_box .ppcp-card-icons img {
    max-height: 18px !important;
    width: auto !important;
    display: block !important;
}

body.woocommerce-checkout #payment .wc-credit-card-form input,
body.woocommerce-checkout #payment .wc-payment-form input,
body.woocommerce-checkout #payment .payment_box input.input-text,
body.woocommerce-checkout #payment input#wc-authorize-net-cim-credit-card-account-number,
body.woocommerce-checkout #payment input#wc-authorize-net-cim-credit-card-expiry,
body.woocommerce-checkout #payment input#wc-authorize-net-cim-credit-card-csc,
body.woocommerce-checkout #payment input#wc-stripe-card-number,
body.woocommerce-checkout #payment input#wc-stripe-card-expiry,
body.woocommerce-checkout #payment input#wc-stripe-card-cvc,
body.woocommerce-checkout #payment input[name*="card"],
body.woocommerce-checkout #payment input[name*="expiry"],
body.woocommerce-checkout #payment input[name*="cvc"],
body.woocommerce-checkout #payment input[name*="cvv"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: none !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid #e14c2b !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1f1720 !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-number input,
body.woocommerce-checkout #payment .payment_box .form-row-wide input[name*="card"],
body.woocommerce-checkout #payment .payment_box .ppcp-credit-card-number input,
body.woocommerce-checkout #payment .payment_box [class*="card-number"] input {
    padding-right: 120px !important;
}

body.woocommerce-checkout #payment .wc-credit-card-form input::placeholder,
body.woocommerce-checkout #payment .wc-payment-form input::placeholder,
body.woocommerce-checkout #payment .payment_box input.input-text::placeholder,
body.woocommerce-checkout #payment input[name*="card"]::placeholder,
body.woocommerce-checkout #payment input[name*="expiry"]::placeholder,
body.woocommerce-checkout #payment input[name*="cvc"]::placeholder,
body.woocommerce-checkout #payment input[name*="cvv"]::placeholder {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    color: #667085 !important;
}

body.woocommerce-checkout #payment .StripeElement,
body.woocommerce-checkout #payment .wc-stripe-elements-field,
body.woocommerce-checkout #payment .wc-stripe-iban-element-field,
body.woocommerce-checkout #payment .stripe-card-group,
body.woocommerce-checkout #payment .ppcp-card-field,
body.woocommerce-checkout #payment .paypal-card-field,
body.woocommerce-checkout #payment .card-field,
body.woocommerce-checkout #payment .hosted-field,
body.woocommerce-checkout #payment .braintree-hosted-fields,
body.woocommerce-checkout #payment .braintree-hosted-fields-focused {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: none !important;
    border: 1px solid #e14c2b !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 0.45rem 0.65rem !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment iframe,
body.woocommerce-checkout #payment .payment_box iframe,
body.woocommerce-checkout .payment_method_stripe iframe,
body.woocommerce-checkout [id*="payment"] iframe {
    min-height: 20px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment .form-row-first,
body.woocommerce-checkout #payment .form-row-last,
body.woocommerce-checkout #payment .wc-credit-card-form-card-expiry,
body.woocommerce-checkout #payment .wc-credit-card-form-card-cvc {
    width: calc(50% - 0.5rem) !important;
    float: left !important;
    clear: none !important;
    overflow: visible !important;
}

body.woocommerce-checkout #payment .form-row-first,
body.woocommerce-checkout #payment .wc-credit-card-form-card-expiry {
    margin-right: 1rem !important;
}

body.woocommerce-checkout #payment .form-row-last,
body.woocommerce-checkout #payment .wc-credit-card-form-card-cvc {
    margin-right: 0 !important;
}

body.woocommerce-checkout #payment .wc-credit-card-form::after,
body.woocommerce-checkout #payment .wc-payment-form::after,
body.woocommerce-checkout #payment .payment_box::after {
    content: "";
    display: block;
    clear: both;
}

body.woocommerce-checkout #payment .wc-credit-card-form input:focus,
body.woocommerce-checkout #payment .wc-payment-form input:focus,
body.woocommerce-checkout #payment input[name*="card"]:focus,
body.woocommerce-checkout #payment input[name*="expiry"]:focus,
body.woocommerce-checkout #payment input[name*="cvc"]:focus,
body.woocommerce-checkout #payment input[name*="cvv"]:focus,
body.woocommerce-checkout #payment .StripeElement--focus,
body.woocommerce-checkout #payment .wc-stripe-elements-field.focused,
body.woocommerce-checkout #payment .braintree-hosted-fields-focused {
    border-color: #e14c2b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(225, 76, 43, 0.13) !important;
}


/* =========================================================
   Checkout Links
========================================================= */

body.woocommerce-checkout .entry-content .woocommerce a,
body.woocommerce-checkout .entry-content .woocommerce a:visited,
body.woocommerce-checkout form.checkout a,
body.woocommerce-checkout form.checkout a:visited,
body.woocommerce-checkout .entry-content .woocommerce-form-coupon-toggle a,
body.woocommerce-checkout .entry-content .woocommerce-form-login-toggle a,
body.woocommerce-checkout .entry-content .woocommerce-privacy-policy-text a,
body.woocommerce-checkout .entry-content .woocommerce-terms-and-conditions-link {
    color: #e14c2b !important;
}

body.woocommerce-checkout .entry-content .woocommerce a:hover,
body.woocommerce-checkout form.checkout a:hover,
body.woocommerce-checkout .entry-content .woocommerce-form-coupon-toggle a:hover,
body.woocommerce-checkout .entry-content .woocommerce-form-login-toggle a:hover,
body.woocommerce-checkout .entry-content .woocommerce-privacy-policy-text a:hover,
body.woocommerce-checkout .entry-content .woocommerce-terms-and-conditions-link:hover {
    color: #c7482c !important;
}


/* =========================================================
   Buttons
========================================================= */

body.woocommerce-checkout form.checkout button.button,
body.woocommerce-checkout form.checkout input.button,
body.woocommerce-checkout form.checkout a.button,
body.woocommerce-checkout .entry-content .checkout_coupon button.button,
body.woocommerce-checkout .entry-content .checkout_coupon input.button,
body.woocommerce-checkout #place_order {
    background: #e14c2b !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.9rem 1.4rem !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(225, 76, 43, 0.22);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.woocommerce-checkout form.checkout button.button:hover,
body.woocommerce-checkout form.checkout input.button:hover,
body.woocommerce-checkout form.checkout a.button:hover,
body.woocommerce-checkout .entry-content .checkout_coupon button.button:hover,
body.woocommerce-checkout .entry-content .checkout_coupon input.button:hover,
body.woocommerce-checkout #place_order:hover {
    background: #c7482c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(199, 72, 44, 0.22);
}

body.woocommerce-checkout #place_order {
    align-self: center !important;
    width: 100% !important;
    min-width: 300px !important;
    max-width: 320px !important;
    margin: 0.75rem 20px 0 20px !important;
    min-height: 54px;
    border-radius: 10px !important;
}

body.woocommerce-checkout .entry-content .woocommerce-message .button,
body.woocommerce-checkout .entry-content .woocommerce-message .button:visited,
body.woocommerce-checkout .entry-content .woocommerce-error .button,
body.woocommerce-checkout .entry-content .woocommerce-error .button:visited {
    float: none !important;
    margin: 0 0 0 1rem !important;
    white-space: nowrap !important;
    align-self: center !important;
    background: #e14c2b !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none !important;
}

body.woocommerce-checkout .entry-content .woocommerce-message .button:hover,
body.woocommerce-checkout .entry-content .woocommerce-message .button:focus,
body.woocommerce-checkout .entry-content .woocommerce-error .button:hover,
body.woocommerce-checkout .entry-content .woocommerce-error .button:focus {
    background: #c7482c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 960px) {
    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        float: none !important;
        width: 100% !important;
        clear: both !important;
        margin-right: 0 !important;
    }

    body.woocommerce-checkout #customer_details {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem;
    }

    body.woocommerce-checkout #order_review_heading {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    body.woocommerce-checkout #order_review {
        padding: 0.75rem 1.5rem 1.5rem;
    }
}

@media (max-width: 640px) {
    body.woocommerce-checkout .entry-content {
        padding: 1rem 0.75rem 3rem;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.woocommerce-checkout form.checkout #billing_first_name_field,
    body.woocommerce-checkout form.checkout #billing_last_name_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
    }

    body.woocommerce-checkout #payment .form-row-first,
    body.woocommerce-checkout #payment .form-row-last,
    body.woocommerce-checkout #payment .wc-credit-card-form-card-expiry,
    body.woocommerce-checkout #payment .wc-credit-card-form-card-cvc {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
    }

    body.woocommerce-checkout .entry-content h3,
    body.woocommerce-checkout .entry-content .woocommerce-billing-fields h3,
    body.woocommerce-checkout .entry-content .woocommerce-additional-fields h3,
    body.woocommerce-checkout .entry-content #order_review_heading {
        font-size: 1.15rem;
    }

    body.woocommerce-checkout #order_review table.shop_table th,
    body.woocommerce-checkout #order_review table.shop_table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    body.woocommerce-checkout #payment ul.payment_methods,
    body.woocommerce-checkout #payment div.form-row {
        padding: 0.85rem 0 0 !important;
    }

    body.woocommerce-checkout #payment div.payment_box {
        padding: 1rem !important;
    }

    body.woocommerce-checkout #place_order {
        min-height: 50px;
        font-size: 1rem;
    }

    body.woocommerce-checkout .entry-content .woocommerce-message,
    body.woocommerce-checkout .entry-content .woocommerce-error {
        grid-template-columns: auto 1fr !important;
        padding: 1rem !important;
        font-size: 1rem;
    }

    body.woocommerce-checkout .entry-content .woocommerce-message .button,
    body.woocommerce-checkout .entry-content .woocommerce-error .button {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0.35rem 0 0 0 !important;
        text-align: center !important;
        font-size: 1rem;
    }

    body.woocommerce-checkout #payment .payment_box .card-icons,
    body.woocommerce-checkout #payment .payment_box [class*="card-icons"],
    body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-icons,
    body.woocommerce-checkout #payment .payment_box .ppcp-card-icons {
        position: static !important;
        transform: none !important;
        margin-top: 0.5rem !important;
        justify-content: flex-start !important;
        pointer-events: auto !important;
    }

    body.woocommerce-checkout #payment .payment_box .wc-credit-card-form-card-number input,
    body.woocommerce-checkout #payment .payment_box .form-row-wide input[name*="card"],
    body.woocommerce-checkout #payment .payment_box .ppcp-credit-card-number input,
    body.woocommerce-checkout #payment .payment_box [class*="card-number"] input {
        padding-right: 0.75rem !important;
    }
}

/* =========================================================
   International Implant Institute - WooCommerce Order Received
   Checkout Complete / Thank You Page Styling

   Palette:
   #e14c2b - primary highlight
   #c7482c - hover orange
   #fcf7f2 - warm off-white background
   #eeeeee - borders
========================================================= */


/* =========================================================
   Page Layout
========================================================= */

body.woocommerce-order-received {
    background: #fcf7f2;
}

body.woocommerce-order-received .site-content,
body.woocommerce-order-received .content-area,
body.woocommerce-order-received .site-main,
body.woocommerce-order-received .entry-content,
body.woocommerce-order-received .entry-content > .woocommerce {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

body.woocommerce-order-received .entry-content {
    padding: 2rem 1rem 4rem;
}


/* =========================================================
   Main Thank You Container
========================================================= */

body.woocommerce-order-received .woocommerce-order {
    background: transparent !important;
    padding: 0;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
    background: #ffffff;
    border: 0;
    border-top: 4px solid #e14c2b;
    border-radius: 10px;
    color: #1f1720;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
}


/* =========================================================
   Order Overview Details
   Fixed 2-column layout, no cards, no top gap
========================================================= */

body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details,
body.woocommerce-order-received .woocommerce-order ul.order_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    column-gap: 3rem !important;
    row-gap: 1rem !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    list-style: none !important;
    column-count: initial !important;
    columns: initial !important;
    direction: ltr !important;
}

body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li,
body.woocommerce-order-received .woocommerce-order ul.order_details li {
    float: none !important;
    clear: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 0.85rem !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4c4249 !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    list-style: none !important;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li:nth-child(1),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li:nth-child(1),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li:nth-child(2),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li:nth-child(2),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li:nth-child(3),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li:nth-child(3),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li:nth-child(4),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li:nth-child(4),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li:nth-child(5),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li:nth-child(5),
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li:nth-child(5) {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li::before,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li::after,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li::before,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li::after,
body.woocommerce-order-received .woocommerce-order ul.order_details li::before,
body.woocommerce-order-received .woocommerce-order ul.order_details li::after {
    display: none !important;
    content: none !important;
}

body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li strong,
body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li strong,
body.woocommerce-order-received .woocommerce-order ul.order_details li strong {
    display: block !important;
    margin: 0.25rem 0 0 !important;
    color: #1f1720 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

@media (max-width: 640px) {
    body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview,
    body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details,
    body.woocommerce-order-received .woocommerce-order ul.order_details {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 0.85rem !important;
    }

    body.woocommerce-order-received .woocommerce-order ul.order_details li,
    body.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li,
    body.woocommerce-order-received .woocommerce-order ul.woocommerce-thankyou-order-details li {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* =========================================================
   Section Headings
========================================================= */

body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3,
body.woocommerce-order-received .woocommerce-customer-details h2,
body.woocommerce-order-received .woocommerce-order-details h2 {
    color: #1f1720;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.85rem;
    margin: 2rem 0 1.35rem;
}

body.woocommerce-order-received .woocommerce-order h2::after,
body.woocommerce-order-received .woocommerce-order h3::after,
body.woocommerce-order-received .woocommerce-customer-details h2::after,
body.woocommerce-order-received .woocommerce-order-details h2::after {
    content: "";
    width: 44px;
    height: 3px;
    background: #e14c2b;
    border-radius: 999px;
    position: absolute;
    left: 0;
    bottom: 0;
}


/* =========================================================
   Order Details Table
========================================================= */

body.woocommerce-order-received table.shop_table,
body.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    margin: 0 0 2rem;
}

body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td,
body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td {
    border-top: 1px solid #eeeeee;
    color: #1f1720;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.45;
    vertical-align: top;
}

body.woocommerce-order-received table.shop_table thead th,
body.woocommerce-order-received .woocommerce-table--order-details thead th {
    border-top: 0;
    background: #fcf7f2;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.woocommerce-order-received table.shop_table tfoot th,
body.woocommerce-order-received table.shop_table tfoot td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    font-weight: 800;
}

body.woocommerce-order-received table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received table.shop_table tfoot tr:last-child td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1.1rem;
    font-weight: 900;
}

body.woocommerce-order-received table.shop_table .amount,
body.woocommerce-order-received .woocommerce-table--order-details .amount {
    color: #e14c2b;
    font-weight: 900;
}


/* =========================================================
   Links
========================================================= */

body.woocommerce-order-received .entry-content .woocommerce a,
body.woocommerce-order-received .entry-content .woocommerce a:visited,
body.woocommerce-order-received .woocommerce-order a,
body.woocommerce-order-received .woocommerce-order a:visited {
    color: #e14c2b !important;
}

body.woocommerce-order-received .entry-content .woocommerce a:hover,
body.woocommerce-order-received .woocommerce-order a:hover {
    color: #c7482c !important;
}


/* =========================================================
   Customer / Billing Details
========================================================= */

body.woocommerce-order-received .woocommerce-customer-details {
    margin-top: 2rem;
}

body.woocommerce-order-received .woocommerce-customer-details address {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    color: #1f1720;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.25rem;
    box-shadow: 0 8px 22px rgba(31, 23, 32, 0.04);
}

body.woocommerce-order-received .woocommerce-customer-details address p {
    margin-bottom: 0.5rem;
}


/* =========================================================
   Buttons
========================================================= */

body.woocommerce-order-received .entry-content .woocommerce a.button,
body.woocommerce-order-received .entry-content .woocommerce button.button,
body.woocommerce-order-received .entry-content .woocommerce input.button {
    background: #e14c2b !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 0.9rem 1.4rem !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(225, 76, 43, 0.22);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.woocommerce-order-received .entry-content .woocommerce a.button:hover,
body.woocommerce-order-received .entry-content .woocommerce button.button:hover,
body.woocommerce-order-received .entry-content .woocommerce input.button:hover {
    background: #c7482c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(199, 72, 44, 0.22);
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 900px) {
    body.woocommerce-order-received .woocommerce-order {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    body.woocommerce-order-received .entry-content {
        padding: 1rem 0.75rem 3rem;
    }

    body.woocommerce-order-received .woocommerce-order {
        padding: 1rem;
    }

    body.woocommerce-order-received .woocommerce-thankyou-order-received {
        font-size: 1rem;
        padding: 1rem;
    }

    body.woocommerce-order-received ul.woocommerce-order-overview,
    body.woocommerce-order-received ul.order_details {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 0.85rem !important;
    }

    body.woocommerce-order-received .woocommerce-order h2,
    body.woocommerce-order-received .woocommerce-order h3,
    body.woocommerce-order-received .woocommerce-customer-details h2,
    body.woocommerce-order-received .woocommerce-order-details h2 {
        font-size: 1.15rem;
    }

    body.woocommerce-order-received table.shop_table th,
    body.woocommerce-order-received table.shop_table td,
    body.woocommerce-order-received .woocommerce-table--order-details th,
    body.woocommerce-order-received .woocommerce-table--order-details td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
