@font-face {
  font-family: "Gift Voucher Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Gift Voucher Script";
  src: url("../fonts/Breathing%20Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gift Voucher Code";
  src: url("../fonts/UbuntuMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.gift-voucher-viewport {
  container-type: inline-size;
  width: 100%;
}

.gift-voucher-card,
.gift-voucher-card * {
  box-sizing: border-box;
}

.gift-voucher-card {
  position: relative;
  width: 210mm;
  height: 95mm;
  overflow: hidden;
  background: #fff;
  color: #1a1a1a;
  font-family: "Gift Voucher Inter", Arial, sans-serif;
  font-weight: 400;
  text-align: left;
}

.gift-voucher-viewport--responsive .gift-voucher-card {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 95;
}

.gift-voucher-ribbon {
  position: absolute;
  z-index: 0;
  top: -5.263158%;
  right: -1.428571%;
  width: 39.52381%;
  height: 116.842105%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gift-voucher-title {
  position: absolute;
  z-index: 1;
  top: 12.631579%;
  left: 4.761905%;
  width: 59.047619%;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  font-family: "Gift Voucher Script", "Gift Voucher Inter", Arial, sans-serif;
  font-size: 15.4mm;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

.gift-voucher-field {
  position: absolute;
  z-index: 1;
}

.gift-voucher-field--recipient {
  top: 38.947368%;
  left: 4.761905%;
  width: 59.047619%;
}

.gift-voucher-field--amount,
.gift-voucher-field--code {
  top: 58.526316%;
}

.gift-voucher-field--amount {
  left: 4.761905%;
  width: 18.095238%;
}

.gift-voucher-field--code {
  left: 27.619048%;
  width: 36.190476%;
}

.gift-voucher-line {
  display: flex;
  align-items: flex-end;
  height: 13.5mm;
  padding: 0 1mm 1mm;
  border-bottom: 0.18mm solid #bfa181;
  background: #fff;
}

.gift-voucher-line--amount {
  justify-content: space-between;
  gap: 2mm;
}

.gift-voucher-label {
  display: block;
  margin-top: 1mm;
  color: #403a36;
  font-size: 2.9mm;
  line-height: 1.4;
}

.gift-voucher-recipient {
  max-width: 100%;
  color: #a8875d;
  font-family: "Gift Voucher Script", "Gift Voucher Inter", Arial, sans-serif;
  font-size: 6.7mm;
  line-height: 1.4;
  white-space: nowrap;
}

.gift-voucher-recipient--long {
  font-family: "Gift Voucher Inter", Arial, sans-serif;
  font-size: 3.5mm;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gift-voucher-recipient--very-long {
  font-size: 3mm;
}

.gift-voucher-amount {
  font-size: 5.5mm;
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}

.gift-voucher-amount--long {
  font-size: 3.8mm;
}

.gift-voucher-currency {
  font-size: 3.8mm;
  font-weight: 300;
  line-height: 1.35;
}

.gift-voucher-code {
  font-family: "Gift Voucher Code", monospace;
  font-size: 3.8mm;
  line-height: 1.4;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.gift-voucher-footer {
  position: absolute;
  z-index: 1;
  top: 83.421053%;
  left: 4.761905%;
  width: 59.047619%;
  color: #403a36;
  font-size: 2.4mm;
  line-height: 1.35;
}

.gift-voucher-footer p {
  margin: 0 0 1mm;
}

.gift-voucher-footer p:last-child {
  margin-bottom: 0;
}

.gift-voucher-back .gift-voucher-ribbon {
  right: auto;
  left: -7.619048%;
  width: 37.142857%;
  transform: scaleX(-1);
}

.gift-voucher-logo {
  position: absolute;
  top: 13.684211%;
  left: 55%;
  width: 16.190476%;
  height: auto;
}

.gift-voucher-promise,
.gift-voucher-website,
.gift-voucher-terms,
.gift-voucher-contact {
  position: absolute;
  left: 30.952381%;
  width: 64.285714%;
  margin: 0;
  text-align: center;
}

.gift-voucher-promise {
  top: 44.210526%;
  color: #a8875d;
  font-family: "Gift Voucher Script", "Gift Voucher Inter", Arial, sans-serif;
  font-size: 5.6mm;
  line-height: 1.8;
}

.gift-voucher-website {
  top: 60%;
  font-size: 3.2mm;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.gift-voucher-terms {
  top: 71.578947%;
  color: #403a36;
  font-size: 2.4mm;
  line-height: 1.6;
}

.gift-voucher-contact {
  top: 84.210526%;
  color: #403a36;
  font-size: 2.4mm;
  line-height: 1.65;
}

@media screen {
  .gift-voucher-title {
    font-size: 7.333333cqw;
  }

  .gift-voucher-line {
    height: 6.428571cqw;
    padding: 0 0.47619cqw 0.47619cqw;
    border-bottom-width: 0.085714cqw;
  }

  .gift-voucher-line--amount {
    gap: 0.952381cqw;
  }

  .gift-voucher-label {
    margin-top: 0.47619cqw;
    font-size: 1.380952cqw;
  }

  .gift-voucher-recipient {
    font-size: 3.190476cqw;
  }

  .gift-voucher-recipient--long {
    font-size: 1.666667cqw;
  }

  .gift-voucher-recipient--very-long {
    font-size: 1.428571cqw;
  }

  .gift-voucher-amount {
    font-size: 2.619048cqw;
  }

  .gift-voucher-amount--long {
    font-size: 1.809524cqw;
  }

  .gift-voucher-currency {
    font-size: 1.809524cqw;
  }

  .gift-voucher-code {
    font-size: 1.809524cqw;
  }

  .gift-voucher-footer {
    font-size: 1.142857cqw;
  }

  .gift-voucher-footer p {
    margin-bottom: 0.47619cqw;
  }

  .gift-voucher-promise {
    font-size: 2.666667cqw;
  }

  .gift-voucher-website {
    font-size: 1.52381cqw;
  }

  .gift-voucher-terms {
    font-size: 1.142857cqw;
  }

  .gift-voucher-contact {
    font-size: 1.142857cqw;
  }
}
