/*
 * Payism V3 website: shared components (system section 7).
 * Buttons, inputs, chips, badges, price, rating, product card (grid / phone / deal /
 * retailer / out of stock), mini row, section head, rail, skeleton, empty state, sheet, toast.
 */

/* ---------- buttons (7.1) ---------- */
.v3-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 24px; border-radius: var(--v3-r-12); border: 0;
    font: 600 15px/1 var(--v3-font); cursor: pointer; text-decoration: none !important;
    transition: filter .15s, background .15s, box-shadow .15s, transform .15s; white-space: nowrap;
}
.v3-btn--primary { background: var(--v3-grad-btn); color: #fff !important; }
.v3-btn--primary:hover { filter: brightness(1.04); color: #fff; }
.v3-btn--primary:active { background: var(--v3-brand-700); }
.v3-btn--secondary { background: #fff; color: var(--v3-brand-600) !important; box-shadow: inset 0 0 0 1.5px var(--v3-brand-600); }
.v3-btn--secondary:hover { background: var(--v3-brand-50); }
.v3-btn--white { background: #fff; color: var(--v3-brand-900) !important; }
.v3-btn--tertiary { background: none; height: 40px; padding: 0 4px; color: var(--v3-brand-600) !important; }
.v3-btn--tertiary:hover { text-decoration: underline !important; }
.v3-btn--deal { height: 40px; background: #fff; color: var(--v3-deal) !important; box-shadow: inset 0 0 0 1.5px var(--v3-deal); }
.v3-btn--deal:hover { background: var(--v3-deal); color: #fff !important; }
.v3-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.v3-btn--block { width: 100%; }
.v3-btn[disabled], .v3-btn.is-disabled { background: var(--v3-disabled-bg); color: var(--v3-disabled-ink) !important; box-shadow: none; cursor: not-allowed; }
.v3-icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--v3-shadow-1);
    display: inline-flex; align-items: center; justify-content: center; color: var(--v3-ink); cursor: pointer;
}
.v3-icon-btn:hover { color: var(--v3-brand-600); }
.v3-icon-btn--ghost { background: transparent; box-shadow: none; }
@media (max-width: 767.98px) { .v3-btn { height: 52px; } .v3-btn--sm { height: 44px; } .v3-icon-btn { width: 44px; height: 44px; } }

/* ---------- inputs (7.2) ---------- */
.v3-input {
    height: 48px; width: 100%; padding: 0 16px; border-radius: var(--v3-r-12); border: 1px solid var(--v3-line-strong);
    background: #fff; font: 500 15px var(--v3-font); color: var(--v3-ink);
}
.v3-input:focus { outline: none; border-color: var(--v3-brand-600); box-shadow: var(--v3-focus); }
.v3-input::placeholder { color: #6B7686; }
.v3-label { display: block; font: 600 14px/20px var(--v3-font); color: var(--v3-ink); margin-bottom: 8px; }
.v3-check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; font-size: 14px; color: var(--v3-ink-2); margin: 0; }
.v3-check input { width: 18px; height: 18px; accent-color: var(--v3-brand-600); flex: none; margin: 0; }
.v3-check__count { margin-left: auto; color: var(--v3-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.v3-toggle { position: relative; width: 44px; height: 26px; flex: none; }
.v3-toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.v3-toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--v3-line-strong); transition: background .15s; }
.v3-toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.v3-toggle input:checked + span { background: var(--v3-brand-600); }
.v3-toggle input:checked + span::after { transform: translateX(18px); }
.v3-toggle input:focus-visible + span { box-shadow: var(--v3-focus); }

/* ---------- chips (7.11) ---------- */
.v3-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--v3-r-pill);
    background: #fff; border: 1px solid var(--v3-line-strong); color: var(--v3-ink) !important; font: 500 14px var(--v3-font);
    text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.v3-chip:hover { border-color: var(--v3-brand-600); color: var(--v3-brand-600) !important; }
.v3-chip--soft { background: var(--v3-tile); border-color: transparent; }
.v3-chip.is-selected { background: var(--v3-brand-600); border-color: var(--v3-brand-600); color: #fff !important; }
.v3-chip__x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: -8px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; }
.v3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767.98px) { .v3-chip { height: 40px; } }

/* ---------- badges + pills (7.8) ---------- */
.v3-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--v3-r-8); font: 700 13px/1 var(--v3-font); white-space: nowrap; }
.v3-badge--deal { background: var(--v3-deal); color: #fff; }
.v3-badge--best { background: var(--v3-warning-50); color: var(--v3-ink); }
.v3-badge--new { background: var(--v3-brand-100); color: var(--v3-brand-700); }
.v3-badge--qc { background: var(--v3-brand-100); color: var(--v3-brand-700); }
.v3-badge--oos { background: #EEF2F6; color: var(--v3-muted); }
.v3-badge--custom { color: #fff; }
.v3-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--v3-brand-600); color: #fff; font: 700 12px/1 var(--v3-font); font-variant-numeric: tabular-nums; }

/* ---------- price + rating (7.7, 7.9) ---------- */
.v3-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.v3-price { font: 800 20px/26px var(--v3-font); color: var(--v3-ink); }
/* H8 decisions #4: a ₹0 product reads "Price on request" (no price, no cart button). */
.v3-price.v3-price--ask { font-size: 16px; line-height: 26px; color: var(--v3-ink); }
.v3-mrp { font-size: 14px; color: var(--v3-muted); text-decoration: line-through; }
.v3-off { font: 700 14px var(--v3-font); color: var(--v3-success); }
.v3-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--v3-muted); }
.v3-rating b { color: var(--v3-ink); font-weight: 700; }
.v3-rating .v3i { color: var(--v3-star); width: 14px; height: 14px; }
@media (max-width: 767.98px) { .v3-price { font-size: 17px; line-height: 22px; } .v3-mrp, .v3-off { font-size: 13px; } }

