/* Gift Card Page — single fixed background for hero + content */
body.page-gift-card {
  --gift-card-panel-gap: 2.25rem;
  --gift-card-section-gap: calc(var(--gift-card-panel-gap) * 2);
  background-color: #1a1a1a;
}

body.page-gift-card::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url('/assets/images/gift-card.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.page-gift-card #main {
  padding-top: 0;
  background: transparent;
}

.gift-card-page {
  position: relative;
}

/* Hero — shares page background */
.gift-card-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: var(--gift-card-section-gap);
  text-align: center;
  display: flex;
  align-items: center;
  background: transparent;
}

/* hero-flush pulls the section under the fixed header; pad by 2×header + 2×panel-gap */
body.hero-flush.page-gift-card .gift-card-hero {
  margin-top: calc(-1 * var(--header-offset));
  padding-top: calc((var(--header-offset) * 2) + var(--gift-card-section-gap));
}

.gift-card-hero .container {
  position: relative;
  z-index: 1;
}

.gift-card-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gift-card-hero .hero-text-panel {
  background: rgba(42, 14, 18, 0.38);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border-radius: 24px;
  padding: 1.5rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: min(920px, 100%);
  box-shadow: none;
  border: 1px solid rgba(255, 190, 190, 0.2);
}

.gift-card-hero .hero-title__gift-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.gift-card-hero .gift-box-glyph {
  display: block;
  width: clamp(5rem, 12vw, 7.5rem);
  height: clamp(5rem, 12vw, 7.5rem);
}

.gift-card-hero .hero-text-panel__copy {
  min-width: 0;
  text-align: center;
}

.gift-card-hero .hero-text-panel .hero-title,
.gift-card-hero .hero-text-panel h1.hero-title {
  display: block;
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.65rem 0;
  color: #f4ebc9;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

.gift-card-hero .hero-text-panel .hero-subtitle,
.gift-card-hero .hero-text-panel p.hero-subtitle {
  font-family: 'Source Serif Pro', 'Times New Roman', Times, serif;
  font-size: clamp(20.8px, 2.6vw, 26px);
  font-weight: 400;
  color: #f8f4e6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .gift-card-hero .hero-text-panel {
    padding: 1.15rem 1.35rem;
    gap: 1rem;
  }

  .gift-card-hero .gift-box-glyph {
    width: clamp(4.25rem, 16vw, 6rem);
    height: clamp(4.25rem, 16vw, 6rem);
  }

  .gift-card-hero .hero-text-panel .hero-title,
  .gift-card-hero .hero-text-panel h1.hero-title {
    font-size: clamp(26px, 5vw, 38px);
  }

  .gift-card-hero .hero-text-panel .hero-subtitle,
  .gift-card-hero .hero-text-panel p.hero-subtitle {
    font-size: clamp(17.7px, 2.53vw, 22.8px);
  }
}

@media (max-width: 600px) {
  body.page-gift-card {
    --gift-card-panel-gap: 1.75rem;
  }

}

.gift-card-page__body {
  position: relative;
  z-index: 1;
  padding: 0 16px 48px;
}

.gift-card-page > .gift-card-explainer,
.gift-card-page > .gift-card-page__body {
  position: relative;
  z-index: 1;
}

.gift-card-explainer {
  position: relative;
  width: 100%;
  margin: 0 0 var(--gift-card-section-gap);
  padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: rgba(8, 10, 12, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.gift-card-explainer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 58%,
    transparent 100%
  );
  pointer-events: none;
}

.gift-card-explainer__inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gift-card-explainer__prose {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  text-align: left;
}

.gift-card-explainer__item {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.85rem 1.15rem;
  align-items: start;
}

