/* The brand shop, student side: the shop section on a brand page, the product
   page, checkout and My orders. Built on tokens.css and site.css and the brand
   page's own tone (--brand-tone from brand-page.css); nothing here sets a new
   colour, face or radius scale. The one memorable thing is the order slip: a
   paper ticket with notched edges and pencil-dashed rules, the notebook
   language the register flow already speaks. */

.shop { --shop-tone: var(--brand-tone, var(--tud-color-deal-panel-3)); }

/* ---------- shop section ---------- */

.shop-head { display: grid; gap: var(--tud-space-3); margin-bottom: var(--tud-space-5); }
.shop-head .brand-section-title { margin: 0; }
.shop-terms { max-width: 62ch; color: var(--tud-color-text-secondary); font-size: 16px; line-height: 1.55; }
.shop-host { max-width: 62ch; color: var(--tud-color-text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- the brand's stall ---------- */
.shop-stall {
  display: grid;
  gap: var(--tud-space-4);
  margin-bottom: var(--tud-space-8);
  overflow: hidden;
  border-radius: var(--tud-radius-xl);
  background: var(--brand-tone, var(--tud-color-bg-sunken));
}
.shop-stall > .brand-band { margin-bottom: calc(var(--tud-space-1) * -1); }
.shop-stall-id { display: flex; align-items: center; gap: var(--tud-space-4); padding: var(--tud-space-5) var(--tud-space-5) 0; }
.shop-stall-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tud-color-ramp-neutral-50);
  box-shadow: 0 0 0 3px var(--brand-tone, transparent), 0 0 0 4px var(--brand-accent, var(--tud-color-border-strong));
}
.shop-stall-logo--initial { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--tud-color-text-primary); }
.shop-stall-name { font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.shop-stall-line { margin-top: 2px; color: var(--brand-accent, var(--tud-color-text-secondary)); font-size: 15px; font-weight: 600; }
[data-theme="dark"] .shop-stall-line { color: var(--tud-color-text-secondary); }
.shop-reels { display: flex; flex-wrap: wrap; gap: var(--tud-space-2); padding: 0 var(--tud-space-5) var(--tud-space-5); }
.shop-reel--profile { flex-basis: 100%; justify-content: center; }
@media (min-width: 720px) { .shop-reel--profile { flex-basis: auto; } }
.shop-reel {
  display: inline-flex;
  align-items: center;
  gap: var(--tud-space-2);
  min-height: 44px;
  padding: 0 var(--tud-space-4);
  border-radius: var(--tud-radius-pill);
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-surface);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.shop-reel:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-reel svg { color: var(--brand-accent, currentColor); }
[data-theme="dark"] .shop-reel svg { color: var(--brand-motif, currentColor); }
@media (min-width: 720px) {
  .shop-stall { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; column-gap: var(--tud-space-6); }
  .shop-stall > .brand-band { grid-column: 1 / -1; }
  .shop-stall-id { padding: var(--tud-space-5) 0 var(--tud-space-6) var(--tud-space-6); }
  .shop-stall-id > div { min-width: 16ch; }
  .shop-stall-logo { width: 88px; height: 88px; }
  .shop-stall-name { font-size: 22px; }
  .shop-reels { justify-content: flex-end; padding: var(--tud-space-5) var(--tud-space-6) var(--tud-space-6) 0; }
}

.shop-filters {
  display: flex;
  gap: var(--tud-space-2);
  margin: 0 calc(var(--tud-space-6) * -1) var(--tud-space-6);
  padding: 2px var(--tud-space-6) var(--tud-space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-filters::-webkit-scrollbar { display: none; }
[data-js="on"] .shop-filters[hidden] { display: flex; }
.shop-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--tud-space-4);
  border: var(--tud-border-default) solid var(--tud-color-border-default);
  border-radius: var(--tud-radius-pill);
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-surface);
  font-family: var(--tud-font-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--tud-duration-fast) var(--tud-ease-standard), border-color var(--tud-duration-fast) var(--tud-ease-standard);
}
.shop-filter:hover { border-color: var(--tud-color-border-strong); }
.shop-filter[aria-pressed="true"] {
  border-color: var(--brand-accent, var(--tud-color-text-primary));
  color: var(--brand-accent-ink, var(--tud-color-text-inverse));
  background: var(--brand-accent, var(--tud-color-text-primary));
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tud-space-6) var(--tud-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-card { display: grid; align-content: start; gap: var(--tud-space-2); min-width: 0; }
.shop-card[hidden] { display: none; }
.shop-card-link { display: grid; gap: var(--tud-space-3); color: inherit; text-decoration: none; }
.shop-card-link:hover { text-decoration: none; }
.shop-card-photo {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--tud-radius-lg);
  background: var(--shop-tone);
}
.shop-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tud-duration-slow) var(--tud-ease-decelerate);
}
.shop-card-link:hover .shop-card-photo img { transform: scale(1.03); }
/* Landscape photos stay whole: contained over a soft, enlarged copy of themselves. */
.shop-card-photo[data-shape="wide"]::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: var(--shop-photo) center / cover no-repeat;
  filter: blur(18px) saturate(1.1);
  opacity: 0.55;
}
.shop-card-photo[data-shape="wide"] img { object-fit: contain; }
.shop-card-link:hover .shop-card-photo[data-shape="wide"] img { transform: scale(1.02); }
.shop-card-hint { color: var(--tud-color-text-muted); font-size: 13px; font-weight: 600; }
.shop-card-dots { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; vertical-align: -2px; }
.shop-card-dots > span:not(.shop-card-dots-more) { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(20, 20, 18, 0.18); }
.shop-card-dots-more { font-size: 12px; font-weight: 700; }
.shop-card-link:focus-visible { outline: none; }
.shop-card-link:focus-visible .shop-card-photo { outline: 3px solid var(--tud-color-border-focus); outline-offset: 3px; }
.shop-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.shop-card-link:hover .shop-card-title { text-decoration: underline; text-underline-offset: 3px; }
.shop-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--tud-space-2); }
.shop-price-student { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.shop-price-normal { color: var(--tud-color-text-muted); font-size: 14px; font-weight: 500; }
.shop-badge {
  position: absolute;
  top: var(--tud-space-2);
  left: var(--tud-space-2);
  padding: 4px 10px;
  border-radius: var(--tud-radius-pill);
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-surface);
  font-size: 13px;
  font-weight: 800;
}
.shop-card:has(.shop-badge) img { opacity: 0.55; filter: grayscale(0.4); }
.shop-empty { padding: var(--tud-space-8); border: 1px dashed var(--tud-color-border-strong); border-radius: var(--tud-radius-lg); color: var(--tud-color-text-secondary); }

