@font-face {
  font-family: "Cormorant";
  src: url("./assets/fonts/cormorant.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("./assets/fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("./assets/fonts/karla.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f0ece4;
  --paper-soft: #f8f5ef;
  --paper-deep: #e7dfd3;
  --ink: #211c18;
  --muted: #746a61;
  --line: rgba(76, 57, 44, 0.17);
  --line-strong: rgba(154, 111, 62, 0.52);
  --gold: #b58b50;
  --gold-light: #d3b582;
  --hero-gold: #eec78b;
  --accent: #5a2b2b;
  --accent-deep: #1b1412;
  --accent-soft: #eee4df;
  --error: #9b3028;
  --success: #9b7236;
  --shadow: 0 28px 70px rgba(42, 31, 17, 0.12);
  --radius: 2px;
  --body-font: "Manrope", Arial, sans-serif;
  --display-font: "Cormorant", Georgia, serif;
}

body.theme-terroir {
  --paper: #fdfcf7;
  --paper-soft: #fffefa;
  --paper-deep: #f1ecdf;
  --ink: #29241e;
  --muted: #756e65;
  --gold: #a87a2f;
  --gold-light: #d8bf8c;
  --hero-gold: #e3c58d;
  --accent: #745530;
  --accent-deep: #191510;
  --accent-soft: #f0e8dc;
  --body-font: "Karla", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(183, 134, 53, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
  font-family: var(--body-font);
  min-width: 320px;
  transition: background 0.45s ease, color 0.45s ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.test-ribbon {
  position: relative;
  z-index: 50;
  padding: 7px 20px;
  color: #fff8e8;
  background: #110d0b;
  border-bottom: 1px solid rgba(219, 189, 128, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}

.system-maintenance {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 13px clamp(22px, 5vw, 80px);
  color: #fff6e7;
  background: #5f2f2a;
  border-bottom: 1px solid rgba(238, 199, 139, 0.65);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 18px clamp(24px, 5vw, 88px);
  color: #fff9ef;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.48), rgba(8, 6, 5, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-lockup {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

#headerBrandLogo {
  display: block;
  width: 82px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.18));
}

body.theme-terroir #headerBrandLogo {
  width: 92px;
}

.brand-context {
  padding-left: 20px;
  border-left: 1px solid rgba(238, 199, 139, 0.5);
}

#headerBrandName {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-context small {
  display: block;
  color: var(--hero-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.header-actions,
.brand-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 249, 239, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.language-switcher a {
  color: rgba(255, 249, 239, 0.58);
  text-decoration: none;
}

.language-switcher a.active,
.language-switcher a:hover {
  color: var(--hero-gold);
}

.header-legal-link {
  color: rgba(255, 249, 239, 0.8);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.header-legal-link:hover {
  color: var(--hero-gold);
}

.brand-switcher {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(16, 11, 9, 0.24);
  backdrop-filter: blur(12px);
}

.brand-switch {
  min-height: 38px;
  padding: 0 17px;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-switch.active {
  color: #231a14;
  background: var(--hero-gold);
}

.ghost-button,
.secondary-button,
.danger-button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ghost-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.site-header .ghost-button {
  color: #fff9ef;
  border-color: rgba(238, 199, 139, 0.65);
  background: rgba(16, 11, 9, 0.18);
  backdrop-filter: blur(12px);
}

.button-icon {
  color: var(--gold);
  font-size: 18px;
}

main {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 110px;
}

.brand-hero {
  position: relative;
  min-height: 690px;
  color: #fff9ef;
  background:
    linear-gradient(90deg, rgba(15, 10, 8, 0.76) 0%, rgba(15, 10, 8, 0.5) 45%, rgba(15, 10, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 7, 6, 0.04), rgba(10, 7, 6, 0.58)),
    url("./assets/generalis-hero.jpg") center 52% / cover no-repeat;
  overflow: hidden;
}

body.theme-terroir .brand-hero {
  background:
    linear-gradient(90deg, rgba(18, 13, 10, 0.91) 0%, rgba(18, 13, 10, 0.66) 48%, rgba(18, 13, 10, 0.34) 100%),
    linear-gradient(180deg, rgba(15, 10, 8, 0.08), rgba(15, 10, 8, 0.74)),
    url("./assets/terroir-restaurant.jpg") center 56% / cover no-repeat;
}

.brand-hero::after {
  position: absolute;
  right: clamp(24px, 5vw, 88px);
  bottom: 0;
  left: clamp(24px, 5vw, 88px);
  height: 1px;
  background: linear-gradient(90deg, var(--hero-gold), rgba(238, 199, 139, 0));
  content: "";
}

.brand-hero::before {
  position: absolute;
  z-index: 45;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, var(--accent-deep), rgba(15, 10, 8, 0.72), var(--accent-deep));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.brand-transitioning .brand-hero::before {
  animation: brand-veil 0.7s cubic-bezier(0.64, 0, 0.36, 1);
}

@keyframes brand-veil {
  0% { opacity: 0; transform: scaleX(0); transform-origin: left center; }
  35% { opacity: 0.88; transform: scaleX(1); transform-origin: left center; }
  55% { opacity: 0.88; transform: scaleX(1); transform-origin: right center; }
  100% { opacity: 0; transform: scaleX(0); transform-origin: right center; }
}

.intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
  width: min(1460px, calc(100% - 48px));
  min-height: 500px;
  margin: 0 auto;
  padding: clamp(82px, 10vw, 150px) 0 112px;
}

.eyebrow,
.section-heading p {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.brand-hero .eyebrow {
  color: var(--hero-gold);
}

.intro h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(58px, 6.5vw, 102px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.91;
}

.intro h1 em {
  color: var(--hero-gold);
  font-weight: 400;
}

.intro-copy {
  max-width: 470px;
  margin: 0;
  padding: 0 0 8px 28px;
  color: rgba(255, 249, 239, 0.82);
  border-left: 1px solid var(--hero-gold);
  font-size: 15px;
  line-height: 1.8;
}

.hero-scroll-cue {
  position: absolute;
  right: clamp(24px, 5vw, 88px);
  bottom: 32px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(255, 249, 239, 0.72);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.hero-scroll-cue span {
  width: 48px;
  height: 1px;
  background: var(--hero-gold);
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin: 38px 0;
  padding: 24px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: none;
  text-align: left;
}

.step > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 15px;
}

.step strong,
.step small {
  display: block;
}

.step strong {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step small {
  margin-top: 4px;
  font-size: 10px;
}

.step.active,
.step.completed {
  color: var(--ink);
}

.step.active > span:first-child,
.step.completed > span:first-child {
  color: #fff;
  border-color: var(--gold);
  background: var(--gold);
}

.step-line {
  height: 1px;
  margin: 0 28px;
  background: var(--line);
  overflow: hidden;
}

.step-line i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
}

.step-line.completed i {
  width: 100%;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  gap: 34px;
  align-items: start;
}

.editor-card {
  min-height: 780px;
  padding: clamp(24px, 4vw, 54px);
  background: rgba(251, 248, 242, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(55, 39, 28, 0.08);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 38px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display-font);
}

.section-heading p {
  margin-bottom: 6px;
  font-size: 9px;
}

.section-heading h2,
.success-panel h2,
.drawer-header h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
}

fieldset {
  min-width: 0;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.configurator-chapters {
  display: grid;
  gap: 14px;
}

.configurator-chapter {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 10px 34px rgba(49, 35, 25, 0);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.configurator-chapter[open] {
  border-color: rgba(183, 134, 53, 0.58);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(247, 240, 226, 0.58));
  box-shadow: 0 18px 46px rgba(49, 35, 25, 0.08);
}

.configurator-chapter > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.configurator-chapter > summary::-webkit-details-marker {
  display: none;
}

.chapter-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  border: 1px solid rgba(183, 134, 53, 0.55);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 15px;
}

.configurator-chapter[open] .chapter-index {
  color: var(--paper-soft);
  background: var(--gold);
}

.chapter-heading strong,
.chapter-heading small {
  display: block;
}

.chapter-heading strong {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}

.chapter-heading small {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-action {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.chapter-action i {
  display: inline-block;
  margin-left: 7px;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  transition: transform 0.35s ease;
}

.configurator-chapter[open] .chapter-action i {
  transform: rotate(45deg);
}

.configurator-chapter-body {
  padding: 24px 20px 22px;
  border-top: 1px solid rgba(183, 134, 53, 0.18);
  animation: chapterReveal 0.42s ease both;
}

.configurator-chapter-body > :last-child {
  margin-bottom: 0;
}

.chapter-continue {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 46px;
  padding: 0 3px;
  color: var(--accent-deep);
  border: 0;
  border-top: 1px solid rgba(183, 134, 53, 0.26);
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chapter-continue span {
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 19px;
  transition: transform 0.25s ease;
}

.chapter-continue:hover span {
  transform: translateX(4px);
}

@keyframes chapterReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

legend,
.fieldset-title-row {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fieldset-title-row {
  display: flex;
  justify-content: space-between;
}

.fieldset-title-row legend {
  margin: 0;
}

.fieldset-title-row span {
  color: var(--gold);
}

.segmented-fieldset,
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.segment,
.choice-card,
.radio-row,
.payment-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.segment:hover,
.choice-card:hover,
.radio-row:hover,
.payment-card:hover {
  border-color: var(--gold-light);
}

.segment.active,
.choice-card.active,
.radio-row.active,
.payment-card.active {
  border-color: var(--gold);
  background: rgba(183, 134, 53, 0.07);
  box-shadow: inset 0 0 0 1px rgba(183, 134, 53, 0.18);
}

.segment input,
.choice-card input,
.radio-row input,
.payment-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 20px;
}

.segment strong,
.segment small,
.choice-card strong,
.choice-card small,
.radio-row strong,
.radio-row small,
.payment-card strong,
.payment-card small {
  display: block;
}

.segment strong,
.choice-card strong,
.radio-row strong,
.payment-card strong {
  font-size: 12px;
}

.segment small,
.choice-card small,
.radio-row small,
.payment-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.design-option {
  position: relative;
  min-width: 0;
}

.design-option input {
  position: absolute;
  opacity: 0;
}

.design-option span {
  display: block;
}

.design-thumbnail {
  position: relative;
  height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-position: center;
  background-size: cover;
}

.design-thumbnail::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 14, 10, 0.78));
  content: "";
}

.design-option.selected .design-thumbnail {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--paper-soft), 0 0 0 1px var(--gold);
}

.design-check {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: grid !important;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(25, 18, 14, 0.68);
  font-size: 11px;
}

.design-option.selected .design-check {
  color: var(--accent-deep);
  background: var(--gold-light);
}

.design-name {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.design-option.selected .design-name {
  color: var(--ink);
}

.experience-fieldset {
  padding-bottom: 30px;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(150px, 0.72fr);
  grid-auto-rows: 96px;
  gap: 10px;
}

.experience-option {
  position: relative;
  min-width: 0;
}

.experience-option.selected {
  grid-row: span 3;
}

.experience-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.experience-image {
  position: relative;
  display: block;
  min-height: 96px;
  height: 100%;
  overflow: hidden;
  color: #fff9ef;
  border: 1px solid var(--line);
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 32px rgba(35, 25, 18, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-option.selected .experience-image {
  min-height: 308px;
}

.experience-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 7, 6, 0.1), rgba(10, 7, 6, 0.84)),
    linear-gradient(90deg, rgba(10, 7, 6, 0.42), transparent 75%);
  content: "";
}

.experience-option:hover .experience-image {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(35, 25, 18, 0.12);
  transform: translateY(-2px);
}

.experience-option.selected .experience-image {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.72), 0 0 0 1px var(--gold), 0 20px 44px rgba(35, 25, 18, 0.13);
}

.experience-number,
.experience-check,
.experience-copy {
  position: absolute;
  z-index: 2;
}

.experience-number {
  top: 16px;
  left: 17px;
  color: var(--hero-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.experience-check {
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--accent-deep);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.18);
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.experience-option.selected .experience-check {
  background: var(--hero-gold);
}

.experience-copy {
  right: 18px;
  bottom: 17px;
  left: 18px;
}

.experience-copy strong,
.experience-copy small {
  display: block;
}

.experience-copy strong {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.03;
}

.experience-option.selected .experience-copy strong {
  font-size: 30px;
}

.experience-option:not(.selected) .experience-copy {
  right: 13px;
  bottom: 13px;
  left: 13px;
}

.experience-option:not(.selected) .experience-copy small {
  display: none;
}

.experience-option:not(.selected) .experience-number {
  top: 12px;
  left: 13px;
}

.experience-option:not(.selected) .experience-check {
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
}

.experience-copy small {
  margin-top: 7px;
  color: rgba(255, 249, 239, 0.74);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.amount-grid label {
  position: relative;
}

.amount-grid input {
  position: absolute;
  opacity: 0;
}

.amount-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.amount-grid input:checked + span {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.custom-amount-field {
  margin-top: 14px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 24px;
}

.field label,
.label-row {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.label-row {
  display: flex;
  justify-content: space-between;
}

.label-row label {
  margin: 0;
}

.label-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field textarea,
.input-suffix {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
}

.field input,
.field textarea {
  padding: 14px 15px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 134, 53, 0.1);
}

.field textarea {
  min-height: 104px;
  line-height: 1.55;
  resize: vertical;
}

.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: var(--error);
  font-size: 10px;
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.input-suffix {
  display: flex;
  align-items: center;
}

.input-suffix input {
  border: 0;
  background: transparent;
}

.input-suffix span {
  padding: 0 15px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.delivery-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-fieldset legend {
  grid-column: 1 / -1;
}

.timing-fieldset {
  margin-top: 4px;
}

.timing-options {
  margin-bottom: 14px;
}

.timing-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  font-family: var(--display-font);
  font-size: 20px;
}

.schedule-fields {
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.radio-row {
  align-items: flex-start;
}

.radio-row::before,
.choice-card::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper-soft);
  content: "";
}

.radio-row.active::before,
.choice-card.active::before {
  background: var(--gold);
}

.form-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.save-indicator {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.save-indicator i,
.preview-label-row i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(45, 107, 78, 0.1);
}

.primary-button {
  min-height: 52px;
  padding: 0 24px;
  color: #fff9eb;
  border: 1px solid var(--accent);
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(35, 25, 18, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.primary-button span {
  margin-left: 14px;
  color: var(--gold-light);
  font-size: 16px;
}

.split-actions {
  justify-content: flex-end;
}

.notice-card {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  padding: 18px;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  background: rgba(183, 134, 53, 0.07);
  font-size: 11px;
  line-height: 1.6;
}

.notice-card > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display-font);
}

.notice-card p {
  margin: 0;
}

.address-grid {
  grid-template-columns: 0.35fr 0.65fr;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.payment-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.payment-card i {
  color: var(--success);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.transfer-method-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--gold);
  background:
    linear-gradient(120deg, rgba(183, 134, 53, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(183, 134, 53, 0.1);
}

.transfer-method-card::after {
  position: absolute;
  top: -42px;
  right: -35px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(183, 134, 53, 0.17);
  border-radius: 50%;
  content: "";
}

.transfer-method-icon {
  display: grid;
  z-index: 1;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  font-family: var(--display-font);
  font-size: 23px;
}

.transfer-method-card strong,
.transfer-method-card small {
  display: block;
}

.transfer-method-card strong {
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 500;
}

.transfer-method-card small {
  max-width: 440px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.transfer-method-card > i {
  z-index: 1;
  color: var(--gold);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.transfer-principle {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 18px;
  align-items: start;
  padding: 15px 18px;
  color: var(--muted);
  border: solid var(--line);
  border-width: 0 1px 1px;
  background: rgba(244, 236, 222, 0.5);
}

.transfer-principle span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.transfer-principle p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.review-list {
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
}

.review-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-row > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-row strong {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 500;
}

.review-edit {
  padding: 0;
  color: var(--gold);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 14px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.consent-row a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.legal-summary {
  margin: 26px 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.legal-summary-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}

.legal-summary-heading > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 20px;
}

.legal-summary-heading p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.legal-summary-heading h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 500;
}

.legal-summary-heading a {
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-summary-heading a span {
  margin-left: 6px;
  color: var(--gold);
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.legal-summary-grid > div {
  min-width: 0;
  padding: 17px 21px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-summary-grid > div:nth-child(2n) {
  border-right: 0;
}

.legal-summary-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.legal-summary-grid strong,
.legal-summary-grid span {
  display: block;
}

.legal-summary-grid strong {
  margin-bottom: 7px;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
}

.legal-summary-grid span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.consent-error {
  min-height: 16px;
  color: var(--error);
  font-size: 10px;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 4px;
  padding: 20px 24px;
  color: #fff;
  background: var(--accent-deep);
}

.order-total span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.order-total strong {
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 500;
}

.preview-column {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(183, 134, 53, 0.28);
  background:
    radial-gradient(circle at 80% 10%, rgba(238, 199, 140, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 249, 0.9), rgba(240, 233, 221, 0.7));
  box-shadow: 0 28px 78px rgba(48, 35, 25, 0.12);
}

.preview-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.giftcard-preview {
  position: relative;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--display-font);
  perspective: 1600px;
}

.giftcard-preview::before {
  position: absolute;
  z-index: -1;
  inset: 8% 4% -4%;
  display: block;
  background: radial-gradient(ellipse, rgba(183, 134, 53, 0.22), rgba(79, 57, 39, 0.06) 48%, transparent 72%);
  filter: blur(24px);
  content: "";
  pointer-events: none;
}

.giftcard-inner {
  display: grid;
  width: 100%;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.2, 0.76, 0.18, 1);
}

.giftcard-preview.flipped .giftcard-inner {
  transform: rotateX(var(--tilt-x)) rotateY(calc(180deg + var(--tilt-y)));
}

.giftcard-face {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: #f9f3e7;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.giftcard-preview.is-refreshing .giftcard-inner {
  animation: cardRefocus 0.62s cubic-bezier(0.2, 0.76, 0.18, 1);
}

.preview-design-fieldset {
  margin: 16px 0 0;
  padding: 14px 15px 12px;
  border: 1px solid rgba(183, 134, 53, 0.28);
  background: rgba(255, 253, 248, 0.62);
}

.preview-design-fieldset .fieldset-title-row {
  margin-bottom: 10px;
}

.preview-design-fieldset .design-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-design-fieldset .design-thumbnail {
  height: 64px;
}

.preview-design-fieldset .design-name {
  margin-top: 7px;
  font-size: 7px;
  letter-spacing: 0.08em;
}

@keyframes cardRefocus {
  0% { opacity: 0.74; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(0.985); }
  55% { opacity: 1; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.012); }
  100% { opacity: 1; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1); }
}

.giftcard-face::before {
  position: absolute;
  z-index: 6;
  inset: 10px;
  border: 1px solid rgba(183, 134, 53, 0.28);
  pointer-events: none;
  content: "";
}

.giftcard-front {
  transform: rotateY(0deg);
}

.giftcard-back {
  display: flex;
  min-height: 675px;
  padding: 48px 46px 38px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #fff9ed;
  background:
    radial-gradient(circle at 50% 32%, rgba(204, 165, 101, 0.16), transparent 19rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--accent-deep);
  text-align: center;
  transform: rotateY(180deg);
}

.giftcard-back::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 5px);
  content: "";
}

.giftcard-back > * {
  position: relative;
  z-index: 2;
}

.back-ornament {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(300px, 74%);
  margin-bottom: 26px;
}

.back-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.back-ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.back-ornament i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
}

#previewLogoBack {
  width: 112px;
  max-height: 94px;
  margin-bottom: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.theme-terroir #previewLogoBack {
  width: 140px;
  filter: none;
}

.back-kicker {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.giftcard-back h3 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 0.95;
}

.back-copy {
  max-width: 430px;
  margin: 20px auto 28px;
  color: rgba(255, 249, 237, 0.72);
  font-family: var(--body-font);
  font-size: 10px;
  line-height: 1.7;
}

.back-code-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: min(390px, 100%);
  padding: 14px;
  color: var(--ink);
  border: 1px solid var(--gold);
  background: #fffaf0;
  text-align: left;
}

#qrCanvasBack {
  width: 86px;
  height: 86px;
  padding: 6px;
  background: #fff;
  image-rendering: pixelated;
}

