/* =============================================================================
   GKMB Voucher
   ========================================================================== */

.voucher {
  --voucher-notch: 0.9rem;
  --voucher-split: 7.5rem;
  --voucher-radius: 0.9rem;
  --voucher-error: 176, 0, 32;
  --voucher-shadow: 0 0.35rem 0.75rem rgba(var(--c-neutral-darkest), 0.1);
}

.voucher [hidden],
.voucher__motif[hidden] {
  display: none !important;
}

.voucher__flash {
  padding: 0.75rem 1rem;
  margin-bottom: var(--g-gap);
  border-left: 4px solid rgb(var(--c-primary));
  background: rgb(var(--c-neutral-lighter));
}

.voucher__empty {
  color: rgb(var(--c-neutral-dark));
}

/* =============================================================================
   Ticket shape
   ========================================================================== */

.voucher__card,
.voucher__ticket {
  -webkit-mask:
    radial-gradient(circle var(--voucher-notch) at 0 var(--voucher-split), transparent 97%, #000) left / 50.5% 100% no-repeat,
    radial-gradient(circle var(--voucher-notch) at 100% var(--voucher-split), transparent 97%, #000) right / 50.5% 100% no-repeat;
  mask:
    radial-gradient(circle var(--voucher-notch) at 0 var(--voucher-split), transparent 97%, #000) left / 50.5% 100% no-repeat,
    radial-gradient(circle var(--voucher-notch) at 100% var(--voucher-split), transparent 97%, #000) right / 50.5% 100% no-repeat;
}

.voucher__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.voucher__motifimage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voucher__tickethead:has(.voucher__motifimage:not([hidden]))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(var(--c-neutral-darkest), 0.6), rgba(var(--c-neutral-darkest), 0) 70%);
}

.voucher__tickethead > span {
  z-index: 2;
}

.voucher__currency {
  font-size: 55%;
  font-weight: var(--f-weight-sb);
  margin-left: 0.15em;
}

/* =============================================================================
   Cards
   ========================================================================== */

.voucher__slider {
  margin: 0 0 var(--p);
}

.voucher__viewport {
  padding: 1.25rem 0 2.25rem;
  margin: -1.25rem 0 -2.25rem;
}

.voucher__cards {
  padding: 0;
  margin: 0;
  list-style: none;
}

.voucher__cardwrap {
  display: flex;
  height: auto;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  filter: drop-shadow(var(--voucher-shadow));
}

.voucher__cardwrap::before {
  content: none;
}

.voucher__slidernav {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.voucher__slidernav.-locked {
  display: none;
}

.voucher__pagination.swiper-pagination-bullets {
  position: static;
  flex: 1;
  width: auto;
  text-align: left;
}

.voucher__arrow,
.voucher__arrow:hover,
.voucher__arrow:focus,
.voucher__arrow:active {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  color: rgb(var(--c-primary));
  background: rgb(var(--c-neutral-lightest));
  border: 2px solid rgb(var(--c-primary));
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.voucher__arrow:focus-visible {
  outline: 2px solid rgb(var(--c-primary));
  outline-offset: 3px;
}

.voucher__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voucher__arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.voucher__card,
.voucher__card:hover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  color: rgb(var(--c-neutral-dark));
  font: inherit;
  text-align: left;
  background: rgb(var(--c-neutral-lightest));
  border: 0;
  border-radius: var(--voucher-radius);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.voucher__card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgb(var(--c-primary));
}

.voucher__card[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px rgb(var(--c-primary));
}

.voucher__cardhead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--voucher-split);
  padding: 1rem 1.25rem;
  overflow: hidden;
  color: rgb(var(--c-neutral-lightest));
  background: linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-primary-dark)));
  border-radius: var(--voucher-radius) var(--voucher-radius) 0 0;
}

.voucher__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.15rem 0.65rem;
  font-size: var(--f-size-s-2);
  font-weight: var(--f-weight-b);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--c-neutral-darkest));
  background: rgb(var(--c-secondary));
  border-radius: 2rem;
}

