/* ===================== VOUCHER CARD (náhled dárkového poukazu) ===================== */
.voucher-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.7;
  background: #e9dfc9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(51,44,40,0.22);
  font-family: 'Open Sans', sans-serif;
  container-type: inline-size;
}
.voucher-card__photo {
  position: absolute;
  inset: 0;
  width: 56%;
  height: 100%;
  clip-path: polygon(0 0, 61% 0, 87.5% 20%, 73% 100%, 0 100%);
}
.voucher-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  display: block;
}
.voucher-card__trees {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 45%;
  background-image: url("../wp-content/uploads/2026/09/voucher-stromy.svg");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  pointer-events: none;
}
.voucher-card__panel {
  position: absolute;
  inset: 0;
  padding: 0 5% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.voucher-card__border {
  position: absolute;
  inset: 2.6%;
  pointer-events: none;
}
.voucher-card__border svg { width: 100%; height: 100%; display: block; overflow: visible; }
.voucher-card__title {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  color: #3a332c;
  font-size: 4.9cqw;
  line-height: 1;
  margin-left: 52%;
  white-space: nowrap;
}
.voucher-card__subtitle {
  margin-left: 52%;
  margin-top: 2%;
  color: #4a3f35;
  font-size: 1.65cqw;
  white-space: nowrap;
}
.voucher-card__value {
  margin-left: 52%;
  margin-top: 0.5%;
  color: #332c28;
  font-weight: 700;
  font-size: 1.65cqw;
  white-space: nowrap;
}
.voucher-card__name-row {
  margin-left: 52%;
  margin-top: 5%;
  display: flex;
  align-items: stretch;
  max-width: 44%;
}
.voucher-card__name-row span:first-child {
  font-weight: 700;
  color: #332c28;
  font-size: 1.7cqw;
  padding: 0.6% 0.8% 0.6% 0;
  white-space: nowrap;
  align-self: center;
}
.voucher-card__name {
  background: #fff;
  flex: 1;
  padding: 0.6% 3%;
  font-size: 1.7cqw;
  color: #332c28;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.voucher-card__code {
  margin-left: 52%;
  margin-top: 1.8%;
  color: #7a6e60;
  font-size: 1.4cqw;
  letter-spacing: 0.03em;
}
.voucher-card__flag {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28%;
  height: 15%;
  background: #fdfbf6;
  clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  padding-left: 6%;
  box-sizing: border-box;
}
.voucher-card__flag img { height: 62%; width: auto; }


/* ===================== VOUCHER GENERATOR PAGE ===================== */
.voucher-generator { padding: 60px 0 100px; }
.voucher-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .voucher-layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .voucher-preview-wrap { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.voucher-season-toggle {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.voucher-season-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.voucher-season-btn.active { background: var(--brown); color: var(--white); border-color: var(--brown); }

.voucher-value-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.voucher-value-btn {
  flex: 1;
  min-width: 110px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--brown);
  font-family: 'PT Serif', serif;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
}
.voucher-value-btn.active { border-color: var(--gold-btn); background: var(--cream-dark); box-shadow: inset 0 0 0 1px var(--gold-btn); }

.voucher-form-section + .voucher-form-section { margin-top: 28px; }
.voucher-form-section h3 { font-size: 0.95rem; margin-bottom: 12px; }
.voucher-submit-note { font-size: 0.8rem; color: var(--text-light); margin-top: 14px; }
