/* Vesa Checkout — pairs with woocommerce/checkout/form-checkout.php
 * Overrides WooCommerce default checkout styles with the Vesa design system.
 *
 * Color tokens (theme-wide):
 *   #1a1a1a  primary text / dark surfaces
 *   #214af1  brand blue (links, focus, selected state accents)
 *   #ececec  dividers
 *   #d8d8d8  input borders
 *   #fafafa  subtle surface
 */

/* ── Page wrapper ────────────────────────────────────── */
.woocommerce-checkout {
    color: #1a1a1a;
}

.woocommerce-checkout .container-lg,
.woocommerce-checkout .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* Page heading */
.vesa_before_checkout_section {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid #ececec;
    margin-bottom: 48px;
}

.vesa_before_checkout_section h1.entry-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
    color: #1a1a1a;
}

/* Notices wrapper (login/coupon/error notices) */
.checkout-notices {
    margin-bottom: 24px;
}

.checkout-notices:empty {
    display: none;
}

/* ── Login / Coupon banners (top of form) ────────────── */
.woocommerce-info {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 12px !important;
    margin: 0 0 16px !important;
    color: #1a1a1a !important;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce-info::before {
    display: none !important;
}

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 2px;
    margin-bottom: 16px;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    color: #1a1a1a !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce-form-login-toggle .woocommerce-info a {
    color: #214af1 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease;
}

.woocommerce-form-coupon-toggle .woocommerce-info a:hover,
.woocommerce-form-login-toggle .woocommerce-info a:hover {
    border-bottom-color: #214af1;
}

/* Expandable coupon form */
.checkout_coupon {
    margin: 16px 0 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
}

.checkout_coupon .title_coupon_container p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.checkout_coupon .coupon_flex {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.checkout_coupon #coupon_code {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 52px;
    padding: 0 16px;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    font-size: 14px;
    color: #1a1a1a;
    transition: background .15s ease, border-color .18s ease, box-shadow .18s ease;
}

.checkout_coupon #coupon_code::placeholder {
    color: #aaa;
}

.checkout_coupon #coupon_code:hover {
    background: #f5f5f5;
}

.checkout_coupon #coupon_code:focus {
    outline: none;
    background: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, .08);
}

.checkout_coupon .apply_code {
    flex: 0 0 auto;
}

.checkout_coupon button[name="apply_coupon"] {
    height: 52px;
    padding: 0 28px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .1s ease;
}

.checkout_coupon button[name="apply_coupon"]:hover {
    background: #214af1;
    border-color: #214af1;
    color: #fff;
    box-shadow: 0 6px 18px rgba(33, 74, 241, .22);
}

.checkout_coupon button[name="apply_coupon"]:active {
    transform: translateY(1px);
}

/* Decorative chevron sibling left over in the markup — not needed visually. */
.checkout_coupon .apply_code .fa-chevron-right {
    display: none;
}

/* Expandable login form */
.woocommerce-form-login {
    margin: 16px 0 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 2px;
}

.woocommerce-form-login p {
    margin: 0 0 14px;
}

.woocommerce-form-login .form-row {
    display: block;
    margin: 0 0 14px;
}

.woocommerce-form-login label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
}

.woocommerce-form-login .input-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    transition: border-color .15s ease;
}

.woocommerce-form-login .input-text:focus {
    border-color: #1a1a1a;
    outline: none;
}

.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 16px 0 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #555;
}

.woocommerce-form-login__rememberme input {
    margin: 0;
}

.woocommerce-form-login .lost_password {
    margin: 12px 0 0;
    font-size: 13px;
}

.woocommerce-form-login .lost_password a {
    color: #214af1;
    text-decoration: none;
}

.woocommerce-form-login .button {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #1a1a1a !important;
    height: 48px;
    padding: 0 24px !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.woocommerce-form-login .button:hover {
    background: #fff !important;
    color: #1a1a1a !important;
}

/* ── Two-column layout ──────────────────────────────── */
#customer_details.row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
    flex-wrap: nowrap;
    margin: 0;
}

.checkout-col {
    min-width: 0;
    padding: 0;
    margin: 0;
}