@media (min-width: 720px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tud-space-8) var(--tud-space-5); }
  .shop-filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
@media (min-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- product page ---------- */

.shop-page { padding-top: clamp(var(--tud-space-6), 4vw, var(--tud-space-12)); }
.pdp { display: grid; gap: var(--tud-space-8); margin-top: var(--tud-space-5); }
.pdp-gallery { min-width: 0; }
.pdp-gallery--empty { aspect-ratio: 3 / 4; border-radius: var(--tud-radius-xl); background: var(--tud-color-deal-panel-3); }
.pdp-photos {
  display: flex;
  gap: var(--tud-space-3);
  margin: 0 calc(var(--tud-space-6) * -1);
  padding: 0 var(--tud-space-6);
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--tud-space-6);
  scrollbar-width: none;
}
.pdp-photos::-webkit-scrollbar { display: none; }
.pdp-photo {
  flex: 0 0 88%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--tud-radius-xl);
  background: var(--brand-tone, var(--tud-color-deal-panel-3));
  scroll-snap-align: start;
}
.pdp-photos:has(.pdp-photo:only-child) .pdp-photo { flex-basis: 100%; }
.pdp-photo { position: relative; isolation: isolate; }
/* A squarer or wider photo is shown whole; its own edge pixels, stretched
   and softened, fill the rest of the frame (same idea as the brand cover). */
.pdp-photo[data-shape="wide"]::before,
.pdp-photo[data-shape="wide"]::after {
  content: '';
  position: absolute;
  top: -8%;
  bottom: -8%;
  z-index: -1;
  background-image: var(--shop-photo);
  background-repeat: no-repeat;
  background-size: 2500% 100%;
  filter: blur(14px);
}
.pdp-photo[data-shape="wide"]::before { left: -8%; right: 50%; background-position: left center; }
.pdp-photo[data-shape="wide"]::after { left: 50%; right: -8%; background-position: right center; }
.pdp-zoom { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pdp-photo img { width: 100%; height: 100%; object-fit: contain; }
.pdp-photo[data-shape="fill"] img { object-fit: cover; }
.pdp-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-surface);
  box-shadow: 0 2px 10px -4px rgba(20, 20, 18, 0.4);
}
.pdp-zoom:focus-visible { outline: 3px solid var(--tud-color-border-focus); outline-offset: -3px; border-radius: var(--tud-radius-xl); }
.pdp-zoom-dialog {
  width: min(96vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--tud-radius-xl);
  background: var(--tud-color-bg-surface);
  overflow: auto;
}
.pdp-zoom-dialog::backdrop { background: rgba(20, 20, 18, 0.78); }
.pdp-zoom-dialog img { display: block; width: 100%; height: auto; }
.pdp-zoom-dialog form { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 0 12px; margin-top: -60px; }
.pdp-zoom-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tud-color-text-inverse);
  background: var(--tud-color-text-primary);
  cursor: pointer;
}
.pdp-band { margin: var(--tud-space-4) 0 0; border-radius: var(--tud-radius-pill); }
.pdp-thumbs { display: flex; gap: var(--tud-space-2); margin-top: var(--tud-space-3); }
.pdp-thumb {
  width: 56px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: var(--tud-border-default) solid transparent;
  border-radius: var(--tud-radius-md);
  background: var(--tud-color-bg-sunken);
  cursor: pointer;
}
.pdp-thumb[aria-current="true"] { border-color: var(--tud-color-text-primary); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { display: grid; align-content: start; gap: var(--tud-space-5); min-width: 0; }
.pdp-brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tud-space-2) var(--tud-space-3); color: var(--tud-color-text-secondary); font-size: 15px; font-weight: 600; }
.pdp-brand a { display: inline-flex; align-items: center; gap: var(--tud-space-2); min-height: 44px; color: inherit; font-weight: 800; text-decoration: none; }
.pdp-brand a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pdp-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--brand-accent, var(--tud-color-border-strong)); }
.pdp-category { padding: 3px 10px; border-radius: var(--tud-radius-pill); color: var(--brand-accent, var(--tud-color-text-secondary)); background: var(--brand-tone, var(--tud-color-bg-sunken)); font-size: 13px; font-weight: 700; }
[data-theme="dark"] .pdp-category { color: var(--tud-color-text-primary); }
.pdp-title { max-width: 20ch; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.pdp-price { display: grid; gap: var(--tud-space-1); padding-block: var(--tud-space-4); border-block: var(--tud-border-hairline) solid var(--tud-color-border-default); }
.pdp-price-student { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--tud-space-3); }
.pdp-price-label { color: var(--tud-color-text-secondary); font-size: 15px; font-weight: 700; }
.pdp-price-student strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pdp-price-normal { color: var(--tud-color-text-muted); font-size: 15px; }
/* brand stores (API 0076): where the student price comes from, one quiet line */
.pdp-price-note { max-width: 46ch; color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.45; }
.pdp-price-note[hidden] { display: none; }

