/* =================================================================
   Checkout — two-column layout (Stripe-checkout style).

   Pairs with the child-theme template overrides
   woocommerce/checkout/form-checkout.php + review-order.php +
   form-coupon.php, and is enqueued from inc/woocommerce/checkout.php
   on the checkout page only.

   Left  (.bm-checkout-summary) : order summary + coupon form.
   Right (.bm-checkout-form)    : the <form> — contact + payment.
   ================================================================= */

/* The two columns. The Outfit font-family here also feeds the Stripe
   Payment Element: woocommerce-gateway-stripe auto-derives the iframe
   font from the checkout's computed styles. */
.woocommerce-checkout .bm-checkout-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.woocommerce-checkout .Input{
    padding: 8px 12px !important;
}
/* Left — order summary. Sticky so it stays in view while the taller
   form column scrolls. */
.bm-checkout-summary {
    flex: 1 1 320px;
    min-width: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

/* Right column — wraps the form card + the help link below it. */
.bm-checkout-right {
    flex: 1 1 440px;
    min-width: 0;
}

/* The white bordered card — wraps the checkout <form> + the order
   progress bar below it. */
.bm-checkout-card {
    width: 100%;
    padding: 28px;
    padding-bottom: 16px !important;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}

/* The checkout <form> itself — no box of its own; .bm-checkout-card
   around it is the card. */
.bm-checkout-form {
    width: 100%;
    margin: 0;
}

/* Drop WooCommerce's default two-column billing grid — the billing
   fields now stack in a single right-hand column. */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100%;
    float: none;
}

/* Billing fields stack one per row — except Country / Region and
   Postcode, which share a row. */
.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}
.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper > .form-row {
    flex: 1 1 100%;
}
.woocommerce-checkout #customer_details #billing_country_field,
.woocommerce-checkout #customer_details #billing_postcode_field {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

/* =================================================================
   Order summary (review-order.php) — Stripe-style.
   ================================================================= */

.bm-summary__head {
    margin-bottom: 26px;
    display: none !important;
}

/* "Pay {store name}". */
.bm-summary__merchant {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
}

/* Large order total. */
.bm-summary__total {
    display: block;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    color: #2b2b2b;
}
.bm-summary__total .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

/* "Then $X per month". */
.bm-summary__recurring {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}
.bm-summary__recurring-amt,
.bm-summary__recurring .woocommerce-Price-amount {
    font-weight: 600;
    color: #4b5563;
}

/* Item list. */
.bm-summary__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bm-summary__item {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 0;
}

/* Product thumbnail — a square tile stretched to the height of the
   item content (name + meta + stepper) beside it. */
.bm-summary__thumb {
    position: relative;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #e9ebfb;
}
/* Fill the tile fully — !important defeats the theme's img sizing. */
.bm-summary__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    display: block;
}
/* Remove-item (×) button — top-left corner of each thumbnail. */
.bm-summary__remove {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    margin: 0;
    padding: 0 !important;
    font-size: 17px;
    line-height: 1;
    color: #ee0000 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.bm-summary__remove:hover {
    color: #b42318 !important;
    background: #fff;
}
.bm-summary__remove.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Name + billing meta. */
.bm-summary__info {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
}
.bm-summary__name {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: #2b2b2b;
}
.bm-summary__meta {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #6b7280;
}

/* Quantity stepper — −  [ n ]  +  (compact; !important guards
   against the theme's button / number-input styling). */
