/* ── Gift card chooser modal ──────────────────────────────────────────────
   Opened by any link ending in #gift-cards (the "Gift Cards" nav item).
   Shared between WordPress and the Shopify theme: colours are hard-coded
   so it looks the same on both. Keep the two copies identical.
   ──────────────────────────────────────────────────────────────────────── */

.wfs-gift-cards {
  position: fixed;
  inset: 0;
  z-index: 9600; /* above the Pizza Club popup (9500), below Complianz (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wfs-gift-cards.is-visible { opacity: 1; }
.wfs-gift-cards[hidden] { display: none !important; }

html.wfs-gift-cards-open,
html.wfs-gift-cards-open body { overflow: hidden; }

.wfs-gift-cards__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.wfs-gift-cards__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #242327;
  color: #f9f8f6;
  border-top: 3px solid #ff4d00;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.wfs-gift-cards.is-visible .wfs-gift-cards__dialog { transform: none; }

.wfs-gift-cards__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #f9f8f6;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0.2rem 0.4rem;
  transition: opacity 0.2s;
}

.wfs-gift-cards__close:hover,
.wfs-gift-cards__close:focus-visible { opacity: 1; outline: 2px solid #ff4d00; outline-offset: 2px; }

.wfs-gift-cards__eyebrow {
  color: #ff4d00;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.wfs-gift-cards__rule {
  border: none;
  border-bottom: 3px solid #ff4d00;
  width: 3rem;
  margin: 0.35rem auto 0;
}

.wfs-gift-cards__headline {
  font-family: var(--font-headline, var(--font-heading--family, inherit));
  font-size: clamp(2.5rem, 8vw, 4rem);
  text-transform: uppercase;
  line-height: 0.9;
  color: #f9f8f6;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.wfs-gift-cards__intro {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 auto 1.25rem;
  max-width: 44ch;
  opacity: 0.85;
}

.wfs-gift-cards__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 1.5rem);
}

.wfs-gift-cards__option { margin: 0; }

.wfs-gift-cards__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #f9f8f6;
  text-decoration: none;
  background: #2f2e33;
  border: 1px solid rgba(249, 248, 246, 0.12);
  transition: border-color 0.2s, transform 0.2s;
}

.wfs-gift-cards__link:hover,
.wfs-gift-cards__link:focus-visible {
  border-color: #ff4d00;
  transform: translateY(-2px);
  outline: none;
}

.wfs-gift-cards__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 1 / 1;
  max-height: 36svh; /* keeps both Buy buttons on screen on short laptops */
  object-fit: cover;
  margin: 0;
}

.wfs-gift-cards__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  padding: 1rem 0.75rem 1.1rem;
}

.wfs-gift-cards__title {
  font-family: var(--font-headline, var(--font-heading--family, inherit));
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: #f9f8f6;
}

.wfs-gift-cards__desc {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  opacity: 0.8;
}

.wfs-gift-cards__cta {
  display: inline-block;
  align-self: center;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  background: #ff4d00;
  color: #f9f8f6;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.wfs-gift-cards__desc + .wfs-gift-cards__cta { margin-top: 0.75rem; }

.wfs-gift-cards__link:hover .wfs-gift-cards__cta,
.wfs-gift-cards__link:focus-visible .wfs-gift-cards__cta { background: #ff6f31; }

/* Narrow phones: stack the two options, image on the left */
@media (max-width: 480px) {
  .wfs-gift-cards__options { grid-template-columns: 1fr; }
  .wfs-gift-cards__link { flex-direction: row; align-items: center; text-align: left; }
  .wfs-gift-cards__img { width: 40%; aspect-ratio: 1 / 1; max-height: none; flex-shrink: 0; align-self: center; }
  .wfs-gift-cards__body { justify-content: center; padding: 0.75rem; }
  .wfs-gift-cards__desc { font-size: 0.8rem; }
  .wfs-gift-cards__cta { align-self: flex-start; white-space: nowrap; font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .wfs-gift-cards__desc + .wfs-gift-cards__cta { margin-top: 0.5rem; }
  .wfs-gift-cards__intro { font-size: 0.9rem; margin-bottom: 1rem; }
}