/* ---------- product card (7.6) ---------- */
.v3-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--v3-r-16);
    box-shadow: var(--v3-shadow-1); transition: box-shadow .2s, transform .2s; min-width: 0; height: 100%;
}
.v3-card:hover { box-shadow: var(--v3-shadow-2); transform: translateY(-2px); }
.v3-card__media { position: relative; margin: 12px 12px 0; border-radius: var(--v3-r-12); background: var(--v3-tile); aspect-ratio: 1 / 1; overflow: hidden; }
.v3-card__media > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.v3-card__media img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.v3-card:hover .v3-card__media img { transform: scale(1.03); }
.v3-card__badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; } /* logical: mirrored in rtl (E2E 30 round 6) */
.v3-card__icons { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.v3-card__icon {
    width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--v3-shadow-1); border: 0;
    display: inline-flex; align-items: center; justify-content: center; color: var(--v3-ink); cursor: pointer;
}
.v3-card__icon:hover { color: var(--v3-brand-600); }
.v3-card__icon svg path[fill='#e62e04'] { fill: #e62e04; stroke: #e62e04; }
.v3-card__icon .v3-heart path { fill: none; stroke: currentColor; }
.v3-card__icon .v3-heart path[fill='#e62e04'] { fill: #D63B3B; stroke: #D63B3B; }
.v3-card__bar {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 8px;
    transform: translateY(12px); opacity: 0; transition: opacity .2s, transform .2s;
}
/* Keyboard focus only: a mouse click, or Load more moving focus to the first new card, must not pin the bar open. */
.v3-card:hover .v3-card__bar, .v3-card:has(:focus-visible) .v3-card__bar { opacity: 1; transform: none; }
@supports not selector(:has(*)) { .v3-card:focus-within .v3-card__bar { opacity: 1; transform: none; } }
.v3-card__bar .v3-btn { flex: 1; height: 40px; font-size: 14px; }
.v3-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; flex: 1; }
.v3-card__brand { font: 600 13px/18px var(--v3-font); color: var(--v3-muted); }
.v3-card__name { margin: 0; font: 500 15px/22px var(--v3-font); color: var(--v3-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.v3-card__name a { color: inherit !important; text-decoration: none !important; }
.v3-card__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.v3-card__delivery { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--v3-muted); margin-top: 4px; }
/* H8 round 29 (decision #17): under a Business-mode card's per-unit price, the slab it is for ("10+ units, before GST"). */
.v3-card__slab { font-size: 14px; line-height: 1.3; color: var(--v3-ink-2, #44546C); margin-top: 2px; }
.v3-card__delivery .v3i { width: 16px; height: 16px; }
.v3-card__earn { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--v3-brand-100); color: var(--v3-brand-700); font: 600 13px/20px var(--v3-font); }
.v3-card__add {
    display: none; position: relative; z-index: 2; margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--v3-grad-btn); color: #fff; align-items: center; justify-content: center;
}
/* H8 round 19: the card's own button sits above the name's stretched link (::after, z-index 1), or a click on
   "Add to cart" / "Select option" opened the product page instead (Homepage 8 rails, PDP rails; bazaar.css had it). */
.v3-card__cta { position: relative; z-index: 2; }
.v3-card.is-oos .v3-card__media img { opacity: .6; }
.v3-card--deal .v3-card__claimed { height: 6px; border-radius: 99px; background: var(--v3-line); overflow: hidden; margin-top: 6px; }
.v3-card--deal .v3-card__claimed > i { display: block; height: 100%; background: var(--v3-deal); border-radius: inherit; }
.v3-card--deal .v3-card__claimed-text { font-size: 13px; color: var(--v3-muted); }
.v3-card--deal .v3-btn--deal { margin-top: 6px; position: relative; z-index: 2; }
.v3-card__push { flex: 1 0 0; }
@media (max-width: 767.98px) {
    .v3-card__media { margin: 8px 8px 0; aspect-ratio: 4 / 5; }
    .v3-card__body { padding: 8px 12px 12px; }
    .v3-card__name { font-size: 14px; line-height: 20px; min-height: 40px; }
    .v3-card__bar { display: none; }
    .v3-card__add { display: inline-flex; }
    .v3-card:hover { transform: none; }
    .v3-card__icons { top: 6px; inset-inline-end: 6px; }
    .v3-card__badge { top: 6px; inset-inline-start: 6px; }
}

/* ---------- mini row (search suggestions, mini cart) ---------- */
.v3-mini { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--v3-r-12); color: var(--v3-ink) !important; text-decoration: none !important; }
.v3-mini__img { width: 56px; height: 56px; flex: none; border-radius: var(--v3-r-8); background: var(--v3-tile); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v3-mini__img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.v3-mini__name { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v3-mini__price { text-align: right; font: 700 15px var(--v3-font); font-variant-numeric: tabular-nums; }
.v3-mini__price del { display: block; font: 500 13px var(--v3-font); color: var(--v3-muted); }
.v3-mini__off { display: block; font: 700 13px var(--v3-font); color: var(--v3-success); }

/* ---------- section head + rail ---------- */
.v3-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--v3-section-head); }
.v3-sec-head__link { display: inline-flex; align-items: center; gap: 4px; font: 600 15px var(--v3-font); color: var(--v3-brand-600) !important; white-space: nowrap; }
.v3-sec-head__tools { display: flex; align-items: center; gap: 12px; }
.v3-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--v3-grid-gap)) / 5); gap: var(--v3-grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 16px; margin: -4px -2px -16px; }
.v3-rail::-webkit-scrollbar { display: none; }
.v3-rail > * { scroll-snap-align: start; }
@media (max-width: 1199.98px) { .v3-rail { grid-auto-columns: calc((100% - 2 * var(--v3-grid-gap)) / 3); } }
@media (max-width: 767.98px) {
    .v3-rail { grid-auto-columns: 46%; margin-right: calc(-1 * var(--v3-side)); padding-right: var(--v3-side); }
}
.v3-pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--v3-grid-gap); }
@media (max-width: 1199.98px) { .v3-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .v3-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- surfaces ---------- */
.v3-panel { background: #fff; border-radius: var(--v3-r-20); box-shadow: var(--v3-shadow-1); padding: 24px; }
@media (max-width: 767.98px) { .v3-panel { padding: 16px; border-radius: var(--v3-r-16); } }

/* ---------- skeleton (7.14) ---------- */
.v3-skel { background: #E9EEF4; border-radius: var(--v3-r-8); position: relative; overflow: hidden; }
.v3-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #F3F6FA, transparent); transform: translateX(-100%); animation: v3-shimmer 1.2s infinite; }
@keyframes v3-shimmer { to { transform: translateX(100%); } }
.v3-skel-card { background: #fff; border-radius: var(--v3-r-16); box-shadow: var(--v3-shadow-1); padding: 12px; }
.v3-skel-card .v3-skel--img { aspect-ratio: 1 / 1; border-radius: var(--v3-r-12); }
.v3-skel-card .v3-skel--l1 { height: 14px; width: 70%; margin-top: 14px; }
.v3-skel-card .v3-skel--l2 { height: 14px; width: 45%; margin-top: 8px; }
.v3-skel-card .v3-skel--l3 { height: 18px; width: 30%; margin-top: 12px; }

/* ---------- empty state (7.12) ---------- */
.v3-empty { text-align: center; padding: 48px 24px; }
.v3-empty__icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: var(--v3-brand-100); color: var(--v3-brand-600); display: flex; align-items: center; justify-content: center; }
.v3-empty__icon .v3i { width: 40px; height: 40px; }
.v3-empty__title { font: 700 22px/30px var(--v3-font); margin: 0 0 8px; overflow-wrap: anywhere; } /* Round 12 web: a very long search word wraps instead of running out of the card */
.v3-empty__text { color: var(--v3-muted); margin: 0 auto 24px; max-width: 520px; }
.v3-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- sheet / overlay (7.10, 7.13) ---------- */
.v3-scrim { position: fixed; inset: 0; background: rgba(15, 27, 45, .3); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.v3-scrim.is-open { opacity: 1; visibility: visible; }
.v3-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: #fff; border-radius: var(--v3-r-24) var(--v3-r-24) 0 0;
    box-shadow: var(--v3-shadow-3); transform: translateY(100%); transition: transform .25s ease; display: flex; flex-direction: column; max-height: 92vh;
}
.v3-sheet.is-open { transform: none; }
.v3-sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--v3-line-strong); margin: 10px auto 0; }
.v3-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--v3-line); }
.v3-sheet__foot { display: flex; align-items: center; gap: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--v3-line); background: #fff; }
.v3-sheet__foot .v3-btn--primary { flex: 1; }