.bm-summary__qty {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
}
.bm-summary__qty.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.bm-summary__qty-btn {
    flex: 0 0 auto;
    width: 32px !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #2b2b2b !important;
    background: #f3f4f6 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.bm-summary__qty-btn:not(:disabled):hover {
    background: #e6e8ec !important;
}
.bm-summary__qty-btn:disabled {
    color: #c2c7d0 !important;
    cursor: not-allowed;
}
.bm-summary__qty-input {
    flex: 0 0 auto;
    width: 46px !important;
    height: 32px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    text-align: center !important;
    color: #2b2b2b !important;
    background: #fff !important;
    border: 0 !important;
    border-right: 1px solid #d0d5dd !important;
    border-left: 1px solid #d0d5dd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.bm-summary__qty-input::-webkit-outer-spin-button,
.bm-summary__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Line price. */
.bm-summary__price {
    flex: 0 0 auto;
    align-self: center;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    color: #2b2b2b;
}
.bm-summary__price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

/* Totals — subtotal, coupon discount(s), total due today. */
.bm-summary__totals {
    margin-top: 6px;
    border-top: 1px solid #e8eaed;
}
.bm-summary__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #2b2b2b !important;
}
.bm-summary__total-row + .bm-summary__total-row {
    border-top: 1px solid #e8eaed;
}
/* Coupon code — a light chip (just the code, not the "Coupon:" word). */
.bm-summary__coupon-code {
    display: inline-block;
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: 4px;
}
.bm-summary__total-val {
    white-space: nowrap;
    text-align: right;
}
.bm-summary__total-row .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
/* Hide WooCommerce's [Remove] link in the coupon row. */
.bm-summary__total-row .woocommerce-remove-coupon {
    display: none;
}

/* =================================================================
   Coupon form (form-coupon.php) — compact single line under the
   order summary.
   ================================================================= */

.bm-coupon {
    margin-top: 18px;
}
.bm-coupon__toggle {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}
.bm-coupon__toggle .showcoupon {
    color: #1590c5;
    font-weight: 600;
    text-decoration: none;
}
.bm-coupon__toggle .showcoupon:hover {
    text-decoration: underline;
}
/* No outside box — just a minimal gap below the toggle line. */
.bm-coupon__form {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}
.bm-coupon__row {
    display: flex;
    gap: 8px;
}
.bm-coupon__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    font-size: 14px;
    color: #2b2b2b;
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.bm-coupon__input:focus {
    border-color: #1590c5 !important;
    box-shadow: 0 0 0 3px rgba(21, 144, 197, 0.12);
    outline: 0;
}
.bm-coupon__btn {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    background: #1590c5 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background 0.18s ease;
}
.bm-coupon__btn:hover {
    background: #117ba8 !important;
}

/* =================================================================
   Customer-details fields (#customer_details) — inputs share the
   same border style as the payment section.
   ================================================================= */

/* "Billing details" heading. */
.woocommerce-checkout #customer_details h3 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #2b2b2b !important;
    margin: 0 0 8px 0 !important;
}

/* Field labels (Email address, Country / Region, ZIP Code). */
.woocommerce-checkout #customer_details label {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #2b2b2b !important;
}

.woocommerce-checkout #customer_details input[type="text"],
.woocommerce-checkout #customer_details input[type="email"],
.woocommerce-checkout #customer_details input[type="tel"],
.woocommerce-checkout #customer_details input[type="number"],
.woocommerce-checkout #customer_details input[type="password"],
.woocommerce-checkout #customer_details select,
.woocommerce-checkout #customer_details textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #2b2b2b;
    background-color: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-checkout #customer_details textarea {
    min-height: 90px;
    resize: vertical;
}

.woocommerce-checkout #payment div.payment_box {
    padding: 0 !important;
}
.woocommerce-checkout .wc-upe-form.wc-payment-form {
    padding: 0 !important;
    border: none !important;
}
.woocommerce-checkout #payment div.form-row {
    padding: 0 !important;
}


.woocommerce-checkout #customer_details input[type="text"]:focus,
.woocommerce-checkout #customer_details input[type="email"]:focus,
.woocommerce-checkout #customer_details input[type="tel"]:focus,
.woocommerce-checkout #customer_details input[type="number"]:focus,
.woocommerce-checkout #customer_details input[type="password"]:focus,
.woocommerce-checkout #customer_details select:focus,
.woocommerce-checkout #customer_details textarea:focus {
    border-color: #1590c5 !important;
    box-shadow: 0 0 0 3px rgba(21, 144, 197, 0.12);
    outline: 0;
}

