/* buyer-web base styles. Colours come from the per-shop stylesheet
   (/brand.css), which sets the custom properties below. No inline
   styles anywhere: the CSP allows style-src 'self' only. */
:root {
  --accent: #1f4fd8;
  --on-accent: #ffffff;
  --surface: #f6f6f4;
  --text: #111214;
  --radius: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
header.shop { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
header.shop img { max-height: 40px; width: auto; }
header.shop .name { font-weight: 600; font-size: 1.125rem; }
.test {
  border: 2px dashed currentColor;
  border-radius: var(--radius);
  padding: .5rem .75rem;
  margin-bottom: 1rem;
  font-size: .875rem;
}
main h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
.doc h1 { font-size: 1.375rem; }
.doc h2 { font-size: 1.125rem; }
.doc h3 { font-size: 1rem; }
footer.shop { margin-top: 2.5rem; font-size: .875rem; opacity: .85; }
footer.shop ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.muted { opacity: .8; font-size: .875rem; }
form { margin: 1rem 0; }
label { display: block; margin: .75rem 0 .25rem; font-weight: 500; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input[type=email], input[type=number], input:not([type]), input[type=text], select {
  width: 100%; min-height: 44px; padding: .5rem .75rem; font: inherit;
  border: 1px solid currentColor; border-radius: var(--radius); background: #fff; color: #111214;
}
input[type=checkbox] { width: 24px; height: 24px; margin: 0; flex: none; }
button {
  min-height: 44px; padding: .5rem 1.25rem; margin-top: 1rem; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--on-accent, #fff); border: 0; border-radius: var(--radius); cursor: pointer;
}
button[disabled] { opacity: .6; cursor: default; }
button.link { background: none; color: var(--accent); padding: 0; min-height: 24px; font-weight: 400; text-decoration: underline; }
.error { border-left: 4px solid #b42318; padding: .5rem .75rem; background: #fff; color: #7a1a12; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .375rem 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.summary .num { text-align: right; white-space: nowrap; }
.summary .total td { font-weight: 700; border-bottom: 0; }
ul.key { padding-left: 1.25rem; }
#payment-element { margin: 1rem 0; }

.turnstile { margin: 0.75rem 0; }

/* Second and destructive choices look different from the main one
   (role panel buyer L1). */
button.secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
button.danger { background: #b42318; color: #fff; }
.ok { border-left: 4px solid #067647; padding: .5rem .75rem; background: #fff; color: #054f31; }
textarea {
  width: 100%; padding: .5rem .75rem; font: inherit;
  border: 1px solid currentColor; border-radius: var(--radius); background: #fff; color: #111214;
}
code, .key { overflow-wrap: anywhere; word-break: break-all; }
code.key { font-size: 1.05rem; user-select: all; }
main table { width: 100%; border-collapse: collapse; }
main table td, main table th { padding: .375rem .25rem; border-bottom: 1px solid rgba(0,0,0,.1); text-align: left; }
main table .num { text-align: right; white-space: nowrap; }
footer.shop .help { opacity: 1; }
/* A manual payment: the vendor's instructions keep their line breaks. */
.instructions { white-space: pre-line; }
.manual { margin-top: 1.5rem; }
.manual form { margin-top: 0.5rem; }
