
body.checkout-custom-style form.woocommerce-checkout .form-row.address-autocomplete-container {
    background-color: transparent !important;
    border: none !important;
    padding: 0px !important;
}


body.checkout-custom-style form.woocommerce-checkout .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px;
}

body.checkout-custom-style form.woocommerce-checkout .form-row .select2-container--default .select2-selection,
.checkout-custom-style form.woocommerce-checkout .form-row input[type="email"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="date"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="search"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="number"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="text"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="tel"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="url"],
.checkout-custom-style form.woocommerce-checkout .form-row input[type="password"],
.checkout-custom-style form.woocommerce-checkout .form-row textarea,
.checkout-custom-style form.woocommerce-checkout .form-row select:not(.select2-hidden-accessible) {
    border: solid 1px gray;
    border-radius: 8px;
    box-shadow: none !important;
    outline: none !important;
    margin: 0;
    padding: 20px 14px 10px 14px;
    height: 50px;
    line-height: 1.2em;
    color: black;
}

.checkout-custom-style form.woocommerce-checkout .form-row {
    position: relative;
}

.checkout-custom-style form.woocommerce-checkout .form-row ::placeholder {
    opacity: 0;
}

.checkout-custom-style form.woocommerce-checkout .woocommerce-input-wrapper {
    display: block;
}

.checkout-custom-style form.woocommerce-checkout .form-row label:not(.checkbox) {
    margin: 0;
    position: absolute;
    left: 15px;
    top: 2px;
    width: 90%;
    transform: scale(0.7);
    transform-origin: left;
    z-index: 2;
    transition: .3s;
    color: #626262 !important;
}

.checkout-custom-style form.woocommerce-checkout .form-row.input-empty label {
    top: 13px;
    transform: scale(1);
}
/* First name + last name share one row at EVERY width, including mobile.
   The billing field wrapper is a CSS Grid (WoodMart's checkout builder), so
   float/width have no effect — layout is grid-driven. Make it a 2-col grid:
   every field spans the full width except the name pair, which take one
   column each (form-row-first / form-row-last, priority 10/20, adjacent). */
.checkout-custom-style form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 16px !important;
}
.checkout-custom-style form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    float: none !important;
}
.checkout-custom-style form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first {
    grid-column: 1 / 2 !important;
}
.checkout-custom-style form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last {
    grid-column: 2 / 3 !important;
}

/* ── Payment methods as cards ──────────────────────────────────────────
   The Stripe + PayPal gateways render the payment options as a plain radio
   list. Restyle the rows into bordered cards (matching the rest of this
   checkout) WITHOUT touching the inputs or the expanding .payment_box forms,
   so the gateways keep working. Selected = the row whose radio is :checked. */
.checkout-custom-style ul.wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-custom-style li.wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1.5px solid #E3E9F1;
    border-radius: 12px;
    background: #fff;
    padding: 15px 16px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.checkout-custom-style li.wc_payment_method:hover {
    border-color: #B6CCE6;
}
/* Highlight the SELECTED method (radio checked) — not the gateway's own
   "active" (= available) class, which can be on several at once. */
.checkout-custom-style li.wc_payment_method:has(input.input-radio:checked) {
    border-color: #004F9F;
    background: #F4F8FD;
    box-shadow: 0 0 0 1px #004F9F inset;
}
/* Custom radio. We must redraw it fully: the theme uses appearance:none with a
   ::before dot positioned for its OWN size, so just resizing left the dot
   off-centre (it looked like a crescent/swirl). Centre the dot via 50%+translate
   and use the card accent so it matches the selected border. */
.checkout-custom-style li.wc_payment_method > input.input-radio {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #C9D4E2;
    background: #fff;
    margin: 0 12px 0 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    box-shadow: none;
}
.checkout-custom-style li.wc_payment_method > input.input-radio:checked {
    border-color: #004F9F;
}
.checkout-custom-style li.wc_payment_method > input.input-radio:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #004F9F;
    transform: translate(-50%, -50%);
}
.checkout-custom-style li.wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: #13233C;
    cursor: pointer;
}
.checkout-custom-style li.wc_payment_method > label img {
    margin-left: auto;
    max-height: 24px;
    width: auto;
}
.checkout-custom-style li.wc_payment_method > label img + img {
    margin-left: 6px;
}
/* The expanding payment form (Stripe Elements / PayPal) — full width inside
   the card. Visibility is still controlled by the gateway; we only space it. */
.checkout-custom-style li.wc_payment_method > .payment_box {
    flex-basis: 100%;
    margin: 13px 0 0;
    padding: 0;
    background: transparent;
}
.checkout-custom-style li.wc_payment_method > .payment_box:before {
    display: none !important;
}