.voucher__cardamount {
  position: relative;
  font-size: 260%;
  font-weight: var(--f-weight-b);
  line-height: 1;
  white-space: nowrap;
}

.voucher__cardamount.-variable {
  font-size: 190%;
}

.voucher__cardbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0.35rem 1.25rem;
  margin: 0 var(--voucher-notch);
  border-top: 2px dashed rgb(var(--c-neutral-light));
}

.voucher__cardtitle {
  font-size: var(--f-size-l-1);
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
}

.voucher__cardteaser {
  font-size: var(--f-size-s-1);
  line-height: 1.5;
}

.voucher__cardaction {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-primary));
}

.voucher__cardaction::after {
  content: "→";
  transition: transform 0.25s ease;
}

.voucher__cardchosen,
.voucher__card[aria-pressed="true"] .voucher__cardchoose {
  display: none;
}

.voucher__card[aria-pressed="true"] .voucher__cardchosen {
  display: inline;
}

.voucher__card[aria-pressed="true"] .voucher__cardaction::after {
  content: "✓";
}

/* =============================================================================
   Steps
   ========================================================================== */

.voucher__progress {
  margin: 0 0 calc(var(--p) * 0.75);
}

.voucher__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: none;
}

.voucher__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.25rem;
  margin: 0;
  text-align: center;
}

.voucher__step::before {
  content: none;
}

.voucher__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc(50% + 1.6rem);
  width: calc(100% - 3.2rem);
  height: 2px;
  background: rgb(var(--c-neutral-light));
}

.voucher__step.-done::after {
  background: rgb(var(--c-primary));
}

.voucher__stepmarker {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  box-sizing: border-box;
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-neutral));
  background: rgb(var(--c-neutral-lightest));
  border: 2px solid rgb(var(--c-neutral-light));
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.voucher__stepcheck {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
}

.voucher__step.-done .voucher__stepmarker {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  border-color: rgb(var(--c-primary));
}

.voucher__step.-done .voucher__stepnumber {
  display: none;
}

.voucher__step.-done .voucher__stepcheck {
  display: block;
}

.voucher__step.-current .voucher__stepmarker {
  color: rgb(var(--c-primary));
  border-color: rgb(var(--c-primary));
  box-shadow: 0 0 0 5px rgba(var(--c-primary), 0.15);
}

.voucher__steptext {
  display: flex;
  flex-direction: column;
}

.voucher__steptitle {
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
  line-height: 1.3;
  color: rgb(var(--c-neutral-dark));
}

.voucher__step.-current .voucher__steptitle {
  color: rgb(var(--c-neutral-darker));
}

.voucher__stepdescription {
  display: none;
  font-size: var(--f-size-s-2);
  line-height: 1.4;
  color: rgb(var(--c-neutral-dark));
}

/* =============================================================================
   Form
   ========================================================================== */

.voucher__form {
  display: grid;
  gap: var(--p);
  scroll-margin-top: var(--m-scroll);
}

.voucher__fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 2.5rem;
  border: 0;
}

.voucher__legend {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 1.25rem;
  font-size: var(--f-size-l-2);
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
}

.voucher__legendnumber {
  display: inline-grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.75rem;
  font-size: 0.85rem;
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  border-radius: 50%;
}

.voucher__subtitle {
  margin: 1.5rem 0 0.75rem;
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
}

.voucher__row {
  display: grid;
  gap: 0 var(--g-gap-s);
}

.voucher__field {
  margin-bottom: 1rem;
}

.voucher__label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
}

.voucher__required {
  margin-left: 0.15em;
  color: rgb(var(--c-primary));
}

