.site-popup {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  overflow: clip;
  color: var(--cream);
  background: var(--bronze);
}

.site-popup::backdrop {
  background: rgb(16 12 8 / 78%);
}

html:has(.site-popup[open]) {
  overflow: hidden;
}

.popup-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--cream);
  background: #2b2116;
  font: 28px/1 sans-serif;
  cursor: pointer;
}

.thanksgiving-popup img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
}

.gift-promotion {
  width: 750px;
  color: #f6e8b9;
  background: #533b1f;
}

.gift-promotion[open] {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
}

.gift-promotion > form {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
}

.gift-promotion > form .popup-close {
  position: static;
}

.gift-promotion-copy {
  align-self: center;
  padding: clamp(20px, 5dvh, 42px) clamp(16px, 4vw, 38px);
}

.gift-promotion-copy form {
  display: flex;
}

.gift-promotion-photo {
  background: url('../img/gift-card-popup-20261124-v1.webp?v=20261124-v1') center right / cover;
}

.gift-promotion h2,
.gift-notice h2 {
  margin: 0 0 8px;
  font: 600 clamp(20px, 3vw, 26px)/1.15 Georgia, serif;
  text-transform: uppercase;
}

.gift-promotion p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.gift-promotion-locations {
  margin: clamp(9px, 2.5dvh, 22px) 0;
}

.gift-promotion-locations div + div {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgb(246 232 185 / 45%);
}

.gift-promotion-locations dt {
  font: 14px/1.2 VeekooMedium, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gift-promotion-locations dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.gift-notice {
  width: 550px;
  padding: clamp(24px, 12dvh, 94px) clamp(14px, 5vw, 44px);
  color: #fff3c9;
  text-align: center;
}

.gift-notice h2 {
  margin-bottom: 16px;
  letter-spacing: .06em;
}

.gift-notice p {
  max-width: 30ch;
  margin: 0 auto clamp(14px, 4dvh, 30px);
  font-size: 18px;
  line-height: 1.35;
}

.gift-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(12px, 4vw, 40px);
}

.gift-notice .action {
  letter-spacing: 0;
  text-transform: none;
}

.gift-notice .action.secondary {
  color: inherit;
  text-shadow: none;
}

.gift-notice .action.secondary:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .gift-promotion[open] {
    grid-template-columns: 1fr;
    max-width: min(390px, calc(100vw - 24px));
  }

  .gift-promotion-photo {
    grid-row: 1;
    min-height: min(28dvh, clamp(0px, calc(100dvh - 340px), 220px));
    background-position: center 67%;
  }

  .gift-promotion-copy {
    padding-block: clamp(14px, 3dvh, 28px);
  }

  .gift-promotion h2 {
    padding-right: 18px;
  }
}

@media (max-height: 440px) {
  .gift-promotion-photo {
    min-height: 0;
  }

  .gift-promotion-copy {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 560px) and (max-height: 440px) {
  .gift-promotion-photo {
    display: none;
  }

  .gift-promotion h2 {
    padding-right: 44px;
  }
}

@media (max-width: 560px) and (max-height: 300px) {
  .gift-promotion-copy {
    padding: 6px 12px;
  }

  .gift-promotion h2 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .gift-promotion p,
  .gift-promotion-locations dd {
    font-size: 14px;
    line-height: 1.15;
  }

  .gift-promotion-locations {
    margin-block: 5px;
  }

  .gift-promotion-locations dd {
    margin-top: 2px;
  }

  .gift-promotion-locations div + div {
    margin-top: 4px;
    padding-top: 4px;
  }
}

@media (max-height: 300px) {
  .gift-notice {
    padding-block: 16px;
  }

  .gift-notice .action {
    padding-inline: 12px;
  }
}
