/*
 * Payism V3 website: cart + checkout page layer (lane shop-b).
 * design/buy/cart_{1440,390}_v3.png, checkout_delivery_1440_v3.png, checkout_payment_{1440,390}_v3.png.
 * Needs buy-account-kit.css. Scoped to .v3b-cart and .v3b-checkout.
 */

/* ---------- strips ---------- */
.v3b-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 16px; font-size: 15px; }
.v3b-strip--ok { background: var(--v3-success-50); color: var(--v3-success); border: 1px solid #CDEBDB; }
.v3b-strip--ok strong { color: #0B5E3C; font-weight: 700; }
.v3b-strip--info { background: var(--v3-brand-50); color: var(--v3-ink-2); border: 1px solid var(--v3-brand-100); }
.v3b-strip--info .v3x-ico { color: var(--v3-brand-600); }
.v3b-strip--info span { flex: 1; min-width: 200px; }

/* ---------- cart: seller groups + lines ---------- */
.v3b-seller { padding: 0; overflow: hidden; }
.v3b-seller + .v3b-seller { margin-top: 16px; }
.v3b-seller__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 24px; border-bottom: 1px solid var(--v3-line); font-size: 14px; color: var(--v3-ink-2); }
.v3b-seller__name, .v3b-seller__ship { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v3b-seller__name .v3x-ico, .v3b-seller__ship .v3x-ico { color: var(--v3-brand-600); }
.v3b-seller__name strong { color: var(--v3-ink); }
.v3b-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--v3-ink); }
.v3b-star { color: var(--v3-star); fill: var(--v3-star); }
.v3b-line { display: flex; gap: 20px; padding: 20px 24px; }
.v3b-line + .v3b-line { border-top: 1px solid var(--v3-line); }
.v3b-line__body { flex: 1; min-width: 0; }
.v3b-line__qc { margin-top: 8px; }
.v3b-line__money { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 10px; }
.v3b .v3b-qty__hint { order: 10; flex-basis: 100%; margin: -4px 0 0; color: var(--v3-warning); font-size: 13px; line-height: 18px; font-weight: 600; }
/* H8 round 8: a line that went out of stock, and the note that holds checkout back until it is removed or saved. */
.v3b .v3b-qty__hint--out { order: 0; flex-basis: auto; margin: 0; color: #B42318; font-size: 15px; line-height: 22px; font-weight: 700; }
.v3b-summary__block { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #B42318; font-size: 14px; line-height: 20px; font-weight: 600; }
.v3b-line__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.v3b-line__total { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.v3b-line__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; margin-top: 6px; }

/* quantity stepper (round 40 px buttons around a tabular number) */
.v3b .v3b-qty { display: inline-flex !important; align-items: center; gap: 4px; width: auto !important; border: 1px solid var(--v3-line-strong); border-radius: 999px; padding: 3px; background: #fff; }
.v3b .v3b-qty__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--v3-tile); color: var(--v3-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.v3b .v3b-qty__btn:hover { background: var(--v3-brand-100); color: var(--v3-brand-700); }
.v3b .v3b-qty__btn:disabled { opacity: .45; cursor: not-allowed; }
.v3b .v3b-qty__input { width: 44px; height: 38px; border: 0; text-align: center; font-weight: 700; font-size: 16px; color: var(--v3-ink); background: transparent; -moz-appearance: textfield; padding: 0; }
.v3b .v3b-qty__input::-webkit-outer-spin-button, .v3b .v3b-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v3b-qty__fixed { font-weight: 700; }

/* saved for later */
.v3b-saved { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; max-width: calc(66.66% + 8px); }
.v3b-saved__item { display: flex; gap: 16px; align-items: flex-start; margin: 0 !important; padding: 16px; }
.v3b-saved__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1199.98px) { .v3b-saved { max-width: none; } }
@media (max-width: 767.98px) { .v3b-saved { grid-template-columns: 1fr; gap: 12px; } }

/* summary column */
.v3b-summary .v3b-card + .v3b-card { margin-top: 16px; }
.v3b-summary .v3b-h4 { margin-bottom: 12px; }
.v3b-summary .v3b-card__head .v3b-h4 { margin-bottom: 0; }
.v3b-summary__cta { margin-top: 16px; }
.v3b-coupon .v3b-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.v3b-ticket { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed #9CC9E8; border-radius: 12px; background: var(--v3-brand-50); }
.v3b-ticket__ok { width: 32px; height: 32px; border-radius: 50%; background: var(--v3-success); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.v3b-ticket__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.v3b-ticket__txt strong { color: var(--v3-ink); }
.v3b-earn-mini { display: flex !important; align-items: center; gap: 12px; text-decoration: none !important; color: var(--v3-ink) !important; border: 1.5px solid var(--v3-brand-100); }
.v3b-earn-mini > span:nth-child(2) { flex: 1; }
.v3b-earn-mini .v3b-h4 { display: block; margin: 0; }
.d-block { display: block; }

/* phone */
@media (max-width: 767.98px) {
    .v3b-cart .v3b-trustline { display: none; }
    .v3b-seller__head { padding: 12px 16px; font-size: 13px; }
    .v3b-seller__ship { display: none; }
    /* H8 round 19: with shop names hidden and one shipment, the head held only the (hidden) delivery line: an empty strip. */
    .v3b-seller__head:not(:has(.v3b-seller__name)) { display: none; }
    .v3b-line { padding: 16px; gap: 12px; }
    .v3b-line__money { gap: 10px; }
    .v3b-line__total { display: none; }
    /* Round 5 polish (final rounds): the three actions sat in the narrow text column beside the
       88 px photo, so "Share" wrapped onto a third row and every line grew 50 px taller. On a
       phone the row now runs the full card width under the photo, on one line. */
    .v3b-line__acts { justify-content: flex-start; flex-wrap: wrap; margin: 10px 0 -8px calc(-88px - 12px - 6px); padding-top: 2px; border-top: 1px solid var(--v3-line); gap: 0 4px; }
    .v3b-line__acts .v3b-act { white-space: nowrap; }
    .v3b-line__acts .v3b-act { font-size: 13px; }
    .v3b .v3b-qty__btn { width: 40px; height: 40px; }
    .v3b-summary .v3b-marks { display: none; }
    .v3b-cart .v3b-summary__cta { display: none; }
}

/* ---------- checkout ---------- */
.v3b-co-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin: -24px 0 24px; min-height: 72px; padding: 12px 0;
    background: #fff; box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax var(--v3-line); clip-path: inset(0 -100vmax -1px); }
.v3b-co-logo img { height: 32px; width: auto; display: block; }
.v3b-co-secure { display: inline-flex; align-items: center; gap: 10px; color: var(--v3-ink); font-size: 14px; line-height: 18px; }
.v3b-co-secure .v3x-ico { color: var(--v3-success); }
.v3b-co-secure strong { display: block; font-weight: 700; }
.v3b-co-secure small { display: block; color: var(--v3-muted); font-size: 13px; }
.v3b-co-title { margin-bottom: 16px; }
.v3b-co-title .v3b-sub { margin: 0 !important; }
.v3b-co-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding: 16px 24px; font-size: 13px; color: var(--v3-muted); }
.v3b-co-foot nav { display: inline-flex; gap: 16px; }
.v3b-co-foot a { color: var(--v3-ink-2); }
.v3b-co-foot__help { display: inline-flex; align-items: center; gap: 6px; }
.v3b-co-foot .v3b-marks { margin: 0; }
/* focused shell: no store header, category nav, footer or bottom nav on checkout (design/buy) */
body.v3b-focus .payism-main-wrapper > :not(.v3b-checkout):not(main):not(.modal):not(script):not(style),
body.v3b-focus .payism-main-wrapper > main > :not(.v3b-checkout):not(.modal):not(script):not(style),
body.v3b-focus .v3-bnav, body.v3b-focus .payism-mobile-bottom-nav, body.v3b-focus .v3-skip { display: none !important; }
@media (max-width: 767.98px) {
    .v3b-co-top { margin-top: -12px; min-height: 56px; }
    .v3b-co-top .v3b-progress { order: 3; width: 100%; justify-content: space-between; }
    .v3b-co-top .v3b-progress li + li::before { width: 12px; }
    .v3b-co-top .v3b-progress li:not([aria-current]) { font-size: 0; gap: 0; }
    .v3b-co-secure small { display: none; }
    .v3b-co-foot { justify-content: center; text-align: center; margin-bottom: 72px; }
}
.v3b-co-top .v3b-trustline { font-weight: 600; color: var(--v3-success); }
.v3b-co-top .v3b-trustline .v3x-ico { color: var(--v3-success); }
.v3b-progress { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.v3b-progress li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--v3-muted); }
.v3b-progress li + li::before { content: ''; width: 40px; height: 2px; background: var(--v3-line-strong); margin-right: 4px; }
.v3b-progress__n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--v3-line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #fff; }
.v3b-progress li[aria-current] { color: var(--v3-ink); }
.v3b-progress li[aria-current] .v3b-progress__n { border-color: var(--v3-brand-600); background: var(--v3-brand-600); color: #fff; box-shadow: 0 0 0 4px var(--v3-brand-100); }
.v3b-progress li.is-done { color: var(--v3-ink-2); }
.v3b-progress li.is-done .v3b-progress__n { background: var(--v3-success); border-color: var(--v3-success); color: transparent; position: relative; }
.v3b-progress li.is-done .v3b-progress__n::after { content: '✓'; position: absolute; color: #fff; font-size: 14px; }
.v3b-progress li.is-done + li::before { background: var(--v3-success); }
@media (max-width: 767.98px) {
    .v3b-co-top { margin-bottom: 16px; gap: 12px; }
    .v3b-progress { width: 100%; justify-content: space-between; gap: 4px; }
    .v3b-progress li { flex-direction: column; gap: 4px; font-size: 12px; flex: 1; }
    .v3b-progress li + li::before { display: none; }
}

/* step cards: the V2 accordion cards restyled */
.v3b-checkout .payism-retail-checkout-accordion > .card,
.v3b-checkout .payism-retail-checkout-card {
    border: 0 !important; border-radius: 20px !important; background: #fff; box-shadow: var(--v3-shadow-1);
    margin-bottom: 16px !important; overflow: visible;
}
.v3b-checkout .payism-retail-checkout-card > .card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: transparent; border: 0; padding: 20px 24px !important; border-radius: 20px 20px 0 0; cursor: pointer;
}
.v3b-checkout .payism-retail-checkout-card > .card-header svg { display: none; }
.v3b-checkout .payism-retail-checkout-card > .card-header > .d-flex { gap: 4px; }
.v3b-checkout .payism-retail-checkout-card > .card-header .fs-19 { font-size: 20px !important; font-weight: 700 !important; color: var(--v3-ink); margin-left: 8px !important; }
.v3b-checkout .payism-retail-checkout-card > .card-header .la-angle-down { color: var(--v3-muted); }
.v3b-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--v3-brand-100); color: var(--v3-brand-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.v3b-checkout .payism-retail-checkout-card > .collapse > .card-body,
.v3b-checkout .payism-retail-checkout-card > .collapsing > .card-body,
.v3b-checkout .payism-retail-checkout-card .card-body { padding: 0 24px 24px; }
.v3b-checkout .order-on-behalf-section { gap: 12px; flex-wrap: wrap; }
.v3b-checkout .psf-notice { border-radius: 16px; }
@media (max-width: 767.98px) {
    .v3b-checkout .payism-retail-checkout-card > .card-header { padding: 16px !important; }
    .v3b-checkout .payism-retail-checkout-card .card-body { padding: 0 16px 16px; }
    .v3b-checkout .payism-retail-checkout-card > .card-header .fs-19 { font-size: 17px !important; }
}

/* option tiles (address, delivery type, payment): payism-megabox */
.v3b-checkout .payism-megabox { margin-bottom: 12px !important; }
.v3b-checkout .payism-megabox .payism-megabox-elem {
    border: 1.5px solid var(--v3-line-strong) !important; border-radius: 16px !important; background: #fff;
    min-height: 56px; align-items: center; transition: border-color .15s, background .15s;
}
.v3b-checkout .payism-megabox input:checked ~ .payism-megabox-elem,
.v3b-checkout .payism-megabox > input:checked + .payism-megabox-elem {
    border-color: var(--v3-brand-600) !important; background: var(--v3-brand-50) !important; box-shadow: 0 0 0 1px var(--v3-brand-600) inset;
}
.v3b-checkout .payism-megabox input:focus-visible ~ .payism-megabox-elem { box-shadow: var(--v3-focus); }
.v3b-checkout .payism-megabox:hover .payism-megabox-elem { border-color: var(--v3-brand-400) !important; }
.v3b-checkout .payism-rounded-check { border-color: var(--v3-line-strong); }

/* delivery: one panel per seller shipment */
.v3b-checkout #delivery_info > .card {
    border: 1px solid var(--v3-line) !important; border-radius: 16px !important; padding: 16px 20px; margin-bottom: 16px !important; box-shadow: none;
}
.v3b-checkout #delivery_info > .card > .card-header { padding: 0 0 12px !important; border-bottom: 1px solid var(--v3-line) !important; background: none; }
.v3b-checkout #delivery_info > .card > .card-header h5 { font-size: 16px !important; }
.v3b-checkout #delivery_info .list-group-item { background: transparent; padding: 10px 0 !important; }
.v3b-checkout #delivery_info .size-60px { width: 64px !important; height: 64px !important; border-radius: 12px; background: var(--v3-tile); object-fit: contain; padding: 6px; }
.v3b-checkout #delivery_info h6 { font-size: 15px !important; color: var(--v3-ink); }

/* payment: earnings card first, then the method list (one per row) */
.v3b-checkout #payment_info > div:first-child { display: flex; flex-direction: column; }
.v3b-checkout #payment_info > div:first-child > :is(h2, h3) { font-size: 18px !important; }
.v3b-checkout #payment_info .row.gutters-10 { display: flex; flex-direction: column; margin: 0; }
.v3b-checkout #payment_info .row.gutters-10 > [class*='col-'] { max-width: 100%; flex: 0 0 auto; padding: 0; }
.v3b-checkout #payment_info .payism-megabox-elem { padding: 14px 18px !important; }
.v3b-checkout #payment_info .payism-megabox-elem .fs-14 { font-size: 15px !important; font-weight: 600 !important; color: var(--v3-ink); }
.v3b-checkout #payment_info .payism-megabox-elem img { object-fit: contain; }
.v3b-checkout .v3b-earn {
    order: -1; text-align: left !important; margin: 0 0 20px !important; padding: 20px 24px !important;
    border-radius: 20px; border: 1.5px solid var(--v3-brand-100); background: linear-gradient(180deg, #F2F8FD, #FFFFFF) !important;
}
.v3b-earn__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.v3b-earn__coin { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #FFD978, #F2A900); color: #5A3B00; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.v3b-earn__title { font-size: 18px; color: var(--v3-ink); }
.v3b-earn__why { margin-top: 10px; font-size: 13px; color: var(--v3-warning); background: var(--v3-warning-50); border-radius: 10px; padding: 8px 12px; }
.v3b-checkout .v3b-earn .btn { border-radius: 12px !important; min-height: 44px; }
.v3b-checkout .v3b-earn .btn-primary { background: var(--v3-grad-btn); border: 0; }

/* agree + place order */
.v3b-checkout .pt-2rem { padding-top: 16px; gap: 4px; color: var(--v3-ink-2); }
.v3b-checkout #submitOrderBtn {
    border-radius: 12px !important; min-height: 56px; padding: 0 28px !important; font-size: 16px !important; font-weight: 700 !important;
    background: var(--v3-grad-btn); border: 0; box-shadow: 0 6px 16px rgba(9, 119, 192, .22);
}
.v3b-checkout #submitOrderBtn:disabled { background: #E3EAF2; color: #6B7686; box-shadow: none; }
.v3b-checkout .psf-helper { font-size: 13px; color: var(--v3-muted); margin-top: 6px; }

/* address cards (shipping_info) */
.v3b-checkout #shipping_info .payism-megabox-elem { padding: 16px !important; }
.v3b-checkout #shipping_info .btn { border-radius: 12px !important; }
.v3b-checkout #shipping_info .border-dashed, .v3b-checkout #shipping_info [onclick*='add_new_address'] { border-radius: 16px !important; }

/* phone: bootstrap columns stack inside the cards */
@media (max-width: 767.98px) {
    .v3b-checkout #delivery_info > .card { padding: 12px 14px; }
    .v3b-checkout .payism-retail-checkout-card .row.align-items-center.pt-3 > [class*='col-'] { flex: 0 0 100%; max-width: 100%; text-align: left !important; }
    .v3b-checkout .payism-retail-checkout-card .row.align-items-center.pt-3 > .col-6:first-child { display: none; }
    .v3b-checkout #submitOrderBtn { width: 100%; }
}

/* ---------- cart: you may also like + earnings band (design/buy/cart_*_v3.png) ---------- */
.v3b-cart-more { padding-top: 0; }
.v3b-crail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 2px 8px; scrollbar-width: thin; }
.v3b-crail__item { scroll-snap-align: start; min-width: 0; }
.v3b-earnband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 48px; padding: 40px 48px; }
.v3b .v3b-earnband .v3b-earnband__t { color: #fff !important; font-size: 32px; line-height: 40px; font-weight: 800; margin: 0 0 6px; }
.v3b-earnband p { color: rgba(255,255,255,.88); font-size: 17px; margin: 0; }
@media (max-width: 1199.98px) { .v3b-crail { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 767.98px) {
    .v3b-crail { grid-auto-columns: 46%; gap: 12px; }
    .v3b-earnband { margin-top: 32px; padding: 24px 20px; }
    .v3b .v3b-earnband .v3b-earnband__t { font-size: 22px; line-height: 30px; }
    .v3b-earnband .v3b-btn { width: 100%; }
}

/* ---------- wverify: address "Change" buttons (partials/cart/shipping_info) ---------- */
/* btn-secondary-base is the saffron #FFBA00 with white text (1.7:1, fails WCAG AA); in the V3 checkout it is the
   system secondary button: white, brand border and brand text (5.0:1 on white). */
.v3b-checkout .btn-secondary-base,
.v3b-checkout .btn-secondary-base.text-white {
    background: #fff !important; color: var(--v3-brand-600) !important; border: 1.5px solid var(--v3-brand-600) !important;
    box-shadow: none !important; font-weight: 600;
}
.v3b-checkout .btn-secondary-base:hover, .v3b-checkout .btn-secondary-base:focus-visible {
    background: var(--v3-brand-50) !important; color: var(--v3-brand-600) !important;
}

/* lane v3wr catalog-buy: the saved address reads as ONE card (V2 had a bordered tile inside a bordered box,
   a pill "Change" button floating outside the tile, and an empty radio). Markup and ids unchanged. */
.v3b-checkout #default-address-box,
.v3b-checkout #default-billing-address-box {
    border: 1.5px solid var(--v3-line-strong) !important; border-radius: 16px; background: #fff; overflow: hidden;
}
.v3b-checkout #default-address-box:has(input:checked),
.v3b-checkout #default-billing-address-box:has(input:checked) { border-color: var(--v3-brand-600) !important; box-shadow: 0 0 0 1px var(--v3-brand-600) inset; }
.v3b-checkout #default-address-box.border-warning { border-color: #E9B949 !important; }
.v3b-checkout #default-address-box.border-danger { border-color: var(--v3-error) !important; }
.v3b-checkout #default-address-box .payism-megabox,
.v3b-checkout #default-billing-address-box .payism-megabox { margin-bottom: 0 !important; }
.v3b-checkout #default-address-box .payism-megabox-elem,
.v3b-checkout #default-billing-address-box .payism-megabox-elem {
    border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 18px 20px !important; line-height: 1.55; color: var(--v3-ink-2);
}
.v3b-checkout #default-address-box .payism-megabox-elem strong,
.v3b-checkout #default-billing-address-box .payism-megabox-elem strong { color: var(--v3-ink); font-weight: 700; }
.v3b-checkout #default-address-change-btn,
.v3b-checkout #billing-address-change-btn {
    background: transparent !important; border: 0 !important; color: var(--v3-brand-700) !important; font-weight: 700; font-size: 14px;
    padding: 6px 4px !important; box-shadow: none !important; cursor: pointer;
}
.v3b-checkout #default-address-change-btn:hover,
.v3b-checkout #billing-address-change-btn:hover { text-decoration: underline; }
.v3b-checkout #default-address-change-btn:focus-visible,
.v3b-checkout #billing-address-change-btn:focus-visible { box-shadow: var(--v3-focus) !important; border-radius: 8px; outline: 0; }
.v3b-checkout [data-psf="address-missing-city"] { padding: 0 16px 16px !important; }
.v3b-checkout [data-psf="address-missing-city"] .psf-notice { margin: 0; border-radius: 12px; }
@media (max-width: 767.98px) {
    .v3b-checkout #default-address-box .col-md-4,
    .v3b-checkout #default-billing-address-box .col-md-4 { padding: 0 20px 12px 56px !important; }
}
/* lane v3wr catalog-buy: with no payment method for the cart, "Continue to review" only led to the generic
   "Please fill in all mandatory fields!" toast. The step now reads as blocked under the warning that says why. */