.pdp-buy { display: grid; gap: var(--tud-space-5); }
.pdp-sizes { margin: 0; padding: 0; border: 0; min-width: 0; }
.pdp-sizes legend { margin-bottom: var(--tud-space-3); }
.pdp-size-list { display: flex; flex-wrap: wrap; gap: var(--tud-space-2); }
.pdp-size { position: relative; }
.pdp-size input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pdp-size span:not(.sr-only) {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 48px;
  padding: 0 var(--tud-space-4);
  border: var(--tud-border-default) solid var(--tud-color-border-strong);
  border-radius: var(--tud-radius-md);
  background: var(--tud-color-bg-surface);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--tud-duration-fast) var(--tud-ease-standard), color var(--tud-duration-fast) var(--tud-ease-standard);
}
.pdp-size input:checked + span { border-color: var(--tud-color-text-primary); color: var(--tud-color-text-inverse); background: var(--tud-color-text-primary); }
.pdp-size input:focus-visible + span { outline: 3px solid var(--tud-color-border-focus); outline-offset: 2px; }
.pdp-size.is-out span:not(.sr-only) { border-style: dashed; color: var(--tud-color-text-muted); background: transparent; text-decoration: line-through; cursor: not-allowed; }
.pdp-soldout { padding: var(--tud-space-4); border-radius: var(--tud-radius-lg); background: var(--tud-color-bg-sunken); font-weight: 700; }

/* ---------- options: colour, then size (migration 0059) ----------
   A colour is a swatch: its own colour, or a crop of its own photo. Picking
   one swaps the gallery to that colour. A size that is sold out in the chosen
   colour stays in the row, dashed and struck through, and explains itself. */
.pdp-options { display: grid; gap: var(--tud-space-5); }
.pdp-option { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.pdp-option legend { display: flex; align-items: baseline; gap: var(--tud-space-2); margin-bottom: var(--tud-space-3); padding: 0; }
.pdp-option-chosen { color: var(--tud-color-text-secondary); font-weight: 600; }
.pdp-option-chosen:empty { display: none; }
.pdp-option[data-has-chart] legend { padding-right: 132px; }
.pdp-option--single { display: flex; align-items: center; justify-content: space-between; gap: var(--tud-space-3); flex-wrap: wrap; }
.pdp-option-line { display: flex; align-items: center; gap: var(--tud-space-2); margin: 0; min-height: 44px; }
.pdp-option-line .field-label { margin: 0; }
.pdp-option-value {
  padding: 6px 14px;
  border-radius: var(--tud-radius-pill);
  box-shadow: inset 0 0 0 1px var(--tud-color-border-strong);
  font-weight: 800;
}
.pdp-swatches { display: flex; flex-wrap: wrap; gap: var(--tud-space-3); }
.pdp-swatch { position: relative; display: block; cursor: pointer; }
.pdp-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pdp-swatch-chip {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--swatch-photo, none) center / cover no-repeat, var(--swatch, var(--tud-color-bg-sunken));
  box-shadow: inset 0 0 0 1px rgba(20, 20, 18, 0.16), 0 0 0 3px var(--tud-color-bg-surface), 0 0 0 4px var(--tud-color-border-default);
  transition: box-shadow var(--tud-duration-fast) var(--tud-ease-standard), transform var(--tud-duration-fast) var(--tud-ease-standard);
}
.pdp-swatch-chip--still { width: 28px; height: 28px; box-shadow: inset 0 0 0 1px rgba(20, 20, 18, 0.16); }
.pdp-swatch:hover .pdp-swatch-chip { transform: scale(1.04); }
.pdp-swatch input:checked + .pdp-swatch-chip {
  box-shadow: inset 0 0 0 1px rgba(20, 20, 18, 0.16), 0 0 0 3px var(--tud-color-bg-surface), 0 0 0 5px var(--brand-accent, var(--tud-color-text-primary));
}
[data-theme="dark"] .pdp-swatch input:checked + .pdp-swatch-chip {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 3px var(--tud-color-bg-surface), 0 0 0 5px var(--tud-color-text-primary);
}
.pdp-swatch input:focus-visible + .pdp-swatch-chip { outline: 3px solid var(--tud-color-border-focus); outline-offset: 6px; }
/* sold out in every size: the swatch stays, softened and struck through */
.pdp-swatch.is-out .pdp-swatch-chip { opacity: 0.55; }
.pdp-swatch.is-out .pdp-swatch-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent calc(50% - 1.5px), var(--tud-color-text-primary) calc(50% - 1.5px), var(--tud-color-text-primary) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
.pdp-option .pdp-size.is-out span:not(.sr-only) { cursor: help; }
.pdp-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tud-space-2);
  min-height: 44px;
  padding: 0 var(--tud-space-1);
  border: 0;
  color: var(--tud-color-text-primary);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.pdp-chart-btn svg { color: var(--brand-accent, currentColor); }
