/* Gift Vouchers (template-gift-vouchers-hub.php) — the "CTTP Gift
   Vouchers" design, on css/information.css (and bookings.css / gallery.css
   for a few shared pieces: .bk-shade, .gal-hero, .gal-btn--*, .bk-steps). */

.cttp-gv .gv-hero { min-height: clamp(400px, 56vh, 560px); }
/* Heading left, the tilted ticket on the right — a grid, so the ticket
   never wraps under a long title (it only stacks on small screens). */
.gv-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(1.5rem, 4vw, 3rem); }
.gv-lede { max-width: 44ch; }

.gv-ticket { width: min(380px, 100%); border-radius: 18px; background: var(--paper); color: var(--granite-900); box-shadow: 0 30px 80px rgb(0 0 0 / 40%); overflow: hidden; transform: rotate(-2deg); }
.gv-ticket__top { padding: 1.4rem 1.5rem; background: var(--granite-900); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.gv-ticket__k { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-300); }
.gv-ticket__k--white { color: #fff; }
.gv-ticket__t { display: block; margin-top: 0.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.gv-ticket__city { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: right; line-height: 1.2; opacity: 0.85; }
.gv-ticket__tear { border-top: 2px dashed var(--line); margin: 0 1rem; }
.gv-ticket__grid { padding: 1.25rem 1.5rem 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.85rem; line-height: 1.35; }
.gv-ticket__grid strong { font-size: 0.95rem; }
.gv-ticket__l { display: block; color: var(--ink-soft); }

.gv-create { padding-bottom: 0; }
.gv-sub { margin-top: 0.6rem !important; }
.gv-create__grid { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.gv-step { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.gv-step--next { margin-top: 2rem; margin-bottom: 0.5rem; }
.gv-step__n { width: 30px; height: 30px; border-radius: 50%; background: var(--granite-900); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; flex: none; }
.cttp-info .gv-step__h { font-size: 1.2rem; }
.gv-step__p { max-width: 56ch; }
.gv-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.cttp-info .gv-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--paper); text-decoration: none; color: var(--granite-900); transition: border-color .15s, background .15s; }
.cttp-info .gv-opt:hover { border-color: var(--sky-500); background: var(--sky-50); color: var(--granite-900); }
.gv-opt__top { display: flex; justify-content: space-between; width: 100%; gap: 0.5rem; line-height: 1.3; }
.gv-opt__ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.gv-opt:hover .gv-opt__ring { border-color: var(--sky-500); background: var(--sky-500); box-shadow: inset 0 0 0 4px var(--sky-50); }
.gv-opt__price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.gv-opt__note { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.gv-opt__cta { margin-top: 0.5rem; font-weight: 700; color: var(--sky-700); font-size: 0.95rem; }

.gv-preview { position: sticky; top: 7rem; }
.gv-preview .ci-eyebrow { margin-bottom: 0.75rem; }
.gv-card { border-radius: 18px; background: var(--paper); color: var(--granite-900); box-shadow: 0 24px 60px rgb(10 32 41 / 18%); border: 1px solid var(--line); overflow: hidden; }
.gv-card__img { position: relative; height: 170px; background: center / cover no-repeat; }
.gv-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 32 41 / 10%), rgb(10 32 41 / 75%)); }
.gv-card__cap { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.1rem; color: #fff; z-index: 1; }
.gv-card__t { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.gv-card__body { padding: 1.4rem; font-size: 0.8rem; }
.gv-card__name { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.gv-card__msg { margin-top: 0.8rem !important; font-style: italic; color: var(--ink); line-height: 1.55; font-size: 1rem; }
.gv-card__meta { padding: 1rem 1.4rem 1.3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; font-size: 0.82rem; line-height: 1.35; }
.gv-preview__note { margin-top: 0.9rem !important; font-size: 0.85rem; }
/* PiGi's wizard, unboxed and left-aligned, with the terms beside it. The
   wizard keeps its own 820px cap (the shortcode's max_width, plugin
   1.9.5+) and needs ~600px to sit its calendar beside the times. */
.gv-buy { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gv-embed { max-width: 820px; margin: 0; }
/* The wizard pads its own content 26px inside the iframe (PiGi's
   --bw-body-gutter); pulled out by that much so its text lines up with
   the "Create your voucher" heading. Desktop only — on phones the gutter
   is the page margin. */
@media (min-width: 1025px) { .gv-embed { margin-left: -26px; } }
.gv-buy .gv-terms-col { position: sticky; top: 7rem; }
.gv-bottom.gv-bottom--solo { grid-template-columns: minmax(0, 1fr); }

.gv-paths { margin-top: clamp(1.5rem, 3vw, 2.25rem); align-items: stretch; }
.gv-path { position: relative; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.gv-path--hl { border: 2px solid var(--sky-500); }
.gv-path__badge { position: absolute; top: -13px; left: 1.5rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--sky-500); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.gv-path .ci-h3 { margin-top: 0; font-size: 1.5rem; }
.gv-path__p { margin-top: 0.6rem !important; }
.gv-path .bk-steps { margin-top: 1.5rem; }
.gv-path__foot { margin-top: auto; padding-top: 1.5rem; }
.gv-path__foot .ci-btn { margin-top: 0; }
.cttp-info .gv-btn-outline { margin-top: 0; padding: 0.95rem 1.4rem; text-decoration: none; display: inline-block; }

.gv-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.25rem; align-items: start; }
.cttp-info .gv-terms__h { margin-top: 0; font-size: 1.4rem; }
.gv-terms { margin: 1rem 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.gv-terms li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; padding: 0.95rem 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.gv-terms li > span:first-child { color: var(--sky-500); font-weight: 700; }
/* Bank details, quieter than the information page's dark card: mist on a
   hairline, full width, one column of rows. */
.cttp-info .gv-bank { background: var(--mist); color: var(--granite-900); border: 1px solid var(--line); }
.gv-bank .ci-bank__rows { border-top-color: var(--line); }
.gv-bank .ci-bank__row { border-bottom-color: var(--line); }
.gv-bank .ci-bank__l { color: var(--ink-soft); }
.gv-bank .ci-bank__v { color: var(--granite-900); }
.cttp-info .gv-bank .ci-copy { border-color: var(--line); color: var(--granite-900); background: var(--paper); }
.cttp-info .gv-bank .ci-copy:hover { border-color: var(--granite-900); background: var(--paper); }
.cttp-info .gv-bank .ci-copy.is-done { border-color: transparent; background: transparent; color: var(--sky-700); }

/* PiGi's terms are rich text: paragraphs and lists, in the list's rhythm. */
.gv-terms--html { padding-top: 0.25rem; padding-bottom: 1rem; color: var(--ink); line-height: 1.6; font-size: 0.98rem; }
.gv-terms--html > * + * { margin-top: 0.75rem !important; }
.gv-terms--html ul, .gv-terms--html ol { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.gv-terms--html li { display: list-item; padding: 0.3rem 0; border-top: 0; }
.gv-nonref { margin-top: 1rem; font-weight: 700; color: var(--granite-900); }

@media (max-width: 1024px) {
    .gv-buy { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .gv-hero__inner { grid-template-columns: 1fr; }
    .gv-create__grid, .gv-bottom { grid-template-columns: 1fr; }
    .gv-buy .gv-terms-col { position: static; }
    .gv-preview { position: static; }
    .gv-ticket { transform: none; }
}
@media (max-width: 560px) {
    .gv-opts { grid-template-columns: 1fr; }
}