.v3b-checkout :has(> .v3co-next):has([data-eco="no-payment-option"]) > .v3co-next .v3b-btn {
    background: var(--v3-line-strong) !important; color: var(--v3-muted) !important; box-shadow: none !important; pointer-events: none; cursor: not-allowed;
}
.v3b-checkout [data-eco="no-payment-option"] { border-radius: 12px; border: 1px solid #F3D58A; background: var(--v3-warning-50, #FFF6E0); color: #6B4400; }
/* lane v3wr catalog-buy: "Order on behalf of" (retailer / seller) reads as the drawn Myself / A customer chips,
   not two bare V2 checkboxes. Same radios (name order_on_behalf, toggleOrderOnBehalf), visually hidden but focusable. */
.v3b-checkout .order-on-behalf-section { gap: 12px; }
.v3b-checkout .order-on-behalf-section .payism-radio {
    position: relative; display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 22px !important; margin: 0 !important;
    border: 1.5px solid var(--v3-line-strong); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; color: var(--v3-ink-2);
    transition: border-color .15s, background .15s;
}
.v3b-checkout .order-on-behalf-section .payism-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v3b-checkout .order-on-behalf-section .payism-radio .payism-square-check { display: none; }
.v3b-checkout .order-on-behalf-section .payism-radio .fs-15 { padding: 0 !important; }
.v3b-checkout .order-on-behalf-section .payism-radio:hover { border-color: var(--v3-brand-400); }
.v3b-checkout .order-on-behalf-section .payism-radio:has(input:checked) {
    border-color: var(--v3-brand-600); background: var(--v3-brand-50); color: var(--v3-brand-700); box-shadow: 0 0 0 1px var(--v3-brand-600) inset;
}
.v3b-checkout .order-on-behalf-section .payism-radio:has(input:focus-visible) { box-shadow: var(--v3-focus); }

/* ---------- checkout step 1: "Order for" switch + saved address cards (design/buy checkout_address_{1440,390}_v3.png) ---------- */
.v3b-checkout .v3ca-for { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 20px 24px 0; }
.v3b-checkout .v3ca-for + #shipping_info { padding-top: 16px; }
.v3b-checkout .v3ca-for__label { font-size: 16px; font-weight: 600; color: var(--v3-ink); }
.v3b-checkout .v3ca-for__seg { display: inline-flex; gap: 10px; }
.v3b-checkout .v3ca-for__opt { margin: 0; cursor: pointer; }
.v3b-checkout .v3ca-for__opt input { position: absolute; opacity: 0; pointer-events: none; }
.v3b-checkout .v3ca-for__opt span { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 168px; height: 40px; padding: 0 18px; border: 1px solid var(--v3-line-strong); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; color: var(--v3-ink); }
.v3b-checkout .v3ca-for__opt input:checked + span { border: 1.5px solid var(--v3-brand-600); background: var(--v3-brand-50); color: var(--v3-brand-700); font-weight: 700; }
.v3b-checkout .v3ca-for__opt input:checked + span .v3x-ico { color: var(--v3-brand-600); }
.v3b-checkout .v3ca-for__opt input:focus-visible + span { box-shadow: var(--v3-focus); }
.v3b-checkout .v3ca-for__hint { flex-basis: 100%; margin: 0 0 0 100px; font-size: 13px; color: var(--v3-muted); }

.v3ca-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v3ca-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--v3-line-strong); border-radius: 12px; background: #fff; padding: 20px 20px 16px; min-height: 228px; transition: border-color .15s, box-shadow .15s; }
.v3ca-card.is-sel { border: 2px solid var(--v3-brand-600); padding: 19px 19px 15px; box-shadow: 0 0 0 4px rgba(9, 119, 192, .06); }
.v3ca-card.is-off { background: var(--v3-tile); }
.v3ca-card.is-warn { border-color: #F3D9A4; }
.v3ca-card--flat { min-height: 0; }
.v3ca-card__pick { display: flex; gap: 18px; margin: 0; cursor: pointer; flex: 1; font-weight: 400; }
.v3ca-card__pick input { position: absolute; opacity: 0; pointer-events: none; }
.v3ca-card__radio { flex: none; width: 24px; height: 24px; margin-top: 2px; border: 2px solid #B8C4D2; border-radius: 50%; background: #fff; position: relative; }
.v3ca-card__pick input:checked + .v3ca-card__radio { border-color: var(--v3-brand-600); }
.v3ca-card__pick input:checked + .v3ca-card__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--v3-brand-600); }
.v3ca-card__pick input:focus-visible + .v3ca-card__radio { box-shadow: var(--v3-focus); }
.v3ca-card__pick input:disabled + .v3ca-card__radio { background: var(--v3-disabled-bg); }
.v3ca-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v3ca-card__body .address-text { display: flex; flex-direction: column; }
.v3ca-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v3ca-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--v3-brand-50); color: var(--v3-brand-700); font-size: 13px; font-weight: 600; }
.v3ca-card:not(.is-sel) .v3ca-chip:not(.v3ca-chip--ok) { background: var(--v3-tile); color: var(--v3-ink-2); }
.v3ca-chip--ok, .v3ca-card:not(.is-sel) .v3ca-chip--ok { background: var(--v3-success-50); color: var(--v3-success); }
.v3ca-card__name { font-size: 16px; font-weight: 700; color: var(--v3-ink); margin-bottom: 6px; overflow-wrap: anywhere; }
.v3ca-card__addr { font-size: 15px; line-height: 1.4; color: var(--v3-ink-2); overflow-wrap: anywhere; }
.v3ca-card__phone { font-size: 15px; color: var(--v3-ink-2); margin-top: 8px; }
.v3ca-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0 42px; }
.v3ca-card__eta { display: none; align-items: center; gap: 10px; font-size: 15px; color: var(--v3-success); font-weight: 500; }
.v3ca-card.is-sel .v3ca-card__eta { display: inline-flex; }
.v3ca-card__edit { margin-left: auto; border: 0; background: none; padding: 4px 0; color: var(--v3-brand-600); font-weight: 700; font-size: 15px; cursor: pointer; }
.v3ca-card__edit:hover { text-decoration: underline; }
.v3ca-card__note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0 42px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.v3ca-card__note--warn { background: var(--v3-warning-50); color: var(--v3-warning); }
.v3ca-card__note--off { background: var(--v3-error-50); color: var(--v3-error); }
.v3ca-card__note strong { display: block; }