.back-code-panel span,
.back-code-panel strong,
.back-code-panel small {
  display: block;
  font-family: var(--body-font);
}

.back-code-panel span {
  color: var(--gold);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.back-code-panel strong {
  margin: 7px 0 5px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.back-code-panel small {
  color: var(--muted);
  font-size: 9px;
}

.back-footer {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 28px;
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.back-footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.foil-sheen {
  position: absolute;
  z-index: 1;
  inset: -60% -90%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 43%, rgba(255, 246, 217, 0.16) 49%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 246, 217, 0.12) 52%, transparent 58%);
  transform: translateX(-28%);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.giftcard-preview:hover .foil-sheen {
  transform: translateX(28%);
}

.flip-button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease;
}

.flip-button:hover,
.flip-button.active {
  color: #fff9ed;
  background: var(--accent-deep);
}

.flip-button span {
  color: var(--gold);
  font-size: 17px;
}

.giftcard-image {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  background-image: var(--preview-image);
  background-position: center;
  background-size: cover;
  transition: background-image 0.35s ease;
}

.print-card-image {
  display: none;
}

.giftcard-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 17, 0.88), rgba(5, 22, 17, 0.3) 62%, rgba(5, 22, 17, 0.22)),
    linear-gradient(0deg, rgba(6, 21, 17, 0.55), transparent 62%);
}