/* Country dropdown (WooCommerce select2 / selectWoo) — match the
   same box style as the plain inputs. */
.woocommerce-checkout #customer_details .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 0;
    padding: 11px 14px;
    background-color: #fff;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
}
.woocommerce-checkout #customer_details .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.4;
    color: #2b2b2b;
}
.woocommerce-checkout #customer_details .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}
.woocommerce-checkout #customer_details .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout #customer_details .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1590c5 !important;
}

/* Country dropdown popup (select2 / selectWoo). It is appended to
   <body>, outside #customer_details — but this stylesheet only loads
   on the checkout page, so targeting it directly is safe. */
.select2-dropdown {
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}
.select2-search--dropdown {
    padding: 8px !important;
}
.select2-search--dropdown .select2-search__field {
    padding: 9px 12px !important;
    font-size: 14px !important;
    color: #2b2b2b !important;
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    outline: 0 !important;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: #1590c5 !important;
}
.select2-results__option {
    padding: 9px 14px !important;
    font-size: 15px !important;
    color: #2b2b2b !important;
}
/* Currently-selected option. */
.select2-results__option[aria-selected="true"],
.select2-results__option--selected {
    background-color: #f3f4f6 !important;
    color: #2b2b2b !important;
    font-weight: 600;
}
/* Hovered / keyboard-highlighted option (wins over the selected one). */
.select2-results__option--highlighted,
.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #1590c5 !important;
    color: #fff !important;
}

/* =================================================================
   Payment section (#payment.woocommerce-checkout-payment) —
   clean white, classic styling.
   ================================================================= */

/* Whole payment block — plain white, no inherited tint. */
.woocommerce-checkout #payment.woocommerce-checkout-payment {
    margin-top: 8px;
    background: #fff !important;
}

/* Payment-method list — a single bordered, rounded group.
   Plain block flow (display:block on the ul + each li) so the gateway
   rows can never overlap each other, whatever a gateway injects. */
.woocommerce-checkout #payment ul.payment_methods {
    display: block;
    overflow: hidden;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}

/* One gateway row: radio + name on the first line, payment box below. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    display: flow-root;
    margin: 0;
    padding: 6px 16px !important;
    list-style: none;
    background: #fff;
    border-top: 1px solid #d0d5dd;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:first-child {
    border-top: 0;
}

/* Gateway label. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2b2b2b;
    cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
    margin: 0 0 0 8px;
    vertical-align: middle;
}

/* Payment-method brand icons — a row of brand logos shown inline,
   just after the gateway label (card brands for Stripe, PayPal +
   Venmo for PayPal). Added by the woocommerce/checkout/
   payment-method.php template override. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .bm-pay-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    height: 24px;
    margin-left: 8px;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .bm-pay-icon svg {
    display: block;
    width: auto;
    height: 18px;
}
/* PayPal / Venmo are full-bleed glyphs (no card frame) — size them a
   touch smaller so they balance with the framed card-brand logos. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .bm-pay-icon .bm-glyph {
    height: 15px;
}

/* Payment box — kill WooCommerce's grey background + pointer triangle.
   position/height/float forced so the box always stays in normal flow
   at its natural height — i.e. it grows its gateway row instead of
   overlapping the next one. */
.woocommerce-checkout #payment .payment_box {
    position: relative !important;
    float: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 14px 0 0;
    padding: 0;
    background: #fff !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}
.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}
.woocommerce-checkout #payment .payment_box p {
    margin: 0 0 8px;
}

/* Account Funds gateway — the balance is shown inline in the gateway
   title (see inc/woocommerce/checkout.php), so its click-to-open
   payment box is hidden entirely. */