.voucher__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font: inherit;
  background: rgb(var(--c-neutral-lightest));
  border-radius: var(--b-radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voucher__input:focus {
  outline: none;
  border-color: rgb(var(--c-primary));
  box-shadow: 0 0 0 3px rgba(var(--c-primary), 0.2);
}

.voucher__input.-textarea {
  min-height: 7rem;
  resize: vertical;
}

.voucher__field.-error .voucher__input {
  border-color: rgb(var(--voucher-error));
}

.voucher__error {
  margin: 0.3rem 0 0;
  font-size: var(--f-size-s-1);
  color: rgb(var(--voucher-error));
}

.voucher__hint,
.voucher__counter,
.voucher__requirednote {
  margin: 0.3rem 0 0;
  font-size: var(--f-size-s-2);
  color: rgb(var(--c-neutral-dark));
}

.voucher__counter {
  margin: -0.7rem 0 1rem;
  text-align: right;
}

.voucher__note {
  margin: 0 0 1rem;
}

.voucher input[type="checkbox"],
.voucher input[type="radio"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0.2rem 0 0;
  accent-color: rgb(var(--c-primary));
}

.voucher__check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}

.voucher__conditional {
  animation: voucher-reveal 0.25s ease;
}

@keyframes voucher-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

/* Occasions */
.voucher__occasions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--g-gap-s);
}

.voucher__occasion {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  background: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-neutral-light));
  border-radius: var(--b-radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voucher .voucher__occasioninput {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  margin: 0;
}

.voucher__occasionmotif {
  position: relative;
  display: block;
  height: 3.5rem;
  color: rgb(var(--c-neutral-lightest));
  background: linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-primary-dark)));
}

.voucher__occasionmotif .voucher__motif {
  opacity: 0.45;
}

.voucher__occasiontitle {
  padding: 0.4rem 0.6rem;
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
}

.voucher__occasion:has(input:checked) {
  border-color: rgb(var(--c-primary));
  box-shadow: 0 0 0 2px rgb(var(--c-primary));
}

.voucher__occasion:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(var(--c-primary), 0.35);
}

/* Shipping options */
.voucher__options {
  display: grid;
  gap: var(--g-gap-s);
}

.voucher__option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  cursor: pointer;
  background: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-neutral-light));
  border-radius: var(--b-radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voucher__option:has(input:checked) {
  border-color: rgb(var(--c-primary));
  box-shadow: 0 0 0 1px rgb(var(--c-primary));
}

.voucher__optiontext {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.voucher__optiontitle {
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
}

.voucher__optiondescription {
  font-size: var(--f-size-s-1);
  line-height: 1.5;
}

.voucher__optionprice {
  font-weight: var(--f-weight-sb);
  white-space: nowrap;
}

/* Customer type */
.voucher__segmented {
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  background: rgb(var(--c-neutral-lighter));
  border-radius: 2rem;
}

.voucher__segment {
  position: relative;
  cursor: pointer;
}

.voucher .voucher__segmentinput {
  position: absolute;
  opacity: 0;
}

.voucher__segment > span {
  display: block;
  padding: 0.45rem 1.25rem;
  font-weight: var(--f-weight-sb);
  text-align: center;
  border-radius: 2rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.voucher__segmentinput:checked + span {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

.voucher__segmentinput:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(var(--c-primary), 0.35);
}

.voucher__delivery {
  padding: 0.25rem 1rem 0.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid rgb(var(--c-neutral-light));
}

.voucher__delivery .voucher__subtitle {
  margin-top: 0.75rem;
}

/* Finish */
.voucher__finish {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

.voucher__submit {
  width: 100%;
  margin-top: 1rem;
  font-size: var(--f-size-l-1);
  font-weight: var(--f-weight-sb);
  padding: 0.85rem 1.75rem;
}

.voucher__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================================================
   Preview
   ========================================================================== */

.voucher__preview {
  --voucher-split: 9rem;
  filter: drop-shadow(var(--voucher-shadow));
}

.voucher__ticket {
  background: rgb(var(--c-neutral-lightest));
  border-radius: var(--voucher-radius);
}

.voucher__tickethead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--voucher-split);
  box-sizing: border-box;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  color: rgb(var(--c-neutral-lightest));
  background: linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-primary-dark)));
  border-radius: var(--voucher-radius) var(--voucher-radius) 0 0;
}

