/* Gift voucher form ([vezopay_gift_voucher_form]). Inherits the page font. */
.vzgv {
  --vzgv-ink: #11111f;
  --vzgv-graphite: #1f262a;
  --vzgv-slate: #2b3238;
  --vzgv-grey: #707079;
  --vzgv-mist: #b8b8bc;
  --vzgv-line: #e7e7e9;
  --vzgv-mint: #3cdbc0;
  --vzgv-mint-pale: #ecfbf9;
  --vzgv-teal: #0b7566;
  --vzgv-error: #b42318;
  color: var(--vzgv-ink);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.vzgv *, .vzgv *::before, .vzgv *::after { box-sizing: border-box; }
.vzgv [hidden] { display: none !important; }
.vzgv-unavailable { margin: 0; padding: 20px; border: 1px solid var(--vzgv-line); border-radius: 16px; background: #fff; }

.vzgv-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.vzgv-fields { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

/* Design choice: small card swatches */
.vzgv-designs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vzgv-design { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--vzgv-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.vzgv-design input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vzgv-design:hover { border-color: var(--vzgv-mist); }
.vzgv-design:has(input:checked) { border-color: var(--vzgv-mint); box-shadow: 0 0 0 3px rgba(60, 219, 192, .25); }
.vzgv-design:has(input:focus-visible) { outline: 2px solid var(--vzgv-ink); outline-offset: 2px; }
.vzgv-design-swatch { display: block; aspect-ratio: 1.586; border-radius: 10px; border: 1px solid transparent; }
/* The swatch is the choice; the name stays for screen readers (the label's accessible name). */
.vzgv-design-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.vzgv-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.vzgv-legend { display: flex; align-items: center; gap: 12px; width: auto; float: none; margin: 0 0 16px; padding: 0; border: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--vzgv-ink); }
.vzgv-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--vzgv-mint); font-size: 14px; font-weight: 600; }

/* Four across, then two across on phones (560px and below), the same as the designs. */
.vzgv-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vzgv-chip, .vzgv-option { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 14px 16px; border: 1.5px solid var(--vzgv-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.vzgv-chip input, .vzgv-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vzgv-chip:hover, .vzgv-option:hover { border-color: var(--vzgv-mist); }
.vzgv-chip:has(input:checked), .vzgv-option:has(input:checked) { border-color: var(--vzgv-mint); background: var(--vzgv-mint-pale); box-shadow: 0 0 0 3px rgba(60, 219, 192, .25); }
.vzgv-chip:has(input:focus-visible), .vzgv-option:has(input:focus-visible) { outline: 2px solid var(--vzgv-ink); outline-offset: 2px; }
.vzgv-chip-amount { font-size: 20px; font-weight: 600; line-height: 1.2; }
.vzgv-chip-label { margin-top: 2px; font-size: 13px; color: var(--vzgv-grey); }

.vzgv-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vzgv-option-title { font-size: 16px; font-weight: 600; }
.vzgv-option-text { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--vzgv-slate); }

.vzgv-when { margin-top: 14px; }
.vzgv-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.vzgv-inline label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.vzgv-inline input { width: 18px; height: 18px; accent-color: var(--vzgv-teal); }
.vzgv-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.vzgv-schedule .vzgv-error { grid-column: 1 / -1; }

.vzgv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vzgv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vzgv-field--wide { grid-column: 1 / -1; }
.vzgv-custom { margin-top: 12px; max-width: 420px; }
/* "Other": the amount field with a "Ring prices" dropdown joined on its right. */
.vzgv-combo { display: flex; align-items: stretch; min-width: 0; }
.vzgv-custom input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.vzgv-custom input[type="number"]::-webkit-inner-spin-button, .vzgv-custom input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.vzgv-combo .vzgv-money { flex: 1 1 auto; min-width: 0; }
.vzgv-combo--rings .vzgv-money input[type="number"] { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.vzgv .vzgv-ring-price { flex: 0 0 auto; max-width: 58%; min-height: 50px; margin: 0 0 0 -1px; padding: 0 40px 0 16px; border: 1px solid var(--vzgv-mist); border-radius: 0 12px 12px 0; background: #F6F7F8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311111F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px; color: var(--vzgv-ink); font: inherit; font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none; text-overflow: ellipsis; }
.vzgv .vzgv-ring-price:focus-visible { outline: 2px solid var(--vzgv-mint); outline-offset: 2px; position: relative; z-index: 1; }
.vzgv-custom > .vzgv-hint { margin: 0; font-size: 13px; }
.vzgv-field label { font-size: 14px; font-weight: 500; }
.vzgv-hint { font-weight: 400; color: var(--vzgv-grey); }
.vzgv input[type="text"], .vzgv input[type="email"], .vzgv input[type="number"], .vzgv input[type="date"], .vzgv input[type="time"], .vzgv textarea {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 16px; border: 1px solid var(--vzgv-mist); border-radius: 12px; background: #fff; color: var(--vzgv-ink); font: inherit; font-size: 16px; box-shadow: none;
}
.vzgv textarea { min-height: 110px; resize: vertical; }
.vzgv input:focus, .vzgv textarea:focus { outline: 2px solid var(--vzgv-mint); outline-offset: 0; border-color: var(--vzgv-mint); }
.vzgv [aria-invalid="true"] { border-color: var(--vzgv-error); }
.vzgv-money { position: relative; }
.vzgv-money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--vzgv-grey); }
.vzgv-money input[type="number"] { padding-left: 34px; }
.vzgv-error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--vzgv-error); }
.vzgv-error:empty { display: none; }
.vzgv-counter { margin: 0; font-size: 12px; text-align: right; color: var(--vzgv-grey); }