[data-theme="dark"] .pdp-chart-btn svg { color: var(--brand-motif, currentColor); }
.pdp-chart-btn:focus-visible { outline: 3px solid var(--tud-color-border-focus); outline-offset: 2px; border-radius: var(--tud-radius-sm); }
.pdp-option[data-has-chart] > .pdp-chart-btn { position: absolute; top: -44px; right: 0; }
.pdp-chart-btn--alone { justify-self: start; }

/* The size chart: a short, readable table with the size row as the header. */
.pdp-chart {
  width: min(94vw, 560px);
  max-width: none;
  max-height: 90vh;
  padding: var(--tud-space-6);
  border: 0;
  border-radius: var(--tud-radius-xl);
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-surface);
  overflow: auto;
}
.pdp-chart::backdrop { background: rgba(20, 20, 18, 0.62); }
.pdp-chart-head { display: flex; align-items: center; justify-content: space-between; gap: var(--tud-space-4); margin-bottom: var(--tud-space-2); }
.pdp-chart-title { font-size: 24px; letter-spacing: -0.02em; }
.pdp-chart-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-sunken);
  cursor: pointer;
}
.pdp-chart-close:focus-visible { outline: 3px solid var(--tud-color-border-focus); outline-offset: 2px; }
.pdp-chart-unit { margin: 0 0 var(--tud-space-4); color: var(--tud-color-text-secondary); font-size: 15px; }
.pdp-chart-scroll { overflow-x: auto; border-radius: var(--tud-radius-lg); box-shadow: inset 0 0 0 1px var(--tud-color-border-default); }
.pdp-chart-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pdp-chart-table th, .pdp-chart-table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.pdp-chart-table thead th { background: var(--brand-tone, var(--tud-color-bg-sunken)); font-size: 14px; font-weight: 800; }
[data-theme="dark"] .pdp-chart-table thead th { background: var(--tud-color-bg-sunken); }
.pdp-chart-table tbody th { color: var(--tud-color-text-secondary); font-weight: 600; white-space: normal; min-width: 6.5em; }
@media (max-width: 480px) {
  .pdp-chart { padding: var(--tud-space-5) var(--tud-space-4); }
  .pdp-chart-table th, .pdp-chart-table td { padding: 10px 8px; }
  .pdp-chart-table td { font-size: 16px; }
}
.pdp-chart-table td { font-size: 17px; font-weight: 800; }
.pdp-chart-table tbody tr + tr > * { border-top: 1px solid var(--tud-color-border-default); }
.pdp-chart-image { display: block; width: 100%; height: auto; margin-top: var(--tud-space-4); border-radius: var(--tud-radius-lg); background: var(--tud-color-bg-sunken); }
.pdp-chart-note { margin: var(--tud-space-4) 0 0; color: var(--tud-color-text-secondary); font-size: 15px; }

.pdp-qty { display: flex; align-items: center; justify-content: space-between; gap: var(--tud-space-4); }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: var(--tud-border-default) solid var(--tud-color-border-strong);
  border-radius: var(--tud-radius-pill);
  background: var(--tud-color-bg-surface);
}
.qty-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tud-color-text-primary);
  background: transparent;
  cursor: pointer;
}
.qty-btn:disabled { color: var(--tud-color-text-placeholder); cursor: not-allowed; }
.qty-value { min-width: 32px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.pdp-pay {
  display: flex;
  align-items: flex-start;
  gap: var(--tud-space-3);
  padding: var(--tud-space-3) var(--tud-space-4);
  border-radius: var(--tud-radius-lg);
  color: var(--tud-color-text-secondary);
  background: var(--tud-color-bg-sunken);
  font-size: 15px;
  line-height: 1.45;
}
.pdp-pay p { margin: 0; }
.pdp-pay b { color: var(--tud-color-text-primary); }
.pdp-pay svg { flex: 0 0 auto; margin-top: 1px; color: var(--tud-color-text-primary); }
/* The methods a brand takes, names only; account details come after it accepts. */
.pay-methods { display: flex; flex-wrap: wrap; gap: var(--tud-space-2); margin: 0; padding: 0; list-style: none; }
.pay-methods li { padding: 4px 12px; border-radius: var(--tud-radius-pill); box-shadow: inset 0 0 0 1px var(--tud-color-border-strong); color: var(--tud-color-text-primary); font-size: 14px; font-weight: 700; }
.pay-steps { display: grid; gap: var(--tud-space-3); margin: 0; padding: var(--tud-space-5) var(--tud-space-5) var(--tud-space-5) calc(var(--tud-space-5) + 1.4em); border-radius: var(--tud-radius-lg); background: var(--tud-color-bg-sunken); color: var(--tud-color-text-secondary); font-size: 15px; line-height: 1.5; }
.pay-steps li::marker { color: var(--tud-color-text-primary); font-weight: 800; }
.pay-steps b { color: var(--tud-color-text-primary); }
.pdp-subhead { margin-bottom: var(--tud-space-2); font-size: 18px; letter-spacing: -0.01em; }
.pdp-description { max-width: 62ch; color: var(--tud-color-text-secondary); line-height: 1.6; }
.pdp-description p + p { margin-top: var(--tud-space-2); }

@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .pdp-photos { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .pdp-photo { flex-basis: auto; }
  .pdp-thumbs { display: none; }
  .pdp-info { position: sticky; top: calc(var(--site-header-h, 76px) + var(--tud-space-6)); }
}

/* ---------- checkout ---------- */

.checkout { margin-top: clamp(var(--tud-space-12), 7vw, 88px); scroll-margin-top: calc(var(--site-header-h, 76px) + var(--tud-space-4)); }
.checkout-title { margin-bottom: var(--tud-space-2); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.checkout-lede { max-width: 56ch; margin-bottom: var(--tud-space-8); color: var(--tud-color-text-secondary); }
.checkout-grid { display: grid; gap: var(--tud-space-8); }
.checkout-form { display: grid; gap: var(--tud-space-5); min-width: 0; }
.checkout-form .field-error { color: var(--tud-color-status-error-text); font-size: 14px; font-weight: 700; }
.checkout-form [aria-invalid="true"] { border-color: var(--tud-color-status-error-text); }
/* The order slip. Notched on both sides at the dashed rule, like a ticket
   stub, so the total reads as the part you keep. */
.slip {
  --slip-bg: var(--tud-color-bg-surface);
  position: relative;
  display: grid;
  gap: var(--tud-space-4);
  align-content: start;
  padding: var(--tud-space-6);
  border-radius: var(--tud-radius-xl);
  background: var(--slip-bg);
  box-shadow: 0 1px 0 var(--tud-color-border-default), 0 12px 32px -18px rgba(20, 20, 18, 0.35);
  -webkit-mask: radial-gradient(circle 11px at 0 var(--slip-cut, 62%), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% var(--slip-cut, 62%), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 var(--slip-cut, 62%), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% var(--slip-cut, 62%), transparent 98%, #000) right / 51% 100% no-repeat;
}
.slip-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--tud-space-3); align-items: center; }
.slip-item img { width: 64px; height: 84px; border-radius: var(--tud-radius-md); object-fit: cover; background: var(--tud-color-deal-panel-3); }
.slip-item strong { display: block; font-size: 16px; line-height: 1.3; }
.slip-item span { color: var(--tud-color-text-secondary); font-size: 14px; }
.slip-item .slip-choice { display: block; color: var(--tud-color-text-primary); font-weight: 600; }
.slip-rows { display: grid; gap: var(--tud-space-2); margin: 0; }
.slip-row { display: flex; justify-content: space-between; gap: var(--tud-space-4); font-size: 15px; }
.slip-row dt { color: var(--tud-color-text-secondary); }
.slip-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.slip-rule { height: 0; margin: var(--tud-space-1) calc(var(--tud-space-6) * -1 + 14px); border-top: 2px dashed var(--tud-color-border-strong); }
.slip-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--tud-space-4); }
.slip-total span { font-weight: 800; }
.slip-total strong { white-space: nowrap; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.slip-pay { display: flex; gap: var(--tud-space-2); align-items: flex-start; color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.45; }
.slip-pay svg { flex: 0 0 auto; color: var(--tud-color-text-primary); }
.slip-pay b { color: var(--tud-color-text-primary); }

@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .checkout-grid .slip { position: sticky; top: calc(var(--site-header-h, 76px) + var(--tud-space-6)); }
}