#previewLogo {
  position: relative;
  z-index: 2;
  display: block;
  width: 95px;
  max-height: 92px;
  margin-left: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.theme-terroir #previewLogo {
  width: 120px;
  max-height: 110px;
  filter: none;
}

.preview-test-stamp {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 34px;
  padding: 6px 9px;
  color: var(--gold-light);
  border: 1px solid rgba(219, 189, 128, 0.68);
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.giftcard-hero-copy {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 35px;
  left: 34px;
  color: #fff9ed;
}

.giftcard-hero-copy small,
.giftcard-hero-copy strong,
.giftcard-hero-copy span {
  display: block;
}

.giftcard-hero-copy small {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.giftcard-hero-copy strong {
  font-size: clamp(44px, 5vw, 67px);
  font-weight: 400;
  line-height: 0.9;
}

.giftcard-hero-copy span {
  margin-top: 9px;
  font-size: 17px;
  font-style: italic;
}

.giftcard-body {
  position: relative;
  min-height: 345px;
  padding: 34px 38px 30px;
  background:
    linear-gradient(rgba(255, 252, 244, 0.93), rgba(255, 252, 244, 0.93)),
    radial-gradient(circle at 20% 30%, rgba(183, 134, 53, 0.14), transparent 24rem);
}

.recipient-line span,
.voucher-meta span,
.validity span {
  display: block;
  color: var(--gold);
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.recipient-line strong {
  display: block;
  margin-top: 5px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.giftcard-body blockquote {
  max-width: 86%;
  min-height: 65px;
  margin: 25px 0 8px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.35;
}

.signature {
  margin: 0;
  font-size: 16px;
  text-align: right;
}

.voucher-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(183, 134, 53, 0.32);
}

.voucher-meta strong {
  display: block;
  margin-top: 5px;
  font-family: var(--body-font);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.registry-number {
  display: block;
  margin-top: 7px;
  color: #8b6a3c;
  font-family: var(--body-font);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

#qrCanvas {
  width: 66px;
  height: 66px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}

.validity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.validity strong {
  font-size: 14px;
  font-weight: 500;
}

.preview-note {
  display: flex;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.preview-note span {
  color: var(--gold);
}

.success-panel {
  max-width: 720px;
  margin: 70px auto;
  text-align: center;
}

.success-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  border: 1px solid rgba(216, 191, 140, 0.8);
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 9px rgba(181, 139, 80, 0.1), 0 18px 38px rgba(27, 19, 15, 0.16);
  font-size: 24px;
}

.success-icon.pending {
  color: var(--gold-light);
  background: linear-gradient(145deg, #5c4630, #241b16);
  box-shadow: 0 0 0 9px rgba(181, 139, 80, 0.1), 0 18px 38px rgba(27, 19, 15, 0.16);
}

.success-personal {
  margin: 13px 0 7px;
  color: var(--ink) !important;
  font-family: var(--display-font);
  font-size: clamp(20px, 2vw, 27px) !important;
  font-style: italic;
  line-height: 1.3 !important;
}

.success-code {
  margin: 30px 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
}

.success-code span,
.success-code strong {
  display: block;
}

.success-code span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.success-code strong {
  margin-top: 8px;
  font-family: var(--display-font);
  font-size: 27px;
  letter-spacing: 0.08em;
}

.pending-transfer {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 236, 222, 0.7)),
    var(--paper-soft);
  text-align: left;
  box-shadow: 0 20px 55px rgba(34, 25, 20, 0.08);
}

.bank-details-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 249, 0.72);
}

.bank-details-card > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bank-details-card > div:nth-child(2n) {
  border-right: 0;
}

.bank-details-card > div:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.bank-details-card dt,
.bank-details-card dd {
  margin: 0;
}

.bank-details-card dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bank-details-card dd {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pending-transfer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: var(--paper);
  background: var(--accent-deep);
}

.pending-transfer-heading span {
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.pending-transfer-heading strong {
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 500;
}

.transfer-details {
  margin: 0;
  padding: 5px 22px;
}

.transfer-details > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.transfer-details dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.transfer-details dd {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 17px;
}

.transfer-details dd small {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transfer-details dd strong {
  color: var(--accent);
  letter-spacing: 0.08em;
}

#copyReferenceButton {
  padding: 7px 10px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#copyReferenceButton:hover,
#copyReferenceButton:focus-visible {
  color: var(--paper);
  background: var(--accent-deep);
}

.pending-warning {
  display: flex;
  gap: 11px;
  margin: 0;
  padding: 17px 22px;
  color: var(--muted);
  background: rgba(183, 134, 53, 0.08);
  font-size: 9px;
  line-height: 1.6;
}

.pending-warning span {
  flex: 0 0 auto;
  color: var(--gold);
}

.success-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.success-action-card {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 236, 222, 0.64)),
    var(--paper-soft);
  text-align: left;
  box-shadow: 0 14px 34px rgba(34, 25, 20, 0.06);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.success-action-card:hover,
.success-action-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 19px 42px rgba(34, 25, 20, 0.11);
  transform: translateY(-3px);
}