.vzgv-actions { display: flex; flex-direction: column; gap: 14px; }
.vzgv .vzgv-submit, .vzgv .vzgv-submit:hover, .vzgv .vzgv-submit:focus, .vzgv .vzgv-submit:active { color: #fff; text-shadow: none; }
.vzgv-submit { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--vzgv-teal, #0B7566); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .25s ease, transform .25s ease; }
.vzgv .vzgv-submit:hover { background: #095E52; transform: translateY(-1px); }
.vzgv-submit:focus-visible { outline: 2px solid var(--vzgv-mint); outline-offset: 3px; }
.vzgv-submit.is-busy { opacity: .6; cursor: progress; }
.vzgv-status:empty { display: none; }
.vzgv-status { padding: 16px 18px; border-radius: 14px; font-size: 15px; }
.vzgv-status p { margin: 0; }
.vzgv-status.is-error { background: #fef3f2; color: var(--vzgv-error); }
.vzgv-status.is-success { background: var(--vzgv-mint-pale); color: var(--vzgv-ink); }
.vzgv-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; }
.vzgv-next-primary, .vzgv-next-secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vzgv .vzgv-next-primary, .vzgv .vzgv-next-primary:hover { background: var(--vzgv-mint); color: var(--vzgv-ink); }
.vzgv .vzgv-next-secondary, .vzgv .vzgv-next-secondary:hover { border: 1px solid var(--vzgv-ink); background: transparent; color: var(--vzgv-ink); }

.vzgv-preview { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.vzgv-stage { display: flex; justify-content: center; padding: 56px 40px; border-radius: 32px; background: #F6F7F8; }
.vzgv-stage .vzgc { max-width: 480px; box-shadow: 0 40px 70px -28px rgba(17, 17, 31, .5); }
.vzgv-note { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border: 1px solid var(--vzgv-line); border-radius: 18px; background: #fff; }
.vzgv-note p { margin: 0; }
.vzgv-card-for { font-size: 17px; }
.vzgv-card-message { font-style: italic; color: var(--vzgv-slate); white-space: pre-line; overflow-wrap: anywhere; }
.vzgv-card-from { color: var(--vzgv-grey); }
.vzgv-preview-note { margin: 0 4px; font-size: 13px; line-height: 1.5; color: var(--vzgv-grey); text-align: center; }

/* "Added to your cart" dialog: add another voucher or go to checkout */
.vzgv { scroll-margin-top: 120px; }
.vzgv-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 28px; border: 0; border-radius: 20px; background: #fff; color: var(--vzgv-ink); box-shadow: 0 24px 60px rgba(17, 17, 31, .3); text-align: left; }
.vzgv-dialog::backdrop { background: rgba(17, 17, 31, .6); }
.vzgv .vzgv-dialog-title { margin: 0 0 8px; padding: 0; font-family: inherit; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--vzgv-ink); }
.vzgv-dialog-text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--vzgv-slate); }
.vzgv-dialog-actions { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.vzgv-dialog-actions .vzgv-next-primary, .vzgv-dialog-actions .vzgv-next-secondary { justify-content: center; min-height: 52px; font-size: 16px; }
.vzgv .vzgv-next-primary:focus-visible, .vzgv .vzgv-next-secondary:focus-visible { outline: 2px solid var(--vzgv-ink); outline-offset: 2px; }

@media (max-width: 900px) {
  .vzgv-cols { grid-template-columns: minmax(0, 1fr); }
  .vzgv-preview { position: static; }
  .vzgv-stage { padding: 32px 20px; border-radius: 24px; }
}
@media (max-width: 560px) {
  .vzgv-options, .vzgv-grid, .vzgv-schedule { grid-template-columns: minmax(0, 1fr); }
  .vzgv-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vzgv-submit { align-self: stretch; justify-content: center; }
  .vzgv-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .vzgv-chip, .vzgv-option, .vzgv-submit, .vzgv-design { transition: none; }
}
