/* ═══════════════════════════════════════════════════════════════════════════
   ADVERTISEMENTS — New ad / Edit ad (views/advertisement/advertisement-form)
   ═══════════════════════════════════════════════════════════════════════════
   Named campaign-*, never ads-*: ad blockers (EasyList's `/css/ads-` rule)
   refuse to load a stylesheet called ads-…, and hide elements with ids like
   #newAd or #adLink — the page then looks broken only for admins who run one.

   Loaded after admin-modern.css and uses its tokens, like campaign-list.css, whose
   status colours and slot meter it repeats so the two pages read as one.

   The form is four numbered cards in the order the admin works at the
   counter — who pays, the banner, where and when, the payment — beside a
   summary that stays in view while the cards scroll, because "can I book
   this, and for how much?" depends on fields in three different cards.

   Colour: #b34700 is brand text on white (5.5:1, AA). --kw-brand (#d45500)
   is ~3.6:1 and only ever a fill, a border or a large glyph here. Small grey
   text uses --kw-ink-2; --kw-muted fails AA at these sizes. */

/* ---- Heading ----------------------------------------------------------- */
.af_head { float: none; width: 100%; margin: 0 0 20px; }
.af_head h2 { margin: 4px 0 6px; }
.af_back {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 600; color: #b34700; text-decoration: none;
}
.af_back:hover { text-decoration: underline; color: #b34700; }
.af_back:focus-visible { outline: 3px solid var(--kw-brand); outline-offset: 2px; border-radius: 4px; }
.af_lead { margin: 0; max-width: 680px; font-size: 14px; line-height: 1.55; color: var(--kw-ink-2); }

/* An ?id= that matches no ad */
.af_missing {
    float: left; width: 100%; padding: 48px 24px; text-align: center; background: #fff;
    border: 1.5px dashed var(--kw-line); border-radius: var(--kw-radius);
}
.af_missing > i { font-size: 34px; color: var(--kw-ink-2); }
.af_missing h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 700; color: var(--kw-ink); }
.af_missing p { margin: 0 0 18px; color: var(--kw-ink-2); }

/* ---- Layout: the cards, and the summary beside them --------------------- */
.af_layout {
    float: left; width: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start;
}
.af_main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.af_side { position: sticky; top: 88px; min-width: 0; }