.success-action-card > span:last-child,
.success-action-card strong,
.success-action-card small {
  display: block;
}

.success-action-index {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 12px;
}

.success-action-card strong {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-action-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.success-new-card {
  margin-top: 24px;
  padding: 8px 2px;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.success-new-card:hover,
.success-new-card:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.success-new-card span {
  margin-left: 8px;
  color: var(--gold-dark);
}

footer {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 24px;
  color: var(--gold-light);
  background: var(--accent-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.23em;
}

footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

footer a {
  color: inherit;
  text-decoration-color: rgba(211, 181, 130, 0.5);
  text-underline-offset: 4px;
}

.seal-sequence {
  position: fixed;
  z-index: 280;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  color: #fff9ed;
  background:
    radial-gradient(circle at 50% 50%, rgba(181, 139, 80, 0.17), transparent 31rem),
    linear-gradient(135deg, rgba(22, 11, 11, 0.98), rgba(44, 20, 22, 0.96));
  opacity: 0;
  transition: opacity 0.42s ease;
}

.theme-terroir .seal-sequence {
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 158, 88, 0.18), transparent 31rem),
    linear-gradient(135deg, rgba(12, 10, 8, 0.99), rgba(40, 29, 19, 0.98));
}

.seal-sequence::before,
.seal-sequence::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.seal-sequence::before {
  inset: 18px;
  border: 1px solid rgba(216, 191, 140, 0.28);
}

.seal-sequence::after {
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 6px),
    radial-gradient(circle at 50% 115%, rgba(0, 0, 0, 0.6), transparent 54%);
}

.seal-sequence.running {
  opacity: 1;
}

.seal-sequence.leaving {
  opacity: 0;
}

.seal-skip {
  position: fixed;
  z-index: 12;
  top: 32px;
  right: 34px;
  min-height: 44px;
  padding: 0 17px;
  color: rgba(255, 249, 237, 0.75);
  border: 1px solid rgba(216, 191, 140, 0.4);
  background: rgba(0, 0, 0, 0.14);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.seal-sound {
  position: fixed;
  z-index: 12;
  top: 32px;
  left: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  color: rgba(255, 249, 237, 0.75);
  border: 1px solid rgba(216, 191, 140, 0.4);
  background: rgba(0, 0, 0, 0.14);
  font-size: 8px;
  letter-spacing: 0.17em;
  backdrop-filter: blur(8px);
}

.seal-sound strong {
  font-size: inherit;
  letter-spacing: inherit;
}

.seal-sound-icon {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  width: 15px;
  height: 13px;
}

.seal-sound-icon i {
  width: 2px;
  background: var(--gold-light);
  transform-origin: bottom;
  animation: sound-level 1.1s ease-in-out infinite alternate;
}

.seal-sound-icon i:nth-child(1) { height: 6px; }
.seal-sound-icon i:nth-child(2) { height: 12px; animation-delay: -0.35s; }
.seal-sound-icon i:nth-child(3) { height: 8px; animation-delay: -0.7s; }

.seal-sound.muted .seal-sound-icon i {
  height: 2px;
  animation: none;
  opacity: 0.5;
}

@keyframes sound-level {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

.seal-skip span {
  margin-left: 10px;
  color: var(--gold-light);
  font-size: 13px;
}

.seal-stage {
  position: relative;
  z-index: 4;
  width: min(920px, 100%);
  text-align: center;
}

.sequence-heading {
  position: relative;
  z-index: 8;
  min-height: 90px;
  margin-bottom: 10px;
}

.sequence-heading > p {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.sequence-captions {
  position: relative;
  height: 48px;
  font-family: var(--display-font);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
}

.sequence-captions span {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateY(14px);
}

#sequenceFinalCaption {
  font-size: clamp(24px, 2.8vw, 39px);
  line-height: 1.12;
}

.seal-sequence.running .sequence-captions span:nth-child(1) {
  animation: sequence-caption 1.45s ease 0.15s both;
}

.seal-sequence.running .sequence-captions span:nth-child(2) {
  animation: sequence-caption 2.2s ease 1.35s both;
}

.seal-sequence.running .sequence-captions span:nth-child(3) {
  animation: sequence-caption 1.55s ease 3.75s both;
}

.seal-sequence.running .sequence-captions span:nth-child(4) {
  animation: sequence-caption-final 1s ease 5.85s forwards;
}

@keyframes sequence-caption {
  0%, 100% { opacity: 0; transform: translateY(12px); }
  18%, 76% { opacity: 1; transform: translateY(0); }
}

@keyframes sequence-caption-final {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.seal-scene {
  position: relative;
  height: clamp(320px, 42vw, 480px);
  perspective: 1800px;
  transform-style: preserve-3d;
}

.envelope-assembly {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(620px, 88vw);
  height: clamp(290px, 34vw, 390px);
  --card-start: -245px;
  --card-hover: -150px;
  --card-insert: 142px;
  opacity: 0;
  transform: translate3d(-50%, -43%, 0) rotateX(7deg) rotateY(-3deg) scale(0.94);
  transform-style: preserve-3d;
}

.seal-sequence.running .envelope-assembly {
  animation:
    envelope-arrival 0.9s cubic-bezier(0.2, 0.7, 0.18, 1) 0.15s forwards,
    envelope-finish 0.9s cubic-bezier(0.22, 0.72, 0.2, 1) 6.15s forwards;
}

@keyframes envelope-arrival {
  from { opacity: 0; transform: translate3d(-50%, -35%, -120px) rotateX(12deg) rotateY(-9deg) scale(0.88); }
  to { opacity: 1; transform: translate3d(-50%, -43%, 0) rotateX(7deg) rotateY(-3deg) scale(0.94); }
}

@keyframes envelope-finish {
  from { opacity: 1; transform: translate3d(-50%, -43%, 0) rotateX(7deg) rotateY(-3deg) scale(0.94); }
  to { opacity: 1; transform: translate3d(-50%, -48%, 40px) rotateX(3deg) rotateY(0deg) scale(1); }
}

.envelope-rear {
  position: absolute;
  z-index: 1;
  top: 26%;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid var(--gold);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 45%),
    #efe2cb;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.38);
}

.sequence-card {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 72%;
  overflow: hidden;
  color: #fff9ed;
  border: 1px solid var(--gold);
  background: #fffaf0;
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate3d(-50%, var(--card-start), 120px) rotateX(10deg) rotateY(-19deg) scale(0.9);
  transform-style: preserve-3d;
}

.seal-sequence.running .sequence-card {
  animation: card-into-envelope 4.25s cubic-bezier(0.32, 0.04, 0.2, 1) 0.55s forwards;
}

@keyframes card-into-envelope {
  0% { opacity: 0; transform: translate3d(-50%, var(--card-start), 120px) rotateX(10deg) rotateY(-19deg) scale(0.9); }
  13% { opacity: 1; }
  38% { opacity: 1; transform: translate3d(-50%, var(--card-hover), 150px) rotateX(1deg) rotateY(0deg) scale(1); }
  57% { opacity: 1; transform: translate3d(-50%, calc(var(--card-hover) + 7px), 150px) rotateX(-1deg) rotateY(0deg) scale(1.02); }
  100% { opacity: 0.96; transform: translate3d(-50%, var(--card-insert), 8px) rotateX(-3deg) rotateY(0deg) scale(0.7); }
}

.sequence-card-image {
  position: relative;
  height: clamp(175px, 19vw, 240px);
  padding: 24px;
  overflow: hidden;
  background-image: var(--sequence-image);
  background-position: center;
  background-size: cover;
}

.sequence-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 13, 10, 0.9), rgba(18, 13, 10, 0.25)), linear-gradient(0deg, rgba(18, 13, 10, 0.5), transparent 65%);
}

