.payment-actions, .downloads {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.payment-actions .primary {
  justify-content: center;
}
.downloads:empty, .payment-actions:empty {
  display: none;
}
.address-check { margin: 20px 0; padding: 20px; border: 1px solid var(--line); background: var(--paper, #f5f3ee); }
.address-check label { display: block; margin-bottom: 12px; }
.address-check select { display: block; width: 100%; margin-top: 8px; font: inherit; padding: 10px; }
.address-check button { display: block; width: 100%; margin-top: 12px; white-space: normal; }
:root {
  --paper:#f7f5ef;
  --ink:#26332f;
  --muted:#4f5b53;
  --font-ui:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --line:#dedfd4;
  --accent:#c65d3a;
  --green:#344b40;
  --wash:#eeeee5;
  font-family:var(--font-ui);
  font-size:18px;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
* {
  box-sizing:border-box;
}
[hidden] {
  display:none!important;
}
body {
  margin:0;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #c65d3a;
  outline-offset:4px;
}
a {
  color:inherit;
  text-decoration:none;
}
.topbar {
  min-height:97px;
  flex-wrap:wrap;
  padding-block:16px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 5.3vw;
}
.wordmark {
  font:700 2rem/1.25 var(--font-ui);
  letter-spacing:-.04em;
}
.wordmark span {
  color:var(--accent);
  font-size:1rem;
  padding-left:4px;
  vertical-align:baseline;
}
.environment {
  font-size:1rem;
  letter-spacing:1.6px;
  border:1px solid #bfc7b6;
  border-radius:3px;
  padding:7px 10px;
  color:var(--muted);
}
.text-button {
  border:0;
  background:none;
  padding:12px 0;
  font-size:1rem;
  color:var(--ink);
}
.account-actions {
  margin-left:auto;
}
main {
  max-width:1440px;
  margin:auto;
  padding:0 5.3vw;
}
h1,h2 {
  font-family:var(--font-ui);
  font-weight:650;
}
h1 {
  font-size:64px;
  line-height:1.08;
  letter-spacing:-.025em;
  margin:20px 0;
}
h2 {
  font-size:32px;
  letter-spacing:-.02em;
  margin:14px 0;
}
h3 {
  font-weight:500;
}
.eyebrow {
  font-size:1rem;
  font-weight:600;
  letter-spacing:2px;
  line-height:1.7;
}
.muted,.intro {
  color:var(--muted);
  font-size:1rem;
  line-height:1.7;
}
.intro {
  font-size:1rem;
}
.login-layout {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:6%;
  padding:65px 0 75px;
  align-items:start;
}
.login-entry { min-width:0; max-width:440px; }
.login-entry .login-card { max-width:none; width:100%; }
#login-form { border-top:0; box-shadow:0 22px 40px #343c2909; padding-top:18px; padding-bottom:22px; }
#login-form button[type=submit] { width:100%; }
#recovery-section .recovery-notice { margin:0 0 12px; padding:12px 14px; border-left:4px solid var(--accent); background:var(--wash); border-radius:0 8px 8px 0; color:var(--ink); }
#recovery-form button[type=submit] { margin-top:18px; width:100%; }
.gallery-switch { margin:18px 0 0; max-width:520px; }
.gallery-switch select { display:block; width:100%; margin-top:6px; padding:10px; font:inherit; }
.welcome h1 {
  font-size:clamp(2.25rem,5vw,3.5rem);
  margin:15px 0 24px;
}
.login-card {
  max-width:440px;
  background:#fffdf8;
  border:1px solid var(--line);
  padding:40px 38px;
  box-shadow:0 18px 50px #343c2910;
}
.login-card>p:not(.eyebrow) {
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}
label {
  font-size:1rem;
  display:block;
  margin:25px 0 10px;
}
input {
  width:100%;
  border:1px solid #c9cdbf;
  background:var(--paper);
  padding:15px;
  color:var(--ink);
  border-radius:0;
}
.primary,.secondary {
  padding:17px 20px;
  width:100%;
  border:1px solid var(--green);
  background:var(--green);
  color:#fff;
  font-size:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  transition:background .15s;
}
.primary:hover {
  background:#203e2f;
}
.primary:disabled {
  background:#e1e5df;
  color:#4f5b53;
  border-color:#89948a;
}
.primary span {
  font-size:19px;
}
.secondary {
  background:transparent;
  color:var(--ink);
  justify-content:center;
  width:auto;
}
.secondary:hover {
  background:var(--wash);
}
.fineprint {
  font-size:1rem!important;
  color:var(--muted);
  line-height:1.7;
  margin:20px 0 0;
}
.error {
  font-size:1rem;
  color:#a24329;
  line-height:1.4;
  min-height:8px;
}
.login-art {
  height:190px;
  position:relative;
  overflow:hidden;
  background:#b0b7a0;
  background-image:var(--studio-login-image,none);
  background-size:cover;
  background-position:center;
  margin-top:20px;
  max-width:435px;
}
.login-art.has-image>* { display:none; }
.arch {
  position:absolute;
  top:25px;
  left:50px;
  width:110px;
  height:200px;
  border-radius:65px 65px 0 0;
  background:#dfcaa5;
}
.sun {
  position:absolute;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#e8ba88;
  right:75px;
  top:23px;
}
.hill {
  position:absolute;
  width:400px;
  height:240px;
  border-radius:50%;
  background:#6b8170;
  top:110px;
  left:100px;
  transform:rotate(-20deg);
}
.hill.two {
  background:#395348;
  left:-120px;
  top:140px;
}
.login-art>span {
  position:absolute;
  bottom:14px;
  right:17px;
  color:#fff;
  font-size:1rem;
  letter-spacing:2px;
}
.collection-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:49px 0 42px;
}
.collection-header h1 {
  font-size:49px;
  margin:14px 0 14px;
}
.collection-header .muted {
  margin:0;
}
.collection-stamp {
  text-align:center;
  font-size:1rem;
  line-height:1.5;
  letter-spacing:1.7px;
  transform:rotate(10deg);
  margin:0 18px 0 30px;
  color:var(--muted);
}
.collection-stamp b {
  display:block;
  font-size:49px;
  line-height:1.2;
  font-weight:400;
}
.gallery-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:48px;
  align-items:start;
}
.gallery-toolbar {
  border-top:1px solid var(--line);
  padding:18px 0 23px;
  display:flex;
  justify-content:space-between;
  font-size:1rem;
  gap:15px;
}
.gallery-toolbar b {
  font-size:1rem;
  background:#e8e8de;
  margin-left:9px;
  padding:5px 7px;
  border-radius:10px;
  font-weight:400;
}
.image-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px 20px;
}
.image-card {
  border:0;
  background:transparent;
  text-align:left;
  padding:0;
  color:var(--ink);
}
.image-frame {
  position:relative;
  overflow:hidden;
  background:#d8d6c8;
}
.image-frame img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/4;
  object-fit:cover;
  transition:transform .25s;
}
.image-card:hover img {
  transform:scale(1.025);
}
.image-check {
  position:absolute;
  right:12px;
  top:12px;
  border:1px solid #ffffffc4;
  background:#ffffff35;
  width:24px;
  height:24px;
  border-radius:50%;
  font-size:1rem;
  color:transparent;
  display:grid;
  place-items:center;
}
.image-card[aria-pressed=true] .image-check {
  background:var(--green);
  color:white;
  border-color:white;
}
.image-card[aria-pressed=true] .image-frame {
  outline:3px solid var(--green);
  outline-offset:3px;
}
.image-caption {
  display:flex;
  justify-content:space-between;
  gap:5px;
  font-size:1rem;
  margin:13px 0 2px;
}
.image-caption span:last-child {
  font-size:1rem;
  color:var(--muted);
}
.gallery-note {
  font-size:1rem;
  color:var(--muted);
  padding:22px 0 35px;
}
.basket {
  position:sticky;
  top:25px;
  max-height:calc(100vh - 50px);
  overflow-y:auto;
  border:1px solid #d6d9cc;
  background:#efefe6;
  padding:28px 24px;
}
.basket h2 {
  font-size:29px;
}
.basket .eyebrow {
  font-size:1rem;
  letter-spacing:1.5px;
}
.basket>.muted {
  font-size:1rem;
  margin-bottom:25px;
}
.products {
  display:grid;
  gap:8px;
}
.product {
  border:1px solid #d4d8ca;
  background:transparent;
  padding:13px 11px;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  color:var(--ink);
  text-align:left;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
}
.product span {
  font-size:1rem;
  line-height:1.5;
}
.product strong {
  font-size:1rem;
  white-space:nowrap;
  font-weight:500;
}
.product .product-kind {
  display:inline-block;
  font-style:normal;
  font-size:.875rem;
  line-height:1.4;
  padding:0 .5em;
  border:1px solid #a2aba0;
  border-radius:999px;
  color:var(--ink);
  white-space:nowrap;
}
.product[aria-pressed=true] {
  border-color:var(--green);
  background:#fafbf4;
  box-shadow:inset 3px 0 var(--green);
}
.basket-selection {
  border-top:1px solid #d5d8cb;
  padding-top:22px;
  margin-top:25px;
  display:grid;
  gap:8px;
  font-size:1rem;
}
.basket-selection small {
  font-size:1rem;
  color:var(--muted);
}
.total {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:28px 0 12px;
  font-size:1rem;
}
.total strong {
  font:700 1.6rem/1.25 var(--font-ui);
}
.basket-hint {
  font-size:1rem;
  color:var(--muted);
  min-height:30px;
  line-height:1.5;
}
.basket .primary {
  font-size:1rem;
  padding:14px 16px;
}
.basket .fineprint {
  font-size:1rem!important;
}
.status-label {
  font-size:1rem;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 9px;
  display:inline-block;
}
.status-label.settled {
  color:#4f6b52;
  border-color:#adbda5;
}
footer {
  border-top:1px solid var(--line);
  padding:25px 5.3vw;
  display:flex;
  gap:35px;
  align-items:center;
  color:var(--muted);
  font-size:1rem;
}
footer .wordmark {
  font-size:31px;
  color:var(--ink);
}
footer .wordmark span {
  font-size:1rem;
}
footer>span:last-child {
  margin-left:auto;
}
.global-error {
  font-size:1rem;
  color:#a24329;
  line-height:1.6;
}
.global-error:not(:empty) {
  padding:20px;
  background:#f3e6da;
}
.loading {
  margin:100px 0;
  text-align:center;
  font-size:1rem;
  color:var(--muted);
}
dialog {
  border:1px solid var(--line);
  padding:35px 40px;
  max-width:620px;
  width:calc(100% - 32px);
  background:var(--paper);
  color:var(--ink);
}
dialog::backdrop {
  background:#17251ca3;
  backdrop-filter:blur(3px);
}
dialog form {
  text-align:right;
}
dialog .eyebrow {
  font-size:1rem;
}
dialog h2 {
  font-size:36px;
}
dialog p {
  line-height:1.7;
  font-size:1rem;
}
dialog .primary {
  margin-top:20px;
}
@media(min-width:1500px) {
  .gallery-layout {
    grid-template-columns:minmax(0,1fr) 380px;
    gap:60px;
  }
}
@media(max-width:1000px) {
  .gallery-layout {
    gap:25px;
    grid-template-columns:minmax(0,1fr) 340px;
  }
  .image-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .collection-header h1 {
    font-size:42px;
  }
  .login-layout {
    gap:6%;
  }
  .welcome h1 {
    font-size:3rem;
  }
  .login-card {
    padding:30px;
  }
}
@media(max-width:800px) {
  .topbar {
    min-height:78px;
    height:auto;
    padding:0 6vw;
    gap:18px;
  }
  .wordmark {
    font-size:37px;
  }
  .environment {
    font-size:1rem;
    letter-spacing:1px;
  }
  main {
    padding:0 6vw;
  }
  .login-layout {
    grid-template-columns:1fr;
    padding:35px 0 45px;
    gap:30px;
  }
  .login-entry { max-width:none; }
  .welcome h1 {
    font-size:2.5rem;
  }
  .welcome .intro {
    font-size:1rem;
  }
  .welcome .eyebrow {
    font-size:1rem;
  }
  .login-art {
    display:none;
  }
  .login-card {
    max-width:none;
    padding:25px;
  }
  .login-card h2 {
    font-size:30px;
  }
  .gallery-layout {
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .gallery-layout>div,.basket {
    width:100%;
  }
  .basket {
    position:static;
    max-height:none;
    overflow:visible;
    margin-bottom:35px;
    padding:25px;
  }
  .collection-header {
    padding:30px 0;
  }
  .collection-header h1 {
    font-size:38px;
    max-width:280px;
  }
  .collection-header .eyebrow {
    font-size:1rem;
  }
  .collection-stamp {
    display:none;
  }
  .collection-header .muted {
    font-size:1rem;
  }
  .image-grid {
    gap:24px 16px;
  }
  .gallery-toolbar {
    font-size:1rem;
  }
  .gallery-note {
    padding-bottom:8px;
  }
  .secondary {
    font-size:1rem;
    line-height:1.5;
  }
  footer {
    gap:20px;
    padding:20px 6vw;
  }
  footer>span:nth-child(2) {
    display:none;
  }
  dialog {
    padding:25px;
  }
  .image-frame img {
    aspect-ratio:3/4;
  }
}
.account-actions { display:flex; column-gap:16px; row-gap:0; flex-wrap:wrap; justify-content:flex-end; }
#personal-code { width:100%; box-sizing:border-box; font-family:monospace; }
#access-dialog form { margin-top:16px; }
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

.product-editor { margin:16px 0; }
.product-editor select { display:block; width:100%; padding:10px; margin:8px 0 16px; }
.set-download { display:flex; align-items:center; gap:8px; margin:6px 0; }
.set-download input { width:auto; margin:0; }
.cart-line { border-top:1px solid var(--line,#ddd); padding:12px 0; }
.cart-line input { display:block; width:90px; padding:8px; margin:4px 0; }
.cart-line button { display:block; margin:8px 0; text-align:left; }
.basket-selection { display:block; }
.crop-preview { position:relative; overflow:hidden; width:min(100%,220px); margin:14px auto; background:#eee; }
.crop-preview img { position:absolute; max-width:none; max-height:none; }
#crop-dialog { width:min(92vw,520px); max-height:90vh; overflow:auto; }
#crop-dialog input { padding:0; width:100%; }
#crop-dialog label { display:flex; justify-content:space-between; }

#crop-dialog .crop-preview { width:min(100%,160px); }
#crop-dialog label { margin:8px 0 0; }
#crop-dialog input { margin:4px 0 8px; height:24px; }

.gallery-photo{min-width:0}.gallery-photo>.image-card{width:100%}.favorite-button{margin-top:8px;padding:8px 12px;border:1px solid var(--line,#d5dcd7);border-radius:6px;background:white;cursor:pointer}.favorite-button[aria-pressed="true"]{background:#e8eee5}
.school-public{max-width:700px;margin:0 auto;padding:1rem 1rem 2.5rem}.school-public .eyebrow{margin:0 0 .25rem}.school-public h1{margin:0 0 .75rem;line-height:1.1}.school-public h2{font-size:1.25rem;line-height:1.25;margin:0 0 .5rem}.school-public .school-image{display:block;width:100%;height:clamp(80px,20vw,150px);object-fit:cover;object-position:60% 30%;border-radius:12px;margin:0 0 1rem}.school-public h1{font-size:clamp(1.75rem,5vw,2.5rem)}.school-public input:not([type=checkbox]):not([type=radio]),.school-public select{display:block;width:100%;box-sizing:border-box;margin:.5rem 0 1rem;padding:.75rem}.school-public label{display:block;margin:.8rem 0}.school-public input[type=checkbox]{width:auto;margin-right:.6rem}.school-public .school-check{display:flex;align-items:flex-start;gap:.75rem;min-height:44px;margin:.6rem 0;cursor:pointer}.school-public .school-check input[type=checkbox],.school-public input[type=radio]{flex:none;width:1.5rem;height:1.5rem;margin:.1rem 0 0;accent-color:var(--green)}.school-more{margin:.4rem 0 .6rem}.school-more summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--green);text-decoration:underline;text-underline-offset:3px}.school-more summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.school-more[open] .school-copy{margin:.25rem 0 .75rem;padding:.75rem 1rem;background:var(--wash);border-radius:8px}.school-choice-summary{margin:.2rem 0 0}.school-policy{margin:1rem 0;padding:1rem 1.1rem;border:1px solid #d7ded5;border-radius:12px}.school-policy>p{margin:.4rem 0}.school-confirm{border-color:var(--green);box-shadow:0 1px 0 var(--line)}.school-facts{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1rem;margin:.25rem 0 .75rem}.school-facts dt{color:var(--muted)}.school-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}.school-confirm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;margin-top:.75rem}.school-confirm-actions .primary{min-height:48px}.school-link-button{background:none;border:0;padding:0 .25rem;min-height:44px;color:var(--green);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}.school-link-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:480px){.school-confirm-actions .primary{width:100%}}.school-copy{white-space:pre-wrap;overflow-wrap:anywhere}.school-choice{border:0;margin:1.5rem 0 0;padding:0;min-width:0}.school-choice legend{font-weight:700;padding:0;margin-bottom:.4rem}.school-answers{display:flex;flex-wrap:wrap;gap:.25rem 1.75rem;margin:.5rem 0}.school-public .school-answers label{display:flex;align-items:center;gap:.6rem;min-height:44px;margin:0;cursor:pointer}.school-choice-note{margin:.25rem 0 0;padding:.75rem 1rem;border-left:4px solid var(--accent);background:var(--wash);border-radius:0 8px 8px 0}

/* Readable controls and image-led order summaries on desktop and small screens. */
button,.primary,.secondary,.text-button,select { min-height:48px; }
input:not([type=checkbox]):not([type=range]) { min-height:48px; }
input[type=checkbox] { width:24px; height:24px; flex-shrink:0; accent-color:var(--green); }
button,input,select,textarea { line-height:1.5; }
.product { min-height:64px; }
.product small { grid-column:1 / -1; font-size:1rem; line-height:1.5; }
.product:disabled { color:#505b53; background:#e5e8e2; border-color:#a2aba0; }
.product:disabled strong { font-weight:600; }
.product strong,.total strong,.order-total { font-variant-numeric:tabular-nums; }
.image-caption,.gallery-toolbar,footer,.topbar { flex-wrap:wrap; }
.image-caption span:last-child { color:var(--muted); }
h1,h2,h3,p,figcaption { overflow-wrap:anywhere; }
.order-photo { display:grid; grid-template-columns:96px minmax(0,1fr); gap:18px; align-items:center; margin:20px 0; padding:16px 0; border-top:1px solid #c7cec3; }
.order-photo figcaption { display:grid; gap:6px; min-width:0; line-height:1.5; }
.order-photo figcaption span { color:var(--muted); }
.order-thumbnail { display:block; width:96px; height:112px; object-fit:contain; background:#fffdf8; border:1px solid var(--line); border-radius:6px; }
.order-photo .crop-preview { width:96px; margin:0; border:1px solid var(--line); border-radius:6px; }
.order-photo-missing { font-size:1rem; overflow-wrap:anywhere; }
@media(max-width:420px) {
  .topbar { column-gap:12px; padding-inline:4vw; }
  main { padding-inline:4vw; }
  .login-card,.basket,dialog { padding:20px; }
  .image-grid { gap:20px 12px; }
  .order-photo { grid-template-columns:80px minmax(0,1fr); gap:12px; }
  .order-thumbnail,.order-photo .crop-preview { width:80px; }
  .order-thumbnail { height:96px; }
  .collection-header h1 { font-size:2rem; }
}

/* Payment stays attached to the order, including external bank/provider steps. */
.paypal-buttons { width:100%; max-width:420px; min-height:48px; }
.payment-actions { align-items:stretch; }
.payment-methods {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));
  align-items:start;
  gap:10px;
}
.payment-methods > .paypal-buttons { max-width:none; min-width:0; }
.payment-methods > button {
  width:100%; min-height:48px; padding:8px 12px;
  border:0; border-radius:6px; background:#eee; color:#171717;
  font:500 .875rem/1.25 var(--font-ui,sans-serif); text-align:center;
}
.payment-methods > button:hover { background:#e3e3e3; }
.payment-overlay { width:min(540px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:32px; }
.payment-overlay::backdrop { background:rgb(19 30 25 / 72%); backdrop-filter:blur(3px); }
.payment-overlay h2 { line-height:1.25; margin-top:0; }
.payment-window-status { background:var(--paper,#f5f4ef); border-left:4px solid var(--accent,#37624b); padding:16px; }
.payment-window-controls { display:grid; gap:12px; }
.payment-window-controls button { width:100%; white-space:normal; }
.payment-alternatives { width:100%; }
.payment-alternatives summary { cursor:pointer; padding:12px 0; }
.payment-alternatives button { margin:8px 8px 0 0; }
@media (max-width:480px) { .payment-overlay { padding:24px 20px; } }
.inbox-message{white-space:pre-wrap;overflow-wrap:anywhere}.gallery-contact{margin:1rem 0}.gallery-contact textarea{width:100%;font:inherit;padding:.8rem}.gallery-contact article{border-bottom:1px solid #d9ddd7;padding:1rem 0}

/* Whole motifs for browsing; crop previews remain limited to the chosen product. */
.image-frame img { aspect-ratio:auto; object-fit:contain; max-height:360px; }
.image-card:hover img { transform:none; }
.image-frame { display:flex; align-items:center; min-height:100px; background:#e8e8df; }
.select-photo { width:100%; margin-top:12px; justify-content:center; white-space:normal; }
.select-photo[aria-pressed=true], .set-choice[aria-pressed=true], .set-part[aria-pressed=true] { border:2px solid var(--green); background:#e1eadf; }
.select-photo:disabled,.set-choice:disabled { color:var(--muted); background:#eeeee5; }
.owned-label { font-size:1rem; color:var(--green); font-weight:650; margin:8px 0; }
.gallery-photo>a { display:block; text-decoration:underline; }
.set-parts,.set-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.set-part,.set-choice { border:1px solid var(--line); background:var(--paper); color:var(--ink); padding:10px; text-align:left; overflow-wrap:anywhere; }
.set-part img,.set-choice img { width:100%; height:100px; object-fit:contain; display:block; }
.set-part small,.set-part span { display:block; }
.set-choice-reason { display:block; margin-top:6px; font-size:.875rem; line-height:1.4; color:var(--ink); }
.set-choice:disabled img { opacity:.55; }
.set-part small { font-size:1rem; }
.set-picker { max-height:420px; overflow:auto; padding:6px; }
#photo-dialog { max-width:1100px; max-height:95dvh; overflow:auto; }
#photo-large { display:block; width:100%; height:60dvh; object-fit:contain; margin:16px auto; }
.photo-navigation { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#photo-dialog form { display:flex; justify-content:flex-end; }

/* Keep package suggestions and mobile checkout visible without hiding photos. */
.offer-recommendation { border:1px solid var(--green); background:#f8faf4; padding:18px; margin:0 0 16px; }
.offer-recommendation h3 { margin:4px 0 10px; font-size:1.25rem; line-height:1.3; }
.offer-recommendation strong { display:block; font-size:1.2rem; margin:12px 0; }
.offer-recommendation button { width:100%; }
.mobile-selection { display:none; }
@media(max-width:800px) {
  #gallery-view { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  .mobile-selection:not([hidden]) { display:block; position:fixed; z-index:20; bottom:0; left:0; right:0; padding:8px max(16px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-right)); background:#fbfaf6; box-shadow:0 -3px 18px rgb(21 40 30 / 16%); }
  .mobile-selection button { width:100%; min-height:48px; border:0; border-radius:7px; color:white; background:var(--green); font:600 1rem/1.3 var(--font-ui); padding:8px 12px; }
}

#crop-dialog { position:relative; padding:24px; }
#crop-dialog > form { position:absolute; top:12px; right:12px; margin:0; }
#crop-dialog > h2 { margin:0 40px 8px 0; font-size:1.75rem; }
#crop-dialog > p { margin:8px 0 16px; }
#crop-dialog .crop-controls > p { margin:8px 0; }
#crop-dialog select { width:100%; font:inherit; }
#crop-dialog .crop-layout { display:grid; gap:20px; align-items:center; }
#crop-dialog .crop-layout > * { min-width:0; }
#crop-dialog .crop-actions { position:sticky; bottom:-24px; z-index:1; display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:12px 0; background:var(--paper); }
#crop-dialog .crop-actions button { margin:0; }
@media (min-width:760px) {
  #crop-dialog { width:min(90vw,860px); max-width:860px; }
  #crop-dialog .crop-layout { grid-template-columns:1fr 1fr; }
}
#crop-dialog .crop-preview { width:min(100%,380px); border:2px solid var(--green); border-radius:6px; touch-action:none; cursor:grab; user-select:none; }
#crop-dialog .crop-preview.is-dragging { cursor:grabbing; }
#crop-dialog .crop-preview img { pointer-events:none; user-select:none; }
#crop-dialog.sticker-crop .crop-preview { width:min(100%,calc(250px * var(--crop-aspect))); }
#crop-dialog .sticker-crop-note { margin:8px 0; }
#crop-dialog .sticker-crop-jump { display:none; }
@media(max-width:600px) {
  #crop-dialog.sticker-crop .crop-preview {
    width:min(56vw,calc(clamp(132px,28svh,195px) * var(--crop-aspect)));
    margin-block:8px;
  }
  #crop-dialog.sticker-crop .crop-layout { gap:12px; }
  #crop-dialog .sticker-crop-jump { display:inline-flex;align-items:center;min-height:44px; }
}
.crop-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.crop-actions button { flex:1 1 180px; }
/* Login: the way to a new link by e-mail sits right under the code field. */
.login-help { margin:16px 0 0; }
.login-help .text-button { display:inline; min-height:0; padding:0; font:inherit; text-decoration:underline; text-underline-offset:3px; }
@media (pointer:coarse) { .login-help .text-button { display:inline-block; min-height:44px; } }

/* Consent answers on the registration page: the chosen answer is one strong,
   filled area, the same for yes and no (a consent must not be steered by colour). */
.school-public .school-answers label{min-height:48px;padding:.5rem 1rem;border:2px solid var(--muted);border-radius:10px;background:#fff;box-sizing:border-box}
.school-public .school-answers label:has(input:checked){background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.school-public .school-answers input[type=radio]{appearance:none;-webkit-appearance:none;width:1.375rem;height:1.375rem;min-height:0;margin:0;padding:0;flex:none;border:2px solid var(--muted);border-radius:50%;background:#fff}
.school-public .school-answers input[type=radio]:checked{border-color:#fff;background:var(--green);box-shadow:inset 0 0 0 4px #fff}
.school-public .school-answers input[type=radio]:focus-visible{outline:none}
.school-public .school-answers label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:no-preference){.school-public .school-answers label{transition:background-color .15s,border-color .15s,color .15s}}

.gallery-layout.preview-only{grid-template-columns:minmax(0,1fr)}
.preview-notice{padding:12px 16px;border-left:3px solid var(--accent);background:var(--wash);line-height:1.5}

/* A compact entry and a photo-first gallery; commerce opens without narrowing photos. */
body[data-view] .topbar{min-height:68px;padding:10px clamp(18px,3vw,48px);gap:16px}
body[data-view] main{max-width:1800px;padding-inline:clamp(18px,3vw,48px)}
body[data-view] .wordmark{font-size:1.65rem}
body[data-view] footer{padding:14px clamp(18px,3vw,48px);font-size:.85rem}
.sr-only,#shop-dialog[data-shop-view=products] .basket:has(.product-picker-back)>#shop-heading{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.login-layout{grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:clamp(32px,6vw,100px);padding:clamp(24px,4dvh,48px) 0;align-items:center;max-width:1200px;margin:auto}
.welcome .eyebrow{font-size:.72rem;letter-spacing:.14em;margin:0 0 12px}
.welcome h1{font-size:clamp(2.5rem,4.8vw,4.1rem);margin:0 0 16px}
.welcome .intro{font-size:.95rem;margin:0;line-height:1.6}
.login-art{height:clamp(200px,30dvh,320px);max-width:none;margin-top:24px;border-radius:12px}
.login-entry.login-card{width:100%;max-width:460px;padding:clamp(24px,3vw,42px);border-radius:16px;box-shadow:0 18px 60px #17251c0b}
.login-entry>.eyebrow{font-size:.72rem;letter-spacing:.1em;line-height:1.5;margin:0}
.login-entry h2{font-size:clamp(1.65rem,2.5vw,2rem);margin:8px 0 22px;line-height:1.2}
.entry-method,.gallery-density{display:flex;gap:4px;border:1px solid var(--line);padding:4px;border-radius:10px;min-width:0;margin:0;background:var(--wash)}
.entry-method label,.gallery-density label{position:relative;display:flex;justify-content:center;align-items:center;flex:1;margin:0;min-height:44px;padding:8px 12px;font-size:.85rem;line-height:1.25;border-radius:7px;cursor:pointer;white-space:nowrap}
.entry-method input,.gallery-density input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0;overflow:hidden;clip-path:inset(50%);border:0}
.entry-method label:has(input:checked),.gallery-density label:has(input:checked){background:var(--paper);color:var(--ink);font-weight:650;box-shadow:0 1px 5px #18282014}
.entry-method label:has(input:focus-visible),.gallery-density label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.login-entry #login-form{padding:0;border:0;box-shadow:none}
.login-entry form>p:first-child{font-size:.9rem;margin:20px 0;color:var(--muted)}
.login-entry label[for]{font-size:.85rem;margin:14px 0 6px}
.login-entry input:not([type=radio]){padding:12px 14px;border-radius:8px}
.login-entry .primary{margin-top:18px;padding:12px 16px;border-radius:8px}
.login-entry .fineprint,.entry-help{font-size:.8rem!important;line-height:1.5;margin:18px 0 0;color:var(--muted)}
.login-entry [role=status]:empty,.login-entry .error:empty{display:none}
.login-entry [role=status]{font-size:.85rem;line-height:1.55}
body[data-view="login-view"] .primary,body[data-view="gallery-view"] .primary{background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent)}
body[data-view="login-view"] .primary:hover,body[data-view="gallery-view"] .primary:hover{filter:brightness(.93)}
body[data-view="gallery-view"] .primary:disabled{background:#e1e5df;color:#4f5b53;border-color:#89948a;filter:none}
.collection-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px 0 10px;align-items:start}
.collection-header>:not(.collection-title):not(.gallery-cart){grid-column:1/-1}
.collection-header .eyebrow{font-size:.68rem;letter-spacing:.16em;margin:0 0 4px}
.collection-header h1{font-size:clamp(1.125rem,1.6vw,1.5rem);margin:0;max-width:none;line-height:1.25;overflow-wrap:anywhere}
.collection-header .muted{font-size:.9rem;line-height:1.45;max-width:70ch}
.collection-shopping{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-top:4px}
.collection-shopping:not(:has(button:not([hidden]))){display:none}
.collection-shopping button{width:auto;min-height:48px;padding:8px 14px;border-radius:8px;font-size:.9375rem}
.collection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 16px}
.collection-actions .text-button,.gallery-downloads a{width:auto;min-height:44px;padding:5px 0;font-size:.875rem;text-decoration:underline;text-underline-offset:3px}
.gallery-cart{display:flex;align-items:center;gap:8px;width:auto;min-height:44px;padding:6px 10px;border-radius:8px;font-size:.875rem;white-space:nowrap}
.gallery-cart-count{display:grid;place-items:center;min-width:1.55em;padding:2px 5px;border-radius:20px;background:var(--wash);font-weight:650;font-variant-numeric:tabular-nums}
.collection-header{display:block;padding:28px 0 18px}
.collection-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title actions" "subtitle actions";align-items:end;gap:4px 20px}
.collection-intro .collection-title{grid-area:title}
.collection-intro #gallery-subtitle{grid-area:subtitle}
.collection-intro .collection-actions{grid-area:actions;justify-content:flex-end}
.collection-header h1{font-size:clamp(1.5rem,2.3vw,2rem)}
.collection-shopping{margin-top:20px;gap:10px}
.collection-shopping button{padding:10px 18px}
.gallery-toolbar{border-bottom:1px solid var(--line);padding:12px 0}
.gallery-toolbar>span{font-family:Georgia,serif;font-size:1.2rem}
.topbar .gallery-cart{flex:none}
.gallery-downloads{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;margin:0 0 10px;padding:3px 12px;border:1px solid var(--line);border-radius:8px;background:var(--wash);font-size:.9rem}
.gallery-contact:empty{display:none}
.collection-header .muted:empty{display:none}
#print-guide-steps{padding-inline-start:1.5em;margin:10px 0 0;line-height:1.5}
#print-guide-steps li+li{margin-top:6px}
#print-guide-dialog,#gallery-help-dialog{width:min(480px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:16px 20px 20px;border-radius:12px;background:var(--paper);color:var(--ink)}
.gallery-help-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gallery-help-header h2{margin:0;font-size:1.3rem;line-height:1.25}
.gallery-help-header form{margin:0}
.gallery-help-header .text-button{width:auto;min-height:44px;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
#gallery-help-content{margin:6px 0 0}
#gallery-help-content p{margin:0 0 10px}
#gallery-help-content form{margin-top:12px;text-align:start}
#gallery-help-content label{display:block;font-size:.9rem}
#gallery-help-content textarea{display:block;resize:vertical;margin:4px 0 10px}
#gallery-help-content button{width:auto;min-height:44px;padding:8px 12px;border-radius:8px;font-size:.9rem}
#gallery-help-content>button{margin:0 8px 8px 0}
#gallery-help-content [role="status"]:empty{display:none}
#gallery-help-content [role="status"]{margin:8px 0 0}
#gallery-help-content article p{margin:4px 0}
.gallery-layout,.gallery-layout.preview-only{display:block}
.gallery-toolbar{padding:6px 0;align-items:center;gap:12px;margin:0;font-size:.85rem}
.gallery-toolbar>b{font-size:.85rem}
.gallery-density{margin-left:auto;padding:3px}
.gallery-density label{min-height:38px;padding:6px 14px;font-size:.8rem}
#profile-status:empty{display:none}
#profile-status{font-size:.8rem;line-height:1.45;color:var(--muted);margin:0 0 14px}
.preview-notice{padding:9px 12px;margin:12px 0 0;font-size:.85rem;border-radius:0 6px 6px 0}
.image-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.image-grid[data-density="compact"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery-photo{position:relative;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper);padding:8px;align-self:start}
.gallery-photo.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.image-frame{min-height:0;height:clamp(240px,63dvh,720px);border-radius:7px;background:color-mix(in srgb,var(--ink) 5%,var(--paper));justify-content:center}
.image-frame img{width:100%;height:100%;max-height:none;object-fit:contain;aspect-ratio:auto}
.image-grid[data-density="compact"] .image-frame{height:clamp(180px,42dvh,440px)}
.image-card{display:block;width:100%;min-height:0}
.image-caption{font-size:.8rem;margin:10px 6px 4px;color:var(--muted)}
.photo-capture-date{display:block;margin:2px 6px 10px;font-size:.875rem;line-height:1.4;color:var(--muted)}
.photo-actions{display:flex;align-items:stretch;gap:8px;padding:4px}
.photo-actions .select-photo{flex:1;width:auto;margin:0;border-radius:7px;padding:8px 12px;font-size:.85rem;min-width:0}
.photo-actions .favorite-button{margin:0;padding:8px 12px;font-size:.85rem;min-height:44px;white-space:nowrap;background:transparent}
.photo-actions .favorite-button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--paper))}
.photo-actions .select-photo[aria-pressed=true]{border:1px solid var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--paper))}
.gallery-photo>.fineprint,.gallery-photo>.owned-label,.gallery-photo>.text-button{font-size:.8rem!important;margin:4px 6px;line-height:1.4;min-height:0;padding:4px 0}
#shop-dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(100%,480px);max-width:480px;padding:0;border:0;border-left:1px solid var(--line);overflow:auto;overscroll-behavior:contain;border-radius:14px 0 0 14px}
#shop-dialog .shop-close{position:sticky;top:0;z-index:2;background:var(--paper);border-bottom:1px solid var(--line);padding:8px 24px;text-align:left}
#shop-dialog .shop-close button{padding:8px 0;font-size:.9rem}
#shop-dialog .basket{position:static;max-height:none;margin:0;padding:20px 24px 32px;border:0;background:var(--paper);overflow:visible}
#shop-dialog .basket h2{font-size:1.8rem;margin:8px 0}
#shop-dialog .eyebrow{font-size:.68rem;letter-spacing:.14em;margin:0}
#shop-dialog .basket>.muted{font-size:.9rem;margin:8px 0 20px}
#shop-dialog .product{border-radius:8px;padding:12px}
#shop-dialog .product small{font-size:.85rem}
#photo-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:12px clamp(12px,3vw,44px);border:0;background:#131715;color:#fff;overflow:hidden}
#photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px}
#photo-dialog form{margin:0}
#photo-dialog .secondary{color:#fff;border-color:#727a75;border-radius:7px;padding:8px 14px;font-size:.85rem;min-height:44px}
#photo-dialog .secondary:hover{background:#303a34}
#photo-large{height:100%;min-height:0;width:100%;object-fit:contain;margin:0}
#photo-caption{font-size:.8rem;line-height:1.4;text-align:center;margin:0;color:#e1e7e3}
.photo-navigation{justify-content:center;gap:12px;flex-wrap:nowrap}
#photo-dialog[open]{grid-template-rows:auto minmax(0,1fr)}
.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,410px);gap:24px;min-height:0}
.photo-layout:has(#photo-purchase[hidden]){grid-template-columns:minmax(0,1fr)}
.photo-viewer{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:12px;min-height:0}
.photo-viewer #photo-large{max-width:720px;max-height:560px;justify-self:center;align-self:center}
#photo-purchase{background:var(--paper);color:var(--ink);border-radius:12px;overflow:auto;padding:20px;min-height:0}
#photo-purchase h2{font-size:1.25rem;margin:8px 0 16px}
.photo-purchase-tabs{display:flex;gap:8px;margin-bottom:20px;position:sticky;top:-20px;z-index:2;background:var(--paper);padding-block:4px}
.photo-purchase-tabs button{flex:1;min-height:48px;padding:10px 8px;font-size:.95rem;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px}
.photo-purchase-tabs button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
#photo-purchase .product-picker{padding:0}
#photo-purchase .product-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#photo-purchase .product-family-card{padding:8px;min-width:0}
#photo-purchase .product-family-card strong{font-size:1rem}
#photo-purchase .product-family-card>span{display:none}
#photo-purchase .product-artwork{height:100px}
#photo-purchase .product-choice-detail{display:block}
#photo-purchase .product-choice-detail .product-artwork{height:140px}
#photo-purchase .secondary{color:var(--ink);border-color:var(--line)}
#photo-purchase .secondary:hover{background:var(--paper)}
.offer-card{display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:18px;margin:0 0 14px;background:var(--paper);color:var(--ink);gap:12px}
.offer-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;width:100%}
.offer-card h3{font-size:1.125rem;line-height:1.35;margin:0;overflow-wrap:anywhere}
.offer-card-price{font-size:1.125rem;font-weight:600;white-space:nowrap}
.offer-card p{margin:0;line-height:1.5}
.offer-card-digital{font-size:1.0625rem;font-weight:650}
.offer-set{width:100%;margin:0}
.offer-set-collage{display:block;width:100%;height:auto;border-radius:9px}
.offer-set-items{display:grid;gap:4px;margin:10px 0 0;padding-left:1.15em;font-size:.9rem;line-height:1.4}
.offer-set figcaption{color:var(--muted);font-size:.8125rem;margin-top:8px}
.offer-card-note,.offer-card-shipping{font-size:.9375rem;color:var(--muted)}
.offer-unavailable{font-size:.9375rem;color:var(--ink);border-left:3px solid var(--line);padding-left:10px}
.offer-card .offer-select,#photo-dialog .offer-select{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:7px;min-height:44px;font-size:1rem;padding:8px 16px;margin-top:auto;width:auto}
.offer-card .offer-select:hover,#photo-dialog .offer-select:hover{background:var(--wash)}
.offer-card .offer-select:disabled{color:var(--muted);background:transparent;cursor:not-allowed}
.photo-cart-bar button{width:100%}
.package-entry{display:flex;align-items:center;justify-content:center;gap:16px;border-radius:8px;font-size:1rem;min-height:50px;padding:10px 16px}
.collection-header .package-availability{font-size:.9rem;margin:0}
.package-deadline{display:flex;flex-wrap:wrap;flex:none;align-items:center;gap:0 12px;color:var(--muted);font-size:.9375rem}
.package-deadline .text-button{min-height:44px;font-size:inherit;text-decoration:underline;text-underline-offset:3px;padding:0}
#packages-dialog .package-deadline,#photo-packages .package-deadline{padding:0 12px;margin:0 0 14px;border-left:3px solid var(--line)}
#packages-dialog .package-overview-intro:has(+ .package-deadline:not([hidden])){margin-bottom:10px}
#gallery-messages-dialog{width:min(480px,calc(100vw - 24px));padding:24px;border-radius:12px}
#gallery-messages-dialog header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
#gallery-messages-dialog h2{margin:0;font-size:1.4rem;line-height:1.3}
#gallery-messages-dialog form{text-align:start}
#gallery-messages-dialog button{min-height:44px}
#gallery-messages-dialog p{line-height:1.5;margin:12px 0}
#gallery-messages-dialog .fineprint{color:var(--muted);font-size:.875rem}
#gallery-messages-dialog label:has(input[type="checkbox"]){display:flex;align-items:flex-start;gap:8px}
#gallery-messages-dialog [role="status"]:empty{display:none}
.package-entry small{font-size:.9375rem;font-weight:400;white-space:nowrap}
#packages-dialog{width:min(980px,calc(100vw - 32px));max-width:980px;max-height:calc(100dvh - 32px);border-radius:16px;padding:24px;background:var(--paper);color:var(--ink)}
#packages-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.package-overview-header{display:flex;flex:none;justify-content:space-between;align-items:center;gap:16px;background:var(--paper)}
.set-choice-hint{display:block;color:var(--ink);line-height:1.45;margin:6px 0 12px}
.set-snow-globe:not([hidden]){display:flex;flex:none;align-items:center;gap:10px;align-self:flex-end;text-align:left;max-width:100%;margin-top:8px;padding:4px 12px 4px 4px;border-radius:8px}
.set-snow-globe small,.set-snow-globe strong{display:block}
.set-snow-globe small{font-size:.82rem}
.globe-thumbnail{width:52px;flex:none}
.globe-thumbnail figure,.globe-thumbnail canvas{display:block;width:100%;margin:0}
.gallery-gift-teaser:not([hidden]){position:fixed;right:20px;bottom:20px;z-index:19;width:min(300px,calc(100vw - 32px));border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:0 6px 24px #15281e30}
.gallery-gift-teaser-open{display:flex;align-items:center;gap:12px;width:100%;padding:10px 30px 10px 10px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.gallery-gift-teaser-open .globe-thumbnail{width:90px}
.gallery-gift-teaser-open strong,.gallery-gift-teaser-open span span{display:block}
.gallery-gift-teaser-open span span{margin-top:5px;font-size:.875rem}
.gallery-gift-teaser-close{position:absolute;top:4px;right:6px;z-index:1;width:32px;height:32px;border:0;background:transparent;color:var(--ink);font-size:1.4rem;cursor:pointer}
@media(max-width:600px){.gallery-gift-teaser:not([hidden]){right:12px;bottom:calc(86px + env(safe-area-inset-bottom));width:min(270px,calc(100vw - 24px))}.gallery-gift-teaser-open .globe-thumbnail{width:76px}}
@media(prefers-reduced-motion:no-preference){
  #gallery-view:not([hidden])::after {
    content:"";
    position:fixed;
    inset:-140px 0 0;
    z-index:2;
    pointer-events:none;
    background-image:
      radial-gradient(circle at 22px 27px, #fff 3px, #9aaebc 4px, transparent 5px),
      radial-gradient(circle at 113px 82px, #f6fafc 2.5px, #a1b7c5 3.5px, transparent 4.5px),
      radial-gradient(circle at 61px 146px, #fff 3.5px, #b0bfca 4.5px, transparent 5.5px);
    background-size:239px 211px,307px 193px,373px 253px;
    animation:gallery-snowfall 5s linear both;
  }
  @keyframes gallery-snowfall {
    0% {opacity:0;transform:translateY(0)}
    15%,80% {opacity:.55}
    100% {opacity:0;transform:translateY(140px);visibility:hidden}
  }
  #packages-dialog.with-photo-sets[open] .package-overview-header::after{
    content:"";display:block;pointer-events:none;width:18px;flex:none;
    background-image:radial-gradient(circle at 4px 6px,#7893a2 2.8px,transparent 3.5px),radial-gradient(circle at 13px 23px,#93acb7 3.5px,transparent 4.2px);
    background-size:18px 42px,18px 59px;animation:set-snowfall 4s ease-out both}
  #packages-dialog.with-photo-sets[open] .package-overview-header::after{align-self:stretch;order:1}
  #packages-dialog.with-photo-sets[open] .package-overview-header form{order:2}
  #packages-dialog.with-photo-sets[open] .package-overview-header h2{margin-right:auto}
  @keyframes set-snowfall{0%,100%{opacity:0}20%,70%{opacity:.62}100%{background-position:0 42px,0 59px}}
}
.package-overview-header h2{margin:0;font-size:1.5rem;line-height:1.3}
.package-overview-header form{margin:0}
.package-overview-header button{min-height:44px;font-size:1rem;padding:8px 12px;border-radius:7px;white-space:nowrap}
.package-overview-intro{flex:none;font-size:1rem;line-height:1.5;margin:16px 0 22px}
.package-overview{display:grid;gap:24px;min-height:0;overflow:auto;align-content:start}
.package-group{min-width:0}
.package-group h3{font:650 1.05rem/1.35 var(--font-ui);margin:0 0 10px}
.package-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.package-group-grid--digital{grid-template-columns:repeat(3,minmax(0,1fr))}
.package-overview .offer-card{margin:0}
.package-overview .offer-card h4{font:650 1rem/1.35 var(--font-ui);margin:0;overflow-wrap:anywhere}
.package-overview .offer-card-price{font:650 1rem/1.35 var(--font-ui)}
.package-overview .set-choice-hint,.package-overview .offer-card-digital{font:400 .9375rem/1.5 var(--font-ui);color:var(--ink);margin:0}
.package-overview .offer-select{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff);font-weight:600}
.package-overview .offer-select:hover{background:var(--accent);filter:brightness(.93)}
.package-overview .offer-select:disabled{background:var(--wash);border-color:var(--line);color:var(--muted)}
.package-availability{font-size:1rem;line-height:1.5;color:var(--muted);margin:18px 0}
#package-overview-availability{flex:none;margin-bottom:0}
#packages-heading:focus{outline:none}
@media(max-width:600px){
  #packages-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px}
  .package-group-grid,.package-group-grid--digital{grid-template-columns:1fr}
  .package-overview-header{align-items:flex-start}
  .package-overview-header h2{font-size:1.35rem}
  .offer-card{padding:16px}
  .offer-card-heading{flex-wrap:wrap;gap:6px 12px}
}
.photo-cart-bar{position:sticky;bottom:-20px;background:var(--paper);padding:16px 0 4px;margin-top:16px;border-top:1px solid var(--line)}
@media(max-width:800px){
  #photo-dialog{padding:10px}
  .photo-layout{display:block;overflow:auto}
  .photo-viewer{height:36dvh;min-height:220px;position:sticky;top:0;background:#131715;z-index:1;padding-bottom:12px}
  #photo-purchase{overflow:visible;min-height:0;padding:16px}
  .photo-cart-bar{bottom:-1px}
}
#gallery-view{padding-bottom:24px}
@media(max-width:1100px){.image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-grid[data-density="compact"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
  .login-layout{grid-template-columns:1fr;max-width:460px;gap:24px;padding:24px 0}
  .welcome{display:none}
  .login-entry.login-card{padding:24px}
  .collection-header{padding:18px 0 12px}
  .collection-intro{display:block}
  .collection-intro .collection-actions{justify-content:flex-start;margin-top:4px}
  .collection-shopping{margin-top:10px}
  body[data-view="gallery-view"] .topbar .wordmark{margin-right:auto}
  body[data-view="gallery-view"] .topbar .gallery-cart{order:1}
  body[data-view="gallery-view"] .account-actions{order:2;flex-basis:100%;justify-content:flex-start}
  body[data-view="gallery-view"] .account-actions .text-button{min-height:44px;padding:6px 0;font-size:.75rem}
  #gallery-view{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  #gallery-view:has(.preview-only){padding-bottom:24px}
  .image-grid{gap:16px}
  .gallery-toolbar{flex-wrap:nowrap}
  .gallery-density label{padding-inline:10px}
  .mobile-selection button{background:var(--accent);color:var(--accent-ink,#fff)}
}
@media(max-width:600px){
  .gallery-cart-label{display:none}
  .collection-shopping button{flex:1 1 115px}
  .collection-shopping:has(#open-photo-gifts:not([hidden])):has(#open-print-guide:not([hidden])) .package-entry{flex-basis:100%}
  .collection-shopping .package-entry{flex:1.5 1 154px;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
  .collection-actions{gap:0 10px}
  .collection-actions .text-button{font-size:.8125rem}
  .image-grid{grid-template-columns:minmax(0,1fr)}
  .image-grid[data-density="compact"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .image-frame{height:clamp(260px,60dvh,600px)}
  .image-grid[data-density="compact"] .image-frame{height:clamp(160px,34dvh,300px)}
  .image-grid[data-density="compact"] .photo-actions{flex-wrap:wrap;gap:4px}
  .image-grid[data-density="compact"] .photo-actions button{flex:1;font-size:.75rem;padding-inline:6px}
  .image-grid[data-density="compact"] .photo-actions .favorite-button{flex:0 0 36px;min-height:44px;padding:4px;font-size:0}
  .image-grid[data-density="compact"] .favorite-button::before{content:'♡';font-size:1.2rem}
  .image-grid[data-density="compact"] .favorite-button[aria-pressed="true"]::before{content:'♥'}
  #shop-dialog{border-radius:0;border:0}
  .entry-help{font-size:.75rem!important}
}

/* Personal invitations share digital rights, never another person's checkout. */
#share-dialog,#invitation-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
#share-form label{display:grid;gap:6px;margin:16px 0}
#share-form input{width:100%;box-sizing:border-box}
#share-list{padding-left:20px}
#share-list li{margin:12px 0;overflow-wrap:anywhere}
#share-list button{display:block;margin-top:6px}

dialog[aria-label="Deine Galeriehinweise"]{max-width:min(620px,calc(100vw - 32px));padding:28px}dialog[aria-label="Deine Galeriehinweise"] label{display:block;margin:18px 0;line-height:1.6}dialog[aria-label="Deine Galeriehinweise"] input[type=email]{width:100%;font:inherit;padding:12px}dialog[aria-label="Deine Galeriehinweise"] button{margin:12px 12px 0 0}

.print-safe-area { position:absolute; z-index:1; pointer-events:none; border:1px dashed white; box-shadow:0 0 0 100vmax rgb(0 0 0 / 40%); }

/* Product library and the one-file multi-photo print designer. */
.product .product-library-image { width:100%; max-height:180px; object-fit:contain; border-radius:10px; background:#f3efe8; }
.product .product-preview { margin:0 0 12px; width:100%; }
.product small { display:block; white-space:pre-line; line-height:1.5; }
.product-preview { margin:0; min-width:0; }
.product-preview canvas { display:block; width:100%; height:auto; border-radius:12px; }
.product-preview figcaption { font-size:.875rem; color:var(--muted,#655f57); margin:.4rem 0; }
.cart-line .product-preview { max-width:280px; }
.product-designer { width:min(1160px,calc(100vw - 28px)); max-width:none; max-height:94dvh; padding:24px; border:0; border-radius:18px; overflow:auto; color:#272622; background:#fffdf9; }
.product-designer::backdrop { background:#171a20b3; }
.product-designer header { display:flex; justify-content:space-between; align-items:center; gap:20px; position:static; padding:0; }
.product-designer h2 { margin:0; font-size:1.7rem; }
.product-designer h3 { margin:1rem 0 .7rem; font-size:1.125rem; }
.product-designer p { font-size:1rem; line-height:1.55; }
.product-designer .fineprint { font-size:.875rem; }
.design-layouts,.design-slots { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.product-designer button { min-height:44px; padding:10px 16px; font:inherit; cursor:pointer; }
.design-layouts button,.design-slots button { border:1px solid #a39b8f; border-radius:8px; background:white; color:#272622; }
.design-layouts button[aria-pressed=true],.design-slots button[aria-pressed=true] { border:2px solid var(--accent,#254c49); background:#edf4ef; font-weight:700; }
.design-workspace { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:'proof product' 'adjustments product';gap:8px 28px; }
.design-proof-panel { grid-area:proof; }
.design-product-panel { grid-area:product; }
.design-adjustments { grid-area:adjustments; }
.design-workspace section { min-width:0; }
.design-workspace canvas { width:100%; height:auto; display:block; border-radius:10px; background:#f3efe8; }
.design-proof { touch-action:none; cursor:grab; }
.design-controls { display:grid; gap:12px; }
.design-controls label,.design-result>label { display:grid; gap:6px; font-size:1rem; }
.product-designer input[type=range] { width:100%; min-height:32px; }
.design-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-height:300px; overflow:auto; padding:3px; }
.design-photos button { padding:4px; border:1px solid #bcb5ab; background:white; border-radius:8px; min-width:0; color:#272622; }
.design-photos img { width:100%; height:90px; object-fit:contain; background:#f3efe8; border-radius:5px; }
.design-photos span { display:block; font-size:.875rem; overflow-wrap:anywhere; }
.product-designer footer { display:flex; justify-content:space-between; align-items:center; gap:20px; border-top:1px solid #d7d1c8; margin-top:24px; padding-top:12px; }
.product-designer footer p { max-width:60ch; }
@media(max-width:720px){.product-designer{padding:16px;}.design-workspace{grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:'proof' 'product' 'adjustments';gap:12px;}.product-designer footer{display:block;}.product-designer footer button{width:100%;}.product-designer h2{font-size:1.125rem;line-height:1.3;}.design-photos{max-height:230px;}}

.product .product-preview,.product .product-library-image { grid-column:1/-1; }
.product-designer header { position:sticky;top:-24px;background:#fffdf9;z-index:2;padding:12px 0; }
@media(max-width:720px){.product-designer header{top:-16px;}}

#shop-dialog { width:min(960px,100%);max-width:960px; }
html:has(#shop-dialog[open]),html:has(#photo-dialog[open]),html:has(#packages-dialog[open]) { overflow:hidden; }
.product-picker { scroll-margin-top:64px; }
#shop-dialog .basket>.muted { font-size:1rem;line-height:1.55;max-width:65ch; }
.product-picker { display:block; }
.product-picker h3 { font-size:1.4rem;line-height:1.25;margin:16px 0; }
.product-picker h4 { font-size:1.15rem;line-height:1.4;margin:12px 0; }
.product-search-label { display:grid;gap:6px;font-size:1rem; }
.product-search-label input { width:100%;min-height:46px;font:inherit; }
.product-picker-back { display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 10px;padding:8px 12px;border:1px solid var(--ink);border-radius:8px;background:var(--wash);color:var(--ink);font-size:.9375rem;font-weight:650;line-height:1.4; }
.product-picker-back:hover { background:var(--ink);color:#fff; }
.product-picker-content h3 { margin:0 0 12px; }
.product-search-label { margin:0 0 16px; }
.product-family-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.product-family-card { display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fffdf9;color:var(--ink);text-align:left;min-width:0;cursor:pointer;font:inherit; }
.product-family-card:hover { border-color:var(--accent);box-shadow:0 4px 18px #25221c14; }
.product-family-card strong { font-size:1.1rem;line-height:1.35; }
.product-family-card span { font-size:1rem;line-height:1.4; }
.product-family-card small { margin-top:auto;font-size:.875rem;line-height:1.4;color:var(--muted); }
.photo-print-price span { display:block;font-size:inherit; }
.product-artwork { position:relative;margin:0;min-width:0;background:#ede9e1;border-radius:10px;overflow:hidden; }
.product-artwork svg,.product-artwork img,.product-artwork canvas { display:block;width:100%;height:auto;aspect-ratio:320/220;object-fit:contain; }
.product-artwork.photo-mockup { background:#fcfcfc; }
.product-artwork.mug-print-preview { background:#fcfcfc; }
.mug-preview-views { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center; }
.mug-print-preview figcaption { padding:0 8px 8px;font-size:.8125rem;text-align:center;color:var(--muted); }
.mug-print-options,.product-photo-count { margin:12px 0;min-width:0;padding:0;border:0; }
.mug-print-options legend,.product-photo-count legend { padding:0;margin:0 0 6px;font-weight:600; }
.mug-print-cards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.mug-print-option,.product-photo-count-options button {
  border:1px solid #a6afa5;border-radius:8px;background:var(--paper);color:var(--ink);min-width:0;
}
.mug-print-option[aria-pressed=true],.product-photo-count-options button[aria-pressed=true] {
  border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--wash);
}
.mug-print-option { padding:6px 6px 8px;line-height:1.25; }
.mug-print-option strong,.mug-print-option small { display:block; }
.mug-print-option .mug-print-preview { margin:0 0 5px;height:clamp(78px,15vw,112px); }
.mug-print-option .mug-preview-views,.mug-print-option .mug-preview-views canvas { height:100%; }
.mug-print-option .mug-preview-views canvas { max-height:112px; }
.product-photo-count-options { display:flex;flex-wrap:wrap;gap:8px; }
.product-photo-count-options button { padding:8px 12px;min-height:44px; }
#photo-purchase .mug-print-option .mug-print-preview { height:clamp(78px,15vw,112px); }
#photo-purchase .product-choice-detail .mug-print-preview { height:auto; }
.product-example-label { position:absolute;right:4px;bottom:4px;padding:2px 5px;border-radius:4px;background:#fff;color:#524f47;font-size:.75rem;line-height:1.2; }
#crop-preview-host .photo-mockup { width:min(100%,240px);margin:12px auto 0; }
.product-variant-fields { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0; }
.product-variant-fields label { display:grid;gap:7px;align-content:start;font-size:1rem;margin:0; }
.product-variant-fields select { width:100%;min-height:46px;font:inherit; }
.product-size-orientation { display:grid;grid-template-columns:minmax(140px,1fr) minmax(260px,1.7fr);gap:14px;grid-column:1/-1;align-items:start; }
.product-orientation { min-width:0;border:0;padding:0;margin:0; }
.product-orientation legend { float:none;padding:0;margin:0 0 7px;font-size:1rem;font-weight:400;line-height:1.6; }
.product-orientation-options { display:flex;gap:6px; }
.product-orientation button { display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;min-height:46px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer; }
.product-orientation button[aria-pressed=true] { border:2px solid var(--accent);background:var(--wash);font-weight:700; }
.product-orientation button:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
.orientation-icon { display:inline-block;flex:none;border:2px solid currentColor;border-radius:1px; }
.orientation-icon-portrait { width:12px;height:17px; }
.orientation-icon-landscape { width:17px;height:12px; }
.cart-product-options { display:grid;grid-template-columns:minmax(130px,1fr) minmax(240px,1fr);gap:12px;align-items:start;margin:10px 0; }
.cart-product-options>label { display:grid;gap:7px;min-width:0;margin:0; }
.cart-product-options select { width:100%;min-height:46px; }
@media(max-width:760px){.cart-product-options{grid-template-columns:1fr;}}
@media(max-width:600px){.product-size-orientation{grid-template-columns:minmax(94px,1fr) minmax(0,1.8fr);gap:10px;}.product-size-orientation select{min-height:62px;}.product-orientation button{flex-direction:column;min-height:62px;gap:4px;padding:6px;font-size:.9375rem;}.product-orientation-options{gap:4px;}}
.product-choice-detail { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin:12px 0 16px; }
.product-choice-detail p { font-size:1rem;line-height:1.55;white-space:pre-line; }
.product-order-notice { padding:12px 14px;background:#f2eee4;border-radius:8px; }
.product-choice-next { margin-top:18px;min-height:48px; }
.product-choice-detail h4 { margin:0 0 12px;font-size:1.15rem;line-height:1.35; }
.product-facts { display:grid;gap:4px;margin:0; }
.product-facts dt { font-size:.875rem;font-weight:650;color:var(--muted); }
.product-facts dd { margin:0 0 8px;font-size:1rem;line-height:1.45; }
.product-facts dd:last-child { margin-bottom:0; }
.snowglobe-options { grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.snowglobe-option-label { margin:0; }
.snowglobe-option { display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0;min-height:44px;padding:8px 4px;border:1px solid var(--line);border-radius:9px;background:#fffdf9;color:var(--ink);font:inherit;font-size:.875rem;line-height:1.3;text-align:center;cursor:pointer; }
.snowglobe-option strong { overflow-wrap:anywhere; }
.snowglobe-option[aria-pressed=true] { border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--wash); }
.snowglobe-option:focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
.snowglobe-option .snowglobe-preview { width:100%;max-width:64px; }
.snowglobe-option-label + .product-variant-fields { margin:6px 0 12px; }
.snowglobe-preview canvas { background:#ede9e1; }
.snowglobe-detail-preview { min-width:0; }
.snowglobe-detail-preview .snowglobe-preview { width:min(100%,260px);margin-inline:auto; }
.snowglobe-detail-preview figcaption { display:none; }
.product-family-card .snowglobe-preview { display:grid;place-items:center;aspect-ratio:320/220;background:#ede9e1;border-radius:10px; }
.product-family-card .snowglobe-preview canvas { width:68%; }
#crop-preview-host .snowglobe-preview { width:min(100%,170px);margin:12px auto 0;text-align:center; }
.print-size-comparison,.print-finishes { margin:16px 0; }
.print-size-comparison h4 { margin:0 0 8px; }
.print-size-figures { display:flex;align-items:stretch;flex-wrap:wrap;gap:6px; }
.print-size-figures figure { display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;margin:0;padding:7px;border:1px solid transparent;border-radius:7px; }
.print-size-figures figure[data-selected=true] { border-color:var(--accent);background:var(--wash); }
.print-size-figures img { display:block;object-fit:cover;border-radius:2px; }
.print-size-figures figcaption { font-size:.8125rem;line-height:1.4;text-align:center; }
.print-finishes summary { display:list-item;min-height:44px;padding:10px 0;font-weight:650;cursor:pointer; }
.print-finishes dl { margin:0 0 12px; }
.print-finishes dt { display:flex;align-items:center;gap:10px;font-weight:650; }
.print-finishes dd { margin:5px 0 12px 52px;line-height:1.45; }
.print-finish-example { display:block;flex:none;width:42px;height:30px;border:1px solid #574f4833;border-radius:4px;background:#8a9780 url('/api/ui/print-preview/example.webp') center/cover; }
.print-finish-example[data-finish=Matt] { background-image:linear-gradient(#fcf8ee45,#fcf8ee45),url('/api/ui/print-preview/example.webp'); }
.print-finish-example[data-finish=Glänzend] { background-image:linear-gradient(128deg,transparent 39%,#fff9 48%,transparent 60%),url('/api/ui/print-preview/example.webp'); }
.print-finish-example[data-finish=Seidenraster] { background-image:repeating-linear-gradient(45deg,#fff4 0 1px,transparent 1px 3px),url('/api/ui/print-preview/example.webp'); }
.product-choice-actions { flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 0;padding:10px 0 0;background:var(--paper);border-top:1px solid var(--line); }
.product-choice-actions .product-choice-next { display:flex;justify-content:center;align-items:center;width:auto;flex:1;margin:0;border-radius:8px;text-align:center; }
.product-choice-actions.snowglobe-actions { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:6px 8px;max-width:380px;margin:6px auto 0;padding:0;border:0; }
.snowglobe-actions>strong { grid-column:1/-1;font-size:.9375rem;line-height:1.4; }
.snowglobe-actions .product-choice-next,.snowglobe-actions .product-change-photo { min-height:44px;margin:0;padding:7px 8px;border-radius:8px;font-size:.875rem;line-height:1.3; }
.snowglobe-actions:not(:has(.product-change-photo)) .product-choice-next { grid-column:1/-1; }
@media(max-width:430px){.product-family-card .snowglobe-preview{grid-row:1/4;}.product-choice-actions{gap:8px;}.product-choice-actions .product-choice-next{padding-inline:12px;}}
@media(max-width:760px){.snowglobe-detail-preview .snowglobe-preview{width:min(100%,200px,31dvh);}.snowglobe-option .snowglobe-preview{max-width:36px;}.snowglobe-option{font-size:.8125rem;padding-block:5px;}}
.product-photo-picker { display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;max-height:320px;overflow:auto;margin-top:16px;padding:2px; }
.product-photo-choice { display:grid;gap:5px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px;color:var(--ink);font:inherit;text-align:center;scroll-margin-block:32px 8px; }
.product-photo-choice[aria-pressed=true] { border:2px solid var(--accent); }
.product-photo-choice img { width:100%;height:95px;object-fit:contain; }
.product-photo-choice span { font-size:.875rem;overflow-wrap:anywhere; }
.product-picker-empty { padding:24px 0; }
.photo-actions { flex-wrap:wrap; }
.photo-actions .add-photo-product,.image-grid[data-density="compact"] .photo-actions .add-photo-product { flex:0 0 100%;text-align:left;min-height:44px; }
.cart-line label,.cart-line select { min-width:0;max-width:100%; }
@media(max-width:760px){.product-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.product-variant-fields{grid-template-columns:repeat(2,minmax(0,1fr));}.product-choice-detail{grid-template-columns:1fr;gap:12px;}.product-choice-detail .product-artwork{max-width:420px;width:100%;margin:auto;}}
@media(max-width:430px){#shop-dialog .basket{padding:16px;}.product-family-grid,#photo-purchase .product-family-grid{grid-template-columns:1fr;}.product-family-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 12px;align-items:center;}.product-family-card .product-artwork{grid-row:1/4;}.product-family-card strong,.product-family-card span,.product-family-card small{grid-column:2;}.product-variant-fields{grid-template-columns:1fr;}}

/* Product selection and the cart share navigation, with a compact cart sheet. */
#shop-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#shop-dialog .shop-header{position:static;flex:none;padding:12px 20px 16px;background:var(--paper);border-bottom:1px solid var(--line)}
#shop-dialog .shop-close{position:static;padding:0 0 8px;border:0}
#shop-dialog .shop-close button{min-height:36px;font-size:.875rem;padding:4px 0}
#shop-dialog .shop-header:has(#shop-back-cart-host:not([hidden])){display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:7px}
#shop-dialog .shop-header:has(#shop-back-cart-host:not([hidden])) .shop-close{padding:0}
#shop-back-cart-host button{min-height:44px;font-size:.875rem;padding:6px 0;text-align:right}
.shop-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.shop-navigation button{min-height:44px;margin:0;padding:9px 14px;border:1px solid var(--line);border-radius:8px;font-size:.875rem;line-height:1.4}
.shop-navigation button[aria-current=page]{background:var(--wash);color:var(--ink);border-color:#a6afa5;font-weight:650}
#shop-heading:focus{outline:none}
#shop-dialog .basket{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:20px}
#shop-dialog .basket h2{flex:none;font-size:1.5rem;line-height:1.25;margin:0 0 20px}
#shop-products-view:not([hidden]),#shop-dialog #products{display:flex;flex:1;flex-direction:column;min-height:0}
#shop-dialog .product-picker-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 2px 8px}
#shop-dialog .product-picker-scroll:has(.product-picker-back) :is(.offer-recommendation,.product-picker-back){display:none}
#shop-dialog[data-shop-view=products] .shop-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-block:7px}
#shop-dialog[data-shop-view=products] .shop-close{flex:none;padding:0}
#shop-dialog[data-shop-view=products] .shop-close button{min-height:44px}
#shop-dialog[data-shop-view=products] .shop-navigation{grid-template-columns:auto auto}
@media(max-width:360px){#shop-dialog[data-shop-view=products] .shop-close-long{display:none}}
#shop-dialog[data-shop-view=cart]{inset:16px 16px auto auto;width:min(660px,calc(100vw - 32px));max-width:660px;height:auto;max-height:calc(100dvh - 32px);margin:0;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 60px #15281e26}
#shop-dialog[data-shop-view=cart] .basket{flex:0 1 auto}
#shop-cart-view:not([hidden]){display:flex;flex:0 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.cart-scroll{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:16px}
#shop-cart-view .basket-selection{display:grid;gap:12px;border:0;padding:0;margin:0}
#shop-cart-view .cart-item{border:1px solid var(--line);border-radius:12px;background:#fffdf9;padding:16px;min-width:0}
.cart-item-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.cart-item-heading h3{font:650 1rem/1.4 var(--font-ui);margin:0;min-width:0}
.cart-item-price{flex:none;font-size:1.125rem;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
.cart-item .cart-item-description{font-size:.875rem;line-height:1.5;color:var(--muted);margin:5px 0 12px}
.cart-item .cart-item-note{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:8px 0}
.cart-photo-previews{display:flex;gap:8px;margin:12px 0;align-items:center;flex-wrap:wrap}
.cart-photo-previews img{display:block;width:56px;height:72px;object-fit:cover;border-radius:6px;background:var(--wash);border:1px solid var(--line)}
.cart-more-photos{font-size:.875rem;font-weight:600;padding:8px}
.cart-item-actions,.cart-line-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:14px}
.cart-item-actions button,.cart-line-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:auto;font-size:.875rem;line-height:1.4;margin:0;padding:9px 14px;border-radius:7px}
.cart-item-actions .secondary,.cart-line-toolbar .secondary,.cart-set-lines .secondary{border:1px solid #a6afa5;background:transparent;color:var(--ink)}
.cart-item-actions .secondary:hover,.cart-line-toolbar .secondary:hover,.cart-set-lines .secondary:hover{background:var(--wash)}
.cart-item-actions .cart-remove,.cart-line-toolbar .cart-remove{color:var(--muted);padding-inline:4px;text-decoration:underline;text-underline-offset:3px}
.cart-item-actions .cart-remove:hover,.cart-line-toolbar .cart-remove:hover{color:#95382d}
#shop-cart-view .cart-line{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px}
.cart-line-details{min-width:0}
.cart-line-details .cart-price{font-size:.8125rem;color:var(--muted);line-height:1.5;margin:8px 0}
.cart-line .product-preview,.cart-thumbnail{width:88px;max-width:88px;max-height:100px;margin:0;align-self:start;border-radius:6px;overflow:hidden}
.cart-line .product-preview figcaption{display:none}
.cart-thumbnail img{max-height:none}
.cart-thumbnail.crop-preview{max-height:none}
.cart-line-toolbar label{display:flex;align-items:center;gap:8px;font-size:.875rem;margin:0}
.cart-line-toolbar input{display:inline-block;width:60px;min-height:44px;padding:6px;margin:0;border:1px solid var(--line);border-radius:6px}
.cart-format-options{font-size:.8125rem;margin:8px 0}
.cart-format-options summary{cursor:pointer;min-height:36px;line-height:1.5;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.cart-format-options .cart-product-options{margin-top:8px}
.cart-set-lines{display:grid;gap:12px;list-style:none;padding:0;margin:16px 0}
.cart-set-lines li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:.8125rem;line-height:1.4}
.cart-set-lines li>div>strong,.cart-set-lines li>div>span{display:block}
.cart-set-lines li>div>span{font-size:.75rem;color:var(--muted);margin-top:3px}
.cart-set-lines .crop-preview{width:44px;border-radius:4px;overflow:hidden}
.cart-set-lines button{min-height:40px;padding:8px 10px;font-size:.75rem;border-radius:6px}
.cart-set-lines .cart-set-missing-button{
  grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;gap:10px;width:100%;padding:8px;text-align:left;border-style:dashed;
}
.cart-set-missing-description strong,.cart-set-missing-description small{display:block}
.cart-set-missing-description small{margin-top:3px;color:var(--muted);font-size:.75rem}
.cart-photo-placeholder{
  display:grid;place-items:center;aspect-ratio:3/4;border:1px solid var(--line);border-radius:4px;
  background:var(--wash);color:var(--muted);
}
.cart-photo-placeholder::before{content:'▧';font-size:1.25rem}
.cart-set-photo-action{font-weight:650;text-decoration:underline;text-underline-offset:3px}
.cart-edit[data-review-pending=true]{border-color:var(--accent);color:var(--accent)}
#product-editor:not(:empty){border:1px solid #a6afa5;border-radius:12px;background:#fffdf9;padding:16px;margin:16px 0;scroll-margin-top:20px}
#product-editor>button:first-child{font-size:.875rem;min-height:44px;padding:8px 0;margin:0 0 8px;text-decoration:underline;text-underline-offset:3px}
#product-editor h3{font-size:1rem;line-height:1.4;margin:0 0 12px}
#product-editor>p{font-size:.875rem;line-height:1.5}
#shop-cart-view:has(#product-editor[data-guided]) .basket-selection,
#shop-cart-view:has(#product-editor[data-guided]) .cart-checkout{display:none}
#shop-cart-view:has(#product-editor[data-guided]) .cart-scroll{flex:1 1 auto}
#product-editor[data-guided]{border:0;background:transparent;padding:0;margin:0}
#product-editor[data-guided] h3{font-size:1.1rem;margin:0 0 8px}
#product-editor[data-guided] .set-stage{font-size:.8rem;color:var(--muted);margin:8px 0 16px}
.set-stages{display:flex;gap:5px;margin:0 0 12px}
.set-stages span{height:4px;flex:1;border-radius:4px;background:var(--line)}
.set-stages .is-current{background:var(--accent)}
#product-editor[data-guided] .set-progress{font-size:1rem;font-weight:700;color:var(--ink);margin:0 0 6px}
.set-progress-bar{display:block;width:100%;height:8px;accent-color:var(--accent);margin:0 0 16px}
#product-editor[data-guided] .set-step-label{color:var(--muted);font-size:.8rem;margin:0 0 3px}
#product-editor[data-guided] .set-step-title{font-weight:650;margin:0 0 10px}
#product-editor[data-guided] .set-choice-hint{font-weight:400;margin:0 0 12px}
#product-editor[data-guided] .set-digital-status{font-weight:650;margin:0 0 12px}
.set-digital-selected{display:block;font-size:.8rem;font-weight:650;color:var(--green);margin-top:5px}
#product-editor[data-guided] .set-picker{max-height:none;overflow:visible;grid-template-columns:repeat(3,minmax(0,1fr));padding:0}
#product-editor[data-guided] .set-choice{border-radius:8px;min-width:0}
#product-editor[data-guided] .set-choice img{height:120px}
#product-editor[data-guided] .set-save-note{font-size:.8rem;color:var(--muted)}
.set-navigation{display:flex;gap:12px;align-items:center;padding:12px 0 0;background:var(--paper)}
.set-navigation button{min-height:44px}
.set-navigation button:not(.set-next){border:0;background:transparent;color:var(--ink);padding:8px 0}
.set-navigation .set-next{flex:1;border-radius:8px;justify-content:center;text-align:center}
@media(max-width:420px){#product-editor[data-guided] .set-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cart-maintenance{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-top:10px}
#draft-status{font-size:.75rem;color:var(--muted);margin:0}
.draft-error{flex:none;padding:10px 12px;background:#fff4ed;border:1px solid #aa4d39;border-radius:8px;color:#672a20;font-size:.875rem;line-height:1.4}
.draft-error p{margin:0}.draft-error button{min-height:40px;padding:6px 0;text-decoration:underline}
#discard-selection{min-height:40px;font-size:.75rem;color:var(--muted);padding:8px 0}
.cart-checkout{position:static;display:grid;gap:8px;flex:none;margin:0;padding:12px 0 0;background:var(--paper);border-top:1px solid var(--line);box-shadow:none}
.cart-checkout .total{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0;font-size:1rem}
.cart-checkout .total strong{font-size:1.5rem;line-height:1.2;white-space:nowrap}
.cart-checkout .basket-hint{min-height:0;font-size:.8125rem;line-height:1.5;margin:0;color:var(--muted)}
.cart-checkout .basket-hint:empty{display:none}
.cart-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
.cart-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;min-width:0;padding:8px 10px;border:1px solid var(--ink);border-radius:8px;background:var(--wash);color:var(--ink);font:650 .875rem/1.35 var(--font-ui);text-align:center}
@media(hover:hover) and (pointer:fine){.cart-actions button:enabled:hover{border-color:var(--accent);background:var(--paper)}}
.cart-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cart-actions button:disabled{border-color:var(--line);background:var(--paper);color:var(--muted);cursor:default}
.cart-actions button span{flex:none;font-size:1.125rem;line-height:1}
.cart-feedback{background:#edf4ef;border:1px solid #bacdbf;border-radius:10px;padding:12px;margin:0 0 12px}
.cart-feedback strong{font-size:.875rem}.cart-feedback p{font-size:.8125rem;margin:3px 0}
#review-dialog{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border-radius:14px;overflow:hidden}
#review-dialog[open]{display:flex;flex-direction:column}
.review-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:8px 20px;border-bottom:1px solid var(--line)}
.review-header h2{font-size:1.35rem;line-height:1.3;margin:0}
.review-header h2:focus{outline:none}
.review-header button{width:44px;min-height:44px;padding:0}
.review-content{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 20px 16px}
.review-content:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
:is(#review-detail,#order-detail){--review-photo-size:64px}
:is(#review-detail,#order-detail)>p{font-size:.9375rem;line-height:1.4;margin:10px 0 6px}
:is(#review-detail,#order-detail)>:first-child{margin-top:0}
:is(#review-detail,#order-detail) .order-photo{grid-template-columns:var(--review-photo-size) minmax(0,1fr);gap:12px;min-height:calc(var(--review-photo-size) + 12px);margin:0;padding:6px 0;border-color:var(--line)}
:is(#review-detail,#order-detail) .order-photo>figcaption{gap:2px;font-size:.875rem;line-height:1.4}
:is(#review-detail,#order-detail) .order-thumbnail{width:100%;height:var(--review-photo-size)}
:is(#review-detail,#order-detail) .crop-preview{width:min(100%,calc(var(--review-photo-size) * var(--crop-aspect)));justify-self:center}
:is(#review-detail,#order-detail) :is(.product-preview figcaption,.order-photo-missing){font-size:.75rem;line-height:1.3}
:is(#review-detail,#order-detail) .quote-downloads{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin-top:10px}
:is(#review-detail,#order-detail) .quote-downloads h3{grid-column:1/-1;margin:0;font-size:.9375rem;line-height:1.4}
:is(#review-detail,#order-detail) .quote-downloads .order-photo{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px;border:1px solid var(--line);border-radius:7px;text-align:center}
:is(#review-detail,#order-detail) .quote-downloads .order-thumbnail{width:var(--review-photo-size)}
:is(#review-detail,#order-detail) .quote-downloads figcaption{font-size:.75rem}
:is(#review-detail,#order-detail) .quote-downloads figcaption span{display:none}
.review-contact{display:grid;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.review-contact label{font-size:.875rem;font-weight:600;margin:0}
#buyer-email{width:100%;min-height:44px;margin:0;padding:8px 12px}
.review-contact p,.review-checkout p{font-size:.8125rem;line-height:1.4;margin:0;color:var(--muted)}
.review-checkout{display:grid;gap:8px;flex:none;padding:10px 20px 14px;border-top:1px solid var(--line)}
.review-checkout .total{margin:0;font-size:.9375rem}
.review-checkout .total strong{font-size:1.3rem}
.review-checkout #review-error{color:#a24329}
#review-error:empty{display:none}
.review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.review-actions button,.review-actions .primary{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;margin:0;padding:8px 10px;border-radius:7px;font-size:.875rem;line-height:1.35}
@media(max-width:600px){
 #review-dialog{inset:auto 0 0;width:100%;max-height:100dvh;margin:0;border:0;border-radius:16px 16px 0 0}
 .review-header,.review-content,.review-checkout{padding-inline:16px}
 .review-checkout{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
 #review-detail{--review-photo-size:56px}
}
.mobile-selection:not([hidden]){display:flex;gap:10px;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(760px,100%);box-sizing:border-box;z-index:20;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--paper);box-shadow:0 -3px 18px #15281e20}
.mobile-selection button{flex:1;min-height:48px;font:600 .875rem/1.3 var(--font-ui);border:1px solid var(--ink);border-radius:8px;padding:10px;background:var(--paper);color:var(--ink)}
.mobile-selection #gallery-add-product{background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent)}
#gallery-view{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
@media(max-width:600px){
 #shop-dialog[data-shop-view=cart]{inset:auto 0 0;width:100%;max-width:none;max-height:100dvh;margin:0;border:0;border-radius:16px 16px 0 0}
 #shop-dialog .shop-header{padding:10px 16px 12px}
 #shop-dialog .basket{padding:16px}
 #shop-dialog .basket h2{font-size:1.35rem;margin-bottom:16px}
 .shop-navigation{gap:8px}.shop-navigation button{font-size:.8125rem;padding:9px 10px}
 #shop-dialog[data-shop-view=products] .shop-header{padding-inline:12px}
 #shop-dialog[data-shop-view=products] .shop-navigation{gap:4px}
 #shop-dialog[data-shop-view=products] .shop-navigation button{padding:5px 7px}
 .cart-item-heading{gap:10px}.cart-item-heading h3{font-size:.9375rem}.cart-item-price{font-size:1rem}
 #shop-cart-view .cart-item{padding:14px}
 #shop-cart-view .cart-line{grid-template-columns:64px minmax(0,1fr);gap:12px}
 .cart-line .product-preview,.cart-thumbnail{width:64px;max-width:64px;max-height:80px}
 .cart-line .cart-item-heading{display:block}.cart-line .cart-item-price{display:block;margin-top:4px}
 .cart-line-toolbar{gap:8px 12px}.cart-line-toolbar button{padding:9px 10px}
 .cart-set-lines li{grid-template-columns:36px minmax(0,1fr);gap:8px}
 .cart-set-lines .crop-preview{width:36px}
 .cart-set-lines button{grid-column:2;justify-self:start}
 .cart-set-lines .cart-set-missing-button{grid-column:1/-1;grid-template-columns:36px minmax(0,1fr);column-gap:8px;row-gap:2px}
 .cart-photo-placeholder{grid-row:1/3}
 .cart-set-photo-action{grid-column:2}
 .cart-checkout{padding-bottom:calc(4px + env(safe-area-inset-bottom))}
}
.product-designer[open]{display:flex;flex-direction:column;height:min(900px,96dvh);max-height:96dvh;overflow:hidden;padding:0}
.product-designer header{position:static;flex:none;padding:14px 20px;border-bottom:1px solid #d7d1c8}
.product-designer header button{flex:none}
.designer-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 20px 20px}
.product-designer footer{flex:none;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fffdf9;box-shadow:0 -5px 12px #fffdf9;gap:16px}
.product-designer footer p{margin:0;font-size:.875rem;line-height:1.4}
.product-designer footer button{flex:none;min-width:220px}
.order-view{max-width:1050px;margin:32px auto 60px}
.order-header{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;padding:0 0 16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.order-header h1{font-size:clamp(1.55rem,3vw,2.35rem);line-height:1.12;margin:0}
.order-header h1:focus,.order-payment h2:focus{outline:none}
.order-reference{color:var(--muted);font-size:.8125rem;margin:6px 0 0}
.order-amount{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 12px}
.order-amount .status-label{padding:4px 8px;border-radius:6px;background:var(--wash);font-size:.75rem;line-height:1.4}
.order-total{font:700 1.45rem/1.2 var(--font-ui);white-space:nowrap}
.order-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);align-items:start;gap:20px}
.order-next,.order-side{min-width:0;display:grid;gap:12px}
.order-card{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fffdf9}
.order-card>summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-height:48px;padding:11px 16px;list-style:none;cursor:pointer;font-weight:650;line-height:1.35}
.order-card>summary::-webkit-details-marker{display:none}
.order-card>summary::before{content:'';flex:none;width:8px;height:8px;margin-inline-end:2px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
.order-card[open]>summary::before{transform:translateY(-2px) rotate(45deg)}
.order-card>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;border-radius:9px}
.order-card>summary span{flex:1 1 180px;min-width:0}
.order-card>summary small{margin-inline-start:auto;color:var(--muted);font-size:.8125rem;font-weight:500}
.order-card>summary small:empty,.order-view p:empty{display:none}
.order-address-body,.order-detail{padding:12px 16px 16px;border-top:1px solid var(--line)}
.order-payment,.order-files{padding:14px 16px}
.order-next h2{font-size:1.125rem;line-height:1.35;margin:0 0 6px}
.order-next p{font-size:.875rem;line-height:1.45;margin:6px 0}
.order-next .payment-actions,.order-next .downloads{margin:10px 0 0}
.order-next .payment-actions>button{padding:10px 12px;border-radius:8px}
.order-nav{display:flex;flex-wrap:wrap;gap:0 14px}
.order-nav .text-button,#order-contact .text-button{width:auto;min-height:44px;padding:6px 0;font-size:.875rem;text-decoration:underline;text-underline-offset:3px;text-align:left}
.order-back .text-button{margin-bottom:4px}
.order-back:not(:has(button:not([hidden]))){display:none}
#order-contact{margin:0}
.delivery-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px 10px}
.delivery-fields>div,.billing-fields>label{grid-column:span 3;min-width:0}
.delivery-fields :is([data-field=street],[data-field=city],[data-field=email]){grid-column:span 4}
.delivery-fields :is([data-field=houseNumber],[data-field=zipCode],[data-field=country]){grid-column:span 2}
.billing-fields>label:is(:first-child,:nth-child(2),:last-child){grid-column:1/-1}
.delivery-fields label,.billing-fields>label{display:block;margin:0 0 3px;font-size:.8125rem;line-height:1.35}
.delivery-fields input{min-height:44px;padding:7px 9px;border-radius:6px;font-size:1rem}
.billing-fields input{margin-top:3px}
.order-address-body #billing-section:not(:first-child){margin-top:12px}
.order-address-body #delivery-section[hidden]+#billing-section{margin-top:0}
.different-billing-choice{display:flex;align-items:center;gap:8px;min-height:44px;margin:6px 0 0;font-size:.875rem;cursor:pointer}
.different-billing-choice input{width:20px;height:20px;margin:0;flex:none}
#save-delivery,#save-billing{margin:8px 0 0;border-radius:8px;justify-content:center;padding:10px 12px}
.order-address-body .address-check{margin:8px 0;padding:10px 12px;border-radius:7px}
@media(max-width:720px){
 .order-view{margin:18px auto 36px}
 .order-header{align-items:flex-start;padding-bottom:12px;margin-bottom:12px}
 .order-amount{flex-direction:column;align-items:flex-end}
 .order-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .order-card>summary{padding-inline:12px}
 .order-address-body,.order-detail,.order-payment,.order-files{padding-inline:12px}
}
@media(max-width:365px){.order-header{flex-wrap:wrap}.order-amount{flex-direction:row;justify-content:space-between;width:100%}}
@media(max-width:720px){
 .product-designer{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .product-designer[open]{height:100dvh;max-height:100dvh}
 .product-designer header{padding:10px 12px;gap:12px}.product-designer header button{padding:8px 12px}
 .designer-scroll{padding:0 12px 16px}
 .product-designer footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
 .product-designer footer button{min-width:0;width:100%;min-height:48px}
}
/* The order list and detail share one scroll area on desktop and mobile. */
.order-history-dialog{width:min(780px,calc(100vw - 24px));max-width:none;max-height:90vh;max-height:90svh;padding:0;border:1px solid var(--line,#d9d6cd);border-radius:12px;overflow:hidden}
.order-history-dialog[open]{display:flex;flex-direction:column}
.order-history-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line,#d9d6cd);background:var(--paper,#faf8f3)}
.order-history-header h2{margin:0;font-size:1.6rem}
.order-history-content{padding:20px 22px;min-height:0;overflow:auto;overscroll-behavior:contain}
.order-history-header{flex:none}
.order-history-list,.order-history-items{list-style:none;margin:16px 0;padding:0}
.order-history-row{width:100%;display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;padding:18px 0;border:0;border-bottom:1px solid var(--line,#d9d6cd);border-radius:0;background:transparent;color:inherit}
.order-history-row>span{display:grid;gap:6px;font-size:1rem}
.order-history-amount{text-align:right}
.is-paid, .owned-label.is-paid, #payment-note.is-paid { color:#166534; font-weight:650; }
.order-amount .status-label.is-paid { color:#166534; background:#e7f5eb; border-color:#9ac9a6; }
.order-history-link{grid-column:1/-1;color:var(--accent);font-weight:600}
.order-history-row:hover{background:var(--paper,#f3efe7)}
.order-history-row:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.order-history-total{display:block;font-size:1.6rem;margin:14px 0}
.order-history-items li{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line,#d9d6cd)}
.order-history-items strong{white-space:nowrap}
.order-history-content section{margin-top:24px}
.order-history-address{white-space:pre-line;line-height:1.6}
.order-history-content a{display:block;margin:8px 0}
@media(max-width:540px){.order-history-header{padding:14px}.order-history-header h2{font-size:1.3rem}.order-history-content{padding:14px}.order-history-row{gap:10px}}

.gallery-school-benefits { margin-block: 1rem; padding: 1rem; border: 1px solid var(--line, #d8d6cc); border-radius: .5rem; }
.gallery-school-benefits h2 { margin-block: 0 .5rem; }
.gallery-school-benefits p { margin-block: .5rem 0; }
.gallery-school-benefits details { border-top:1px solid var(--line); margin-block:.65rem; }
.gallery-school-benefits summary { cursor:pointer; padding:.7rem 0; font-weight:600; }
.benefit-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(9rem,100%),1fr)); gap:.65rem; }
.benefit-photo { border:1px solid var(--line); border-radius:.5rem; overflow:hidden; }
.benefit-photo[data-selected=true] { outline:2px solid var(--accent); outline-offset:-2px; }
.benefit-preview { width:100%; border:0; color:inherit; background:transparent; padding:.4rem; display:grid; gap:.25rem; }
.benefit-preview:disabled { opacity:1; }
.benefit-preview img { width:100%; height:7rem; object-fit:contain; }
.benefit-stepper { display:flex; align-items:center; justify-content:space-between; padding:.25rem; }
.benefit-stepper input { width:3rem; min-width:0; text-align:center; padding:.25rem; }
.benefit-stepper button { min-height:44px; min-width:44px; padding:.25rem; }


.bank-transfer { width:100%; min-width:0; }
.bank-transfer img { display:block; max-width:100%; height:auto; margin: .75rem 0; }
.bank-transfer dl { margin:1rem 0; }
.bank-transfer dt { font-weight:600; margin-top:.65rem; }
.bank-transfer dd { margin:0; display:flex; align-items:baseline; flex-wrap:wrap; gap:.25rem .75rem; overflow-wrap:anywhere; }
.bank-transfer [role=status]:empty { display:none; }

.budget-balance:not([hidden]) { display:grid; gap:.2rem; padding:.45rem 0; line-height:1.35; font-size:.93rem; }