.v3ca-add { margin-top: 16px; border: 1.5px dashed #B9CDE2; border-radius: 12px; background: #fff; }
.v3ca-add__main { display: flex; align-items: center; gap: 28px; width: 100%; padding: 14px 24px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px; }
.v3ca-add__main:hover { background: var(--v3-brand-50); }
.v3ca-add__main strong { display: block; font-size: 17px; color: var(--v3-ink); }
.v3ca-add__main small { display: block; font-size: 15px; color: var(--v3-muted); margin-top: 2px; }
.v3ca-add__plus { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--v3-brand-50); color: var(--v3-brand-600); display: inline-flex; align-items: center; justify-content: center; }
.v3ca-add__loc { display: none; }

.v3ca-sr { position: absolute !important; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.v3ca-check { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 0; font-size: 16px; color: var(--v3-ink); cursor: pointer; font-weight: 400; }
.v3ca-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--v3-brand-600); }
.v3ca-bill { margin-top: 14px; }
.v3ca-bill__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.v3ca-link { border: 0; background: none; padding: 0; color: var(--v3-brand-600); font-weight: 700; cursor: pointer; }
.v3ca-gst { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 18px 0 4px; border: 0; border-top: 1px solid var(--v3-line); background: none; text-align: left; font-size: 16px; color: var(--v3-ink); cursor: pointer; }
.v3ca-gst .v3x-ico { color: var(--v3-ink-2); flex: none; }
.v3ca-gst__t[hidden] { display: none; }
.v3ca-gst:hover .v3ca-gst__t { text-decoration: underline; }
.v3b-checkout [data-v3co="address"] .v3co-next .v3b-btn--block { width: auto; min-width: 412px; }

