/* Strati gift cards: the purchase page, the card view and the thank-you page.
   Built on the site's tokens in site.css (night, paper, cream, line). */

.gift-page {
  padding: 210px 24px 110px;
}

.gift-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.gift-intro {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.gift-intro h1 {
  max-width: none;
  margin: 0;
  color: #f5f2ed;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 1.02;
}

.gift-eyebrow {
  margin: 0 0 18px;
  color: var(--cream);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gift-rule {
  width: min(360px, 60vw);
  height: 1px;
  margin: 30px 0 24px;
  background: rgba(247, 241, 233, 0.28);
}

.gift-lede {
  margin: 0;
  color: rgba(247, 241, 233, 0.82);
  font-size: 1.06rem;
}

.gift-disclosure {
  margin: 16px 0 0;
  color: var(--cream);
  font-size: 0.95rem;
}

.gift-anchor {
  margin-top: 22px;
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.gift-step-title {
  color: #f5f2ed;
  font-weight: 500;
}

.gift-card__minimum {
  margin: 0 0 12px;
  color: rgba(247, 241, 233, 0.7);
  font-size: 0.72rem;
  text-align: center;
}

.gift-notice {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  color: rgba(247, 241, 233, 0.86);
  font-size: 0.92rem;
  text-align: center;
}

/* ---- layout: preview beside the form ---- */

.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

/* The card preview stays in view beside the form while the buyer fills it in,
   and stops at the end of the form (the bottom of .gift-layout). Sticky needs
   the page itself to scroll: site.css hides sideways overflow on the body,
   which turns the body into its own scroll box, so this page clips instead. */
@supports (overflow-x: clip) {
  body.gift-shop {
    overflow-x: clip;
  }
}

.gift-preview-col {
  position: sticky;
  top: 140px;
}

/* Keep the whole card on screen on shorter laptop screens (side-by-side layout only). */
@media (min-width: 1181px) {
  .gift-preview-col .gift-card {
    max-width: min(440px, calc((100vh - 190px) * 0.8));
  }
}

.gift-preview-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---- the card ---- */

.gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  padding: 30px 30px 26px;
  background: #0f0f0f;
  border: 1px solid rgba(235, 208, 181, 0.22);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  color: var(--paper);
}

.gift-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.gift-card__logo {
  width: 112px;
  height: auto;
  margin-top: 6px;
}

.gift-card__value {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.gift-card__amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 0.9;
}

.gift-card__label,
.gift-card__small {
  color: var(--cream);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gift-card__middle {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px 6px;
  text-align: center;
}

.gift-card__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.gift-card__message {
  max-width: 30ch;
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.4;
  color: rgba(247, 241, 233, 0.9);
  overflow-wrap: anywhere;
}

.gift-card__message:empty {
  display: none;
}

.gift-card__lines {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.gift-card__lines span {
  display: block;
  height: 1px;
  background: var(--cream);
  transition: opacity 300ms ease;
}

.gift-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.gift-card__code {
  display: grid;
  gap: 4px;
}

.gift-card__code strong {
  color: var(--paper);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

/* ---- the form ---- */

.gift-form {
  display: grid;
  gap: 44px;
}

.gift-step {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.gift-step legend,
.gift-step-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
  padding: 0;
  color: #f5f2ed;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
}

.gift-step-number {
  color: var(--cream);
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

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

.gift-option {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(247, 241, 233, 0.03);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.gift-option:hover {
  border-color: rgba(235, 208, 181, 0.55);
}

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

.gift-option:has(input:checked) {
  border-color: var(--cream);
  background: rgba(235, 208, 181, 0.08);
}

.gift-option:has(input:focus-visible) {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.gift-option__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1;
}

.gift-option__text {
  display: grid;
  gap: 2px;
}

.gift-option__label {
  color: #f5f2ed;
  font-size: 0.98rem;
}

.gift-option__desc {
  color: rgba(247, 241, 233, 0.62);
  font-size: 0.84rem;
  line-height: 1.45;
}

.gift-custom {
  display: grid;
  gap: 7px;
  padding: 4px 0 0;
}

.gift-custom[hidden] {
  display: none;
}

.gift-amount {
  position: relative;
}

.gift-amount span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(247, 241, 233, 0.7);
}

.gift-amount input {
  padding-left: 30px !important;
}

/* A problem with one field, shown right under it (same colours as the form's other errors). */
.gift-field-error {
  margin: 2px 0 0;
  color: #f0a58f;
  font-size: 0.88rem;
}

.gift-field-error:empty {
  display: none;
}

.gift-form .field input[aria-invalid="true"] {
  border-color: #d98c75;
}

.gift-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gift-form .field label {
  font-size: 0.86rem;
}

.gift-form .field input,
.gift-form .field textarea {
  min-height: 48px;
  font-size: 1rem;
}

.gift-form .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #1c1c1c;
  color: var(--paper);
  padding: 12px 13px;
  font: inherit;
  font-size: 1rem;
}

.gift-form .field input:focus,
.gift-form .field select:focus,
.gift-form .field textarea:focus {
  outline: none;
  border-color: var(--cream);
}

.gift-form .field textarea {
  min-height: 110px;
}

.gift-counter {
  justify-self: end;
  color: var(--muted);
  font-size: 0.8rem;
}

.gift-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.gift-delivery .gift-option {
  grid-template-columns: 1fr;
  min-height: 56px;
}

[data-gift-quick-dates][hidden],
[data-gift-date][hidden] {
  display: none;
}

.gift-quick-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.gift-chip:hover,
.gift-chip[aria-pressed="true"] {
  border-color: var(--cream);
  color: var(--cream);
}

.gift-summary {
  display: grid;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.gift-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gift-total span {
  color: rgba(247, 241, 233, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-total strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.gift-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(247, 241, 233, 0.82);
  font-size: 0.9rem;
  cursor: pointer;
}

.gift-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #ebd0b5;
}

.gift-check a,
.gift-small a,
.gift-faq a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gift-submit {
  width: 100%;
  min-height: 54px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.gift-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.gift-error {
  min-height: 1.4em;
  margin: 0;
  color: #f0a58f;
  font-size: 0.92rem;
}

.gift-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- how it works and good to know ---- */

.gift-section {
  scroll-margin-top: 140px;
  margin-top: 110px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-section h2 {
  margin: 0 0 40px;
  color: #f5f2ed;
  font-size: clamp(2rem, 3.6vw, 3rem);
  text-align: center;
}

.gift-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-steps li {
  display: grid;
  gap: 10px;
  color: rgba(247, 241, 233, 0.78);
}

.gift-steps b {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.gift-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
}

.gift-faq dt {
  margin: 0 0 6px;
  color: #f5f2ed;
  font-weight: 500;
}

.gift-faq dd {
  margin: 0;
  color: rgba(247, 241, 233, 0.72);
  font-size: 0.95rem;
}

/* ---- the card view and thank-you pages ---- */

.gift-view {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.gift-details {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0 0 28px;
}

.gift-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 3px;
}

.gift-details dd {
  margin: 0;
  color: #f5f2ed;
  overflow-wrap: anywhere;
}

.gift-details dd.gift-code-value {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 34px;
}

.gift-actions .button {
  min-height: 48px;
  padding: 12px 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.gift-redeem {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid var(--line);
}

.gift-redeem h2 {
  margin: 0;
  color: #f5f2ed;
  font-size: 1.8rem;
}

.gift-redeem ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: rgba(247, 241, 233, 0.82);
}

.gift-status {
  padding: 40px 0;
  color: rgba(247, 241, 233, 0.82);
  text-align: center;
}

.gift-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .gift-page {
    padding: 150px 20px 82px;
  }

  .gift-layout,
  .gift-view {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .gift-preview-col {
    position: static;
  }

  .gift-card {
    max-width: 380px;
  }
}

@media (max-width: 720px) {
  .gift-intro {
    margin-bottom: 44px;
  }

  .gift-card {
    max-width: 340px;
    padding: 24px 22px 22px;
  }

  .gift-card__logo {
    width: 92px;
  }

  .gift-card__label {
    letter-spacing: 0.16em;
  }

  .gift-fields,
  .gift-faq,
  .gift-steps {
    grid-template-columns: 1fr;
  }

  .gift-option {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .gift-option__value {
    font-size: 1.6rem;
  }

  .gift-details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gift-details dd {
    margin-bottom: 10px;
  }

  .gift-section {
    margin-top: 80px;
    padding-top: 48px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .gift-actions,
  .gift-intro .gift-lede {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #161616;
  }

  .gift-page {
    padding: 0;
  }

  .gift-view {
    grid-template-columns: 1fr;
  }

  .gift-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .gift-details dd,
  .gift-redeem ol,
  .gift-redeem h2,
  .gift-intro h1 {
    color: #161616 !important;
  }
}

/* Black Friday gift card offer (23-30 Nov 2026), shown only while it runs. */
.gift-offer {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--cream);
  background: rgba(235, 208, 181, 0.06);
}

.gift-offer[hidden] {
  display: none;
}

.gift-offer__eyebrow {
  margin: 0;
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gift-offer__lead {
  margin: 0;
  color: #f5f2ed;
  font-size: 0.98rem;
  line-height: 1.55;
}

.gift-offer__result {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
}

.gift-offer__result:empty,
.gift-offer__summary[hidden] {
  display: none;
}

.gift-offer__terms {
  margin: 0;
  color: rgba(247, 241, 233, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.gift-offer__terms a {
  color: inherit;
}

.gift-offer__summary {
  margin: 6px 0 0;
  color: rgba(247, 241, 233, 0.72);
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .gift-offer {
    padding: 16px;
  }
}
