.gift-dialog {
  width: min(660px, calc(100% - 48px));
}

.gift-form fieldset {
  margin-bottom: 18px;
}

.gift-form legend {
  color: var(--gold);
  font-weight: bold;
}

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

.gift-amounts label {
  position: relative;
  cursor: pointer;
}

.gift-amounts input {
  position: absolute;
  opacity: 0;
}

.gift-amounts span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.gift-amounts input:checked + span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
  font-weight: bold;
}

.gift-amounts input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gift-custom:not([hidden]) {
  display: block;
  margin-top: 10px;
}

.gift-wish {
  grid-column: 1 / -1;
}

.gift-optional,
.gift-offer {
  color: var(--muted);
  font-size: .875rem;
}

.gift-consents .booking-choice {
  margin: 4px 0 8px;
}

.gift-consents a {
  color: var(--gold);
  text-decoration: underline;
}

.gift-offer {
  margin: 0 0 12px 1.8em;
}

.gift-status {
  margin: 8px 0 0;
  color: var(--gold);
}

.gift-status:empty {
  margin: 0;
}

.faq-item {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(125deg, #533424, var(--deep));
  font-size: 1rem;
}

.faq-item > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 24px);
  border: 0;
  border-radius: inherit;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font: 1.4rem/1 Georgia, serif;
}

.faq-item[open] > summary {
  margin-bottom: 0;
}

.faq-item[open] > summary::after {
  content: "−";
  content: "−" / "";
}

.faq-answer {
  padding: 2px clamp(14px, 3vw, 24px) 16px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .23s ease, opacity .2s ease, content-visibility .23s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }

  @supports not selector(details::details-content) {
    .faq-item[open] > .faq-answer {
      animation: faq-appear .2s ease both;
    }
  }

  @keyframes faq-appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 480px) {
  .gift-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .gift-dialog {
    width: 100%;
  }
}