.voucher__ticketeyebrow {
  position: relative;
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voucher__ticketamount {
  position: relative;
  font-size: 300%;
  font-weight: var(--f-weight-b);
  line-height: 1.05;
}

.voucher__ticketbody {
  position: relative;
  padding: 1.25rem 0.5rem 1.25rem;
  margin: 0 var(--voucher-notch);
  border-top: 2px dashed rgb(var(--c-neutral-light));
}

.voucher__ticketlogo {
  display: block;
  width: auto;
  max-width: 8rem;
  height: auto;
  max-height: 2.75rem;
  margin: 0 0 0.75rem auto;
}

.voucher__ticketfor {
  margin: 0 0 0.5rem;
}

.voucher__ticketforlabel {
  display: block;
  font-size: var(--f-size-s-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.voucher__ticketname {
  font-size: var(--f-size-l-2);
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
  overflow-wrap: anywhere;
}

.voucher__ticketmessage {
  min-height: 3em;
  margin: 0 0 1rem;
  font-style: italic;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.voucher [data-preview].-placeholder {
  color: rgb(var(--c-neutral));
}

.voucher__ticketfoot {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--c-neutral-lighter));
}

.voucher__ticketcode {
  display: flex;
  flex-direction: column;
  font-size: var(--f-size-s-2);
}

.voucher__ticketcodevalue {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgb(var(--c-neutral-darker));
}

.voucher__ticketqr {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  height: 3.75rem;
  color: rgb(var(--c-neutral-darker));
}

/* =============================================================================
   Summary
   ========================================================================== */

.voucher__summary,
.voucher__payment {
  padding: 1.25rem 1.5rem;
  margin-top: var(--g-gap);
  background: rgb(var(--c-neutral-lighter));
  border-radius: var(--voucher-radius);
}

.voucher__summarytitle {
  margin: 0 0 0.75rem;
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
}

.voucher__summaryempty,
.voucher__summarynote {
  margin: 0.5rem 0 0;
  font-size: var(--f-size-s-1);
}

.voucher__lines {
  margin: 0;
}

.voucher__line {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.voucher__line dt,
.voucher__line dd {
  margin: 0;
}

.voucher__line dd {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.voucher__line.-subtotal {
  margin-top: 0.3rem;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

.voucher__line.-total {
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  font-size: var(--f-size-l-1);
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-neutral-darker));
  border-top: 2px solid rgb(var(--c-neutral-darker));
}

.voucher__line.-taxincluded {
  padding-top: 0;
  font-size: var(--f-size-s-1);
}

/* =============================================================================
   Review
   ========================================================================== */

.voucher__review {
  display: grid;
  gap: var(--p);
}

.voucher__reviewblock {
  margin-bottom: 1.25rem;
}

.voucher__reviewblock .voucher__subtitle {
  margin-top: 0;
}

.voucher__facts {
  margin: 0;
}

.voucher__fact {
  display: grid;
  gap: 0 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgb(var(--c-neutral-lighter));
}

.voucher__fact dt {
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
}

.voucher__fact dd {
  margin: 0;
}

.voucher__address {
  font-style: normal;
}

.voucher__reviewaddresses {
  display: grid;
  gap: 0 var(--g-gap);
}

/* =============================================================================
   Payment and confirmation
   ========================================================================== */

.voucher__note.-small {
  font-size: var(--f-size-s-1);
}

/* Demo account: the views look exactly as they do for the front desk, this
   badge is the one visible difference */
.voucher__note.-demo {
  display: inline-block;
  margin-bottom: var(--g-gap-s);
  padding: 0.4em 0.9em;
  border-radius: var(--b-radius-s);
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
  color: rgb(var(--c-neutral-darker));
  background: rgb(var(--c-neutral-lighter));
}

.voucher__note.-center,
.voucher__legend.-center {
  justify-content: center;
  text-align: center;
}

.voucher__paypal {
  position: relative;
  min-height: 3rem;
}

.voucher__paypalstatus {
  margin: 0 0 0.75rem;
  font-size: var(--f-size-s-1);
}

.voucher__paypalstatus.-error {
  padding: 0.6rem 0.8rem;
  color: rgb(var(--voucher-error));
  background: rgba(var(--voucher-error), 0.08);
  border-radius: var(--b-radius-s);
}

.voucher__paypalbuttons.-busy {
  opacity: 0.4;
  pointer-events: none;
}

.voucher__thanks {
  max-width: 44rem;
  margin: 0 auto;
}

.voucher__thanksicon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(var(--c-primary), 0.15);
}

.voucher__thanksicon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.voucher__codes {
  display: grid;
  gap: var(--g-gap-s);
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.voucher__codeitem {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  margin: 0;
  background: rgb(var(--c-neutral-lighter));
  border-left: 4px solid rgb(var(--c-primary));
  border-radius: var(--b-radius-s);
}

.voucher__codeitem::before {
  content: none;
}

.voucher__codevalue {
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-neutral-darker));
}

.voucher__codetext {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--f-size-l-1);
  letter-spacing: 0.08em;
  color: rgb(var(--c-neutral-darker));
}