.gate-card {
  display: grid;
  gap: var(--tud-space-3);
  justify-items: start;
  padding: var(--tud-space-5);
  border-radius: var(--tud-radius-lg);
  background: var(--tud-color-accent-tint);
  border: var(--tud-border-hairline) solid var(--tud-color-accent-tint-border);
}
.gate-card p { color: var(--tud-color-text-secondary); }
.gate-card strong { font-size: 17px; }

/* ---------- My orders ---------- */

.orders-main { padding-top: clamp(var(--tud-space-8), 5vw, var(--tud-space-12)); }
.orders-wrap { width: min(100% - (var(--tud-space-6) * 2), 880px); margin-inline: auto; }
.orders-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; }
.orders-sub { margin-top: var(--tud-space-2); color: var(--tud-color-text-secondary); }
.orders-list { display: grid; gap: var(--tud-space-3); margin: var(--tud-space-8) 0 0; padding: 0; list-style: none; }
.order-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: var(--tud-space-2) var(--tud-space-4);
  align-items: center;
  padding: var(--tud-space-3);
  border: var(--tud-border-hairline) solid var(--tud-color-border-default);
  border-radius: var(--tud-radius-lg);
  color: inherit;
  background: var(--tud-color-bg-surface);
  text-decoration: none;
  transition: border-color var(--tud-duration-fast) var(--tud-ease-standard);
}
.order-row:hover { text-decoration: none; border-color: var(--tud-color-border-strong); }
.order-row img, .order-row .order-thumb-empty { width: 64px; height: 84px; border-radius: var(--tud-radius-md); object-fit: cover; background: var(--tud-color-deal-panel-3); }
.order-row-main { display: grid; gap: 4px; min-width: 0; }
.order-row-brand { color: var(--tud-color-text-secondary); font-size: 13px; font-weight: 700; }
.order-row-title { overflow: hidden; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.order-row-choice { color: var(--tud-color-text-secondary); font-size: 14px; font-weight: 600; }
.order-row-meta { color: var(--tud-color-text-muted); font-size: 13px; }
.order-row-side { display: grid; justify-items: end; gap: var(--tud-space-2); }
.order-row-total { font-weight: 800; font-variant-numeric: tabular-nums; }

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--tud-radius-pill);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--tud-color-status-info-text);
  background: var(--tud-color-status-info-bg);
}
.status-tag[data-tone="go"] { color: var(--site-accent-text); background: var(--tud-color-accent-tint); }
.status-tag[data-tone="done"] { color: var(--tud-color-status-success-text); background: var(--tud-color-status-success-bg); }
.status-tag[data-tone="warn"] { color: var(--tud-color-status-warning-text); background: var(--tud-color-status-warning-bg); }
.status-tag[data-tone="end"] { color: var(--tud-color-text-secondary); background: transparent; box-shadow: inset 0 0 0 1px var(--tud-color-border-strong); }

