/* Gift certificates: landing page, homepage feature and responsive ordering flow. */

/* Keep the expanded desktop navigation on one visual line after adding the
   certificate link. The previous flexible gap consumed the whole center
   column and forced multi-word labels to wrap. */
@media (min-width: 821px) {
  .og-desktop-nav {
    align-items: center;
    gap: clamp(16px, 1.55vw, 22px);
  }

  .og-desktop-nav a {
    white-space: nowrap;
  }
}

.og-home-gift {
  width: var(--og-container);
  min-height: 480px;
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  overflow: hidden;
  border: 1px solid var(--og-line);
  background: var(--og-white);
}

.og-home-gift-copy {
  padding: clamp(52px, 6vw, 86px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.og-home-gift-copy h2 {
  max-width: 610px;
  margin: 0 0 22px;
  font-size: clamp(42px, 4vw, 58px);
}

.og-home-gift-copy > p:not(.og-eyebrow) {
  max-width: 590px;
  margin: 0;
  color: var(--og-muted);
  font-size: 16px;
  line-height: 1.72;
}

.og-home-gift-copy ul {
  margin: 29px 0 33px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  color: var(--og-muted);
  font-size: 12px;
  list-style: none;
}

.og-home-gift-copy li::before {
  margin-right: 8px;
  color: var(--og-berry);
  content: "—";
}

.og-home-gift-actions,
.og-gift-order-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.og-home-gift-visual,
.og-gift-hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(82, 37, 56, .92), rgba(50, 25, 36, .98)),
    var(--og-berry-dark);
}

.og-home-gift-visual::before,
.og-gift-hero-visual::before {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(255, 236, 214, .18);
  content: "";
}

.og-gift-preview {
  position: relative;
  z-index: 1;
  width: min(88%, 690px);
  margin: 0;
}

.og-gift-preview-frame {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: -6%;
  left: 8%;
  height: 18%;
  border-radius: 50%;
  background: rgba(17, 7, 11, .72);
  filter: blur(22px);
}

.og-gift-preview img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 26px 68px rgba(17, 7, 11, .28);
  transform: rotate(-2deg);
}

.og-gift-preview figcaption {
  position: absolute;
  right: 0;
  bottom: -38px;
  color: rgba(255, 255, 255, .68);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.og-home-gift .og-gift-preview {
  width: min(82%, 610px);
}

.og-gift-page {
  padding: 44px 0 0;
}

.og-gift-hero {
  width: var(--og-container);
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  overflow: hidden;
  border: 1px solid var(--og-line);
  background: var(--og-white);
}

.og-gift-hero-copy {
  min-width: 0;
  padding: clamp(52px, 4.6vw, 68px);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.og-gift-hero-copy h1 {
  max-width: 670px;
  margin: 0 0 24px;
  font-size: clamp(48px, 4.6vw, 68px);
}

.og-gift-lead {
  max-width: 610px;
  margin: 0 0 31px;
  color: var(--og-muted);
  font-size: 17px;
  line-height: 1.7;
}

.og-gift-hero-visual {
  padding: 76px clamp(32px, 5vw, 78px);
}

.og-gift-order-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.og-gift-order-form legend,
.og-gift-custom-amount > span {
  display: block;
  margin-bottom: 11px;
  color: var(--og-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.og-gift-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.og-gift-amounts input,
.og-gift-formats input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.og-gift-amounts label > span {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--og-line);
  color: var(--og-ink);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

@media (min-width: 1181px) {
  .og-gift-amounts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .og-gift-amounts label > span {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
  }
}

.og-gift-amounts input:checked + span {
  border-color: var(--og-berry-dark);
  background: var(--og-berry-dark);
  color: #fff;
}

.og-gift-amounts input:focus-visible + span,
.og-gift-formats input:focus-visible + span {
  outline: 2px solid var(--og-berry);
  outline-offset: 3px;
}

.og-gift-custom-amount {
  max-width: 220px;
  margin: 18px 0 21px;
  display: block;
}

.js .og-gift-custom-amount {
  display: none;
}

.js .og-gift-custom-amount.is-active {
  display: block;
}

.og-gift-custom-amount input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--og-line);
  border-radius: 0;
  background: transparent;
  color: var(--og-ink);
  font-size: 13px;
}

.og-gift-custom-error {
  display: none;
  margin-top: 7px;
  color: var(--og-berry);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.og-gift-custom-amount.has-feedback .og-gift-custom-error {
  display: block;
}

.og-gift-custom-amount.is-invalid input {
  border-color: var(--og-berry);
  outline: 1px solid var(--og-berry);
}

.og-gift-recipient-grid .og-gift-sender-field input,
.og-gift-recipient-grid .og-gift-message-field textarea {
  height: 65px;
  min-height: 65px;
}

.og-gift-custom-amount input:focus {
  border-color: var(--og-berry);
  outline: 1px solid var(--og-berry);
}

.og-gift-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 23px;
}

.og-gift-formats label > span {
  position: relative;
  padding-left: 22px;
  color: var(--og-muted);
  font-size: 12px;
}

.og-gift-formats label > span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--og-berry);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.og-gift-formats input:checked + span::after {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--og-berry);
  content: "";
  transform: translateY(-50%);
}