/* ---------- toast (7.13) ---------- */
.v3-toasts { position: fixed; top: 140px; right: 24px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; }
.v3-toast { background: var(--v3-ink); color: #fff; border-radius: var(--v3-r-12); padding: 12px 16px; font: 500 14px var(--v3-font); box-shadow: var(--v3-shadow-2); }
@media (max-width: 767.98px) { .v3-toasts { top: auto; bottom: 80px; left: 16px; right: 16px; } }

/* ---------- breadcrumb ---------- */
.v3-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--v3-muted); }
.v3-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--v3-line-strong); }
.v3-crumbs a { color: var(--v3-muted) !important; }
.v3-crumbs a:hover { color: var(--v3-brand-600) !important; }
.v3-crumbs [aria-current] { color: var(--v3-ink); }

/* hidden overlays stay hidden whatever their display rule */
.v3-sheet[hidden], .v3-pin-pop[hidden], .v3-mega[hidden], .v3-suggest[hidden], .v3-ls__more[hidden] { display: none !important; }
@media (max-width: 767.98px) { .v3-hide-sm { display: none !important; } }

/* phone card tuning (home_390_v3 / search-results_390_v3): denser type, one-line delivery, deal cards keep only "Grab deal" */
@media (max-width: 767.98px) {
    .v3-card__brand { font-size: 13px; line-height: 16px; }
    .v3-card__name { font-size: 13px; line-height: 18px; min-height: 36px; }
    .v3-card .v3-price { font-size: 16px; line-height: 20px; }
    .v3-card .v3-mrp, .v3-card .v3-off { font-size: 13px; }
    .v3-card__body { gap: 2px; }
    .v3-card__delivery { font-size: 13px; gap: 4px; min-width: 0; }
    .v3-card__delivery span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .v3-card__delivery .v3i { width: 14px; height: 14px; flex: none; }
    .v3-card__add { width: 32px; height: 32px; }
    .v3-card--deal .v3-card__add, .v3-card--deal .v3-card__delivery { display: none; }
    .v3-card--deal .v3-btn--deal { height: 40px; margin-top: 8px; font-size: 14px; }
    .v3-card--deal .v3-card__claimed-text { font-size: 12px; }
}