.sequence-card-glint {
  position: absolute;
  z-index: 2;
  inset: -80% -100%;
  background: linear-gradient(110deg, transparent 44%, rgba(255, 248, 224, 0.32) 50%, transparent 56%);
  transform: translateX(-28%);
}

.seal-sequence.running .sequence-card-glint {
  animation: sequence-glint 1.2s ease 1.65s both;
}

@keyframes sequence-glint {
  from { transform: translateX(-28%); }
  to { transform: translateX(30%); }
}

#sequenceCardLogo {
  position: relative;
  z-index: 3;
  display: block;
  width: 86px;
  max-height: 72px;
  margin-left: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.theme-terroir #sequenceCardLogo {
  width: 112px;
}

.sequence-card-copy {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  left: 24px;
  text-align: left;
}

.sequence-card-copy small,
.sequence-card-copy strong,
.sequence-card-copy span {
  display: block;
}

.sequence-card-copy small {
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.sequence-card-copy strong {
  margin-top: 7px;
  font-family: var(--display-font);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 400;
  line-height: 0.9;
}

.sequence-card-copy span {
  margin-top: 7px;
  font-family: var(--display-font);
  font-size: 14px;
  font-style: italic;
}

.sequence-card-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sequence-card-foot i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.envelope-front-panel {
  position: absolute;
  z-index: 5;
  top: 26%;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: linear-gradient(154deg, #e6d5b9, #fff8ea 52%, #dec9a8);
}

.envelope-front-fold {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope-front-left {
  clip-path: polygon(0 0, 57% 100%, 0 100%);
  background: linear-gradient(145deg, rgba(209, 188, 153, 0.75), rgba(255, 249, 237, 0.35));
}

.envelope-front-right {
  clip-path: polygon(100% 0, 43% 100%, 100% 100%);
  background: linear-gradient(215deg, rgba(209, 188, 153, 0.72), rgba(255, 249, 237, 0.34));
}

.envelope-front-bottom {
  clip-path: polygon(0 100%, 50% 42%, 100% 100%);
  background: linear-gradient(0deg, #f7ecd9, rgba(255, 250, 241, 0.82));
}

#sequenceEnvelopeLogo {
  position: absolute;
  z-index: 4;
  bottom: 27px;
  left: 50%;
  width: 110px;
  max-height: 80px;
  object-fit: contain;
  opacity: 0.9;
  transform: translateX(-50%);
  filter: sepia(1) saturate(0.72) brightness(0.52) contrast(1.16);
}

.seal-sequence.running #sequenceEnvelopeLogo {
  animation: envelope-logo-foil 1.05s ease 6.05s both;
}

@keyframes envelope-logo-foil {
  0%, 100% { opacity: 0.9; filter: sepia(1) saturate(0.72) brightness(0.52) contrast(1.16); }
  45% { opacity: 1; filter: sepia(1) saturate(1.15) brightness(1.05) contrast(1.25) drop-shadow(0 0 9px rgba(214, 171, 90, 0.32)); }
}

.theme-terroir .seal-sequence.running #sequenceEnvelopeLogo {
  animation-name: envelope-logo-foil-terroir;
}

@keyframes envelope-logo-foil-terroir {
  0%, 100% { opacity: 0.9; filter: brightness(0.5) sepia(0.4); }
  45% { opacity: 1; filter: brightness(0.95) sepia(0.8) saturate(1.2) drop-shadow(0 0 9px rgba(214, 171, 90, 0.34)); }
}

.theme-terroir #sequenceEnvelopeLogo {
  width: 124px;
  filter: brightness(0.5) sepia(0.4);
}

.envelope-front-panel > small {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 15px;
  left: 0;
  color: #9a7440;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.29em;
}

.envelope-closing-flap {
  position: absolute;
  z-index: 7;
  top: 26%;
  right: 0;
  left: 0;
  height: 60%;
  backface-visibility: hidden;
  transform: rotateX(179deg) translateZ(1px);
  transform-origin: top center;
  transform-style: preserve-3d;
}

