/* OPC Windscreens booking site.
   Styled to match opcwindscreens.co.uk: Poppins, white header, #c31000 red, square uppercase buttons,
   dark photo hero, rounded red feature card, black footer. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
/* Arial sized to match Poppins, so text takes the same space before and after the font loads (no jumping) */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 113.11%; ascent-override: 92.83%; descent-override: 30.94%; line-gap-override: 8.84%; }

:root {
  color-scheme: light;
  --brand: #c31000;
  --brand-dark: #a00d00;
  --brand-tint: #fdf0ee;
  --black: #000;
  --ink: #000;
  --text: #333;
  --muted: #6b6b6b;
  --bg: #f8f8f8;
  --card: #fff;
  --line: #e6e6e6;
  --field: #cdcdcd;
  --ok: #157351;
  --warn: #a85600;
  --bad: #c31000;
  --plate: #ffd200;
  --radius: 12px;
  --font: "Poppins", "Poppins Fallback", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
.wrap { max-width: 632px; margin: 0 auto; padding: 8px 16px 48px; }

/* ---------- header */
header.top { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; }
header.top .inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header.top .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
header.top .logo img { height: 58px; width: auto; display: block; }
header.top .tag { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
header.top a.call { display: inline-flex; align-items: center; gap: 8px; color: #000; text-decoration: none; font-weight: 600; font-size: 18px; white-space: nowrap; }
header.top a.call svg { width: 18px; height: 18px; fill: var(--brand); flex: none; }
header.top a.call:hover { color: var(--brand); }
header.top a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- hero with the quote form */
.hero { --photo: url(/hero.jpg); position: relative; background: #000; color: #fff; padding: 32px 16px 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 440px;
  background: linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.8) 60%, #000), var(--photo) center / cover no-repeat;
}
.hero-col { position: relative; max-width: 1100px; margin: 0 auto; display: grid; gap: 26px; }
.hero-text { min-width: 0; }
.chev { display: block; width: 58px; height: 16px; }
.hero h1 { font-weight: 600; font-size: clamp(27px, 7.2vw, 40px); line-height: 1.3; margin: 12px 0; color: #fff; text-wrap: balance; }
.hero-text p { margin: 0; font-size: 17px; max-width: 46ch; }
.ticks { display: none; list-style: none; margin: 26px 0 0; padding: 0; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks svg { flex: none; width: 24px; height: 24px; }
@media (min-width: 900px) {
  .hero { padding: 64px 24px 72px; }
  .hero::before { inset: 0; height: auto; background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--photo) center / cover no-repeat; }
  .hero-col { grid-template-columns: minmax(0, 1fr) 470px; gap: 64px; align-items: start; }
  .hero-text { padding-top: 48px; }
  .ticks { display: grid; }
}

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin-top: 16px; }
.card h2 { font-weight: 600; font-size: 22px; line-height: 1.3; color: #000; margin: 0 0 12px; text-wrap: balance; }
.card.form { margin-top: 0; border: 0; color: var(--text); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); min-width: 0; }
.card.red { background: var(--brand); border-color: var(--brand); color: #fff; }
.card.red .muted, .card.red .note { color: #fff; opacity: 0.92; }

/* ---------- form fields */
label, .lbl { display: block; font-weight: 500; font-size: 14px; color: #000; margin: 16px 0 6px; }
label .opt, .lbl .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; font: 400 16px/1.4 var(--font); padding: 13px 14px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: #000;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input:focus, textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(195, 16, 0, 0.18); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

.plate { display: flex; align-items: stretch; border: 2px solid #111; border-radius: 8px; overflow: hidden; background: var(--plate); transition: box-shadow 0.15s; }
.plate:focus-within { box-shadow: 0 0 0 3px rgba(195, 16, 0, 0.25); }
.plate .gb { background: #003399; color: #fff; font-weight: 600; font-size: 12px; display: flex; align-items: flex-end; padding: 6px; }
.plate input { border: 0; border-radius: 0; background: transparent; font: 800 28px/1.2 "Arial Black", Arial, sans-serif; text-transform: uppercase; text-align: center; letter-spacing: 0.06em; padding: 10px; min-width: 0; }
.plate input:focus { box-shadow: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); margin-top: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

/* choice chips: used instead of drop-downs for short lists */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices.inline { display: flex; flex-wrap: wrap; }
.choice {
  border: 1px solid var(--field); background: #fff; border-radius: 6px; padding: 12px 14px; font: 500 15px/1.3 var(--font); color: #000; cursor: pointer; text-align: center;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.choice:hover { border-color: #000; }
.choice.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice:focus-visible, .day:focus-visible, .slot:focus-visible, .tab:focus-visible, .dd-btn:focus-visible, .cal button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* custom drop-down and date picker (ui.js) */
.dd { position: relative; }
.dd-btn {
  width: 100%; min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left;
  font: 400 16px/1.4 var(--font); padding: 12px 14px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: #000; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dd-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn.empty span { color: #9a9a9a; }
.dd-btn::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.dd.open .dd-btn { border-color: #000; box-shadow: 0 0 0 3px rgba(195, 16, 0, 0.18); }
.dd.open .dd-btn::after { transform: translateY(2px) rotate(-135deg); }
.dd-list, .cal { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18); }
.dd-list { min-width: 100%; width: max-content; max-width: calc(100vw - 72px); margin: 0; padding: 6px; list-style: none; max-height: 264px; overflow: auto; }
.dd-list li { padding: 10px 12px; border-radius: 5px; cursor: pointer; font-size: 15px; color: #000; }
.dd-list li:hover, .dd-list li:focus { background: #f2f2f2; outline: none; }
.dd-list li[aria-selected=true] { background: var(--brand); color: #fff; }
.cal { width: 300px; max-width: calc(100vw - 72px); padding: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #000; margin-bottom: 6px; }
.cal-nav { width: 36px; height: 36px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: 600 18px var(--font); color: #000; }
.cal-nav:hover:not(:disabled) { background: #f2f2f2; }
.cal-nav:disabled { color: #c8c8c8; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid span { font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 6px; font: 500 14px var(--font); color: #000; cursor: pointer; padding: 0; }
.cal-grid button:hover:not(:disabled) { background: #f0f0f0; }
.cal-grid button:disabled { color: #c8c8c8; cursor: default; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px #000; }
.cal-grid button.sel { background: var(--brand); color: #fff; box-shadow: none; }

/* ---------- buttons: square and uppercase, as on the main site */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 20px;
  padding: 15px 24px; border: 2px solid var(--brand); border-radius: 10px;
  font: 600 16px/1.25 var(--font); text-decoration: none; text-align: center;
  background: var(--brand); color: #fff; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.btn:disabled { background: #e4e4e4; border-color: #e4e4e4; color: #767676; cursor: default; }
.btn.go::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn.secondary { background: #fff; border-color: #000; color: #000; }
.btn.secondary:hover:not(:disabled) { background: #000; border-color: #000; color: #fff; }
.btn.ok { background: #000; border-color: #000; color: #fff; }
.btn.ok:hover:not(:disabled) { background: #333; border-color: #333; }
.btn.danger { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn.danger:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn.small { display: inline-flex; width: auto; padding: 9px 14px; font-size: 13px; margin: 0; border-width: 1.5px; }
.card.red .btn.secondary { border-color: #fff; }

.err { color: var(--bad); font-size: 14px; font-weight: 500; margin-top: 10px; min-height: 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.urgent { color: var(--brand); font-weight: 600; margin: 0 0 10px; }
.foot { background: #000; color: #fff; border-top: 1px solid #212121; padding: 26px 16px; margin: 0; font-size: 14px; text-align: center; }
.foot a { color: #fff; }

/* ---------- quote page */
.stepbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 16px 12px; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 600px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { font-size: 13px; font-weight: 500; color: #9a9a9a; }
.steps li::before { content: ""; display: block; height: 4px; margin-bottom: 8px; background: #dedede; transition: background-color 0.3s; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--brand); }
.steps li.now { color: #000; font-weight: 600; }
.steps li.now::before { background: #000; }

.app.swap > * { animation: swap 0.3s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary strong { font-size: 18px; font-weight: 600; display: block; line-height: 1.3; }
.card.red .summary strong { color: #fff; }
.mini-plate { background: var(--plate); color: #000; border: 2px solid #111; border-radius: 6px; padding: 3px 10px; font: 800 16px/1.4 "Arial Black", Arial, sans-serif; letter-spacing: 0.05em; white-space: nowrap; }
.price { font-weight: 600; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; background: #ececec; color: #000; vertical-align: middle; }
.badge.ok { background: #e0f1ea; color: var(--ok); }
.badge.warn { background: #fbecd6; color: var(--warn); }

.spinner { width: 34px; height: 34px; border: 4px solid #e2e2e2; border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 8px auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day, .slot { border: 1px solid var(--field); background: #fff; border-radius: 6px; font: 500 15px/1.3 var(--font); cursor: pointer; color: #000; transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
.day { flex: none; padding: 10px 13px; font-size: 14px; }
.slot { padding: 14px 12px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.day:hover, .slot:hover { border-color: #000; }
.day.on, .slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--field); border-radius: 8px; padding: 14px; margin: 10px 0 0; cursor: pointer; font-weight: 400; font-size: 16px; color: var(--text); transition: border-color 0.12s, background-color 0.12s; }
.pay-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.pay-opt strong { display: block; font-weight: 600; color: #000; }
.pay-opt:hover { border-color: #000; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }

.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; color: #000; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- admin */
.toolbar { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 22px; overflow-x: auto; margin-top: 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; border-bottom: 3px solid transparent; background: none; padding: 10px 0 9px; font: 600 14px var(--font); text-transform: uppercase; letter-spacing: 0.02em; color: #000; cursor: pointer; transition: color 0.12s, border-color 0.12s; }
.tab:hover { color: var(--brand); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab .n { margin-left: 6px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.job .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #000; }
.job .meta { font-size: 14px; color: var(--muted); margin-top: 8px; }
.job .meta a { color: inherit; }
.job .line { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.job .line input { flex: 1; min-width: 110px; }
.job .notes { background: #f3f3f3; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 > * { min-width: 0; }
details.order { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.order summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #000; }
.blockrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #000; }
.blockrow:last-child { border-bottom: 0; }
.ok-msg { color: var(--ok); font-size: 14px; margin-top: 10px; min-height: 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* glass follow-up questions and address search */
.choice .sub { display: block; font-weight: 400; font-size: 12px; opacity: 0.8; }
.dd-list.wide { width: 100%; max-width: none; }
.dd-list li.none { cursor: default; color: var(--muted); }
.dd-list li.none:hover { background: none; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 8px; font: 500 14px var(--font); color: var(--brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* admin: "Add to website" photos */
.pphotos { display: grid; gap: 14px; margin-top: 10px; }
.pphoto .line { margin-top: 8px; flex-wrap: wrap; }
.pframe { position: relative; max-width: 420px; line-height: 0; border: 1px solid var(--line); }
.pframe canvas { width: 100%; height: auto; display: block; }
.pframe.blurring { cursor: crosshair; touch-action: none; outline: 3px solid var(--brand); outline-offset: 2px; }
.psel { position: absolute; border: 2px dashed #fff; background: rgba(195, 16, 0, 0.35); pointer-events: none; }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed #bbb; border-radius: 8px; background: #fafafa; font: 400 14px var(--font); }
.check input { accent-color: var(--brand); }
.gf-lbl { margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: #000; }
.gf-lbl .opt { font-weight: 400; color: #6b6b6b; }
.cal-clear { display: block; width: 100%; margin-top: 6px; padding: 9px 8px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: var(--red, #c31000); cursor: pointer; text-align: center; }
/* Supplier prices on admin quotes */
details.suppliers p.suggest { margin: 10px 0 0; font-size: 15px; }
details.suppliers p.suggest strong { font-size: 17px; }
details.suppliers { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.suppliers summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.suppliers[open] summary { margin-bottom: 8px; }
table.sup { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sup td { padding: 6px 6px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.sup tbody tr:first-child td { border-top: 0; }
table.sup td.num, table.sup th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 8px; padding-right: 4px; }
table.sup td.num { font-weight: 500; }
table.sup td.rnd { font-weight: 700; color: var(--ink); }
table.sup th { font-size: 12px; font-weight: 600; color: #8a8a8a; padding: 0 4px 4px 8px; text-align: left; }
table.sup tr.best td { background: rgba(31, 140, 60, 0.07); }
table.sup tr.best td:first-child::after { content: " · best"; color: #1f7a3a; font-size: 12px; font-weight: 600; }
.st { font-size: 13px; }
.st.ok { color: #1f7a3a; font-weight: 600; }
.st.warn { color: #9a5b00; }
.st.bad { color: var(--brand, #c31000); }
.st.muted { color: #8a8a8a; }

/* On my way buttons */
.line.omw { align-items: center; flex-wrap: wrap; gap: 6px; }
details.suppliers .argic-warn { background: #fff4d6; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0 0 8px; }
#priceForm { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
#priceForm input { flex: 1; min-width: 0; }
#pricePanel table.sup { margin-top: 4px; }
#pricePanel .argic-warn { background: #fff4d6; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0 0 8px; }

/* Price check extras */
#pricePanel .pc-more { margin-top: 14px; border-top: 1px solid #eee; padding-top: 10px; }
#pricePanel .pc-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.pc-h { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0f0f0; padding: 9px 2px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.pc-h:hover { background: #fafafa; }
.flag-i { border-bottom: 1px solid #f0f0f0; padding: 6px 0; margin: 0; }
button.wrong { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-size: 12px; color: #9a9a9a; text-decoration: underline; cursor: pointer; }
button.wrong:hover { color: var(--ink); }
tr.flag-row td { padding-top: 0; }
tr.flag-row .line { display: flex; gap: 8px; margin-top: 4px; }
tr.flag-row input { flex: 1; min-width: 0; }
p.adas { background: #e8f1ff; border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 0 0 8px; }
.pc-send { margin-top: 12px; border: 1px solid #eee; border-radius: 10px; padding: 10px 12px; }
.pc-send summary { cursor: pointer; font-weight: 600; }
.small.ok, td.ok { color: #1a7f37; }
.upd { margin-top: 30px; } .upd summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #777; }
.adsf { display: grid; gap: 8px; margin: 8px 0; } .adsf label { display: grid; gap: 3px; font-size: 13px; color: #555; } .adsf input { font-size: 15px; }
.upd .line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; } .upd input[type=file] { flex: 1; min-width: 0; font-size: 13px; }

/* Customer photos on a quote (admin) */
.cphotos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.cphotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid #ddd; }

/* Move a booked job */
details.move { margin: 10px 0; }
details.move summary { cursor: pointer; font-weight: 600; }
details.move .grid2 { margin: 8px 0; }

/* Tidier job cards */
details.more { margin: 10px 0 0; border-top: 1px solid var(--line, #e5e5e5); padding-top: 8px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
details.more .sub { margin: 10px 0; }
.paidfull { color: #1a7f37; font-weight: 600; margin: 4px 0 8px; }
.line.pay input[data-pay] { max-width: 90px; }

.plate-btn { cursor: pointer; }
.plate-btn:hover { filter: brightness(.95); }
.badge.ok { background: #e6f4ea; color: #1a7f37; }

/* ---- Price page: price, facts, what's included, payment choices ---- */
.card.red .price { margin: 14px 0 0; }
.price-sub { font-size: 15px; opacity: .95; }
.bnpl { font-size: 14px; opacity: .92; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px -4px 0; background: rgba(255,255,255,.22); border-radius: 10px; overflow: hidden; }
.facts > div { background: var(--brand-dark); padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.facts .fk { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.facts .fv { font-size: 14px; font-weight: 600; line-height: 1.3; }
.card.incl h2 { margin-bottom: 12px; }
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.incl-grid > div { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.incl-grid svg { flex: none; color: var(--brand); }
.trust-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.trust-row .stars { color: #f5a400; display: inline-flex; }
.rev { margin: 10px 0 0; padding: 0 0 0 12px; border-left: 3px solid var(--line); font-size: 14px; color: var(--ink); }
.rev cite { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.card.incl .note { margin-top: 14px; }

.pay-grid { display: grid; gap: 10px; margin: 4px 0 16px; }
.pay-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; transition: border-color .12s, box-shadow .12s, background-color .12s; }
.pay-card:hover { border-color: #999; }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card:focus-within { outline: 3px solid rgba(195,16,0,.3); outline-offset: 2px; }
.pc-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.pc-txt { display: flex; flex-direction: column; min-width: 0; }
.pc-txt strong { font-weight: 600; font-size: 16px; color: #000; line-height: 1.3; }
.pc-txt span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.pc-tag { display: inline-block; align-self: flex-start; margin-top: 4px; background: #e6f4ea; color: var(--ok); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.pc-dot { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--field); background: #fff; }
.pay-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #fff; }
.pay-card.on .pc-ico { background: var(--brand-tint); color: var(--brand); }
.pay-card.on .pc-dot { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, #fff 5.5px); }
@media (max-width: 360px) { .incl-grid { grid-template-columns: 1fr; } .facts .fv { font-size: 13px; } }

/* ---- Job card "More options" and "Edit details": one panel per action ---- */
details.more[open] > summary { margin-bottom: 10px; }
.mo { background: #f7f6f6; border: 1px solid #ebe8e8; border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.mo h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.mo label, .mo .lbl { margin: 0 0 5px; font-size: 13px; font-weight: 500; color: #555; }
.mo input[type=text], .mo input[type=tel], .mo input[type=email] { padding: 10px 12px; font-size: 15px; }
.mo .grid2 { margin: 10px 0 0; gap: 10px; }
.mo .grid2 > div > label { margin-top: 0; }
.mo > label[for^="edNotes"] { margin-top: 10px; }
.mo .dd-btn { padding: 10px 12px; font-size: 15px; min-height: 0; }
.mo-when { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mo-glass { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.mo-glass .choices.inline { gap: 6px; flex-wrap: nowrap; }
.mo-glass .choice { padding: 9px 10px; font-size: 14px; flex: 1; text-align: center; }
@media (max-width: 560px) {
  .mo-when { grid-template-columns: 1fr 1fr; } .mo-when .d { grid-column: 1 / -1; }
  .mo-glass { grid-template-columns: 1fr 1fr; } .mo-glass > div:first-child { grid-column: 1 / -1; }
}
.mo-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.mo-foot .btn { margin-left: auto; }
.mo h4 + .mo-foot { margin-top: 0; }
.mo-money { display: flex; align-items: center; background: #fff; border: 1px solid var(--field); border-radius: 6px; padding-left: 12px; width: 130px; }
.mo-money span { color: #555; font-weight: 500; }
.mo .mo-money input[type=text] { border: 0; box-shadow: none; padding: 10px 10px 10px 4px; width: 100%; min-width: 0; background: transparent; }
.mo-money:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(195, 16, 0, 0.18); }
label.tick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--text, #222); cursor: pointer; }
.mo label.tick { margin: 10px 0 0; color: #222; font-size: 14px; }
.mo-foot label.tick { margin: 0; }
label.tick input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; border: 0; box-shadow: none; accent-color: var(--brand); }
.mo-actions { display: flex; flex-wrap: wrap; gap: 8px; background: none; border: 0; padding: 0; }
.mo-actions .danger { margin-left: auto; }

.order-tick { display: flex !important; align-items: flex-start !important; margin: 4px 0 10px !important; font-size: 14px; }
.order-tick input { margin-top: 2px !important; }
.order-box { display: flex; gap: 10px; align-items: flex-start; background: #fff6e8; border: 1px solid #f1d9ad; color: #6a3a00; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.order-box svg { flex: none; margin-top: 1px; }
.order-box p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #5a3a10; }
.order-box b { color: #3d2400; }
/* Stripe's Klarna/Clearpay line draws dark text and logos, which don't read on the red price card: give it a white pill */
.bnpl.pmme { background: #fff; color: #111; opacity: 1; border-radius: 10px; padding: 8px 12px; margin-top: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.incl-grid > div.key { background: #fff3f1; color: #6b0a00; font-weight: 600; }
.cancel-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted, #888); opacity: .85; text-align: center; }
.cancel-note a { color: inherit; text-decoration: underline; }
.terms h2 { margin-top: 1.4em; }
.terms p { max-width: 68ch; }