.af_card {
    padding: 20px 22px 22px; background: #fff;
    border: 1.5px solid var(--kw-line); border-radius: var(--kw-radius); box-shadow: var(--kw-shadow-xs);
}
.af_card_h { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; }
.af_card_h h3 { margin: 2px 0 3px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--kw-ink); }
.af_card_h p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--kw-ink-2); }
.af_step {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--kw-brand-soft); color: #b34700; font-size: 14px; font-weight: 700;
}
.af_card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* ---- Fields -------------------------------------------------------------- */
.af_field { margin: 16px 0 0; min-width: 0; }
.af_field--first, .af_seg + div > .af_field:first-child { margin-top: 0; }
.af_label { display: block; margin: 0 0 6px; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--kw-ink); }
legend.af_label { float: none; width: auto; }
.af_opt {
    margin-left: 6px; padding: 1px 7px; border-radius: 50px; background: var(--kw-subtle);
    font-size: 11.5px; font-weight: 600; color: var(--kw-ink-2);
}
.af_card .form-control, .af_card .form-select {
    min-height: 42px; border: 1.5px solid var(--kw-line); border-radius: 10px; font-size: 14px; color: var(--kw-ink);
}
.af_card .form-control:focus, .af_card .form-select:focus {
    border-color: var(--kw-brand); box-shadow: 0 0 0 3px var(--kw-brand-soft-2);
}
.af_card .form-control[aria-invalid="true"], .af_card .form-select[aria-invalid="true"] { border-color: var(--kw-danger); }
.af_w_phone { max-width: 260px; }
.af_hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--kw-ink-2); }
.af_hint--top { margin: -2px 0 10px; }
.af_hint code { padding: 1px 5px; border-radius: 4px; background: var(--kw-subtle); font-size: 12px; color: var(--kw-ink); }
.af_err, .af_warn {
    display: flex; gap: 6px; align-items: baseline; margin: 6px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.45;
}
.af_err { color: var(--kw-danger); }
.af_warn { color: #7a4200; }
.af_err[hidden], .af_warn[hidden] { display: none; }
.af_note {
    display: flex; gap: 8px; align-items: baseline; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
    background: #fff7ec; font-size: 13px; line-height: 1.5; color: #7a4200;
}
.af_note[hidden] { display: none; }
.af_row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.af_muted { color: var(--kw-ink-2); font-weight: 400; }

/* ---- A choice of two, as one control (who is paying) --------------------- */
.af_seg {
    display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px !important; padding: 4px !important;
    border-radius: 12px; background: var(--kw-subtle);
}
.af_seg input { position: absolute; opacity: 0; pointer-events: none; }
.af_seg label {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border-radius: 9px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--kw-ink-2);
}
.af_seg input:checked + label { background: #fff; color: #b34700; box-shadow: var(--kw-shadow-xs); }
.af_seg input:focus-visible + label { outline: 3px solid var(--kw-brand); outline-offset: 1px; }

/* ---- Picking a shop ------------------------------------------------------ */
.af_search { position: relative; }
.af_search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--kw-ink-2); }
.af_search .form-control { padding-left: 38px; }
.af_shops {
    max-height: 264px; overflow-y: auto; margin: 10px 0 0; padding: 4px;
    border: 1.5px solid var(--kw-line); border-radius: 12px;
}
.af_shop {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; cursor: pointer;
    border: 0; border-radius: 9px; background: none; text-align: left;
}
.af_shop:hover { background: var(--kw-subtle); }
.af_shop:focus-visible { outline: 3px solid var(--kw-brand); outline-offset: -3px; }
.af_avatar {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--kw-brand-soft); color: #b34700; font-size: 13px; font-weight: 700;
}
.af_shop_t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.af_shop_t b, .af_picked_t b { font-size: 14px; font-weight: 700; color: var(--kw-ink); }
.af_shop_t small, .af_picked_t small { font-size: 12.5px; color: var(--kw-ink-2); }
.af_verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #1d4ed8; }
.af_none { padding: 12px; font-size: 13.5px; line-height: 1.5; color: var(--kw-ink-2); }
.af_linkbtn {
    padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-weight: 700; color: #b34700; text-decoration: underline;
}
.af_linkbtn:focus-visible { outline: 3px solid var(--kw-brand); outline-offset: 2px; border-radius: 3px; }
.af_picked {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1.5px solid var(--kw-brand); border-radius: 12px; background: var(--kw-brand-soft);
}
.af_picked[hidden] { display: none; }
.af_picked_t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }

/* ---- The banner ---------------------------------------------------------- */
/* The file input stays in the page, out of sight: Replace opens it. */
.af_file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.af_drop {
    display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 26px 18px; cursor: pointer;
    border: 1.5px dashed #cdd5e0; border-radius: 12px; background: #fbfcfd; text-align: center;
}
.af_drop[hidden] { display: none; }
.af_drop > i { font-size: 26px; color: var(--kw-ink-2); }
.af_drop_t { font-size: 14px; color: var(--kw-ink); }
.af_drop_t b { color: #b34700; }
.af_drop_s { max-width: 440px; font-size: 12.5px; line-height: 1.45; color: var(--kw-ink-2); }
.af_drop:hover, .af_drop.is-over { border-color: var(--kw-brand); background: var(--kw-brand-soft); }
.af_drop.is-bad { border-color: var(--kw-danger); }
.af_file:focus-visible + .af_drop { outline: 3px solid var(--kw-brand); outline-offset: 2px; }
.af_banner { border: 1.5px solid var(--kw-line); border-radius: 12px; overflow: hidden; }
.af_banner[hidden] { display: none; }
.af_banner_img { aspect-ratio: 4 / 1; background: var(--kw-subtle); }
.af_banner_img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.af_banner_bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px;
    border-top: 1px solid var(--kw-line); background: #fff;
}
.af_banner_meta { flex: 1 1 auto; font-size: 12.5px; color: var(--kw-ink-2); }
.af_btn_del { color: var(--kw-danger) !important; }

/* Three lines of words, each with its own switch. A switched-off line is
   dimmed rather than hidden, so it is easy to switch back on. */
.af_lines { margin-top: 18px !important; }
.af_line { margin: 0 0 12px; }
.af_line_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.af_line_l { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--kw-ink); }
.af_switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--kw-ink-2); }
.af_switch .form-check-input { float: none; width: 2.4em; height: 1.3em; margin: 0; cursor: pointer; }
.af_switch .form-check-input:checked { background-color: var(--kw-brand); border-color: var(--kw-brand); }
.af_switch .form-check-input:focus { box-shadow: 0 0 0 3px var(--kw-brand-soft-2); border-color: var(--kw-brand); }
.af_line.is-off .form-control { opacity: .5; }