.voucher__codevalid {
  margin-left: auto;
  font-size: var(--f-size-s-1);
}

.voucher__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-gap-s);
  justify-content: center;
  margin: 0 0 1.5rem;
}

.voucher__download.-secondary {
  padding: 0.6rem 1.2rem;
  line-height: 1.4;
  color: rgb(var(--c-primary));
  text-decoration: none;
  border: 2px solid rgb(var(--c-primary));
  border-radius: var(--b-radius-s);
}

/* =============================================================================
   Redeem
   ========================================================================== */

.voucher.-redeem {
  max-width: 40rem;
  margin: 0 auto;
}

.voucher__panel {
  padding: 1.5rem;
  background: rgb(var(--c-neutral-lighter));
  border-radius: var(--voucher-radius);
}

.voucher__inline {
  display: flex;
  gap: var(--g-gap-s);
}

.voucher__input.-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--f-size-l-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voucher__submit.-inline {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.voucher__balance {
  --voucher-split: 9.5rem;
  overflow: hidden;
  background: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-neutral-light));
  border-radius: var(--voucher-radius);
}

.voucher__balancehead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--voucher-split);
  box-sizing: border-box;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  color: rgb(var(--c-neutral-lightest));
  background: linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-primary-dark)));
}

.voucher__balancehead > span {
  position: relative;
}

.voucher__balancelabel {
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-sb);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voucher__balanceamount {
  font-size: 260%;
  font-weight: var(--f-weight-b);
  line-height: 1.1;
}

.voucher__balanceof {
  font-size: var(--f-size-s-1);
}

.voucher__balancebody {
  padding: 1.25rem 1.5rem 1.5rem;
}

.voucher__meter {
  height: 0.6rem;
  margin: 0 0 1.25rem;
  overflow: hidden;
  background: rgb(var(--c-neutral-lighter));
  border-radius: 1rem;
}

.voucher__meterbar {
  display: block;
  height: 100%;
  background: rgb(var(--c-primary));
  border-radius: 1rem;
}

.voucher__badge.-state {
  position: static;
  display: inline-block;
}