.checkout-col--form {
    /* Left column — billing/shipping/notes form */
}

.checkout-col--review {
    /* Right column — sticky order summary + payment */
}

/* ── Section blocks (Billing / Shipping / Notes) ───── */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ececec;
}

.woocommerce-additional-fields:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
#order_review_heading {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a1a1a;
    padding: 0;
    border: 0;
}

/* Shipping section: #ship-to-different-address IS an h3 used as a checkbox toggle,
   NOT a section header. Reset to inline-friendly styling. */
.woocommerce-shipping-fields > h3#ship-to-different-address {
    margin: 0 0 16px;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
}

/* ── Form fields — grid layout for billing/shipping ── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 16px;
    width: 100%;
}

/* Fields that span full row */
#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_company_field,
#shipping_country_field,
#shipping_address_1_field,
#shipping_address_2_field,
#shipping_company_field,
#order_comments_field {
    grid-column: 1 / -1;
}

/* Override Woo's first/last classes — handled by grid */
.woocommerce form .form-row {
    margin: 0 0 0;
    padding: 0;
    width: 100% !important;
    float: none !important;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 100% !important;
}

/* Labels */
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 400;
    color: #1b1b1b;
    line-height: 1.4;
}

.woocommerce form .form-row .required,
.woocommerce form .form-row .optional {
    color: #1b1b1b;
    text-decoration: none;
    font-weight: 400;
}

/* Inputs */
.woocommerce-billing-fields .input-text,
.woocommerce-shipping-fields .input-text,
.woocommerce-additional-fields .input-text,
.woocommerce-checkout textarea.input-text {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    line-height: 50px;
    color: #1a1a1a;
    transition: border-color .15s ease;
}

.woocommerce-checkout textarea.input-text {
    height: auto;
    min-height: 110px;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.woocommerce-billing-fields .input-text:focus,
.woocommerce-shipping-fields .input-text:focus,
.woocommerce-additional-fields .input-text:focus,
.woocommerce-checkout textarea.input-text:focus {
    border-color: #1a1a1a;
    outline: none;
}

.woocommerce-billing-fields .input-text::placeholder,
.woocommerce-shipping-fields .input-text::placeholder,
.woocommerce-checkout textarea.input-text::placeholder {
    color: #b0b0b0;
}

/* Select2 country dropdown */
.woocommerce-billing-fields .select2-container--default .select2-selection--single,
.woocommerce-shipping-fields .select2-container--default .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 52px !important;
    background: #fff !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 2px !important;
    transition: border-color .15s ease;
}

.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1a1a1a !important;
    outline: none;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 16px !important;
    line-height: 50px !important;
    font-size: 14px;
    color: #1a1a1a !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 8px !important;
}

.select2-dropdown {
    border-color: #d8d8d8 !important;
    border-radius: 2px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1a1a1a !important;
}

/* ── Ship-to-different toggle ───────────────────────── */
#ship-to-different-address {
    margin: 0 0 16px;
}

#ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #1a1a1a;
}

#ship-to-different-address input[type="checkbox"] {
    -webkit-appearance: none;
            appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}

#ship-to-different-address input[type="checkbox"]:checked {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

#ship-to-different-address input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#ship-to-different-address span {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

/* ── Order notes section ────────────────────────────── */
.woocommerce-additional-fields__field-wrapper {
    padding: 0;
    margin: 0;
    border: none;
}

#order_comments_field label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
}

#order_comments_field .optional {
    color: #999;
    font-weight: 400;
}

/* ── Right column — order review (sticky) ──────────── */
#order_review_wrap {
    position: sticky;
    top: 32px;
}

#order_review_heading {
    margin: 0 0 16px;
}

.woocommerce-checkout-review-order {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 2px;
    padding: 24px;
}