.gift-card-explainer__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(212, 175, 55, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 78% 82%, rgba(45, 106, 90, 0.35) 0%, transparent 52%),
    linear-gradient(155deg, rgba(36, 82, 68, 0.92) 0%, rgba(18, 42, 34, 0.96) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  box-shadow:
    0 8px 22px rgba(4, 14, 11, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 10px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gift-card-explainer__glyph svg {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.gift-card-explainer__glyph--heart {
  border-color: rgba(251, 146, 160, 0.62);
  box-shadow:
    0 8px 22px rgba(4, 14, 11, 0.42),
    0 0 18px rgba(239, 68, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 10px rgba(0, 0, 0, 0.28);
}

.gift-card-explainer__glyph--info {
  border-color: rgba(126, 196, 178, 0.55);
  box-shadow:
    0 8px 22px rgba(4, 14, 11, 0.42),
    0 0 16px rgba(77, 182, 172, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 10px rgba(0, 0, 0, 0.28);
}

.gift-card-explainer__inner::before {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d4af37, #f4ebc9, #d4af37, transparent);
  opacity: 0.85;
}

.gift-card-explainer__prose p {
  margin: 0;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.78;
  color: rgba(250, 248, 243, 0.9);
  letter-spacing: 0.015em;
}

.gift-card-explainer__prose p:first-of-type {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.65;
  color: #f4ebc9;
  font-weight: 500;
}

.gift-card-explainer__prose p:last-child {
  font-size: 1.05rem;
  color: rgba(244, 235, 201, 0.88);
}

@media (max-width: 600px) {
  .gift-card-explainer {
    padding: 1.85rem 1.15rem;
  }

  .gift-card-explainer__inner::before {
    width: 56px;
    margin-bottom: 1rem;
  }

  .gift-card-explainer__item {
    grid-template-columns: 3.25rem 1fr;
    gap: 0.75rem 0.95rem;
  }

  .gift-card-explainer__glyph {
    width: 3.25rem;
    height: 3.25rem;
  }

  .gift-card-explainer__glyph svg {
    width: 2rem;
    height: 2rem;
  }

  .gift-card-explainer__prose p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .gift-card-explainer__prose p:first-of-type {
    font-size: 1.08rem;
  }

  .gift-card-explainer__prose p:last-child {
    font-size: 0.98rem;
  }
}

.gift-card-section h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.25rem;
  color: #163329;
  margin: 0 0 0.5rem;
}

.gift-card-section h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 1rem 0 0.5rem;
}

.gift-card-panels,
.gift-card-form-panels {
  display: flex;
  flex-direction: column;
  gap: var(--gift-card-panel-gap);
}

/* Global styles.css sets `section { padding: 80px 0 }` — reset inside panels */
.gift-card-panel section {
  padding: 0;
}

.gift-card-panel {
  --panel-body-alpha: 0.58;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 32px rgba(0, 0, 0, 0.14);
}

.gift-card-panel__header {
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 19px 19px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gift-card-panel__header h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f4ebc9;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(8, 22, 18, 0.35);
}

.gift-card-panel--type {
  background-color: rgba(217, 229, 222, var(--panel-body-alpha));
  background-image:
    radial-gradient(ellipse 90% 70% at 100% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 0% 75%, rgba(30, 74, 61, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(45, 106, 90, 0.08) 0%, transparent 52%),
    linear-gradient(
      92deg,
      rgba(213, 227, 219, var(--panel-body-alpha)) 0%,
      rgba(220, 233, 226, var(--panel-body-alpha)) 28%,
      rgba(218, 232, 225, var(--panel-body-alpha)) 56%,
      rgba(224, 235, 229, var(--panel-body-alpha)) 80%,
      rgba(228, 237, 232, var(--panel-body-alpha)) 100%
    );
}

.gift-card-panel--customize {
  background-color: rgba(248, 240, 220, var(--panel-body-alpha));
  background-image:
    radial-gradient(ellipse 90% 70% at 100% 35%, rgba(255, 255, 255, 0.24) 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 0% 75%, rgba(212, 175, 55, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(244, 196, 84, 0.1) 0%, transparent 52%),
    linear-gradient(
      92deg,
      rgba(253, 249, 239, var(--panel-body-alpha)) 0%,
      rgba(248, 240, 220, var(--panel-body-alpha)) 28%,
      rgba(242, 230, 196, var(--panel-body-alpha)) 56%,
      rgba(234, 217, 168, var(--panel-body-alpha)) 80%,
      rgba(226, 204, 142, var(--panel-body-alpha)) 100%
    );
}

.gift-card-panel--buyer {
  background-color: rgba(217, 229, 222, var(--panel-body-alpha));
  background-image:
    radial-gradient(ellipse 90% 70% at 100% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 0% 75%, rgba(30, 74, 61, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(45, 106, 90, 0.08) 0%, transparent 52%),
    linear-gradient(
      92deg,
      rgba(213, 227, 219, var(--panel-body-alpha)) 0%,
      rgba(220, 233, 226, var(--panel-body-alpha)) 28%,
      rgba(218, 232, 225, var(--panel-body-alpha)) 56%,
      rgba(224, 235, 229, var(--panel-body-alpha)) 80%,
      rgba(228, 237, 232, var(--panel-body-alpha)) 100%
    );
}

.gift-card-panel--type .gift-card-panel__header {
  text-align: left;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(45, 106, 90, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 100%, rgba(30, 74, 61, 0.36) 0%, transparent 58%),
    linear-gradient(
      168deg,
      rgba(15, 36, 30, 0.92) 0%,
      rgba(20, 45, 38, 0.92) 18%,
      rgba(22, 51, 41, 0.92) 36%,
      rgba(26, 61, 52, 0.92) 54%,
      rgba(30, 74, 61, 0.92) 72%,
      rgba(37, 94, 80, 0.92) 88%,
      rgba(45, 106, 90, 0.92) 100%
    );
}

.gift-card-panel--type .gift-card-panel__header h2 {
  color: #f4ebc9;
  text-shadow: 0 1px 2px rgba(8, 22, 18, 0.35);
}

.gift-card-panel--customize .gift-card-panel__header {
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(244, 196, 84, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 100%, rgba(120, 85, 20, 0.36) 0%, transparent 58%),
    linear-gradient(
      168deg,
      rgba(42, 31, 8, 0.92) 0%,
      rgba(58, 43, 12, 0.92) 18%,
      rgba(74, 56, 18, 0.92) 36%,
      rgba(90, 69, 24, 0.92) 54%,
      rgba(107, 82, 28, 0.92) 72%,
      rgba(125, 96, 31, 0.92) 88%,
      rgba(143, 110, 36, 0.92) 100%
    );
}

.gift-card-panel--customize .gift-card-panel__header h2 {
  color: #fff4d6;
  text-shadow: 0 1px 2px rgba(30, 20, 4, 0.4);
}

.gift-card-panel--buyer .gift-card-panel__header {
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(45, 106, 90, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 100%, rgba(30, 74, 61, 0.36) 0%, transparent 58%),
    linear-gradient(
      168deg,
      rgba(15, 36, 30, 0.92) 0%,
      rgba(20, 45, 38, 0.92) 18%,
      rgba(22, 51, 41, 0.92) 36%,
      rgba(26, 61, 52, 0.92) 54%,
      rgba(30, 74, 61, 0.92) 72%,
      rgba(37, 94, 80, 0.92) 88%,
      rgba(45, 106, 90, 0.92) 100%
    );
}

.gift-card-panel--buyer .gift-card-panel__header h2 {
  color: #f4ebc9;
  text-shadow: 0 1px 2px rgba(8, 22, 18, 0.35);
}

.gift-card-panel--type .gift-type-cards {
  margin-bottom: 0;
}

.gift-card-panel .form-group:last-child {
  margin-bottom: 0;
}

.gift-card-panel--buyer .gift-card-buyer {
  margin-bottom: 0.35rem;
}

.gift-card-panel--buyer .gift-card-payment {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .gift-card-panel {
    padding: 1.15rem 1.1rem 1rem;
    border-radius: 16px;
  }

  .gift-card-panel__header {
    margin: -1.15rem -1.1rem 1rem;
    padding: 0.7rem 1.1rem;
    border-radius: 15px 15px 0 0;
  }

  .gift-card-panel__header h2 {
    font-size: 1.1rem;
  }
}

/* Type selection cards */
.gift-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 0;
  align-items: stretch;
}

.gift-type-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.15rem 2.75rem 1.05rem 1.15rem;
  text-align: center;
  border: 1.5px solid rgba(30, 74, 61, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  font-family: inherit;
  overflow: hidden;
  background: #fafaf9;
  box-shadow: 0 1px 2px rgba(30, 74, 61, 0.04);
}

.gift-type-card::before {
  display: none;
}

.gift-type-card--digital {
  background: linear-gradient(165deg, #ffffff 0%, #fffdf7 58%, #fef8ec 100%);
}

.gift-type-card--physical {
  background: linear-gradient(165deg, #ffffff 0%, #fffaf5 58%, #fef3e8 100%);
}

.gift-type-card:hover,
.gift-type-card--digital:hover,
.gift-type-card--physical:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 94, 80, 0.28);
  box-shadow: 0 8px 24px rgba(30, 74, 61, 0.1);
}

.gift-type-card--selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.gift-type-card--digital.gift-type-card--selected::after,
.gift-type-card--physical.gift-type-card--selected::after {
  background: #2d6a5a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ebc9' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.gift-type-card--digital.gift-type-card--selected,
.gift-type-card--physical.gift-type-card--selected {
  border-color: #2d6a5a;
  background: linear-gradient(165deg, #ffffff 0%, #f4f9f6 100%);
  box-shadow:
    0 0 0 3px rgba(45, 106, 90, 0.16),
    0 8px 28px rgba(30, 74, 61, 0.12);
}

.gift-type-card__icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0;
  border-radius: 18px;
  flex-shrink: 0;
  align-self: flex-start;
}

.gift-type-card__icon-wrap--digital,
.gift-type-card__icon-wrap--physical {
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
  border-radius: 18px;
}

.gift-type-card__digital-badge {
  position: absolute;
  right: 3%;
  bottom: 3%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44%;
  height: 44%;
  min-width: 2.15rem;
  min-height: 2.15rem;
  border-radius: 50%;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, #5eead4 0%, #14b8a6 55%, #0d9488 100%);
  box-shadow:
    0 3px 10px rgba(13, 148, 136, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.gift-type-card__digital-badge svg {
  display: block;
  width: 64%;
  height: 64%;
}

.gift-type-card__glyph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  filter: none;
  transform-origin: center center;
  transition: transform 0.25s ease;
}

.gift-type-card:hover .gift-type-card__glyph,
.gift-type-card--selected .gift-type-card__glyph {
  transform: scale(1.06);
}

.gift-type-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
  min-height: 6.5rem;
  align-self: stretch;
}

.gift-type-card__title {
  position: relative;
  z-index: 1;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
  color: #163329;
}

.gift-type-card__desc {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: none;
}

.gift-type-card--digital .gift-type-card__desc,
.gift-type-card--physical .gift-type-card__desc {
  color: #4b5563;
  opacity: 1;
}

@media (max-width: 600px) {
  .gift-type-cards {
    grid-template-columns: 1fr;
  }

  .gift-type-card {
    padding: 1rem 2.25rem 0.9rem 0.9rem;
    gap: 0.85rem;
  }

  .gift-type-card__icon-wrap {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 16px;
  }

  .gift-type-card__icon-wrap--digital,
  .gift-type-card__icon-wrap--physical {
    border-radius: 16px;
  }

  .gift-type-card__digital-badge {
    min-width: 1.85rem;
    min-height: 1.85rem;
  }

  .gift-type-card__glyph {
    width: 100%;
    height: 100%;
  }

}

/* Layout — customize panel: full-width preview on top, fields below */
.gift-card-panel--customize .gift-card-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

/* Preview — nested panel inside Prilagodite bon */
.gift-card-preview-panel {
  background: rgba(255, 252, 245, 0.92);
  border: 1px solid rgba(120, 85, 20, 0.18);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 18px rgba(58, 43, 12, 0.08);
  overflow: hidden;
}

.gift-card-preview-panel__header {
  padding: 0.65rem 1rem;
  background: linear-gradient(
    168deg,
    rgba(74, 56, 18, 0.14) 0%,
    rgba(107, 82, 28, 0.1) 100%
  );
  border-bottom: 1px solid rgba(120, 85, 20, 0.14);
}

.gift-card-preview-panel__header h3 {
  margin: 0;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5220;
}

.gift-card-preview-panel__body {
  padding: 0.85rem 0.85rem 0.95rem;
}

/* Preview — same 1024×682 layout as PDF, scaled to full panel width */
.gift-card-preview-section {
  min-width: 0;
  width: 100%;
}

.gift-card-preview-wrap {
  width: 100%;
}

.gift-card-preview-canvas {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.gift-card-preview-canvas__inner {
  width: 1024px;
  height: 682px;
  transform-origin: top left;
}

.gift-card-preview__field[hidden] {
  display: none;
}

/* Amount chips */
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.amount-chip {
  padding: 8px 16px;
  border: 1.5px solid rgba(30, 74, 61, 0.14);
  border-radius: 10px;
  background: #fafaf9;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
  color: #374151;
}

.amount-chip:hover:not(.amount-chip--selected) {
  border-color: rgba(201, 168, 76, 0.45);
  background: #fff;
}

.amount-chip--selected {
  background: linear-gradient(180deg, #b8943f 0%, #8f6f2a 100%);
  border-color: #7a5f1f;
  color: #fdf6e3;
  box-shadow: 0 2px 8px rgba(74, 58, 20, 0.22);
}

.amount-chip--selected:hover {
  background: linear-gradient(180deg, #c4a04a 0%, #9a7b32 100%);
  border-color: #7a5f1f;
  color: #fdf6e3;
  box-shadow: 0 2px 10px rgba(74, 58, 20, 0.28);
}

.amount-custom {
  margin-top: 0.75rem;
}

.amount-custom label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #163329;
}

.gift-card-page .form-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #163329;
}

.font-style-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.font-style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.75rem;
  padding: 0.55rem 0.35rem;
  border: 1.5px solid rgba(30, 74, 61, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.font-style-option:hover:not(.font-style-option--selected) {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 2px 8px rgba(30, 74, 61, 0.08);
}

.font-style-option--selected {
  border-color: #7a5f1f;
  background: linear-gradient(180deg, #fffdf7 0%, #f8efd8 100%);
  box-shadow: 0 2px 10px rgba(74, 58, 20, 0.14);
}

.font-style-option__sample {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(37, 94, 80, 0.08);
  font-size: 1.35rem;
  line-height: 1;
  color: #255e50;
}

.font-style-option__sample--classic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

.font-style-option__sample--elegant {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.font-style-option__sample--refined {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.5rem;
}

.font-style-option__sample--literary {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
}

.font-style-option__sample--graceful {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.font-style-option__name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #163329;
}

.font-style-option--selected .font-style-option__sample {
  background: linear-gradient(180deg, #b8943f 0%, #8f6f2a 100%);
  color: #fdf6e3;
}

.font-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.font-size-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid rgba(30, 74, 61, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.font-size-option:hover:not(.font-size-option--selected) {
  border-color: rgba(201, 168, 76, 0.45);
}

.font-size-option--selected {
  background: linear-gradient(180deg, #b8943f 0%, #8f6f2a 100%);
  border-color: #7a5f1f;
  color: #fdf6e3;
  box-shadow: 0 2px 10px rgba(74, 58, 20, 0.22);
}

.font-size-option__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.font-size-option[data-font-size="small"] .font-size-option__label {
  font-size: 0.78rem;
}

.font-size-option[data-font-size="large"] .font-size-option__label {
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  .font-style-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .font-style-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Delivery & payment */
.delivery-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-option,
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid rgba(30, 74, 61, 0.2);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  color: #374151;
  box-shadow: 0 1px 3px rgba(30, 74, 61, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.delivery-option:hover,
.payment-option:hover {
  border-color: rgba(37, 94, 80, 0.38);
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 74, 61, 0.08);
}

.payment-option--selected,
.delivery-option:has(input:checked) {
  border-color: #255e50;
  background: #edf5f1;
  color: #163329;
  box-shadow:
    0 0 0 3px rgba(37, 94, 80, 0.16),
    0 2px 10px rgba(37, 94, 80, 0.12);
  font-weight: 600;
}

.payment-option--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment-soon-badge {
  margin-left: auto;
  font-size: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.payment-option-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.payment-option-group .payment-option {
  margin: 0;
}

.payment-option-group--active .payment-option {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  box-shadow: none;
}

.payment-option-group--active {
  border-radius: 12px;
  box-shadow:
    0 0 0 3px rgba(37, 94, 80, 0.16),
    0 2px 10px rgba(37, 94, 80, 0.12);
}

.bank-transfer-info {
  padding: 4px 14px 12px 42px;
  background: #edf5f1;
  border: 1.5px solid #255e50;
  border-top: 1px solid rgba(37, 94, 80, 0.18);
  border-radius: 0 0 12px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #163329;
}

.bank-transfer-info p {
  margin: 4px 0 0;
}

.bank-transfer-info p:first-child {
  margin-top: 0;
}

.bank-transfer-info strong {
  color: #374151;
  font-weight: 600;
}

.shipping-fields {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.4;
}

.form-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin: 8px 0;
}

.gift-card-form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.gift-card-form-actions .form-error {
  margin: 0;
  align-self: stretch;
  text-align: left;
}

.gift-card-submit {
  display: inline-block;
  width: auto;
  align-self: flex-end;
  padding: 12px 24px;
  background: #255e50;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.gift-card-modal .gift-card-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.gift-card-submit:hover {
  background: #1e4a3d;
  box-shadow: 0 4px 14px rgba(37, 94, 80, 0.28);
  transform: translateY(-1px);
}

.gift-card-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Modal */
.gift-card-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gift-card-modal[hidden] {
  display: none;
}

.gift-card-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.gift-card-modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.gift-card-modal__content h2 {
  margin: 0 0 12px;
  color: #255e50;
  font-family: 'Playfair Display', Georgia, serif;
}

.success-bank-details {
  background: #f0fdf4;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact form fields within gift card panels */
.gift-card-page .form-group {
  margin-bottom: 0.85rem;
}

.gift-card-page .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.gift-card-page .form-input,
.gift-card-page .form-textarea {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(30, 74, 61, 0.12);
  background: #fafaf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gift-card-page .form-input:focus,
.gift-card-page .form-textarea:focus {
  border-color: #255e50;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 94, 80, 0.1);
}

.gift-card-page .form-textarea {
  min-height: 64px;
  line-height: 1.4;
}

.gift-card-page .gift-card-delivery {
  margin-top: 0.25rem;
}