@media (max-width: 767.98px) {
    .v3b-checkout .v3ca-for { padding: 12px 16px 0; gap: 10px; }
    .v3b-checkout .v3ca-for__label { flex-basis: 100%; font-size: 15px; }
    .v3b-checkout .v3ca-for__seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .v3b-checkout .v3ca-for__opt span { min-width: 0; width: 100%; height: 44px; }
    .v3b-checkout .v3ca-for__hint { margin: 0; font-size: 12px; }
    .v3ca-grid { grid-template-columns: 1fr; gap: 12px; }
    .v3ca-card { min-height: 0; padding: 16px; }
    .v3ca-card.is-sel { padding: 15px; }
    .v3ca-card__pick { gap: 14px; }
    .v3ca-card__foot { margin-left: 38px; }
    .v3ca-card__note { margin-left: 0; }
    .v3ca-add { padding: 0 0 4px; }
    .v3ca-add__main { gap: 16px; padding: 16px; }
    .v3ca-add__main strong { font-size: 16px; }
    .v3ca-add__main small { font-size: 13px; }
    .v3ca-add__plus { width: 56px; height: 56px; }
    .v3ca-add__loc { display: flex; align-items: center; gap: 16px; width: calc(100% - 32px); margin: 0 16px 8px; padding: 14px 8px 8px; border: 0; border-top: 1px solid var(--v3-line); background: none; color: var(--v3-brand-600); font-weight: 700; font-size: 15px; cursor: pointer; }
    .v3ca-check { font-size: 15px; }
    .v3ca-gst { font-size: 14px; }
    .v3b-checkout [data-v3co="address"] .v3co-next .v3b-btn--block { width: 100%; min-width: 0; }
}