.woocommerce-checkout #payment .payment_box.payment_method_accountfunds {
    display: none !important;
}
.woocommerce-checkout #payment .bm-funds-balance {
    font-weight: 400;
    color: #6b7280;
}
.woocommerce-checkout #payment .bm-funds-balance .woocommerce-Price-amount {
    font-weight: 500;
    color: #2b2b2b;
}

/* Stripe gateway box — force natural height. woocommerce-gateway-stripe
   sizes this region from its card-iframe via JS; with a saved card
   selected the saved-cards list is taller than that, so the stale
   height lets the box overflow into the next gateway row. Forcing auto
   height (and a block formatting context) makes it grow to its
   content. */
.woocommerce-checkout #payment .payment_box.payment_method_stripe {
    display: flow-root;
}
.woocommerce-checkout #payment .payment_box.payment_method_stripe,
.woocommerce-checkout #payment .payment_box.payment_method_stripe #wc-stripe-upe-form,
.woocommerce-checkout #payment .payment_box.payment_method_stripe .wc-stripe-upe-element,
.woocommerce-checkout #payment .payment_box.payment_method_stripe ul.wc-saved-payment-methods {
    height: auto !important;
    min-height: 0 !important;
}

/* ---- Gateway radio buttons ------------------------------------- */
.woocommerce-checkout #payment input.input-radio {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    padding: 0;
    background: #fff;
    border: 2px solid #cbd2dc;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.woocommerce-checkout #payment input.input-radio:checked {
    border-color: #1590c5;
    background: radial-gradient(circle at center, #1590c5 0 5px, #fff 5px);
}

/* ---- Terms & conditions checkbox ------------------------------- */
.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper {
    margin: 0 0 18px;
}
.woocommerce-checkout #payment .place-order label.checkbox {
    display: block;
    position: relative;
    margin: 0;
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    cursor: pointer;
}
.woocommerce-checkout #payment input.input-checkbox {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 2px solid #cbd2dc;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.woocommerce-checkout #payment input.input-checkbox:checked {
    border-color: #1590c5;
    background-color: #1590c5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.5l3 3 7-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* ---- Place-order button — full width, brand style -------------- */
.woocommerce-checkout #payment .place-order {
    margin: 0;
    padding: 0;
}
.woocommerce-checkout #payment #place_order {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    background: #1590c5 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}
.woocommerce-checkout #payment #place_order:hover {
    background: #117ba8 !important;
}
.woocommerce-checkout #payment #place_order:disabled,
.woocommerce-checkout #payment #place_order[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Hide the place-order button when PayPal is the selected gateway —
   its own "Pay with PayPal" smart buttons are used instead. */
.woocommerce-checkout #payment:has(#payment_method_ppcp-gateway:checked) #place_order {
    display: none !important;
}
.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 15px !important;
}
.wc_payment_method.payment_method_accountfunds {
    min-height: 65px !important;
}

/* =================================================================
   WooCommerce notices — clean rounded boxes matching the checkout
   (replaces the default top-border + icon style).
   ================================================================= */
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info {
    margin: 0 0 18px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5;
    list-style: none;
    box-shadow: none !important;
}
.bm-coupon__toggle a {
    font-size: 16px !important;
    font-weight: 500 !important;
}
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-error::before,
.woocommerce-checkout .woocommerce-info::before {
    display: none !important;
}
.woocommerce-checkout .woocommerce-message li,
.woocommerce-checkout .woocommerce-error li,
.woocommerce-checkout .woocommerce-info li {
    margin: 0;
    list-style: none;
}
.woocommerce-checkout .woocommerce-message {
    color: #067647 !important;
    background: #ecfdf3 !important;
    border: 1px solid #a6e9bf !important;
}
.woocommerce-checkout .woocommerce-error {
    color: #b42318 !important;
    background: #fef3f2 !important;
    border: 1px solid #fda29b !important;
}
.woocommerce-checkout .woocommerce-info {
    color: #175cd3 !important;
    background: #eff8ff !important;
    border: 1px solid #9cd0ff !important;
}