.flap-paper {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #fff9ed, #e3d1b2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.flap-inner-line {
  position: absolute;
  top: 12px;
  right: 16px;
  left: 16px;
  height: calc(100% - 28px);
  border: 1px solid rgba(181, 139, 80, 0.28);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.seal-sequence.running .envelope-closing-flap {
  animation: close-envelope 1.18s cubic-bezier(0.28, 0.02, 0.2, 1) 4.55s forwards;
}

@keyframes close-envelope {
  0% { transform: rotateX(179deg) translateZ(1px); }
  72% { transform: rotateX(-8deg) translateZ(7px); }
  100% { transform: rotateX(0deg) translateZ(7px); }
}

.sequence-wax-seal {
  position: absolute;
  z-index: 10;
  top: 58%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 92px;
  height: 92px;
  color: #f8e9bf;
  border: 1px solid #deb565;
  border-radius: 46% 54% 48% 52% / 53% 46% 54% 47%;
  background:
    radial-gradient(circle at 30% 24%, #80504b 0, #4f2529 43%, #291418 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 222, 148, 0.08),
    inset 5px 7px 14px rgba(255, 226, 172, 0.07),
    inset -7px -9px 16px rgba(12, 5, 7, 0.38),
    0 18px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  overflow: hidden;
  transform: translate3d(-50%, -180px, 140px) rotate(-13deg) scale(0.25);
}

.sequence-wax-seal::before,
.sequence-wax-seal::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.sequence-wax-seal::before {
  z-index: 5;
  inset: -60% -110%;
  background: linear-gradient(108deg, transparent 44%, rgba(255, 239, 188, 0.72) 49%, rgba(255, 255, 255, 0.25) 51%, transparent 56%);
  opacity: 0;
  transform: translateX(-34%) rotate(12deg);
}

.sequence-wax-seal::after {
  z-index: 1;
  inset: 7px;
  border: 1px solid rgba(255, 231, 169, 0.42);
  border-radius: 48% 52% 47% 53% / 52% 47% 53% 48%;
  box-shadow:
    inset 2px 2px 5px rgba(255, 238, 193, 0.18),
    inset -3px -4px 7px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(30, 18, 12, 0.13);
}

.theme-terroir .sequence-wax-seal {
  color: #f4d796;
  border-color: #d3a957;
  background: radial-gradient(circle at 34% 28%, #514331, #282017 62%, #100d0a 100%);
  box-shadow: inset 0 0 0 8px rgba(224, 185, 103, 0.12), 0 18px 30px rgba(0, 0, 0, 0.34);
}

.theme-terroir .sequence-wax-seal span {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.sequence-wax-seal span {
  position: relative;
  z-index: 4;
  color: #f0d79c;
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(255, 244, 204, 0.28), -1px -1px 0 rgba(39, 20, 15, 0.65), 0 3px 6px rgba(0, 0, 0, 0.32);
}

.sequence-wax-seal small {
  position: relative;
  z-index: 4;
  margin-top: 5px;
  color: rgba(244, 215, 150, 0.74);
  font-family: var(--body-font);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}

.sequence-wax-seal i {
  position: absolute;
  z-index: 2;
  inset: 13px;
  border: 1px solid rgba(255, 232, 177, 0.52);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(22, 13, 10, 0.1), 0 0 0 1px rgba(255, 224, 155, 0.08);
}

.seal-sequence.running .sequence-wax-seal {
  animation: wax-stamp 0.94s cubic-bezier(0.18, 0.8, 0.26, 1.22) 5.55s forwards;
}

.seal-sequence.running .sequence-wax-seal::before {
  animation: wax-foil-sweep 0.9s ease 6.08s forwards;
}

@keyframes wax-foil-sweep {
  0% { opacity: 0; transform: translateX(-34%) rotate(12deg); }
  18% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(34%) rotate(12deg); }
}

@keyframes wax-stamp {
  0% { opacity: 0; transform: translate3d(-50%, -180px, 140px) rotate(-13deg) scale(0.25); }
  58% { opacity: 1; transform: translate3d(-50%, -48%, 28px) rotate(2deg) scale(1.08); }
  78% { opacity: 1; transform: translate3d(-50%, -50%, 22px) rotate(0deg) scale(0.93); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 24px) rotate(0deg) scale(1); }
}

.sequence-floor-shadow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: min(600px, 72vw);
  height: 86px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(32px);
  opacity: 0;
  transform: translateX(-50%) scale(0.78);
}

.seal-sequence.running .sequence-floor-shadow {
  animation: floor-shadow 6.8s ease 0.1s forwards;
}

@keyframes floor-shadow {
  0% { opacity: 0; transform: translateX(-50%) scale(0.72); }
  18%, 76% { opacity: 0.74; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.58; transform: translateX(-50%) scale(0.86); }
}

.seal-ambient i {
  position: absolute;
  z-index: 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 22px 7px rgba(216, 191, 140, 0.16);
  opacity: 0;
}

.seal-ambient i:nth-child(1) { top: 22%; left: 19%; }
.seal-ambient i:nth-child(2) { top: 69%; right: 18%; }
.seal-ambient i:nth-child(3) { top: 37%; right: 27%; }

.seal-sequence.running .seal-ambient i {
  animation: ambient-float 4.8s ease-in-out infinite;
}

.seal-sequence.running .seal-ambient i:nth-child(2) { animation-delay: 0.8s; }
.seal-sequence.running .seal-ambient i:nth-child(3) { animation-delay: 1.45s; }

@keyframes ambient-float {
  0%, 100% { opacity: 0.12; transform: translateY(10px); }
  50% { opacity: 0.72; transform: translateY(-13px); }
}

.sequence-progress {
  width: min(400px, 70vw);
  height: 1px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(216, 191, 140, 0.18);
}

.sequence-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
}

.seal-sequence.running .sequence-progress span {
  animation: sequence-progress 7.1s linear 0.15s forwards;
}

@keyframes sequence-progress {
  to { transform: scaleX(1); }
}

.reveal-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow-y: auto;
  color: #fff9ed;
  background:
    linear-gradient(135deg, rgba(7, 15, 12, 0.95), rgba(24, 13, 12, 0.9)),
    url("./assets/generalis-hero.jpg") center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.theme-terroir .reveal-overlay {
  background:
    linear-gradient(135deg, rgba(14, 10, 8, 0.95), rgba(34, 25, 17, 0.9)),
    url("./assets/terroir-restaurant.jpg") center / cover no-repeat;
}

.reveal-overlay.visible {
  opacity: 1;
}

.reveal-overlay::before {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(216, 191, 140, 0.34);
  content: "";
}

.reveal-close {
  position: fixed;
  z-index: 5;
  top: 28px;
  right: 30px;
  width: 48px;
  height: 48px;
  color: #fff9ed;
  border: 1px solid rgba(216, 191, 140, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--display-font);
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.reveal-shell {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  text-align: center;
}

.reveal-kicker {
  margin: 0 0 38px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.reveal-envelope {
  position: relative;
  width: min(520px, 86vw);
  height: 330px;
  margin: 0 auto;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.35));
  perspective: 1200px;
  transition: transform 0.65s ease, opacity 0.45s ease;
}

.envelope-back,
.envelope-front,
.envelope-flap,
.envelope-letter {
  position: absolute;
  inset: 0;
}

.envelope-back {
  border: 1px solid var(--gold);
  background:
    linear-gradient(rgba(255, 250, 240, 0.93), rgba(255, 250, 240, 0.93)),
    radial-gradient(circle at 20% 20%, rgba(181, 139, 80, 0.26), transparent 20rem);
}