.orders-empty, .orders-gate { display: grid; gap: var(--tud-space-4); justify-items: start; margin-top: var(--tud-space-8); padding: var(--tud-space-8); border: 1px dashed var(--tud-color-border-strong); border-radius: var(--tud-radius-xl); }
.orders-empty p, .orders-gate p { max-width: 52ch; color: var(--tud-color-text-secondary); }

.order-back { display: inline-flex; align-items: center; gap: var(--tud-space-2); min-height: 44px; font-weight: 700; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tud-space-3); margin-top: var(--tud-space-3); }
.order-code { color: var(--tud-color-text-secondary); font-family: var(--tud-font-secondary); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.order-placed {
  display: grid;
  gap: var(--tud-space-1);
  margin-top: var(--tud-space-6);
  padding: var(--tud-space-4) var(--tud-space-5);
  border-radius: var(--tud-radius-lg);
  color: var(--tud-color-status-success-text);
  background: var(--tud-color-status-success-bg);
}
.order-placed strong { font-size: 17px; }
.order-layout { display: grid; gap: var(--tud-space-8); margin-top: var(--tud-space-8); }
.order-block-title { margin-bottom: var(--tud-space-4); font-size: 18px; letter-spacing: -0.01em; }

/* The status line, vertical: the register flow's stops, turned on their side. */
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.tl-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--tud-space-3); padding-bottom: var(--tud-space-5); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 13px;
  border-left: 2px dashed var(--tud-color-border-strong);
}
.tl-step:last-child::before { display: none; }
.tl-step[data-state="done"]::before { border-left-style: solid; border-color: var(--tud-color-accent-base); }
.tl-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px dashed var(--tud-color-border-strong);
  border-radius: 50%;
  background: var(--tud-color-bg-canvas);
}
.tl-step[data-state="done"] .tl-dot { border: 0; color: var(--tud-color-text-on-accent); background: var(--tud-color-accent-base); }
.tl-step[data-state="now"] .tl-dot { border: 2px solid var(--tud-color-text-primary); }
.tl-step[data-state="now"] .tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tud-color-text-primary); }
.tl-step[data-state="stop"] .tl-dot { border: 0; color: var(--tud-color-text-inverse); background: var(--tud-color-text-secondary); }
.tl-step[data-state="warn"] .tl-dot { border: 0; color: var(--tud-color-status-warning-text); background: var(--tud-color-status-warning-bg); }
.tl-body { display: grid; gap: 2px; padding-top: 3px; }
.tl-body strong { font-size: 16px; }
.tl-step[data-state="wait"] .tl-body strong { color: var(--tud-color-text-muted); font-weight: 600; }
.tl-body span { color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.45; }

.order-facts { display: grid; gap: var(--tud-space-3); margin: 0; }
.order-facts div { display: grid; gap: 2px; }
.order-facts dt { color: var(--tud-color-text-secondary); font-size: 13px; font-weight: 700; }
.order-facts dd { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

.order-actions { display: flex; flex-wrap: wrap; gap: var(--tud-space-3); }
.problem-form { display: grid; gap: var(--tud-space-4); margin-top: var(--tud-space-2); padding: var(--tud-space-5); border-radius: var(--tud-radius-lg); background: var(--tud-color-bg-sunken); }
.problem-form[hidden] { display: none; }
.problem-reasons { display: grid; gap: var(--tud-space-2); margin: 0; padding: 0; border: 0; }
.problem-reasons label { display: flex; align-items: center; gap: var(--tud-space-3); min-height: 44px; font-weight: 600; cursor: pointer; }
.problem-reasons input { width: 20px; height: 20px; min-height: 0; accent-color: var(--tud-color-accent-base); }
.order-note { color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.5; }

@media (min-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
}
@media (max-width: 520px) {
  .order-row { grid-template-columns: 56px minmax(0, 1fr); }
  .order-row img, .order-row .order-thumb-empty { width: 56px; height: 74px; grid-row: span 2; }
  .order-row-side { grid-column: 2; display: flex; justify-content: space-between; align-items: center; justify-items: start; }
  .slip { padding: var(--tud-space-5); }
  .slip-rule { margin-inline: calc(var(--tud-space-5) * -1 + 14px); }
}

/* ---------- paying the brand (My orders) ----------
   The transfer slip is the one thing on the order page that must be read
   right first time, so it carries the page's weight: the exact amount and the
   order number for the payment note are set large, the deadline sits under
   them, and every value a student types into a banking app has a copy button. */
.order-row-due { color: var(--tud-color-status-warning-text); font-size: 14px; font-weight: 700; }
.pay-panel {
  display: grid;
  gap: var(--tud-space-5);
  margin-top: var(--tud-space-8);
  padding: clamp(var(--tud-space-5), 3vw, var(--tud-space-8));
  border-radius: var(--tud-radius-xl);
  background: var(--tud-color-bg-surface);
  box-shadow: 0 0 0 2px var(--tud-color-text-primary), 0 18px 40px -24px rgba(20, 20, 18, 0.45);
}
.pay-title { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; text-wrap: balance; }
.pay-slip { display: grid; gap: var(--tud-space-4); padding-bottom: var(--tud-space-5); border-bottom: 2px dashed var(--tud-color-border-strong); }
.pay-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--tud-space-2) var(--tud-space-4); }
.pay-figure > span { flex: 0 0 9.5em; color: var(--tud-color-text-secondary); font-weight: 700; }
.pay-figure strong { font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pay-figure--ref strong { font-family: var(--tud-font-secondary); letter-spacing: 0.08em; }
.pay-due { margin: 0; color: var(--tud-color-text-secondary); font-size: 15px; line-height: 1.5; }
.pay-due b { color: var(--tud-color-status-warning-text); }
.pay-methods-list { display: grid; gap: var(--tud-space-4); max-width: 640px; }
.pay-method h3 { margin-bottom: var(--tud-space-2); font-size: 16px; }
.pay-method dl { display: grid; gap: var(--tud-space-2); margin: 0; }
.pay-method dl > div { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: var(--tud-space-3); align-items: center; }
.pay-method dt { color: var(--tud-color-text-secondary); font-size: 14px; font-weight: 700; }
.pay-method dd { display: flex; align-items: center; justify-content: space-between; gap: var(--tud-space-2); margin: 0; min-width: 0; }
.pay-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--tud-radius-pill);
  color: var(--tud-color-text-primary);
  background: var(--tud-color-bg-sunken);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { background: var(--tud-color-accent-tint); }