/* ---------- checkout step 2: shipments with Home delivery / Payism point cards (design/buy checkout_delivery_{1440,390}_v3.png) ---------- */
.v3b-checkout #delivery_info > .card { padding: 0 !important; overflow: hidden; border-color: var(--v3-line-strong) !important; }
.v3b-checkout #delivery_info > .card > .card-header { padding: 14px 16px !important; background: var(--v3-tile) !important; border-bottom: 1px solid var(--v3-line) !important; border-radius: 0 !important; }
.v3b-checkout #delivery_info > .card > .card-body { padding: 0 16px 16px !important; }
.v3dl-lines { list-style: none; margin: 0; padding: 0; }
.v3dl-line { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.v3dl-line + .v3dl-line { border-top: 1px solid var(--v3-line); }
.v3dl-line__img { flex: none; width: 156px; height: 72px; border-radius: 10px; background: var(--v3-tile); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.v3dl-line__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v3dl-line__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v3dl-line__name { font-size: 15px; color: var(--v3-ink); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3dl-line__sub { font-size: 14px; color: var(--v3-muted); }
.v3dl-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.v3dl-opt { margin: 0; cursor: pointer; font-weight: 400; display: block; }
.v3dl-opt input { position: absolute; opacity: 0; pointer-events: none; }
.v3dl-opt__box { display: flex; align-items: flex-start; gap: 16px; height: 100%; min-height: 84px; padding: 16px 18px; border: 1px solid var(--v3-line-strong); border-radius: 10px; background: #fff; transition: border-color .15s, background .15s; }
.v3dl-opt__box > .v3x-ico { color: var(--v3-brand-600); flex: none; }
.v3dl-opt:hover .v3dl-opt__box { border-color: var(--v3-brand-400); }
.v3dl-opt input:checked + .v3dl-opt__box { border: 1.5px solid var(--v3-brand-600); background: var(--v3-brand-50); padding: 15.5px 17.5px; }
.v3dl-opt input:focus-visible + .v3dl-opt__box { box-shadow: var(--v3-focus); }
.v3dl-opt__radio { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #B8C4D2; border-radius: 50%; background: #fff; position: relative; }
.v3dl-opt input:checked + .v3dl-opt__box .v3dl-opt__radio { border-color: var(--v3-brand-600); }
.v3dl-opt input:checked + .v3dl-opt__box .v3dl-opt__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--v3-brand-600); }
.v3dl-opt__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v3dl-opt__t strong { font-size: 15px; font-weight: 700; color: var(--v3-ink); }
.v3dl-opt__t small { font-size: 14px; line-height: 1.4; color: var(--v3-muted); overflow-wrap: anywhere; }
.v3dl-pick { margin-top: 12px; }
.v3dl-pick__l { display: block; font-size: 14px; font-weight: 600; color: var(--v3-ink); margin-bottom: 6px; }
.v3dl-pick .bootstrap-select > .dropdown-toggle, .v3dl-pick select.form-control { border-radius: 10px !important; min-height: 48px; border-color: var(--v3-line-strong) !important; }
@media (max-width: 767.98px) {
    .v3b-checkout #delivery_info > .card > .card-header { padding: 12px !important; }
    .v3b-checkout #delivery_info > .card > .card-body { padding: 0 12px 12px !important; }
    .v3dl-line { gap: 14px; align-items: flex-start; }
    .v3dl-line__img { width: 120px; height: 84px; }
    .v3dl-line__name { font-size: 14px; }
    .v3dl-line__sub { font-size: 13px; }
    .v3dl-opts { grid-template-columns: 1fr; }
    .v3dl-opt__box { min-height: 72px; padding: 14px 16px; }
    .v3dl-opt input:checked + .v3dl-opt__box { padding: 13.5px 15.5px; }
}
.v3b-checkout #delivery_info .v3co-ship { width: 100%; }
/* phone top bar (design/buy checkout_*_390_v3.png) */
.v3b-co-back, .v3b-co-ptitle, .v3b-co-pstep, .v3b-co-secure__p { display: none; }
@media (max-width: 767.98px) {
    .v3b-co-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 8px 0 12px; min-height: 0; }
    .v3b-co-top .v3b-co-logo, .v3b-co-top .v3b-progress, .v3b-co-secure small, .v3b-co-secure strong { display: none !important; }
    .v3b-co-back { display: inline-flex; width: 40px; height: 40px; margin-left: -8px; align-items: center; justify-content: center; color: var(--v3-ink); }
    .v3b-co-ptitle { display: block; font: 800 22px/28px var(--v3-font); color: var(--v3-ink); }
    .v3b-co-secure { color: var(--v3-brand-600); gap: 6px; }
    .v3b-co-secure .v3x-ico { color: var(--v3-brand-600); }
    .v3b-co-secure__p { display: inline; font-weight: 600; font-size: 15px; }
    .v3b-co-pstep { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; }
    .v3b-co-pstep p { margin: 0; font-size: 15px; color: var(--v3-ink-2); white-space: nowrap; }
    .v3b-co-pstep p strong { color: var(--v3-brand-600); font-weight: 700; }
    .v3b-co-bars { display: inline-flex; gap: 6px; flex: 0 1 170px; }
    .v3b-co-bars i { flex: 1; height: 4px; border-radius: 4px; background: var(--v3-line-strong); }
    .v3b-co-bars i.is-on { background: var(--v3-brand-600); }
    .v3b-checkout .v3b-co-title { display: none; }
    .v3b-checkout #delivery_info .v3co-ship > span:first-child { flex: 1; min-width: 0; }
    .v3b-checkout #delivery_info .v3co-ship__n { display: block; }
    .v3b-checkout #delivery_info .v3co-ship__sep { display: none; }
    .v3b-checkout #delivery_info .v3co-ship__by { font-size: 13px; }
    .v3b-checkout #delivery_info .v3co-ship { flex-wrap: nowrap; align-items: flex-start; }
    .v3b-checkout #delivery_info .v3co-ship .v3b-pill { flex: none; font-size: 12px; }
}
