body:has(.gift-page) {
  background: #f8f5ef;
}

.gift-page {
  --gift-accent: #963528;
  --gift-accent-soft: #fbefeb;
  --gift-ink: #302922;
  --gift-muted: #6d655d;
  --gift-gold: #a47c3d;
  max-width: 1220px;
  margin: 28px auto 56px;
  padding: 0 24px;
  color: var(--gift-ink);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  line-height: 1.6;
}

.gift-page--tp2 {
  --gift-accent: #246f79;
  --gift-accent-soft: #eaf5f4;
}

.gift-page *, .gift-page *::before, .gift-page *::after { box-sizing: border-box; }
.gift-page h1, .gift-page h2, .gift-treatment legend {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1.2;
}
.gift-page h2 { margin: 0; font-size: 1.65rem; color: var(--gift-ink); }
.gift-page p { margin: 0 0 12px; }
.gift-page [hidden] { display: none !important; }
.gift-page a { color: var(--gift-accent); }
.gift-page a:focus-visible, .gift-page button:focus-visible {
  outline: 3px solid var(--gift-accent);
  outline-offset: 5px;
}

.gift-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid #e7ddce;
  border-radius: 24px;
  background: #fffcf7;
}
.gift-hero-copy { padding: clamp(24px, 4vw, 48px); }
.gift-page .gift-eyebrow { margin-bottom: 18px; color: var(--gift-accent); font-size: .73rem; font-weight: bold; letter-spacing: .15em; text-transform: uppercase; }
.gift-page h1 { margin: 0 0 20px; font-size: clamp(2.15rem, 3.8vw, 3.3rem); color: var(--gift-accent); }
.gift-hero-intro { max-width: 380px; color: var(--gift-muted); font-size: 1.06rem; }
.gift-store { font-weight: bold; }
.gift-page .gift-delivery { display: flex; align-items: baseline; gap: 9px; margin: 18px 0 22px; font-size: .88rem; color: var(--gift-muted); }
.gift-delivery span { color: var(--gift-accent); }
.gift-start { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--gift-gold); }
.gift-hero-image { position: relative; min-height: 360px; }
.gift-hero-image img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 59% center; }
.gift-image-caption { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 10px 16px; border: 1px solid #ffffff60; border-radius: 8px; background: #352012b8; color: white; font-family: Georgia, serif; font-size: 1.15rem; text-align: center; }

.gift-steps { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; padding: 0 8px; }
.gift-steps a { display: flex; align-items: center; gap: 10px; font-size: .9rem; text-decoration: none; color: var(--gift-muted); }
.gift-steps a:hover { color: var(--gift-accent); }
.gift-steps span { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #d6c6af; border-radius: 50%; font-weight: bold; color: var(--gift-accent); }
.gift-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.gift-form-content { display: grid; gap: 24px; min-width: 0; }
.gift-panel { min-width: 0; padding: 30px; border: 1px solid #e8e1d6; border-radius: 18px; background: #fff; }
.gift-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.gift-step-number { color: var(--gift-gold); font-family: Georgia, serif; font-size: 1.6rem; }
.gift-page .gift-section-intro { margin-bottom: 24px; color: var(--gift-muted); font-size: .93rem; }
#gift-choices, #gift-personalise, #gift-details { scroll-margin-top: 100px; }

.gift-treatment { min-width: 0; margin: 0 0 28px; padding: 0 0 28px; border: 0; border-bottom: 1px solid #eee7dc; }
.gift-treatment:last-child { margin: 0; padding: 0; border-bottom: 0; }
.gift-treatment legend { float: none; width: auto; margin: 0 0 10px; padding: 0; font-size: 1.35rem; color: var(--gift-ink); }
.gift-treatment-description { font-size: .93rem; color: var(--gift-muted); }
.gift-page .gift-validity { display: inline-block; margin: 0 0 14px; padding: 3px 10px; border-radius: 20px; background: #f5f0e7; color: #75603d; font-size: .75rem; }
.gift-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gift-options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gift-page .gift-format-title { margin: 20px 0 10px; color: var(--gift-muted); font-family: inherit; font-size: .85rem; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; }
.gift-option { position: relative; display: block; margin: 0; cursor: pointer; }
.gift-option input { position: absolute; top: 12px; left: 12px; width: 1px; height: 1px; opacity: 0; }
.gift-option-body { display: flex; flex-direction: column; min-height: 128px; padding: 14px; border: 1px solid #ded8ce; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.gift-option:hover .gift-option-body { border-color: var(--gift-accent); }
.gift-option input:checked + .gift-option-body { border: 2px solid var(--gift-accent); padding: 13px; background: var(--gift-accent-soft); }
.gift-option input:focus-visible + .gift-option-body { outline: 3px solid var(--gift-accent); outline-offset: 3px; }
.gift-option input[aria-invalid="true"] + .gift-option-body { border-color: #b42318; }
.gift-option-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gift-option-format { color: var(--gift-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.gift-option-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #d0c7ba; border-radius: 50%; color: transparent; font-size: .75rem; line-height: 1; }
.gift-option input:checked + .gift-option-body .gift-option-check { border-color: var(--gift-accent); background: var(--gift-accent); color: white; }
.gift-option-duration { margin-top: 7px; font-size: 1.05rem; font-weight: bold; }
.gift-option-care { margin: 3px 0; color: var(--gift-muted); font-size: .75rem; line-height: 1.3; }
.gift-option-price { margin-top: 3px; color: var(--gift-accent); font-size: 1.25rem; font-weight: bold; }

.gift-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 16px; }
.gift-field { min-width: 0; }
.gift-field label { display: block; margin-bottom: 6px; font-size: .87rem; font-weight: bold; }
.gift-field label span { color: var(--gift-accent); }
.gift-field .form-control { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #d8d1c6; border-radius: 9px; background: #fffefa; color: var(--gift-ink); font-family: inherit; font-size: 1rem; line-height: 1.5; }
.gift-field .form-control:focus { border-color: var(--gift-accent); outline: 2px solid var(--gift-accent); outline-offset: 2px; box-shadow: none; }
.gift-field .form-control[aria-invalid="true"] { border: 2px solid #b42318; }
.gift-page .gift-help { margin: 8px 0 0; color: var(--gift-muted); font-size: .8rem; }
.gift-page .gift-field-error, .gift-page .gift-submit-error { margin: 8px 0; color: #b42318; font-size: .87rem; }

.gift-preview { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; min-width: 0; }
.gift-preview-sticky { position: sticky; top: 100px; }
.gift-preview h2 { margin: 4px 0 18px; font-size: 1.4rem; }
.gift-voucher { display: block; width: 100%; height: auto; aspect-ratio: 210 / 92; border-radius: 4px; background: #fffaf1; box-shadow: 0 8px 24px #59401f1a; }
.gift-preview-enlarge { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px 12px; border: 1px solid #d8d1c6; border-radius: 8px; background: #fff; color: var(--gift-accent); font-family: inherit; font-size: .88rem; cursor: pointer; }
.gift-preview-enlarge:hover { border-color: var(--gift-accent); background: var(--gift-accent-soft); }
.gift-page .gift-preview-validity { margin: 12px 0 0; color: var(--gift-accent); font-size: .83rem; text-align: center; }
.gift-preview-note { text-align: center; }
.gift-preview-dialog { position: fixed; inset: 0; width: min(1060px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; border: 1px solid #d8d1c6; border-radius: 16px; background: #f8f5ef; color: var(--gift-ink); }
.gift-preview-dialog::backdrop { background: #201a14b3; }
.gift-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gift-dialog-header h2 { margin: 0; text-align: left; }
.gift-dialog-close { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #d8d1c6; border-radius: 8px; background: white; color: var(--gift-accent); font-family: inherit; cursor: pointer; }
.gift-preview-dialog .gift-help { margin-top: 16px; text-align: center; }
.gift-checkout { grid-column: 1; }
.gift-checkout h2 { margin-bottom: 20px; }
.gift-summary { margin: 0; font-size: .9rem; }
.gift-summary > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0ebe3; }
.gift-summary dt { color: var(--gift-muted); font-weight: normal; }
.gift-summary dd { margin: 0; overflow-wrap: anywhere; }
.gift-summary-option, .gift-summary small { display: block; }
.gift-summary small { margin-top: 4px; color: var(--gift-muted); }
.gift-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0; }
.gift-total strong { color: var(--gift-accent); font-size: 1.8rem; }
.gift-submit { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 54px; padding: 14px 20px; border: 2px solid var(--gift-accent); border-radius: 10px; background: var(--gift-accent); color: white; font-family: inherit; font-size: 1rem; font-weight: bold; cursor: pointer; }
.gift-submit:hover { background: var(--gift-accent-soft); color: var(--gift-accent); }
.gift-checkout-note { text-align: center; }
.gift-empty { margin-top: 24px; }
.gift-empty h2 { margin-bottom: 12px; }

@media (max-width: 1000px) {
  .gift-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
  .gift-panel { padding: 24px; }
  .gift-option-body { padding: 12px; }
  .gift-option input:checked + .gift-option-body { padding: 11px; }
  .gift-steps a { font-size: .82rem; }
}

@media (max-width: 800px) {
  .gift-page { margin-top: 20px; padding: 0 16px; }
  .gift-hero { grid-template-columns: 1fr; }
  .gift-hero-image { min-height: 220px; }
  .gift-hero-image img { object-position: center 45%; }
  .gift-hero-copy { padding: 28px; }
  .gift-hero h1 { max-width: 520px; }
  .gift-steps { gap: 10px; padding: 0; }
  .gift-steps a { flex-direction: column; align-items: flex-start; flex: 1; gap: 8px; }
  .gift-layout { display: flex; flex-direction: column; gap: 20px; }
  .gift-form-content { display: contents; }
  .gift-layout > *, .gift-form-content > * { width: 100%; }
  #gift-choices { order: 0; }
  .gift-personalise { order: 1; }
  .gift-preview { order: 2; }
  .gift-details { order: 3; }
  .gift-checkout { order: 4; }
  .gift-preview-sticky { position: static; max-width: 420px; margin: auto; }
  .gift-preview h2 { text-align: center; }
}

@media (max-width: 480px) {
  .gift-page { padding: 0 12px; }
  .gift-hero-copy { padding: 24px; }
  .gift-hero h1 { font-size: 2.1rem; }
  .gift-panel { padding: 22px 16px; }
  .gift-page h2 { font-size: 1.4rem; }
  .gift-options { gap: 7px; }
  .gift-option-body { min-height: 122px; padding: 11px 9px; }
  .gift-option input:checked + .gift-option-body { padding: 10px 8px; }
  .gift-option-format { font-size: .69rem; }
  .gift-option-price { font-size: 1.1rem; }
  .gift-option-check { width: 16px; height: 16px; }
  .gift-fields { grid-template-columns: 1fr; gap: 16px; }
  .gift-summary > div { grid-template-columns: 85px minmax(0, 1fr); gap: 12px; }
  .gift-total { font-size: .9rem; }
  .gift-submit { gap: 10px; font-size: .95rem; }
  .gift-preview-dialog { width: calc(100% - 16px); padding: 16px 10px; }
  .gift-dialog-header { gap: 8px; }
  .gift-dialog-header h2 { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-option-body { transition: none; }
}