.copy-btn:focus-visible { outline: 2px solid var(--tud-color-border-focus); outline-offset: 2px; }
.pay-figure .copy-btn { align-self: center; }
.pay-never { display: flex; gap: var(--tud-space-2); align-items: flex-start; margin: 0; color: var(--tud-color-text-secondary); font-size: 15px; line-height: 1.5; }
.pay-never svg { flex: 0 0 auto; margin-top: 2px; color: var(--tud-color-text-primary); }
.pay-never b { color: var(--tud-color-text-primary); font-family: var(--tud-font-secondary); letter-spacing: 0.06em; }
.pay-alert { display: grid; gap: var(--tud-space-1); padding: var(--tud-space-4) var(--tud-space-5); border-radius: var(--tud-radius-lg); color: var(--tud-color-status-warning-text); background: var(--tud-color-status-warning-bg); }
.pay-alert p { margin: 0; line-height: 1.5; }
.pay-alert--quiet { margin-bottom: var(--tud-space-6); color: var(--tud-color-text-primary); background: var(--tud-color-bg-sunken); }
.paid-form { display: grid; gap: var(--tud-space-4); padding: var(--tud-space-5); border-radius: var(--tud-radius-lg); background: var(--tud-color-bg-sunken); }
.paid-title { font-size: 18px; }
.paid-with { margin: 0; padding: 0; border: 0; }
.paid-options { display: flex; flex-wrap: wrap; gap: var(--tud-space-2); margin-top: var(--tud-space-2); }
.paid-option { display: inline-flex; align-items: center; gap: var(--tud-space-2); min-height: 44px; padding: 0 var(--tud-space-4); border-radius: var(--tud-radius-pill); background: var(--tud-color-bg-surface); box-shadow: inset 0 0 0 1px var(--tud-color-border-strong); font-weight: 700; cursor: pointer; }
.paid-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tud-color-text-primary); }
.paid-option input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--tud-color-accent-base); }
.paid-form .field-error, .proof-form .field-error { color: var(--tud-color-status-error-text); font-size: 14px; font-weight: 700; }
.paid-form [aria-invalid="true"] { border-color: var(--tud-color-status-error-text); }
.field-optional { color: var(--tud-color-text-secondary); font-weight: 400; }
.paid-form input[type="file"], .proof-form input[type="file"] { min-height: 0; padding: var(--tud-space-2) 0; border: 0; background: none; font-size: 15px; }
.pay-state { margin-bottom: var(--tud-space-4); line-height: 1.5; }
.pay-state--ok b { color: var(--tud-color-status-success-text); }
.order-actions-wrap, .order-pay-facts, .order-delivery { margin-top: var(--tud-space-8); }
.order-actions-wrap .form-msg, .order-actions-wrap .order-note { margin-top: var(--tud-space-3); }
.proof-list { display: grid; gap: var(--tud-space-2); margin: var(--tud-space-4) 0 0; padding: 0; list-style: none; }
.proof-btn, .proof-gone { display: inline-flex; align-items: center; gap: var(--tud-space-2); min-height: 44px; font-size: 15px; font-weight: 700; }
.proof-btn { padding: 0; border: 0; color: var(--site-accent-text, var(--tud-color-text-primary)); background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: inherit; }
.proof-gone { color: var(--tud-color-text-secondary); font-weight: 400; }
.proof-form { display: grid; gap: var(--tud-space-3); margin-top: var(--tud-space-4); justify-items: start; }
.proof-dialog img { max-height: 86vh; }
@media (max-width: 520px) {
  .pay-figure > span { flex-basis: 100%; }
  .pay-method dl > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card-photo img, .shop-filter, .order-row { transition: none; }
  .shop-card-link:hover .shop-card-photo img { transform: none; }
}

/* ---------- showcase: shown here, bought on the brand's own site (API 0061) ----------
   No order form. The offer is a stub beside the options, its label torn off
   at a dashed edge like the coupon it is. The one button gets the code, and
   the code sheet is the same ticket as the order slip: the code above the
   tear, the brand's rules and the way out below it. */