/* Reset WooCommerce default .shop_table table semantics (we use div) */
.woocommerce-checkout-review-order .shop_table,
.woocommerce-checkout-review-order-table {
    display: block;
    width: 100%;
    border: none;
    border-collapse: separate;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Summary header row */
.woocommerce-checkout-review-order .geko-resume {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
}

/* Item list */
.woocommerce-checkout-review-order .logloop {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.woocommerce-checkout-review-order .cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
    align-items: center;
}

.woocommerce-checkout-review-order .cart-item:last-child {
    border-bottom: 1px solid #ececec;
}

.woocommerce-checkout-review-order .product-name {
    display: contents;
}

.woocommerce-checkout-review-order .item_image_review {
    width: 64px;
    height: 80px;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    border: 1px solid #ececec;
}

.woocommerce-checkout-review-order .item_image_review img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    display: block;
}

.woocommerce-checkout-review-order .name_attr_box {
    min-width: 0;
}

.woocommerce-checkout-review-order .name_item {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-checkout-review-order .cart-item__qty {
    color: #888;
    font-weight: 400;
    margin-left: 4px;
}

.woocommerce-checkout-review-order .cart-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
}

.woocommerce-checkout-review-order .attr_item {
    border: none !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order .attr_item dl,
.woocommerce-checkout-review-order .attr_item dl.variation {
    margin: 0 !important;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

.woocommerce-checkout-review-order .attr_item dl dt {
    display: none !important;
}

.woocommerce-checkout-review-order .attr_item dl dd {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order .attr_item dl dd p {
    margin: 0;
}

/* Item actions (remove + price) */
.woocommerce-checkout-review-order .actions_item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    border: none !important;
    padding: 0 !important;
    position: relative !important;
}

.woocommerce-checkout-review-order .actions_item .remove {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    opacity: .5;
    transition: opacity .15s ease, background .15s ease;
}

.woocommerce-checkout-review-order .actions_item .remove:hover {
    opacity: 1;
    background: #fff;
}

.woocommerce-checkout-review-order .actions_item .remove img {
    width: 10px !important;
    height: 10px !important;
}

.woocommerce-checkout-review-order .actions_item .amount {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    padding: 0;
    width: auto;
    line-height: 1;
}

/* ── Totals (subtotal / shipping / discount / total) ── */
.woocommerce-checkout-review-order .cart-subtotal,
.woocommerce-checkout-review-order .gekof,
.woocommerce-checkout-review-order .fee,
.woocommerce-checkout-review-order .cart-discount,
.woocommerce-checkout-review-order .order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

.woocommerce-checkout-review-order .cart-subtotal > div:first-child,
.woocommerce-checkout-review-order .gekof > div:first-child,
.woocommerce-checkout-review-order .fee > div:first-child,
.woocommerce-checkout-review-order .cart-discount > div:first-child {
    color: #555;
    font-weight: 400;
}

.woocommerce-checkout-review-order .cart-subtotal .gekosm,
.woocommerce-checkout-review-order .gekof .gekosm,
.woocommerce-checkout-review-order .fee .gekosm {
    font-weight: 500;
    color: #1a1a1a;
}

.woocommerce-checkout-review-order .cart-subtotal span,
.woocommerce-checkout-review-order .gekof span,
.woocommerce-checkout-review-order .fee span,
.woocommerce-checkout-review-order .order-total span {
    font-size: 14px !important;
}

/* Shipping cost */
.woocommerce-checkout-review-order .shipping_cost_total .gekof {
    padding: 10px 0;
}

/* Coupon discount */
.woocommerce-checkout-review-order .cart-discount {
    color: #214af1;
}

.woocommerce-checkout-review-order .cart-discount > div:first-child {
    color: #214af1;
    font-weight: 500;
}

.woocommerce-checkout-review-order .cart-discount a.woocommerce-remove-coupon {
    color: #999;
    text-decoration: none;
    font-size: 11px;
    margin-left: 6px;
}

.woocommerce-checkout-review-order .cart-discount a.woocommerce-remove-coupon:hover {
    color: #1a1a1a;
}

/* Grand total */
.woocommerce-checkout-review-order .order-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.woocommerce-checkout-review-order .order-total .gekobg {
    font-size: 16px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
}

.woocommerce-checkout-review-order .order-total .gekobg strong {
    font-weight: 600 !important;
    color: #1a1a1a;
}

.woocommerce-checkout-review-order .order-total span,
.woocommerce-checkout-review-order .order-total .amount {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* ── Payment methods ──────────────────────────────── */
.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 24px 0 0 !important;
    margin-top: 24px;
    border-top: 1px solid #ececec;
}

.woocommerce-checkout #payment::before {
    content: 'Payment method';
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1a1a1a;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #1a1a1a;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    flex: 1;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 24px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
}

/* Radio button */
.woocommerce-checkout #payment ul.payment_methods li input.input-radio {
    -webkit-appearance: none;
            appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    border: 1.5px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease;
    flex-shrink: 0;
}

.woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked {
    border-color: #1a1a1a;
}

.woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a1a1a;
    font-family: inherit !important;
    color: transparent !important;
}

/* Selected payment row */
.woocommerce-checkout #payment ul.payment_methods li:has(input.input-radio:checked) {
    border-color: #1a1a1a;
    background: #fafafa;
}

/* Payment description (hidden by default per legacy) */
.woocommerce-checkout #payment div.payment_box {
    display: none !important;
}

/* ── Terms & conditions ─────────────────────────────── */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.woocommerce-checkout .form-row.validate-required.terms_conditions {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
            appearance: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1.5px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
    flex-shrink: 0;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"]:checked {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.woocommerce-terms-and-conditions-checkbox-text {
    color: #555;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    color: #214af1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease;
}

.woocommerce-terms-and-conditions-checkbox-text a:hover {
    border-bottom-color: #214af1;
}

/* ── Place order button ───────────────────────────── */
.woocommerce-checkout #place_order,
.woocommerce-checkout .woocommerce-page #payment #place_order {
    display: block;
    width: 100%;
    height: 56px;
    margin: 16px 0 0 !important;
    padding: 0 24px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 2px !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1 !important;
    text-align: center;
    cursor: pointer;
    box-shadow: none !important;
    float: none !important;
    transition: background .18s ease, color .18s ease !important;
}

.woocommerce-checkout #place_order:hover,
.woocommerce-checkout .woocommerce-page #payment #place_order:hover {
    background: #fff !important;
    color: #1a1a1a !important;
}

.woocommerce-checkout #place_order:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Form errors / messages ───────────────────────── */
.woocommerce-error,
.woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-error {
    list-style: none !important;
    padding: 14px 16px !important;
    margin: 0 0 20px !important;
    background: #fff !important;
    border: 1px solid #1a1a1a !important;
    border-left: 3px solid #1a1a1a !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
}

.woocommerce-error::before,
.woocommerce-message::before {
    display: none !important;
}

.woocommerce-error li,
.woocommerce-message li {
    padding: 2px 0 !important;
}

/* Invalid field state */
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid .select2-selection {
    border-color: #c33 !important;
}

.woocommerce form .form-row.woocommerce-validated .input-text,
.woocommerce form .form-row.woocommerce-validated .select2-selection {
    border-color: #d8d8d8 !important;
}

/* AJAX overlay during processing */
.woocommerce-checkout.processing {
    opacity: .6;
    pointer-events: none;
}

.blockUI.blockOverlay {
    background: rgba(255, 255, 255, .7) !important;
    opacity: 1 !important;
}

/* ── Hidden legacy fields ─────────────────────────── */
#billing_address_2_field,
#shipping_address_2_field {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
    #customer_details.row {
        grid-template-columns: 1fr;
        gap: 32px;
        flex-wrap: wrap;
    }

    #order_review_wrap {
        position: static;
    }

    .vesa_before_checkout_section {
        padding: 32px 0 24px;
        margin-bottom: 32px;
    }

    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
}

@media (max-width: 600px) {
    .woocommerce-checkout .container-lg {
        padding-left: 16px;
        padding-right: 16px;
    }

    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .woocommerce-checkout-review-order .cart-item {
        grid-template-columns: 56px 1fr auto;
        gap: 12px;
    }

    .woocommerce-checkout-review-order .item_image_review {
        width: 56px;
        height: 70px;
    }

    .checkout_coupon .coupon_flex {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout_coupon .apply_code,
    .checkout_coupon button[name="apply_coupon"] {
        width: 100%;
    }
}
