.gift-card-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #fff9ef;
  backdrop-filter: none;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}
html.gift-card-open,
body.gift-card-open {
  overflow: hidden !important;
}
.gift-card-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gift-card-modal {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border: 0;
  background: #fff9ef;
  box-shadow: none;
  overflow: visible;
  color: #2c1b12;
  transform: translateY(8px);
  transition: transform 180ms ease;
  box-sizing: border-box;
}
.gift-card-overlay.active .gift-card-modal {
  transform: translateY(0);
}
.gift-card-modal-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}
.gift-card-modal-content {
  width: min(1100px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 26px 24px 28px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  box-sizing: border-box;
  overflow: visible;
  align-content: start;
}
.gift-card-back-btn {
  position: fixed;
  top: 16px;
  left: 18px;
  border: 1px solid rgba(125, 75, 24, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #2c1b12;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 1510;
  box-shadow: 0 6px 16px rgba(49, 30, 10, 0.12);
}
.gift-card-back-btn:hover,
.gift-card-back-btn:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(125, 75, 24, 0.34);
  outline: none;
}
.gift-card-modal-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b3b18;
  cursor: pointer;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  z-index: 1510;
}
.gift-card-modal-title-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 60px;
}
.gift-card-modal-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #29170f;
}
.gift-card-modal-copy {
  margin: 0;
  padding-right: 60px;
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-primary);
  opacity: 0.9;
}
.gift-card-strategy-block {
  position: relative;
  isolation: isolate;
  margin: 8px 60px 8px 0;
  padding: 20px 220px 20px 22px;
  min-height: 190px;
  border: 1px solid rgba(121, 73, 24, 0.22);
  border-left: 4px solid #8a4c1f;
  border-radius: 8px;
  background: linear-gradient(105deg, #fffaf1 0%, #fff7ea 62%, rgba(255, 247, 234, 0.72) 100%);
  box-shadow: 0 8px 22px rgba(93, 52, 16, 0.09);
  display: grid;
  align-content: center;
  gap: 7px;
  overflow: hidden;
}
.gift-card-arthur {
  position: absolute;
  z-index: 0;
  right: 14px;
  bottom: 8px;
  width: 190px;
  height: 160px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gift-card-arthur img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.gift-card-arthur:focus-visible {
  outline: 3px solid #0077cc;
  outline-offset: 3px;
  border-radius: 6px;
}
.gift-card-strategy-block > * {
  position: relative;
  z-index: 1;
}
.gift-card-strategy-block > .gift-card-arthur {
  position: absolute;
}
.gift-card-strategy-title {
  width: fit-content;
  margin: 0 0 5px;
  padding-bottom: 7px;
  border-bottom: 2px solid rgba(209, 40, 71, 0.72);
  font-size: 1.24rem;
  line-height: 1.25;
  font-weight: 900;
  color: #7a2135;
  letter-spacing: 0;
}
.gift-card-strategy-item {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-primary);
  opacity: 0.9;
}
.gift-card-strategy-item strong {
  color: var(--text-primary);
}
.gift-card-modal-redeem-link {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: inherit;
  line-height: inherit;
  color: #0077cc;
  font-weight: 800;
  text-decoration: none;
}
.gift-card-modal-redeem-inline {
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-primary);
  opacity: 0.9;
  white-space: normal;
}
.gift-card-modal-redeem-link:hover,
.gift-card-modal-redeem-link:focus-visible {
  color: #d12847;
  text-decoration: underline;
  outline: none;
}
.gift-card-modal-copy-prefix {
  display: inline;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #7a1456;
  background: linear-gradient(90deg, #ff2aa3 0%, #b10f76 18%, #5b2bc9 46%, #1166b8 76%, #0b8e7f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(17, 102, 184, 0.16), 0 0 6px rgba(177, 15, 118, 0.14);
}
@media (max-width: 700px) {
  .gift-card-modal-title-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
  }
  .gift-card-strategy-block {
    margin-right: 0;
    padding: 18px 18px 112px;
    min-height: 0;
  }
  .gift-card-arthur {
    right: 10px;
    bottom: 8px;
    width: 96px;
    height: 96px;
  }
  .gift-card-strategy-title {
    font-size: 1.12rem;
  }
}
.gift-card-payments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
  border: 0;
  background: transparent;
}
.gift-card-payments-title {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  font-weight: 900;
  color: rgba(58, 34, 15, 0.7);
}
.gift-card-payments-copy {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-primary);
  opacity: 0.9;
}
.gift-card-payments-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.gift-card-payment-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(58, 34, 15, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.gift-card-payment-method img {
  display: block;
  width: auto;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
}
.gift-card-payment-label {
  line-height: 1;
}
.gift-card-payment-more {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(58, 34, 15, 0.68);
}
.gift-card-product-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow: visible;
  padding: 4px 6px 4px 2px;
}
.gift-card-product-option {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 120ms ease, opacity 180ms ease, filter 180ms ease;
}
.gift-card-product-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(125, 75, 24, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 22px rgba(59, 33, 8, 0.24);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 45%), #e9dcc8;
}
.gift-card-product-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  z-index: 2;
}
.gift-card-product-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.gift-card-product-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: center;
  padding: 14px 16px;
  position: relative;
  border-radius: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.gift-card-product-meta--featured {
  padding-top: 34px;
}
.gift-card-product-name {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #3a220f;
  letter-spacing: 0;
}
.gift-card-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #a900a5;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
  white-space: nowrap;
  pointer-events: none;
}
.gift-card-product-price {
  font-weight: 900;
  color: #0077cc;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gift-card-product-regular-price {
  margin-right: 7px;
  color: #6b7280;
  font-size: 0.82em;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
}
.gift-card-product-discount {
  margin-left: 5px;
  color: #7b3f8c;
  border-bottom: 1px solid rgba(123, 63, 140, 0.55);
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}
.gift-card-product-blurb {
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--text-primary);
  opacity: 0.9;
  margin-top: 2px;
}
.gift-card-product-option:focus-visible {
  outline: none;
}
.gift-card-product-option.is-active {
  transform: translateY(-1px);
}
.gift-card-product-picker:has(.gift-card-product-option.is-active) .gift-card-product-option:not(.is-active) {
  opacity: 0.38;
  filter: grayscale(0.35);
}
.gift-card-product-option.is-active .gift-card-product-art {
  border-color: rgba(125, 75, 24, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 24px rgba(59, 33, 8, 0.26);
}
.gift-card-product-option.is-active .gift-card-product-meta {
  border-color: #7d4b18;
  box-shadow: 0 0 0 2px rgba(125, 75, 24, 0.16), 0 10px 22px rgba(49, 30, 10, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 235, 214, 0.98));
}
.gift-card-actions-anchor {
  display: none;
}
.gift-card-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  overflow: visible;
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  margin-top: 10px;
  border: 1px solid rgba(125, 75, 24, 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 240, 221, 0.97));
  box-shadow: 0 8px 16px rgba(49, 30, 10, 0.12);
  padding-left: 14px;
  padding-right: 14px;
}
.gift-card-modal-actions[hidden] {
  display: none !important;
}