/* V3 match (addresses_sheet_390_v3.png): the new-address modal is a bottom sheet on a phone. Same form and fields;
   the rows are re-ordered visually (Pincode, Full name, Mobile number, address, city, state, ...). */
@media (max-width: 767px) {
    .v3as.modal { padding: 0 !important; }
    .v3as .modal-dialog, .v3as .modal-dialog.modal-dialog-scrollable { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 !important; max-width: none !important; width: 100% !important; min-height: 0; height: auto !important; max-height: 94vh; align-items: flex-end; transform: translateY(24px); transition: transform .2s ease-out; }
    .v3as.show .modal-dialog { transform: none; }
    .v3as .modal-content { border: 0; border-radius: 24px 24px 0 0 !important; max-height: 94vh; overflow: hidden; position: relative; padding-top: 14px; }
    .v3as .modal-header .close::before, .v3as .modal-header .close::after { display: none !important; content: none !important; }
    .v3as-grab { position: absolute; top: 10px; left: 50%; width: 52px; height: 5px; margin-left: -26px; border-radius: 999px; background: #C9CFD8; }
    .v3as .modal-header { border: 0 !important; padding: 18px 20px 6px 24px !important; align-items: center; }
    .v3as .modal-title { font: 800 26px/34px var(--v3-font) !important; letter-spacing: -.3px; color: var(--v3-ink) !important; }
    .v3as .modal-header .close { width: 44px; height: 44px; margin: 0 !important; padding: 0 !important; border-radius: 50%; background: #EEF2F7 !important; opacity: 1; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: var(--v3-ink) !important; }
    .v3as .modal-body { padding: 0 !important; overflow-y: auto; }
    .v3as .modal-body > .p-3 { display: flex; flex-direction: column; padding: 8px 20px 0 !important; }
    .v3as .payism-retail-eyebrow, .v3as .modal-body > .p-3 > p.text-muted { display: none !important; }
    .v3as .modal-body .row { margin: 0; display: block; }
    .v3as .modal-body .row > [class*="col-"] { padding: 0; max-width: none; flex: none; }
    .v3as .modal-body label { font-size: 15px; font-weight: 500; color: var(--v3-ink-2); margin: 0 0 8px; }
    .v3as .modal-body .form-control, .v3as .modal-body .bootstrap-select > .dropdown-toggle { height: 50px; border-radius: 10px !important; border: 1px solid var(--v3-line-strong) !important; font-size: 16px; padding: 0 16px; margin-bottom: 18px !important; background: #fff; }
    .v3as .modal-body .bootstrap-select.form-control { border: 0 !important; height: auto; padding: 0; margin-bottom: 18px !important; }
    .v3as .modal-body .bootstrap-select.form-control > .dropdown-toggle { margin-bottom: 0 !important; width: 100%; }
    .v3as .modal-body textarea.form-control { height: auto; min-height: 76px; padding: 12px 16px; }
    .v3as .modal-body .row:has([name="postal_code"]) { order: 1; }
    .v3as .modal-body .row:has([name="name"]) { order: 2; }
    .v3as .modal-body .row:has([name="phone"]) { order: 3; }
    .v3as .modal-body .row:has([name="address"]) { order: 4; }
    .v3as .modal-body .row:has([name="city_id"]) { order: 5; }
    .v3as .modal-body .row:has([name="state_id"]) { order: 6; }
    .v3as .modal-body .row:has([name="country_id"]) { order: 6; }
    .v3as .modal-body .row:has([name="area_id"]) { order: 7; }
    .v3as .modal-body .row:has([name="email"]) { order: 8; }
    .v3as .modal-body .row:has([name="gst_number"]) { order: 9; }
    .v3as .modal-body .row:has(#map), .v3as .modal-body .row:has([name="latitude"]), .v3as .modal-body .row:has([name="longitude"]) { order: 10; }
    .v3as .v3as-save { order: 20; position: sticky; bottom: 0; margin: 4px -20px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--v3-line); text-align: center !important; }
    .v3as .v3as-save .btn { width: 100% !important; height: 56px; border-radius: 12px !important; font: 700 18px/1 var(--v3-font); background: linear-gradient(180deg, var(--v3-brand-500, #1E88E5), var(--v3-brand-600)) !important; border: 0; }
}

/* Round 6 polish (final rounds): cards in one row or rail line up. The price block sits at the bottom
   of every card (a card without a rating or with a one-line name no longer lifts its price), and on a
   phone the round "+" keeps the bottom-right corner of the price block even when MRP and "% off" wrap
   onto a second line (it jumped between rows from card to card in "You may also like"). */
.v3-card__body > .v3-price-row { margin-top: auto; }
@media (max-width: 767.98px) {
    .v3-card:not(.v3-card--deal) .v3-price-row:has(> .v3-card__add) { position: relative; padding-right: 40px; min-height: 32px; }
    .v3-card:not(.v3-card--deal) .v3-price-row > .v3-card__add { position: absolute; right: 0; bottom: 0; margin-left: 0; }
}
