/* ux-couple-b.css — page-level styles for this area (replaces inline styles).
   Covers: couple microsite editor, bookings, contracts, payments, supplier browsing,
   preferred suppliers, the public wedding microsite and RSVP, payment pages, messages. */

/* ── Utilities ─────────────────────────────────────────────── */
.u-hide { display: none; }
.modalbg.u-hide { display: none; }
.u-vh { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.minw0 { min-width: 0; }
.warnc { color: var(--warn); }
.okc { color: var(--ok); }
.bg-cream { background: var(--cream); }
.inl { display: inline; }
.as-center { align-self: center; }
.ae { align-items: flex-end; }
.jend { justify-content: flex-end; }
.grow1 { flex: 1; }
.lh18 { line-height: 1.8; }
.gap-x32 { column-gap: 32px; }
.tl { text-align: left; }
.divider-tight { margin: 16px 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-hd { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.inp-sm { padding: 7px 10px; font-size: 13px; }
.fld-150 { min-width: 150px; }
.fld-160 { min-width: 160px; }
.fld-grow { flex: 1; min-width: 180px; }
.modalft { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-wide { max-width: 640px; max-height: 85vh; overflow-y: auto; }
.pillrow .selpill { position: relative; }
.selpill:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.w100 { width: 100%; }
button.lnk { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.card .empty { padding: 36px 20px; }
@media (max-width: 600px) {
  .modalbg { padding: 12px; align-items: flex-end; }
  .modalbg > .modal, .modalbg > .rsvppanel { max-height: 92vh; overflow-y: auto; }
  .modalbd { padding: 16px 18px; }
  .modalft { padding: 0 18px 18px; }
  .modalft .btn { flex: 1; justify-content: center; }
}

/* ── Bookings ──────────────────────────────────────────────── */
.bk-kpis .kpi { font-size: 24px; }
.bk-kpis .bk-kpi-warn { color: var(--warn); }
.booking-row { scroll-margin-top: 90px; }
@media (max-width: 600px) {
  .booking-row .btn-sm { flex: 1 1 auto; justify-content: center; }
}

/* ── Contracts ─────────────────────────────────────────────── */
.rsvpbreak .ct-seg-ok { background: var(--ok); }
.rsvpbreak .ct-seg-warn { background: var(--warn); }
.rsvpbreak .ct-seg-pend { background: #D8D8D4; }
.contract-row { scroll-margin-top: 90px; }
.ct-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12.5px; }
.ct-step { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ct-step i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); font-size: 11px; font-weight: 700;
}
.ct-step.done { color: var(--navy); font-weight: 600; }
.ct-step.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.ct-path { margin-left: auto; }
.cp-eyebrow { letter-spacing: .04em; }
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table td { padding: 4px 0; }
.cp-table td.cp-k { width: 35%; }
.cp-note { font-style: italic; }
.cp-terms { line-height: 1.6; white-space: pre-line; }

/* ── Payments (couple ledger) ──────────────────────────────── */
.pay-row { scroll-margin-top: 90px; }
.pay-bar-pend { position: absolute; top: 0; background: var(--gold); opacity: .55; }
.extsup-row { display: flex; align-items: center; gap: 12px; padding: 8px 0 0; }
.pay-row .btn-sm, .pay-row .lnk { min-height: 32px; }

/* ── Supplier browsing ─────────────────────────────────────── */
.sup-search { max-width: 520px; }
.sup-search .inp { flex: 1; min-width: 0; }
.sup-ext { max-width: 760px; }
.sc { padding: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.sc-media { display: block; }
.sc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.sc-body .divider { margin: 12px 0; }
.sc-name { text-decoration: none; display: block; }
.sc-name:hover { color: var(--gold); }
.sc-short { position: absolute; top: 10px; right: 10px; margin: 0; }
.sc-short .btn, a.sc-short { padding: 4px 10px; background: rgba(255,255,255,.94); }
.sc-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: auto; }
.sc-actions .btn { justify-content: center; }
.sc:hover { border-color: var(--gold); box-shadow: var(--shadow); }

/* ── Supplier profile ──────────────────────────────────────── */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sp-side { position: sticky; top: 76px; }
.sp-thumb { height: 230px; }
.sp-gallery .sp-thumb { border-radius: var(--r-sm); border: 0; }
.sp-about { line-height: 1.6; }
.sp-existing { border-color: var(--gold); }
.sp-steps { padding-left: 18px; line-height: 1.6; }
.sp-steps li { margin-bottom: 2px; }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-side { position: static; }
  .sp-thumb { height: 180px; }
}

/* ── Microsite editor ──────────────────────────────────────── */
.ms-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-check { display: inline-block; margin-left: 10px; color: var(--muted); text-decoration: none; }
.ms-check.done { color: var(--ok); }
.ms-check:hover { color: var(--gold); }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ms-preview { position: sticky; top: 76px; }
.ms-sec-hd { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ms-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.ms-savebar {
  position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow);
}
.ms-savebar.dirty { border-color: var(--gold); }
.ms-savebar.dirty #msDirty { color: var(--warn); font-weight: 600; }
.ms-appicon { border-radius: 11px; }
.ms-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ms-gallery { padding: 16px 20px; }
.ms-photo { position: relative; }
.ms-photo-img { height: 110px; border-radius: 8px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.ms-photo-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.ms-photo-del .btn { padding: 2px 9px; background: rgba(255,255,255,.92); min-width: 30px; justify-content: center; }
.ms-prev { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ms-prev img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ms-preview-ft { padding: 16px 20px; text-align: center; }
/* Hero themes — shared by the editor preview and the public page */
.ms-theme-navy { --ms-bg: radial-gradient(120% 120% at 75% 0%, #1B335A, #0F2340); }
.ms-theme-blush { --ms-bg: radial-gradient(120% 120% at 75% 0%, #9aae8e, #6f8466); }
.ms-theme-midnight { --ms-bg: radial-gradient(120% 120% at 75% 0%, #2a2350, #120e2b); }
.ms-hero { background: var(--ms-bg); }
.ms-hero.has-photo { background: linear-gradient(rgba(10,20,40,.45), rgba(10,20,40,.45)), var(--ms-photo) center / cover no-repeat; }
.ms-hero { min-height: 300px; }
.ms-hero-layout { color: rgba(255,255,255,.7); }
.ms-hero-names { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-top: 8px; line-height: 1.1; overflow-wrap: anywhere; }
.ms-hero-sub { margin-top: 6px; opacity: .9; }
.ms-hero-date { letter-spacing: .1em; }
@media (max-width: 1000px) {
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-preview { position: static; order: -1; }
  .ms-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ms-topbar .fx { width: 100%; }
  .ms-savebar { bottom: 8px; }
  .ms-hero { min-height: 220px; padding: 36px 16px; }
}

/* ── Public wedding page (guests) ──────────────────────────── */
.msx { background: #fff; color: var(--navy); }
.msx-hero { min-height: 82vh; padding: 56px 20px 48px; }
.msx-hero-in { max-width: 760px; width: 100%; margin: 0 auto; }
.msx-kicker { color: rgba(255,255,255,.7); letter-spacing: .18em; font-size: 11.5px; }
.msx-names { font-size: clamp(42px, 12vw, 80px); font-weight: 700; margin: 12px 0 0; line-height: 1.04; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.msx-sub { margin-top: 10px; opacity: .92; font-size: clamp(17px, 4.4vw, 24px); }
.msx-date { margin-top: 28px; letter-spacing: .16em; font-size: clamp(13px, 3.6vw, 16px); }
.msx-venue { margin-top: 8px; opacity: .88; font-size: 15px; }
.msx-countdown {
  display: inline-block; margin-top: 22px; padding: 7px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
}
.msx-countdown[hidden] { display: none; }
.msx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.msx-cta .btn { min-height: 46px; }
.msx-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.msx-ghost[hidden] { display: none; }
.msx-body { max-width: 720px; padding: 48px 20px 40px; }
.msx-story-text { font-size: clamp(18px, 4.6vw, 22px); line-height: 1.75; color: var(--navy); font-weight: 500; margin: 10px 0 0; overflow-wrap: anywhere; }
.msx-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.msx-section:first-of-type { border-top: 0; }
.msx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.msx-card { text-align: center; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 16px; background: var(--cream); }
.msx-time { font-size: 24px; font-weight: 700; color: var(--navy); }
.msx-place { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.msx-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold); text-decoration: none; padding: 6px 2px; }
.msx-link:hover { text-decoration: underline; }
.msx-group-hd { margin: 24px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.msx-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 8px; }
.msx-person { min-width: 130px; }
.msx-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msx-photo {
  aspect-ratio: 1 / 1; border: 0; border-radius: 10px; cursor: zoom-in; padding: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.msx-photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.msx-rsvp { background: var(--cream2); border-radius: var(--r); padding: 36px 20px; border-top: 0; }
.msx-rsvp-hd { font-size: 26px; font-weight: 700; color: var(--navy); }
.msx-foot { text-align: center; padding: 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.msx-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08);
}
.msx-sticky[hidden] { display: none; }
.msx-panel { max-width: 460px; }
.msx-panel-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.msx-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.msx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msx-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: var(--r-sm); text-align: center; font-size: 14px; position: relative; }
.msx-choice-ico { font-size: 24px; }
.msx-tick { width: 54px; height: 54px; margin: 0 auto 14px; font-size: 24px; }
.msx-qr { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.msx-appicon { border-radius: 16px; margin: 0 auto 14px; display: block; }
.msx-ol { text-align: left; line-height: 1.8; padding-left: 20px; }
.msx-lb { position: relative; max-width: 900px; width: 100%; text-align: center; }
.msx-lb img { max-width: 100%; max-height: 80vh; border-radius: 10px; display: block; margin: 0 auto; }
.msx-lb-x { position: absolute; top: -8px; right: -8px; background: #fff; box-shadow: var(--shadow); z-index: 1; }
.msx-lb-cap { color: #fff; margin-top: 10px; font-size: 14px; }
@media (max-width: 600px) {
  .msx-cards { grid-template-columns: minmax(0, 1fr); }
  .msx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msx-hero { min-height: 88vh; }
  .msx-body { padding-bottom: 88px; }
  .msx-panel { max-width: none; }
}

/* ── Payment pages ─────────────────────────────────────────── */
.pay-narrow { width: 100%; }
.pay-560 { max-width: 560px; }
.pay-620 { max-width: 620px; }
.pay-720 { max-width: 720px; }
.pay-half { max-width: 50%; }
.pay-qr { width: 260px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; image-rendering: pixelated; }
.pay-ico-warn { background: #FDECF2; color: var(--warn); margin: 0 auto 12px; }
.pillrow .selpill:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 600px) { .pay-half { max-width: none; } }
@media print {
  .pay-noprint { display: none !important; }
}

/* ── Messages ──────────────────────────────────────────────── */
.msg-search { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.msg-search .bc-search { max-width: none; width: 100%; }
.threaditem { text-decoration: none; color: inherit; }
.msg-snip { overflow: hidden; text-overflow: ellipsis; }
.msg-nothreads { padding: 20px 16px; line-height: 1.5; }
.msg-back { display: none; margin-bottom: 4px; text-decoration: none; }
.msg-hint { margin: auto; }
.composer .btn { flex: none; }
@media (max-width: 760px) {
  .threadcol { width: 100%; border-right: 0; }
  .msgwrap.has-current .threadcol { display: none; }
  .msgwrap:not(.has-current) .convcol { display: none; }
  .msg-back { display: inline-block; }
  .bubble { max-width: 82%; }
  .convbody { padding: 14px; }
}