.og-gift-order-actions {
  margin-top: 27px;
}

.og-gift-order-actions .og-button {
  border: 0;
  cursor: pointer;
}

.og-gift-order-note {
  max-width: 520px;
  margin: 15px 0 0;
  color: var(--og-muted);
  font-size: 10px;
  line-height: 1.55;
}

.og-gift-assurance {
  width: var(--og-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid var(--og-line);
  border-bottom: 1px solid var(--og-line);
  border-left: 1px solid var(--og-line);
  background: var(--og-white);
}

.og-gift-assurance article {
  padding: 31px 34px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}

.og-gift-assurance article + article {
  border-left: 1px solid var(--og-line);
}

.og-gift-assurance article > span,
.og-gift-steps article > span {
  color: var(--og-berry);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.og-gift-assurance h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.og-gift-assurance p {
  margin: 0;
  color: var(--og-muted);
  font-size: 12px;
  line-height: 1.5;
}

.og-gift-how,
.og-gift-terms {
  padding-top: 112px;
  padding-bottom: 112px;
}

.og-gift-how {
  margin-top: 0;
}

.og-gift-section-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.og-gift-section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 4vw, 58px);
}

.og-gift-section-heading > p:not(.og-eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--og-muted);
  line-height: 1.7;
}

.og-gift-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.og-gift-steps article {
  min-height: 270px;
  padding: 34px;
  border: 1px solid var(--og-line);
  background: var(--og-white);
}

.og-gift-steps h3 {
  margin: 54px 0 13px;
  font-size: 27px;
}

.og-gift-steps p {
  margin: 0;
  color: var(--og-muted);
  font-size: 14px;
  line-height: 1.68;
}

.og-gift-terms {
  padding-top: 86px;
  border-top: 1px solid var(--og-line);
}

.og-gift-faq {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--og-line);
}

.og-gift-faq details {
  border-bottom: 1px solid var(--og-line);
}

.og-gift-faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  list-style: none;
}

.og-gift-faq summary::-webkit-details-marker {
  display: none;
}

.og-gift-faq summary span {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--og-berry);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 19px;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.og-gift-faq details[open] summary span {
  transform: translateY(-50%) rotate(45deg);
}

.og-gift-faq details > p {
  max-width: 740px;
  margin: -4px 0 25px;
  color: var(--og-muted);
  line-height: 1.7;
}

.og-gift-terms-note {
  max-width: 980px;
  margin: 46px auto 0;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-top: 1px solid var(--og-line);
  border-bottom: 1px solid var(--og-line);
}

.og-gift-terms-note p {
  max-width: 650px;
  margin: 0;
  color: var(--og-muted);
  line-height: 1.65;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .og-header-shell {
    grid-template-columns: 205px 1fr auto;
    gap: 18px;
  }

  .og-desktop-nav {
    gap: 16px;
  }

  .og-desktop-nav a {
    font-size: 11px;
  }

  .og-header-socials {
    display: none;
  }

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

  .og-gift-hero-copy {
    padding: 52px 44px;
  }

  .og-home-gift {
    grid-template-columns: 1fr .9fr;
  }

  .og-home-gift-copy {
    padding: 54px;
  }
}