.voucher__badge.-valid {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

.voucher__badge.-expired,
.voucher__badge.-usedup,
.voucher__badge.-blocked,
.voucher__badge.-corrected,
.voucher__badge.-demo {
  color: rgb(var(--c-neutral-darker));
  background: rgb(var(--c-neutral-light));
}

.voucher__redeemform {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

.voucher__redeemactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.voucher__link,
.voucher__link:hover,
.voucher__link:focus {
  padding: 0;
  font: inherit;
  color: rgb(var(--c-primary));
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.voucher__back {
  display: inline-block;
  margin-top: 1.25rem;
}

.voucher__history {
  margin-top: var(--g-gap);
}

.voucher__historylist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.voucher__historyitem {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 0.6rem 0;
  margin: 0;
  border-bottom: 1px solid rgb(var(--c-neutral-lighter));
}

.voucher__historyitem::before {
  content: none;
}

.voucher__historyamount {
  margin-left: auto;
  font-weight: var(--f-weight-sb);
  font-variant-numeric: tabular-nums;
}

.voucher__historymeta {
  flex-basis: 100%;
  font-size: var(--f-size-s-1);
  color: rgb(var(--c-neutral-dark));
}

.voucher__flash.-success,
.voucher__flash.-ok {
  border-left-color: rgb(var(--c-primary));
}

.voucher__flash.-danger,
.voucher__flash.-error,
.voucher__flash.-warning {
  color: rgb(var(--voucher-error));
  border-left-color: rgb(var(--voucher-error));
}

/* =============================================================================
   Archive
   ========================================================================== */

.voucher.-archive {
  display: grid;
  gap: var(--g-gap);
}

.voucher__archivehead {
  display: grid;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgb(var(--c-primary));
}

.voucher__outstanding {
  margin: 0;
  font-size: var(--f-size-s-1);
  color: rgb(var(--c-neutral-dark));
}

.voucher__outstanding strong {
  display: block;
  font-size: var(--f-size-l-2);
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-primary));
}

/* Filter */
.voucher__filter {
  display: grid;
  gap: 0.75rem 1rem;
}

.voucher__filteractions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* The invoice list uses the standard content element table, so it looks like
   every other table on the site and scrolls sideways on a phone */
/* One line of an order in the archive */
.voucher__itemline {
  margin: 0 0 0.6rem;
}

.voucher__itemmeta {
  font-size: var(--f-size-s-1);
  color: rgb(var(--c-neutral-dark));
}

/* The button that reveals the next voucher block stands between two blocks and
   needs air on both sides */
.voucher__additem {
  margin-top: var(--g-gap);
  margin-bottom: var(--g-gap);
}

/* The second half of a voucher block: same rhythm as a legend, but it is a
   heading inside the block and not the block's own title */
.voucher__legend.-sub {
  margin-top: var(--g-gap-s);
  font-size: var(--f-size);
}

/*
 * One voucher of the order, framed. Choosing it and designing it belong
 * together, and with several vouchers in one order the frame is what tells you
 * where one ends and the next begins - clearer than a number in front of every
 * heading, which is why those went.
 */
.voucher__item {
  position: relative;
  padding: 1.25rem;
  margin: 0 0 var(--g-gap-s);
  border: 2px solid rgb(var(--c-neutral-lighter));
  border-radius: var(--b-radius-s);
}

.voucher__item.-active {
  border-color: rgb(var(--c-primary));
}

/* The legend sits on the frame instead of floating above it */
.voucher__item > .voucher__legend {
  padding: 0 0.5rem;
  margin: 0 0 0.5rem -0.5rem;
}

/* The second half of the box needs a line, not a second frame */
.voucher__item .voucher__legend.-sub {
  padding-top: var(--g-gap-s);
  border-top: 1px solid rgb(var(--c-neutral-lighter));
}

.voucher__link.-removeitem {
  margin-left: auto;
  font-size: var(--f-size-s-1);
}

/* Modifiers of the site's own font__button, so the archive uses the same button
   as everything else instead of a look of its own. Ghost is the quiet variant
   for everything next to the one action that matters. */
.font__button.-ghost {
  color: rgb(var(--c-primary));
  background: transparent;
  box-shadow: inset 0 0 0 2px rgb(var(--c-primary));
}

.font__button.-danger {
  background: rgb(var(--c-primary-dark));
}

.font__button.-small {
  padding: 0.3rem 0.7rem;
  font-size: var(--f-size-s-1);
}

/* An inline form should not look like a paragraph of its own */
.voucher__inlineform .font__button {
  white-space: nowrap;
}

/* The status of an order sits next to the invoice number, spaced and centred
   against it. Primary, because the yellow of the base badge belongs to the
   badge on a voucher card, not to a status. */
.voucher__badge.-state.-primary {
  margin-left: 1rem;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

/* The two documents are the reason this page is open, so they are proper
   buttons and get room to breathe */
.voucher__documentrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Only in the archive: the back link stands on its own under the panels */
.voucher.-archive .voucher__back {
  margin-top: 2rem;
}

.voucher.-archive .ce-table-scroll {
  margin-bottom: 0;
}

.voucher.-archive table.ce-table td.voucher__number {
  text-align: right;
  white-space: nowrap;
}

.voucher.-archive table.ce-table .voucher__badge {
  white-space: nowrap;
}

/* Pagination */
.voucher__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
}

.voucher__pagestate {
  font-size: var(--f-size-s-1);
  color: rgb(var(--c-neutral-dark));
}

/* One order with its vouchers */
.voucher__codelist {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.voucher__codeitem {
  display: grid;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.75rem;
  background: rgb(var(--c-neutral-lightest));
  border-radius: var(--b-radius-s);
}

.voucher__codebalance {
  font-size: var(--f-size-s-1);
  color: rgb(var(--c-neutral-dark));
}

.voucher__codereason {
  font-size: var(--f-size-s-2);
  color: rgb(var(--c-neutral-dark));
}

.voucher__inlineform {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.voucher__input.-small {
  padding: 0.35rem 0.6rem;
  font-size: var(--f-size-s-1);
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (hover: hover) {
  /* The template fills every button on hover; the ghost has to take the text
     colour with it, otherwise primary on primary-dark is unreadable */
  .font__button.-ghost:hover {
    color: rgb(var(--c-neutral-lightest));
    background: rgb(var(--c-primary));
    box-shadow: inset 0 0 0 2px rgb(var(--c-primary));
  }

  .voucher__card:hover {
    transform: translateY(-4px);
  }

  .voucher__card:hover .voucher__cardaction::after {
    transform: translateX(3px);
  }

  .voucher__arrow:not(.swiper-button-disabled):hover {
    color: rgb(var(--c-neutral-lightest));
    background: rgb(var(--c-primary));
  }

  .voucher__occasion:hover,
  .voucher__option:hover {
    border-color: rgb(var(--c-primary));
  }
}

@media (prefers-reduced-motion: reduce) {
  .voucher__card,
  .voucher__cardaction::after,
  .voucher__conditional {
    transition: none;
    animation: none;
  }
}

@media (min-width: 640px) {
  .voucher__archivehead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .voucher__outstanding {
    text-align: right;
  }

  .voucher__filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  /* The search box is the wide one, the date and status fields share a row */
  .voucher__field.-search,
  .voucher__filteractions {
    grid-column: 1 / -1;
  }

  .voucher__codeitem {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
  }

  .voucher__viewport {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: -1.5rem;
    margin-left: -1.5rem;
  }

  .voucher__row.-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voucher__row.-zip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .voucher__row.-voucher {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .voucher__submit {
    width: auto;
  }

  .voucher__fact {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .voucher__reviewaddresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voucher__row.-redeem {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

@media (min-width: 800px) {
  .voucher__filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .voucher__field.-search {
    grid-column: 1 / -1;
  }

  .voucher__filteractions {
    grid-column: 1 / -1;
  }


  .voucher__steptitle {
    font-size: var(--f-size);
  }
}

@media (min-width: 1024px) {
  .voucher__form,
  .voucher__review {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  .voucher__formmain,
  .voucher__reviewmain {
    grid-row: 1;
    grid-column: 1;
  }

  .voucher__finish {
    grid-row: 2;
    grid-column: 1;
  }

  .voucher__aside {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: stretch;
  }

  .voucher__form {
    row-gap: 0;
  }

  .voucher__sticky {
    position: sticky;
    top: var(--m-scroll);
  }
}