.af_link_row { display: flex; gap: 8px; align-items: stretch; }
.af_link_row .form-control { flex: 1 1 auto; min-width: 0; }

/* A small toggle chip: quick run lengths, "Their shop page" */
.af_chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
    border: 1.5px solid var(--kw-line); border-radius: 50px; background: #fff;
    font-size: 13px; font-weight: 600; color: var(--kw-ink-2);
}
.af_chip[hidden] { display: none; }
.af_chip--tall { border-radius: 10px; }
.af_chip:hover { border-color: var(--kw-brand); color: #b34700; }
.af_chip[aria-pressed="true"] { border-color: var(--kw-brand); background: var(--kw-brand-soft); color: #b34700; }
.af_chip:focus-visible { outline: 3px solid var(--kw-brand); outline-offset: 1px; }

/* ---- Where and when ------------------------------------------------------ */
/* The slot cards: what each place is, what a day costs, how full it is
   today. The ten cells are the same meter as on the Advertisements list. */
.af_slot_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.af_slot {
    position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 16px; cursor: pointer;
    border: 1.5px solid var(--kw-line); border-radius: 12px; background: #fff;
}
.af_slot input { position: absolute; opacity: 0; pointer-events: none; }
.af_slot:hover { border-color: #f0b48a; }
.af_slot.on { border-color: var(--kw-brand); background: var(--kw-brand-soft); box-shadow: 0 0 0 1px var(--kw-brand) inset; }
.af_slot:focus-within { outline: 3px solid var(--kw-brand); outline-offset: 2px; }
.af_slot_h { display: flex; align-items: center; gap: 8px; }
.af_dot {
    flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid #b8c1cc; background: #fff;
}
.af_slot.on .af_dot { border-color: var(--kw-brand); box-shadow: inset 0 0 0 3px #fff; background: var(--kw-brand); }
.af_slot_name { flex: 1 1 auto; font-size: 14.5px; font-weight: 700; color: var(--kw-ink); }
.af_slot_price { font-size: 13px; font-weight: 700; color: #b34700; white-space: nowrap; }
.af_slot_d { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--kw-ink-2); }
.af_meter { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.af_meter i { height: 9px; border-radius: 3px; background: var(--kw-subtle); box-shadow: inset 0 0 0 1px #dfe4eb; }
.af_meter i.on { background: var(--kw-brand); box-shadow: none; }
.af_slot_use { font-weight: 600; color: var(--kw-ink); }
.af_slot.is-full .af_slot_use { color: var(--kw-danger); }

.af_when { margin-top: 4px; }
.af_days { display: flex; align-items: center; gap: 8px; }
.af_days .form-control { max-width: 110px; }
.af_days span { font-size: 13.5px; color: var(--kw-ink-2); }
.af_quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.af_end { margin: 10px 0 0; font-size: 13.5px; color: var(--kw-ink); }
.af_end:empty { display: none; }

/* The first slide: a premium, so it reads as an option with a price. */
.af_pin {
    display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; cursor: pointer;
    border: 1.5px solid var(--kw-line); border-radius: 12px; background: #fff;
}
.af_pin input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--kw-brand); }
.af_pin:has(input:checked) { border-color: var(--kw-brand); background: var(--kw-brand-soft); }
.af_pin:focus-within { outline: 3px solid var(--kw-brand); outline-offset: 2px; }
.af_pin_t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.af_pin_h { font-size: 14px; color: var(--kw-ink); }
.af_pin_price { margin-left: 6px; font-size: 13px; font-weight: 700; color: #b34700; }
.af_pin_t small { font-size: 12.5px; line-height: 1.45; color: var(--kw-ink-2); }

/* Whether the slot has room for these dates: always an icon and words. */
.af_avail {
    display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
    font-size: 13.5px; line-height: 1.5;
}
.af_avail:empty { display: none; }
.af_avail > i { flex: 0 0 auto; margin-top: 3px; font-size: 15px; }
.af_avail p { margin: 0 0 4px; }
.af_avail p:last-child { margin-bottom: 0; }
.af_avail .af_v_t { font-weight: 700; }
.af_v_acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.af_avail--ok { background: rgba(31, 180, 137, .1); color: #0f6b52; }
.af_avail--no { background: #fdecec; color: #8f1d14; }
.af_avail--wait { background: var(--kw-subtle); color: var(--kw-ink-2); }
.af_avail--info { background: #eaf1ff; color: #1d4ed8; }
.af_avail.is-flag { box-shadow: inset 0 0 0 1.5px var(--kw-danger); }
.af_avail:focus { outline: 3px solid var(--kw-brand); outline-offset: 2px; }

/* ---- Payment ------------------------------------------------------------- */
.af_bill { padding: 12px 14px; border-radius: 12px; background: var(--kw-subtle); }
.af_bill_row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13.5px; color: var(--kw-ink-2); }
.af_bill_row b { font-weight: 700; color: var(--kw-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.af_bill_total { margin-top: 6px; padding-top: 8px; border-top: 1px solid #dde3ea; color: var(--kw-ink); font-weight: 600; }
.af_bill_empty { margin: 0; font-size: 13px; color: var(--kw-ink-2); }
.af_money { display: flex; align-items: center; gap: 8px; }
.af_money span { font-size: 15px; font-weight: 700; color: var(--kw-ink-2); }
.af_money .form-control { max-width: 200px; }
.af_diff { font-weight: 700; color: #7a4200; }
.af_paystat { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0 !important; }
.af_paystat legend { width: 100%; }
.af_optcard {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; cursor: pointer;
    border: 1.5px solid var(--kw-line); border-radius: 12px; background: #fff;
    font-size: 13.5px; color: var(--kw-ink-2);
}
.af_optcard b { color: var(--kw-ink); }
.af_optcard input { width: 17px; height: 17px; margin: 0; accent-color: var(--kw-brand); }
.af_optcard:has(input:checked) { border-color: var(--kw-brand); background: var(--kw-brand-soft); }
.af_optcard:focus-within { outline: 3px solid var(--kw-brand); outline-offset: 2px; }
.af_pay3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.af_pay3[hidden] { display: none; }

/* ---- Summary ------------------------------------------------------------- */
.af_sum {
    padding: 18px; background: #fff;
    border: 1.5px solid var(--kw-line); border-radius: var(--kw-radius); box-shadow: var(--kw-shadow-sm);
}
.af_sum_h { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--kw-ink); }
.af_thumb {
    position: relative; aspect-ratio: 4 / 1; overflow: hidden; border-radius: 10px;
    background: var(--kw-subtle); display: grid; place-items: center;
}
.af_thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af_thumb img[hidden] { display: none; }
.af_thumb_cap {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 6px 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 75%); color: #fff;
}
.af_thumb_cap[hidden] { display: none; }
.af_thumb_cap small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.af_thumb_cap b { font-size: 12.5px; line-height: 1.2; }
.af_thumb_cap span { font-size: 9.5px; font-weight: 700; }
.af_thumb_none { font-size: 12.5px; color: var(--kw-ink-2); }
.af_thumb_none[hidden] { display: none; }
.af_pv_btns { display: flex; gap: 8px; margin: 10px 0 0; }
.af_pv_btns .btn { flex: 1 1 0; }
.af_sum_list { margin: 14px 0 0; }
.af_sum_list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--kw-line); }
.af_sum_list dt { font-size: 13px; font-weight: 600; color: var(--kw-ink-2); }
.af_sum_list dd { margin: 0; min-width: 0; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--kw-ink); }
.af_sum_money { font-weight: 700; }
.af_unpaid { color: #7a4200; }
.af_sum_v { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.af_sum_v:empty { display: none; }
.af_sum_v--ok { background: rgba(31, 180, 137, .1); color: #0f6b52; }
.af_sum_v--no { background: #fdecec; color: #8f1d14; }
.af_sum_v--wait { background: var(--kw-subtle); color: var(--kw-ink-2); }
.af_sum_v--info { background: #eaf1ff; color: #1d4ed8; }
.af_sum_note { margin: 8px 0 0; font-size: 12.5px; color: var(--kw-ink-2); }
.af_save { width: 100%; margin: 14px 0 0; min-height: 44px; }
.af_block { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--kw-danger); }
.af_block[hidden] { display: none; }
.af_msg { margin: 6px 0 0; font-size: 12.5px; color: var(--kw-ink-2); }
.af_msg:empty { display: none; }
.af_cancel { display: block; margin: 10px 0 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--kw-ink-2); }
.af_cancel:hover { color: #b34700; }

/* The ad's status, on an existing ad: a dot and a word, as on the list. */
.af_pill {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px; border-radius: 50px;
    font-size: 12px; font-weight: 700; vertical-align: middle;
}
.af_pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.af_pill--live { background: rgba(31, 180, 137, .13); color: #0f6b52; }
.af_pill--scheduled { background: #eaf1ff; color: #1d4ed8; }
.af_pill--unpaid { background: #fff1db; color: #7a4200; }
.af_pill--paused { background: var(--kw-subtle); color: var(--kw-ink-2); }
.af_pill--ended { background: #f1f3f6; color: #5b6573; }

/* ---- Web and App previews -------------------------------------------------
   Built from fixed screenshots of the two home pages, cut where the banner
   goes and blurred, with the banner in focus at its real place:
     Top     under the menu (web) / under the header (app)
     Middle  after the category tiles (web) / between New Arrivals and
             Feature Products (app)
   The cuts are by the screenshots' own proportions (web_top.jpg 1920 × 524:
   header and menu to 170, categories after; app_bottom_prev.jpg 393 × 990:
   New Arrivals ends at 385), so they hold at any width. */
.pv_body { background: #eef1f5; }
.pv_note { max-width: 760px; margin: 0 auto 16px; font-size: 13.5px; line-height: 1.5; color: var(--kw-ink-2); text-align: center; }
.pv_web {
    display: flex; flex-direction: column; max-width: 1200px; margin: 0 auto; overflow: hidden;
    border-radius: 14px; background: #fff; box-shadow: var(--kw-shadow-md);
}
.pv_shot { overflow: hidden; }
.pv_shot img { display: block; width: 100%; filter: blur(1.5px); opacity: .55; }
.pv_web_head { aspect-ratio: 1920 / 170; }
.pv_web_cats { aspect-ratio: 1920 / 354; }
.pv_web_cats img { margin-top: calc(-170 / 1920 * 100%); }
.pv_web_rest { aspect-ratio: 1920 / 720; }
.pv_web .pv_web_head { order: 1; }
.pv_web[data-slot="top"] .pv_banner { order: 2; }
.pv_web .pv_web_cats { order: 3; }
.pv_web[data-slot="middle"] .pv_banner { order: 4; }
.pv_web .pv_web_rest { order: 5; }

.pv_banner { position: relative; overflow: hidden; background: var(--kw-subtle); }
.pv_banner > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv_banner--web { aspect-ratio: 4 / 1; }
.pv_banner--app { aspect-ratio: 2 / 1; margin: 8px 12px; border-radius: 12px; }
.pv_text {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 6px; padding: 0 5%; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); color: #fff;
}
.pv_text p { margin: 0; font-size: clamp(10px, 1.2vw, 14px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pv_text h2 { margin: 0; font-size: clamp(16px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; color: #fff; }
.pv_btn {
    display: inline-block; padding: 7px 16px; border-radius: 50px; background: var(--kw-brand-grad);
    font-size: clamp(10px, 1vw, 13px); font-weight: 700; color: #fff;
}
.pv_banner--app .pv_text p { font-size: 9px; }
.pv_banner--app .pv_text h2 { font-size: 16px; }
.pv_banner--app .pv_btn { padding: 4px 10px; font-size: 10px; }
.pv_text [hidden] { display: none; }
/* A line the admin has not written yet: shown as a placeholder, dimmed. */
.pv_empty { opacity: .55; font-style: italic; }

.pv_phone {
    width: 393px; max-width: 100%; margin: 0 auto; overflow: hidden;
    border: 10px solid #1f2430; border-radius: 40px; background: #fff; box-shadow: var(--kw-shadow-md);
}
.pv_app { display: flex; flex-direction: column; }
.pv_app_head { aspect-ratio: 393 / 127; }
.pv_app_upper { aspect-ratio: 393 / 385; }
.pv_app_lower { aspect-ratio: 393 / 605; }
.pv_app_lower img { margin-top: calc(-385 / 393 * 100%); }
.pv_app .pv_app_head { order: 1; }
.pv_app[data-slot="top"] .pv_banner { order: 2; }
.pv_app .pv_app_upper { order: 3; }
.pv_app[data-slot="middle"] .pv_banner { order: 4; }
.pv_app .pv_app_lower { order: 5; }

/* The panel's close button takes its × from an image these dialogs do not
   have, so on these dialogs it is drawn in. */
.cm_modal .btn-close {
    background: #FF7203 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---- Narrower screens ---------------------------------------------------- */
@media (max-width: 1199.98px) {
    .af_layout { grid-template-columns: minmax(0, 1fr); }
    .af_side { position: static; }
}
@media (max-width: 767.98px) {
    .af_card { padding: 16px; }
    .af_row2, .af_slot_grid, .af_pay3 { grid-template-columns: minmax(0, 1fr); }
    .af_link_row { flex-wrap: wrap; }
    .af_seg { display: flex; }
    .af_seg label { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .af_card *, .af_sum * { transition: none !important; }
}