.pdp-buy--showcase { gap: var(--tud-space-4); }
/* On a brand's own palette the stub's edges follow its ink, not our orange. */
.brand-custom:not([data-brand-palette="default"]) .pdp-deal { --brand-rule: color-mix(in srgb, var(--tud-color-text-primary) 22%, transparent); }
.pdp-buy--showcase > .pdp-options,
.pdp-buy--showcase > .pdp-sizes { margin-bottom: var(--tud-space-1); }
.pdp-deal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border-radius: var(--tud-radius-lg);
  background: var(--brand-tone, var(--tud-color-accent-tint));
  box-shadow: inset 0 0 0 1px var(--brand-rule, var(--tud-color-accent-tint-border));
}
.pdp-deal-label {
  display: grid;
  place-items: center;
  min-width: 92px;
  padding: var(--tud-space-3) var(--tud-space-4);
  border-right: 2px dashed var(--brand-rule, var(--tud-color-accent-tint-border));
  color: var(--brand-accent, var(--tud-color-accent-text-on-light));
  font-family: var(--tud-font-secondary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}
[data-theme="dark"] .pdp-deal-label { color: var(--tud-color-text-primary); }
.pdp-deal-copy { padding: var(--tud-space-3) var(--tud-space-4); min-width: 0; }
.pdp-deal-title { color: var(--tud-color-text-primary); font-size: 16px; font-weight: 800; line-height: 1.3; }
.pdp-deal-rules { display: grid; gap: 2px; margin: var(--tud-space-1) 0 0; padding: 0; list-style: none; color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.45; }
.pdp-get-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--tud-space-2); min-height: 56px; text-align: center; text-decoration: none; }
.pdp-get-btn svg { flex: 0 0 auto; }
.pdp-buy--showcase [hidden] { display: none; }
.pdp-get-btn.is-busy { cursor: progress; opacity: 0.85; }
/* Unlocks 1 November is a resting state, not a wait */
.pdp-get-btn:disabled { cursor: default; }
.pdp-get-note { display: flex; align-items: flex-start; gap: var(--tud-space-2); margin: 0; color: var(--tud-color-text-secondary); font-size: 14px; line-height: 1.45; }
.pdp-get-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--tud-color-text-primary); }

.code-sheet { min-width: 0; }
.code-ticket {
  position: relative;
  display: grid;
  gap: var(--tud-space-3);
  padding: var(--tud-space-6);
  border-radius: var(--tud-radius-xl);
  background: var(--tud-color-bg-surface);
  box-shadow: 0 1px 0 var(--tud-color-border-default), 0 14px 34px -18px rgba(20, 20, 18, 0.4);
  -webkit-mask: radial-gradient(circle 11px at 0 var(--ticket-cut, 52%), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% var(--ticket-cut, 52%), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 var(--ticket-cut, 52%), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% var(--ticket-cut, 52%), transparent 98%, #000) right / 51% 100% no-repeat;
  animation: code-ticket-in var(--tud-duration-deliberate) var(--tud-ease-decelerate) both;
}
.code-ticket:focus { outline: none; }
.code-ticket:focus-visible { box-shadow: var(--tud-focus-ring), 0 14px 34px -18px rgba(20, 20, 18, 0.4); }
.code-ticket-head { color: var(--tud-color-text-secondary); font-size: 15px; font-weight: 700; }
.code-ticket-row { display: flex; align-items: center; gap: var(--tud-space-3); flex-wrap: wrap; }
.code-ticket-value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--tud-color-text-primary);
  font-family: var(--tud-font-secondary);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.code-ticket-copy { flex: none; min-height: 44px; }
/* With a store link the code is the backup, not the headline. */
.code-ticket-value-small { font-size: 20px; letter-spacing: 0.05em; }
.code-ticket-expiry { color: var(--tud-color-text-muted); font-size: 14px; line-height: 1.45; }
.code-ticket-status { min-height: 1.45em; color: var(--tud-color-status-success-text); font-size: 14px; font-weight: 700; line-height: 1.45; }
.code-ticket-tear { height: 0; margin: var(--tud-space-1) calc(var(--tud-space-6) * -1 + 14px); border-top: 2px dashed var(--tud-color-border-strong); }
.code-ticket-sub { color: var(--tud-color-text-primary); font-size: 16px; font-weight: 800; }
.code-rules { display: grid; gap: var(--tud-space-2); margin: 0 0 var(--tud-space-1); padding: 0; list-style: none; color: var(--tud-color-text-secondary); font-size: 15px; line-height: 1.45; }
.code-rules li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--tud-space-2); }
.code-rules li::before { content: ''; width: 8px; height: 8px; margin: 0.5em 0 0 4px; border-radius: 2px; background: var(--brand-accent, var(--tud-color-accent-base)); transform: rotate(45deg); }
.code-ticket-go { display: inline-flex; align-items: center; justify-content: center; gap: var(--tud-space-2); min-height: 56px; text-decoration: none; }
.code-ticket-foot { color: var(--tud-color-text-muted); font-size: 14px; line-height: 1.45; }
.code-gate { animation: code-gate-in var(--tud-duration-base) var(--tud-ease-decelerate) both; }
.code-gate:focus { outline: none; }
.code-gate-plain { color: var(--tud-color-text-secondary); font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.code-gate-plain:hover { color: var(--tud-color-text-primary); }
@keyframes code-ticket-in {
  from { opacity: 0; transform: translateY(8px); clip-path: inset(0 0 22% 0 round 22px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 22px); }
}
@keyframes code-gate-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
  .pdp-deal { grid-template-columns: 1fr; }
  .pdp-deal-label { justify-items: start; border-right: 0; border-bottom: 2px dashed var(--tud-color-accent-tint-border); }
  .code-ticket { padding: var(--tud-space-5); }
  .code-ticket-tear { margin-inline: calc(var(--tud-space-5) * -1 + 14px); }
}
@media (prefers-reduced-motion: reduce) {
  .code-ticket, .code-gate { animation: none; }
}

/* the brand page's link down to its store, beside the deal button */
.brand-store-link { margin-inline-start: 12px; margin-block: 6px; }