.gift-card-checkout-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(44, 27, 18, 0.84);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gift-card-checkout-status::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.85);
  flex: 0 0 auto;
}

.gift-card-checkout-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.gift-card-checkout-status.is-error::before {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.9);
}

.gift-card-checkout-status.is-ready {
  color: #0f766e;
}

.gift-card-checkout-status.is-info {
  color: #8b4f14;
}

.gift-card-checkout-status.is-info::before {
  border-color: rgba(139, 79, 20, 0.22);
  background: rgba(139, 79, 20, 0.92);
}

.gift-card-continue-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #579957;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(74, 47, 18, 0.24);
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.gift-card-continue-btn:hover,
.gift-card-continue-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(74, 47, 18, 0.28);
  outline: none;
}

@media (max-width: 760px) {
  .gift-card-back-btn {
    top: 12px;
    left: 12px;
    padding: 7px 12px;
  }
  .gift-card-modal-content {
    padding: 18px 14px 18px;
  }
  .gift-card-product-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gift-card-payments {
    gap: 5px;
    padding: 4px 0 0;
  }
  .gift-card-payments-copy {
    font-size: 11px;
  }
  .gift-card-payment-method {
    font-size: 10px;
  }
  .gift-card-payment-method img {
    height: 16px;
  }
  .gift-card-payment-more {
    font-size: 10px;
    text-transform: none;
  }
  .gift-card-product-option {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gift-card-product-meta {
    padding: 12px;
  }
  .gift-card-product-name {
    font-size: 14px;
  }
}