@media (max-width: 820px) {
  .og-home-gift {
    min-height: 0;
    margin-bottom: 68px;
    grid-template-columns: 1fr;
  }

  .og-home-gift-copy {
    padding: 49px 34px 52px;
  }

  .og-home-gift-copy h2 {
    max-width: 650px;
    font-size: 43px;
  }

  .og-home-gift-visual {
    min-height: 460px;
    padding: 54px 34px;
  }

  .og-gift-page {
    padding-top: 26px;
  }

  .og-gift-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .og-gift-hero-copy {
    padding: 58px 44px 54px;
  }

  .og-gift-hero-copy h1 {
    max-width: 650px;
    font-size: 52px;
  }

  .og-gift-hero-visual {
    min-height: 510px;
  }

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

  .og-gift-assurance article + article {
    border-top: 1px solid var(--og-line);
    border-left: 0;
  }

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

  .og-gift-steps article {
    min-height: 220px;
  }

  .og-gift-terms-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .og-home-gift {
    margin-bottom: 54px;
  }

  .og-home-gift-copy {
    padding: 40px 21px 43px;
  }

  .og-home-gift-copy h2 {
    font-size: 36px;
  }

  .og-home-gift-copy > p:not(.og-eyebrow) {
    font-size: 14px;
  }

  .og-home-gift-copy ul {
    align-items: flex-start;
    flex-direction: column;
  }

  .og-home-gift-actions,
  .og-gift-order-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .og-home-gift-actions .og-button,
  .og-gift-order-actions .og-button {
    width: 100%;
  }

  .og-home-gift-actions .og-text-link,
  .og-gift-order-actions .og-text-link {
    align-self: center;
  }

  .og-home-gift-visual {
    min-height: 300px;
    padding: 45px 20px 58px;
  }

  .og-home-gift-visual::before,
  .og-gift-hero-visual::before {
    inset: 14px;
  }

  .og-gift-preview {
    width: 93%;
  }

  .og-gift-preview figcaption {
    right: 2px;
    bottom: -28px;
    font-size: 10px;
  }

  .og-gift-page {
    padding-top: 0;
  }

  .og-gift-hero {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .og-gift-hero-copy {
    padding: 47px 20px 44px;
  }

  .og-gift-hero-copy .og-eyebrow {
    margin-bottom: 17px;
  }

  .og-gift-hero-copy h1 {
    margin-bottom: 19px;
    font-size: 39px;
    line-height: 1.04;
  }

  .og-gift-lead {
    margin-bottom: 27px;
    font-size: 14px;
    line-height: 1.62;
  }

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

  .og-gift-amounts label > span {
    width: 100%;
    min-width: 0;
  }

  .og-gift-custom-amount {
    max-width: none;
  }

  .og-gift-formats {
    align-items: flex-start;
    flex-direction: column;
  }

  .og-gift-order-actions {
    margin-top: 25px;
  }

  .og-gift-order-note {
    text-align: center;
  }

  .og-gift-hero-visual {
    min-height: 330px;
    padding: 49px 20px 61px;
  }

  .og-gift-assurance {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .og-gift-assurance article {
    padding: 24px 20px;
  }

  .og-gift-how,
  .og-gift-terms {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .og-gift-section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .og-gift-section-heading h2 {
    font-size: 37px;
  }

  .og-gift-section-heading > p:not(.og-eyebrow) {
    font-size: 14px;
  }

  .og-gift-steps article {
    min-height: 0;
    padding: 27px 23px 29px;
  }

  .og-gift-steps h3 {
    margin-top: 34px;
    font-size: 24px;
  }

  .og-gift-faq summary {
    padding: 21px 38px 21px 0;
    font-size: 18px;
    line-height: 1.3;
  }

  .og-gift-faq details > p {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .og-gift-terms-note {
    margin-top: 38px;
    padding: 27px 0;
  }

  .og-gift-terms-note p {
    font-size: 14px;
  }

  .og-gift-terms-note .og-button {
    width: 100%;
  }
}