.envelope-letter {
  z-index: 2;
  display: flex;
  right: 34px;
  bottom: 22px;
  left: 34px;
  height: 282px;
  padding: 36px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  border: 1px solid rgba(181, 139, 80, 0.35);
  background: #fffaf0;
  transition: transform 0.8s 0.36s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.envelope-letter img {
  width: 116px;
  max-height: 92px;
  margin-bottom: 28px;
  object-fit: contain;
  filter: brightness(0);
}

.theme-terroir .envelope-letter img {
  width: 150px;
  filter: none;
}

.envelope-letter span {
  font-family: var(--display-font);
  font-size: 28px;
}

.envelope-front {
  z-index: 3;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  border: 1px solid var(--gold);
  background: linear-gradient(145deg, #eee2ce, #fff9ed 56%, #dfcfb4);
}

.envelope-flap {
  z-index: 4;
  height: 57%;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #fff9ed, #e5d6bc);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.72s cubic-bezier(0.35, 0, 0.15, 1), z-index 0s 0.35s;
}

.wax-seal {
  position: absolute;
  z-index: 6;
  top: 42%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 94px;
  height: 94px;
  color: #f8e6b6;
  border: 1px solid #e8c77e;
  border-radius: 46% 54% 48% 52% / 53% 46% 54% 47%;
  background: radial-gradient(circle at 30% 24%, #80504b 0, #4f2529 43%, #291418 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 224, 154, 0.08),
    inset 5px 7px 14px rgba(255, 226, 172, 0.07),
    inset -7px -9px 16px rgba(12, 5, 7, 0.38),
    0 16px 29px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease, transform 0.45s ease;
}

.wax-seal::before {
  position: absolute;
  z-index: 3;
  inset: -55% -110%;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 44%, rgba(255, 239, 188, 0.66) 49%, rgba(255, 255, 255, 0.2) 51%, transparent 56%);
  content: "";
  opacity: 0;
  transform: translateX(-34%) rotate(12deg);
  transition: opacity 0.25s ease, transform 0.75s ease;
}

.wax-seal:hover::before,
.wax-seal:focus-visible::before {
  opacity: 0.72;
  transform: translateX(34%) rotate(12deg);
}

.wax-seal::after {
  position: absolute;
  z-index: 1;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(255, 231, 169, 0.46);
  border-radius: 48% 52% 47% 53% / 52% 47% 53% 48%;
  box-shadow: inset 2px 2px 5px rgba(255, 238, 193, 0.16), inset -3px -4px 7px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(30, 18, 12, 0.12);
  content: "";
}

.wax-seal span,
.wax-seal small {
  display: block;
}

.wax-seal span {
  position: relative;
  z-index: 4;
  color: #f0d79c;
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(255, 244, 204, 0.28), -1px -1px 0 rgba(39, 20, 15, 0.65), 0 3px 6px rgba(0, 0, 0, 0.32);
}

.theme-terroir .wax-seal {
  color: #f4d796;
  border-color: #d3a957;
  background: radial-gradient(circle at 34% 28%, #514331, #282017 62%, #100d0a 100%);
}

.theme-terroir #waxSealMark {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.wax-seal small {
  position: relative;
  z-index: 4;
  margin-top: 5px;
  color: rgba(244, 215, 150, 0.76);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.wax-seal > i {
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 232, 177, 0.48);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(22, 13, 10, 0.1), 0 0 0 1px rgba(255, 224, 155, 0.08);
}

.reveal-envelope.opened .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

.reveal-envelope.opened .envelope-letter {
  transform: translateY(-118px);
}

.reveal-envelope.opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(18deg);
}

.reveal-content {
  position: relative;
  width: min(660px, 100%);
  margin: 0 auto;
  padding: 54px 50px;
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(181, 139, 80, 0.13), transparent 22rem),
    #fffaf0;
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-content::before {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(181, 139, 80, 0.27);
  content: "";
}

.reveal-content > * {
  position: relative;
  z-index: 2;
}

.reveal-content-logo {
  display: block;
  width: 102px;
  max-height: 80px;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: brightness(0);
}

.theme-terroir .reveal-content-logo {
  width: 136px;
  filter: none;
}

.reveal-divider {
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(240px, 70%);
  margin: 0 auto 24px;
}

.reveal-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.reveal-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.reveal-divider i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.reveal-content.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-content > p {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.reveal-content h2 {
  max-width: 540px;
  margin: 0 auto;
  font-family: var(--display-font);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 400;
  line-height: 0.94;
}

.reveal-content blockquote {
  max-width: 490px;
  margin: 30px auto 22px;
  font-family: var(--display-font);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
}

.reveal-content > strong,
.reveal-content > span {
  display: block;
}

.reveal-content > strong {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 36px;
  font-weight: 500;
}

.reveal-content > span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.reveal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(15, 10, 8, 0.68);
  backdrop-filter: blur(5px);
}

.admin-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100vh;
  padding: 34px;
  overflow-y: auto;
  background: var(--paper-soft);
  box-shadow: -30px 0 70px rgba(25, 17, 12, 0.24);
  transform: translateX(105%);
  transition: transform 0.35s ease;
}

.admin-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer-header h2 {
  font-size: 43px;
}

.close-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-family: var(--display-font);
  font-size: 27px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  color: #fff;
  background: var(--accent-deep);
}

.admin-stats > div {
  padding: 20px;
}

.admin-stats > div + div {
  border-left: 1px solid rgba(219, 189, 128, 0.25);
}

.admin-stats span,
.admin-stats strong {
  display: block;
}