/* =================================================================
   Returning-customer login form (checkout/form-login.php) — matches
   the checkout's card / input / button styling.
   ================================================================= */
.woocommerce-checkout form.woocommerce-form-login {
    margin: 0 0 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
}
.woocommerce-checkout form.woocommerce-form-login input[type="text"],
.woocommerce-checkout form.woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #2b2b2b;
    background-color: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.woocommerce-checkout form.woocommerce-form-login input[type="text"]:focus,
.woocommerce-checkout form.woocommerce-form-login input[type="password"]:focus {
    border-color: #1590c5 !important;
    box-shadow: 0 0 0 3px rgba(21, 144, 197, 0.12);
    outline: 0;
}

/* Login button — brand style. */
.woocommerce-checkout form.woocommerce-form-login .woocommerce-form-login__submit {
    margin: 0;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #1590c5 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background 0.18s ease;
}
.woocommerce-checkout form.woocommerce-form-login .woocommerce-form-login__submit:hover {
    background: #117ba8 !important;
}

/* "Remember me" checkbox. */
.woocommerce-checkout form.woocommerce-form-login input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    background: #fff;
    border: 2px solid #cbd2dc;
    border-radius: 5px;
    cursor: pointer;
}
.woocommerce-checkout form.woocommerce-form-login input[type="checkbox"]:checked {
    border-color: #1590c5;
    background-color: #1590c5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.5l3 3 7-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* "Lost your password?" link. */
.woocommerce-checkout form.woocommerce-form-login .lost_password a {
    color: #1590c5;
    font-size: 16px !important;
    font-weight: 500 !important;
}
.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    margin-left: 10px;
}


/* spacing overrides */
.woocommerce-checkout #customer_details input[type="text"],
.woocommerce-checkout #customer_details input[type="email"] {
    padding: 6.5px 16px !important;
    font-size: 14px !important;
}
.woocommerce-checkout #customer_details .select2-container--default .select2-selection--single {
    padding: 7px 14px !important;
    font-size: 14px !important;
}
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method,
.woocommerce form .form-row {
    border: none !important;
    padding: 0 !important;
}

.payment_box.payment_method_stripe fieldset {
    border: none !important;
}




/* =================================================================
   Order progress bar — rendered twice in form-checkout.php: once at
   the top of the page (.bm-checkout-steps-top, centered to the layout
   width) and once at the bottom of the card (.bm-checkout-steps-box,
   a separator row).
   ================================================================= */
.woocommerce-checkout .bm-checkout-steps-top {
    max-width: 1080px;
    margin: 0 auto 24px;
}
.woocommerce-checkout .bm-checkout-steps-box {
    border-top: 1px solid #e8eaed;
    padding-top: 16px;
    margin-top: 16px;
}

/* Stack on narrow screens — summary first (on top), then the form. */
@media (max-width: 880px) {
    .woocommerce-checkout .bm-checkout-layout {
        gap: 28px;
    }
    .bm-checkout-card {
        padding: 0 !important;
        border: none !important;
        background: #FAFAFA;
    }
    /* Stacked layout — don't stick the summary on top of the form. */
    .bm-checkout-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .bm-summary__total {
        font-size: 30px;
    }
    .bm-summary__name {
        font-size: 14px !important;
    }
    .bm-summary__price {
        font-size: 14px !important;
    }
    .woocommerce-SavedPaymentMethods.wc-saved-payment-methods {
        padding-left: 16px !important;
    }
}

@media (max-width: 380px) {
    .bm-summary__thumb {
        align-self: center;
        width: 60px;
        height: 60px;
        aspect-ratio: auto;
    }
    .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
        font-size: 14px !important;
    }
    .woocommerce-SavedPaymentMethods-token {
        font-size: 12px !important;
    }

}