.admin-stats span {
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-stats strong {
  margin-top: 8px;
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 500;
}

.admin-empty {
  padding: 38px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.admin-empty span {
  color: var(--gold);
  font-size: 30px;
}

.admin-empty p {
  margin: 12px 0 0;
  font-size: 11px;
}

.voucher-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.voucher-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.voucher-item strong,
.voucher-item span,
.voucher-item small {
  display: block;
}

.voucher-item strong {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 500;
}

.voucher-item span,
.voucher-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.voucher-balance {
  color: var(--gold) !important;
  font-family: var(--display-font);
  font-size: 20px !important;
  text-align: right;
}

.voucher-status {
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.order-reference {
  color: var(--gold) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.activate-transfer-button {
  margin-top: 10px;
  padding: 8px 10px;
  color: var(--paper);
  border: 1px solid var(--gold);
  background: var(--accent-deep);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activate-transfer-button:hover,
.activate-transfer-button:focus-visible {
  color: var(--ink);
  background: var(--gold-light);
}

.redeem-panel {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.redeem-panel h3 {
  margin: 0 0 20px;
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 500;
}

.redeem-panel .primary-button {
  width: 100%;
}

.redeem-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.redeem-rule {
  margin: 4px 0 17px;
  padding: 13px 15px;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  background: rgba(181, 137, 77, 0.08);
  font-size: 9px;
  line-height: 1.65;
}

.danger-button {
  width: 100%;
  margin-top: 18px;
  color: var(--error);
  border-color: rgba(155, 48, 40, 0.35);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 28px;
  bottom: 28px;
  max-width: 380px;
  padding: 15px 18px;
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
  }

  .editor-card {
    padding: 28px;
  }

  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .giftcard-image {
    min-height: 270px;
  }

  .giftcard-body {
    padding: 28px;
  }

  .giftcard-back {
    min-height: 617px;
    padding: 38px 30px 30px;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ghost-button {
    justify-content: center;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 520px;
    padding-top: 80px;
  }

  .intro-copy {
    max-width: 650px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: relative;
    top: auto;
    grid-row: 1;
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .stepper {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .step-line {
    display: none;
  }

  .step {
    gap: 8px;
  }

  .step small {
    display: none;
  }
}

@media (max-width: 640px) {
  .bank-details-card {
    grid-template-columns: 1fr;
  }

  .bank-details-card > div,
  .bank-details-card > div:nth-child(2n),
  .bank-details-card > div:last-child {
    grid-column: auto;
    border-right: 0;
  }

  .test-ribbon {
    font-size: 8px;
  }

  .site-header {
    gap: 18px;
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px;
  }

  .brand-lockup {
    gap: 12px;
  }

  #headerBrandLogo {
    width: 74px;
    height: 64px;
  }

  body.theme-terroir #headerBrandLogo {
    width: 80px;
  }

  .brand-context {
    padding-left: 14px;
  }

  .brand-context small {
    font-size: 7px;
    letter-spacing: 0.2em;
  }

  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .header-legal-link {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(238, 199, 139, 0.34);
  }

  .legal-summary-heading {
    grid-template-columns: auto 1fr;
  }

  .legal-summary-heading a {
    grid-column: 1 / -1;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }

  .legal-summary-grid {
    grid-template-columns: 1fr;
  }

  .legal-summary-grid > div,
  .legal-summary-grid > div:nth-child(2n),
  .legal-summary-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-summary-grid > div:last-child {
    border-bottom: 0;
  }

  .brand-switcher {
    flex: 1 1 auto;
  }

  .brand-switch {
    flex: 1;
    padding: 0 9px;
  }

  .ghost-button {
    min-height: 48px;
  }

  main {
    width: min(100% - 24px, 1460px);
    padding-top: 0;
  }

  .brand-hero {
    min-height: 720px;
    background-position: 58% center;
  }

  .brand-hero .intro {
    width: min(100% - 32px, 1460px);
    min-height: 470px;
    padding: 70px 0 92px;
  }

  .intro h1 {
    font-size: clamp(48px, 14.5vw, 64px);
    line-height: 0.94;
  }

  .intro-copy {
    padding-left: 18px;
    font-size: 13px;
  }

  .hero-scroll-cue {
    display: none;
  }

  .stepper {
    margin-top: 46px;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step > span:first-child {
    width: 32px;
    height: 32px;
  }

  .step strong {
    font-size: 8px;
  }

  .preview-label-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .giftcard-image {
    min-height: 235px;
    padding: 25px;
  }

  #previewLogo {
    width: 72px;
  }

  body.theme-terroir #previewLogo {
    width: 90px;
  }

  .preview-test-stamp {
    top: 25px;
    left: 25px;
  }

  .giftcard-hero-copy {
    right: 25px;
    bottom: 25px;
    left: 25px;
  }

  .giftcard-hero-copy strong {
    font-size: 45px;
  }

  .giftcard-body {
    min-height: 330px;
    padding: 25px;
  }

  .recipient-line strong {
    font-size: 30px;
  }

  .giftcard-body blockquote {
    max-width: 100%;
    font-size: 17px;
  }

  .giftcard-back {
    min-height: 566px;
    padding: 34px 24px 28px;
  }

  .giftcard-back h3 {
    font-size: 39px;
  }

  .back-code-panel {
    min-width: 0;
  }

  .editor-card {
    padding: 24px 18px;
  }

  .preview-column {
    padding: 12px;
  }

  .configurator-chapter > summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 76px;
    padding: 14px;
  }

  .chapter-index {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .chapter-heading strong {
    font-size: 20px;
  }

  .chapter-heading small {
    max-width: 235px;
  }

  .chapter-action {
    display: none;
  }

  .configurator-chapter-body {
    padding: 20px 14px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .segmented-fieldset,
  .choice-cards,
  .two-columns,
  .delivery-fieldset {
    grid-template-columns: 1fr;
  }

  .delivery-fieldset legend,
  .field-span-2 {
    grid-column: auto;
  }

  .design-thumbnail {
    height: 145px;
  }

  .preview-design-fieldset {
    padding: 12px 10px 10px;
  }

  .preview-design-fieldset .design-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .preview-design-fieldset .design-option {
    min-width: 0;
  }

  .preview-design-fieldset .design-thumbnail {
    height: 58px;
  }

  .experience-grid {
    display: flex;
    margin: 0 -18px;
    padding: 2px 18px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .experience-option {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .experience-option.selected {
    grid-row: auto;
  }

  .experience-image,
  .experience-option.selected .experience-image {
    min-height: 168px;
  }

  .experience-option.selected .experience-copy strong {
    font-size: 25px;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .custom-amount {
    grid-column: 1 / -1;
  }

  .form-actions,
  .split-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .success-panel {
    margin: 48px auto;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .success-action-card {
    min-height: 68px;
  }

  .transfer-method-card {
    grid-template-columns: auto 1fr;
    padding: 17px;
  }

  .transfer-method-card > i {
    grid-column: 2;
  }

  .transfer-principle {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .pending-transfer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .transfer-details > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px 0;
  }

  .transfer-details dd {
    align-items: flex-start;
    flex-direction: column;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  #copyReferenceButton {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-stats > div + div {
    border-top: 1px solid rgba(219, 189, 128, 0.25);
    border-left: 0;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .reveal-overlay {
    padding: 22px 14px;
  }

  .reveal-overlay::before {
    inset: 8px;
  }

  .reveal-close {
    top: 16px;
    right: 17px;
  }

  .reveal-kicker {
    margin-bottom: 28px;
    padding: 0 55px;
    line-height: 1.7;
  }

  .reveal-envelope {
    height: 235px;
  }

  .envelope-letter {
    right: 20px;
    bottom: 16px;
    left: 20px;
    height: 208px;
    padding: 22px;
  }

  .envelope-letter img {
    width: 84px;
    max-height: 66px;
    margin-bottom: 18px;
  }

  .envelope-letter span {
    font-size: 21px;
  }

  .wax-seal {
    width: 76px;
    height: 76px;
  }

  .reveal-envelope.opened .envelope-letter {
    transform: translateY(-78px);
  }

  .reveal-content {
    padding: 42px 22px 30px;
  }

  .reveal-content h2 {
    font-size: 48px;
  }

  .reveal-content blockquote {
    font-size: 18px;
  }

  .reveal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .seal-sequence {
    padding: 22px 12px;
  }

  .seal-sequence::before {
    inset: 8px;
  }

  .seal-skip {
    top: 18px;
    right: 18px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 7px;
  }

  .seal-sound {
    top: 18px;
    left: 18px;
    min-height: 40px;
    padding: 0 11px;
    font-size: 7px;
  }

  .seal-stage {
    padding-top: 52px;
  }

  .sequence-heading {
    min-height: 100px;
    margin-bottom: 0;
  }

  .sequence-heading > p {
    margin-bottom: 13px;
    font-size: 7px;
  }

  .sequence-captions {
    height: 64px;
    font-size: 27px;
  }

  #sequenceFinalCaption {
    padding: 0 20px;
    font-size: 23px;
    line-height: 1.15;
  }

  .seal-scene {
    height: 330px;
  }

  .envelope-assembly {
    top: 51%;
    width: min(350px, 92vw);
    height: 245px;
    --card-start: -165px;
    --card-hover: -102px;
    --card-insert: 87px;
  }

  .sequence-card {
    width: 76%;
  }

  .sequence-card-image {
    height: 150px;
    padding: 16px;
  }

  #sequenceCardLogo {
    width: 62px;
    max-height: 50px;
  }

  .theme-terroir #sequenceCardLogo {
    width: 78px;
  }

  .sequence-card-copy {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .sequence-card-copy small {
    font-size: 5px;
  }

  .sequence-card-copy strong {
    font-size: 29px;
  }

  .sequence-card-copy span {
    font-size: 11px;
  }

  .sequence-card-foot {
    min-height: 27px;
    font-size: 5px;
  }

  #sequenceEnvelopeLogo {
    bottom: 8px;
    width: 67px;
    max-height: 44px;
  }

  .theme-terroir #sequenceEnvelopeLogo {
    width: 84px;
  }

  .envelope-front-panel > small {
    bottom: 1px;
    font-size: 4px;
  }

  .sequence-wax-seal {
    width: 70px;
    height: 70px;
  }

  .sequence-wax-seal span {
    font-size: 25px;
  }

  .theme-terroir .sequence-wax-seal span {
    font-size: 18px;
  }

  .sequence-wax-seal i {
    inset: 10px;
  }

  .save-indicator {
    text-align: center;
  }

  .review-row {
    grid-template-columns: 1fr auto;
  }

  .review-row > span {
    grid-column: 1 / -1;
  }

  .admin-drawer {
    padding: 26px 18px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }
}

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

  .seal-sequence.running .envelope-assembly {
    opacity: 1;
    transform: translate3d(-50%, -48%, 40px) rotateX(3deg) rotateY(0deg) scale(1);
  }

  .seal-sequence.running .sequence-card {
    opacity: 0.96;
    transform: translate3d(-50%, var(--card-insert), 8px) rotateX(-3deg) rotateY(0deg) scale(0.7);
  }

  .seal-sequence.running .envelope-closing-flap {
    transform: rotateX(0deg) translateZ(7px);
  }

  .seal-sequence.running .sequence-wax-seal {
    opacity: 1;
    transform: translate3d(-50%, -50%, 24px) rotate(0deg) scale(1);
  }

  .seal-sequence.running .sequence-captions span {
    display: none;
  }

  .seal-sequence.running .sequence-captions span:last-child {
    display: block;
    opacity: 1;
    transform: none;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body > * {
    display: none !important;
  }

  body > main {
    display: flex !important;
    width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
  }

  .stepper,
  .editor-card,
  .preview-label-row,
  .preview-note,
  .flip-button {
    display: none !important;
  }

  .workspace,
  .preview-column {
    display: block !important;
    width: 178mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .preview-column {
    position: static !important;
    top: auto !important;
  }

  .giftcard-preview {
    width: 178mm !important;
    margin: 0 !important;
    perspective: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .giftcard-inner,
  .giftcard-preview.flipped .giftcard-inner {
    display: block !important;
    transform: none !important;
  }

  .giftcard-front {
    display: block !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 0.25mm rgba(181, 139, 80, 0.76) !important;
    transform: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .giftcard-back {
    display: none !important;
  }

  .giftcard-image {
    min-height: 88mm !important;
    background: none !important;
  }

  .print-card-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.43) saturate(0.82) contrast(1.05);
  }

  .giftcard-shade {
    display: none !important;
  }

  body.theme-terroir #previewLogo {
    filter: brightness(0) invert(1) !important;
  }

  .foil-sheen {
    display: none !important;
  }

  .giftcard-body {
    min-height: 91mm !important;
    background: #fffdf8 !important;
  }
}
