/* Gift vouchers (SUP-3330). Markup: function_includes/gift-voucher.php, template-parts/gift-voucher-page.php. */

/* ---------- Header button "Darčekový poukaz" (built in redesign-header-footer.js) ---------- */
.rdh-cta.rdh-cta-gift { background: #E0661A; box-shadow: 0 6px 18px rgba(224, 102, 26, .35); }
.rdh-cta.rdh-cta-gift:hover { background: #C4622D; }
.rdh-cta-gift .rdh-s { display: none; }
@media (max-width: 1024px) {
    .elementor-location-header .rdh-cta.rdh-cta-gift { display: inline-flex; order: 2; padding: 9px 14px; font-size: 14px; margin: 0 12px 0 auto; }
    /* the phone menu icon (.hamburgermenicko) stays the last item of the row */
    .elementor-location-header :has(> .rdh-cta-gift) > .elementor-widget-icon { order: 3; }
}
@media (max-width: 480px) {
    .elementor-location-header .rdh-cta.rdh-cta-gift { padding: 8px 11px; gap: 6px; font-size: 13px; }
    .rdh-cta-gift .rdh-l { display: none; }
    .rdh-cta-gift .rdh-s { display: inline; }
}

/* ---------- Floating "Poradíme vám" on every page ---------- */
.bgv-float[hidden] { display: none !important; }
.bgv-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 950;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    background: #C4622D; color: #fff !important; text-decoration: none !important;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; line-height: 1;
    box-shadow: 0 10px 30px rgba(196, 98, 45, .4); transition: transform .2s ease, background .2s ease;
}
.bgv-float:hover { background: #8B3D18; transform: translateY(-2px); }
.bgv-float svg { width: 22px; height: 22px; flex: none; }
html.bgv-live .rd-float-cta { display: none !important; } /* the homepage's own copy */
@media (max-width: 768px) {
    .bgv-float { right: 16px; bottom: 16px; padding: 14px; }
    .bgv-float span { display: none; }
}
/* Above the trip page's fixed booking bar (tablet and phone). */
@media (max-width: 1024px) {
    body:has(.rdd-sticky-cta:not([hidden]):not(.is-away)) .bgv-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Christmas promo modal (skin of the sale modal, css/sale-banner.css) ---------- */
.bgv-promo .bgv-promo-card {
    background:
        linear-gradient(90deg, rgba(24, 12, 5, .98) 0%, rgba(24, 12, 5, .94) 42%, rgba(24, 12, 5, .35) 60%, rgba(24, 12, 5, 0) 74%),
        #24130a var(--bgv-promo-img) right center / auto 100% no-repeat;
}
.bgv-promo .bsm-title { max-width: 470px; }
.bgv-promo .bsm-lead { max-width: 420px; }
.bgv-promo .bgv-promo-brand { font-size: 1em; color: #fff; }
.bgv-promo .bgv-promo-bonus { padding: 1px 8px; border-radius: 6px; background: linear-gradient(100deg, #E89A2C, #F0B341 60%, #D9861E);
    color: #2B1D0E; font-weight: 800; white-space: nowrap; box-decoration-break: clone; }
@media (max-width: 767px) {
    .bgv-promo .bgv-promo-card {
        background:
            linear-gradient(180deg, rgba(24, 12, 5, .92) 0%, rgba(24, 12, 5, .7) 55%, rgba(24, 12, 5, .92) 100%),
            #24130a var(--bgv-promo-img) center / cover no-repeat;
    }
}

/* ---------- Order page ---------- */
.bgv-body .site-main { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.bgv-page { --bgv-terra: #C4622D; --bgv-night: #1A1208; --bgv-sand: #F5EDD8; --bgv-ink: #2B1D0E;
    background: #F7F1E6; font-family: 'DM Sans', sans-serif; color: var(--bgv-ink); padding-bottom: 64px; }
.bgv-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bgv-hero {
    background: linear-gradient(180deg, rgba(26, 18, 8, .86), rgba(26, 18, 8, .95)),
        url('../assets/gift-voucher/christmas.jpg') center 30% / cover no-repeat;
    color: var(--bgv-sand); padding: 34px 0 92px;
}
.bgv-crumbs { font-size: 14px; color: #D4A847; }
.bgv-crumbs a { color: #D4A847 !important; text-decoration: none; }
.bgv-crumbs span { margin: 0 6px; opacity: .7; }
.bgv-page .bgv-h1 { margin: 14px 0 10px !important; font-family: 'Playfair Display', serif !important; font-weight: 400 !important;
    font-size: clamp(36px, 5vw, 52px) !important; line-height: 1.1 !important; color: var(--bgv-sand) !important; }
.bgv-h1 em { color: #D4A847; font-style: italic; }
.bgv-lead { margin: 0; font-size: 17px; color: rgba(245, 237, 216, .85); }

.bgv-card {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 0;
    margin-top: -60px; background: #FFFCF6; border-radius: 18px; box-shadow: 0 20px 50px rgba(43, 29, 14, .12);
}
.bgv-card[hidden], .bgv-done[hidden], .bgv-modal[hidden], .bgv-error[hidden] { display: none !important; }
.bgv-col { padding: 30px 36px 36px; min-width: 0; }
.bgv-col-form { border-right: 1px solid #EADFCB; }
.bgv-page .bgv-sec { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px !important;
    font-family: 'DM Sans', sans-serif !important; font-size: 15px !important; font-weight: 700 !important;
    letter-spacing: .4px; text-transform: uppercase; color: var(--bgv-ink) !important; }
.bgv-sec:first-child { margin-top: 0 !important; }
.bgv-sec::before { content: ''; width: 16px; height: 2px; background: var(--bgv-terra); }
.bgv-field { display: block; margin: 0 0 12px; font-size: 14px; }
.bgv-field > span:first-child { display: block; margin-bottom: 6px; color: #4A3826; }
.bgv-field em { color: var(--bgv-terra); font-style: normal; }
.bgv-page input[type="text"], .bgv-page input[type="email"], .bgv-page input[type="tel"], .bgv-page select, .bgv-page textarea {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #E2D5BF; border-radius: 8px;
    background: #FBF7EF; font: inherit; font-size: 16px; color: var(--bgv-ink); box-shadow: none; }
.bgv-page textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.bgv-page input:focus, .bgv-page select:focus, .bgv-page textarea:focus { outline: none; border-color: var(--bgv-terra); box-shadow: 0 0 0 3px rgba(196, 98, 45, .15); }
.bgv-field.is-invalid input, .bgv-field.is-invalid select { border-color: #C0392B; background: #FFF4F1; }
.bgv-amount-input { position: relative; display: block; }
.bgv-amount-input b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: #7A6650; }
.bgv-hint { display: block; margin-top: 4px; font-size: 13px; color: #8C7A66; }
.bgv-field.is-invalid .bgv-hint { color: #C0392B; font-weight: 600; }
.bgv-field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.bgv-amount.is-invalid .bgv-amount-input b { color: #C0392B; }
.bgv-bonus-info { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; padding: 12px 16px; border-radius: 10px; background: #FCEBDD; }
.bgv-bonus-info svg { flex: none; width: 34px; height: 34px; padding-right: 14px; border-right: 1px solid #E8C7AE; color: #D9541E; box-sizing: content-box; }
.bgv-bonus-info p { margin: 0; font-size: 14px; line-height: 1.45; color: #5B4632; }
.bgv-bonus-info strong { display: block; font-size: 17px; color: #2B1D0E; }
.bgv-bonus-info em { font-style: normal; color: #D9541E; }
.bgv-counter { display: block; text-align: right; margin-top: 4px; font-size: 13px; color: #8C7A66; }
.bgv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.bgv-grid3 { display: grid; grid-template-columns: .8fr 1.2fr 1.2fr; gap: 0 14px; }
.bgv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Live preview: positions in mm of the 297 x 148.5 mm PDF (CRM VoucherPdfTemplate), 1 mm = --u. */
.bgv-voucher {
    --u: calc(100cqw / 297);
    position: relative; container-type: inline-size; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 12px;
    background: #1d3557 center / cover no-repeat; box-shadow: 0 14px 30px rgba(26, 18, 8, .25); color: #2B1D0E;
}
.bgv-voucher > * { position: absolute; }
.bgv-v-logo { left: calc(var(--u) * 18); top: calc(var(--u) * 8); height: calc(var(--u) * 13); width: auto; }
.bgv-v-title { left: calc(var(--u) * 18); top: calc(var(--u) * 22); font-family: 'Playfair Display', serif; font-style: italic;
    font-size: calc(var(--u) * 19.5); line-height: .98; color: #F5EDD8; text-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 2.5) rgba(10, 20, 45, .45); }
.bgv-v-sub { left: calc(var(--u) * 25); top: calc(var(--u) * 71); font-size: calc(var(--u) * 7); color: #fff; text-shadow: 0 0 calc(var(--u) * 2) rgba(10, 20, 45, .5); }
.bgv-v-amount { left: calc(var(--u) * 20); top: calc(var(--u) * 88); width: calc(var(--u) * 100); height: calc(var(--u) * 33); }
.bgv-v-amount svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bgv-v-amount span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: calc(var(--u) * var(--bgv-amt, 16)); font-variant-numeric: lining-nums; }
.bgv-v-valid { left: calc(var(--u) * 20); top: calc(var(--u) * 124); width: calc(var(--u) * 100); display: flex; align-items: center;
    gap: calc(var(--u) * 3); font-size: calc(var(--u) * 4.6); font-weight: 600; white-space: nowrap; }
.bgv-v-valid::before, .bgv-v-valid::after { content: ''; flex: 1; height: 1px; background: #2B1D0E; opacity: .7; }
/* The validity sits on a light pill so it reads on every background (snow, water, savanna). */
.bgv-v-valid > span { flex: none; padding: calc(var(--u) * 1) calc(var(--u) * 3.5); border-radius: calc(var(--u) * 2.5);
    background: rgba(255, 252, 245, .9); line-height: 1.2; }
.bgv-v-divider { left: calc(var(--u) * 133); top: calc(var(--u) * 90); width: 1px; height: calc(var(--u) * 49); background: #C9A56A; }
.bgv-v-dedication { left: calc(var(--u) * 146); top: calc(var(--u) * 87); width: calc(var(--u) * 140); height: calc(var(--u) * 26);
    display: flex; align-items: center; white-space: pre-line; overflow: hidden; overflow-wrap: anywhere;
    font-size: calc(var(--u) * var(--bgv-mm, 5.4)); line-height: 1.42; }
/* Designs whose scenery reaches the text get a light panel, as in the CRM PDF (GiftVoucher::DESIGNS_WITH_TEXT_PANEL). */
.bgv-voucher[data-design="safari"] .bgv-v-dedication:not(:empty), .bgv-voucher[data-design="jungle"] .bgv-v-dedication:not(:empty) {
    left: calc(var(--u) * 142); width: calc(var(--u) * 146); padding: 0 calc(var(--u) * 4); border-radius: calc(var(--u) * 3); background: rgba(255, 252, 245, .78); }
.bgv-v-code { left: calc(var(--u) * 145); top: calc(var(--u) * 115); width: calc(var(--u) * 82); height: calc(var(--u) * 25);
    border: 1px solid #C9A56A; border-radius: calc(var(--u) * 3); background: rgba(255, 252, 245, .78); text-align: center; padding-top: calc(var(--u) * 2.6); box-sizing: border-box; }
.bgv-v-code em { display: block; font-style: normal; font-size: calc(var(--u) * 3.6); font-weight: 600; color: #7A4A1C; margin-top: calc(var(--u) * .6); }
/* BALOO bonus pill under the amount, as in the CRM PDF (.gv-bonus); the validity moves down while it shows. */
.bgv-v-bonus { left: calc(var(--u) * 20); top: calc(var(--u) * 116.5); width: calc(var(--u) * 100); display: flex; justify-content: center; }
.bgv-v-bonus[hidden] { display: none; }
.bgv-v-bonus > span { display: inline-block; padding: calc(var(--u) * .9) calc(var(--u) * 3.5); border-radius: calc(var(--u) * 2);
    background: #D9541E; color: #fff; font-size: calc(var(--u) * 4.4); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.bgv-v-bonus:not([hidden]) ~ .bgv-v-valid { top: calc(var(--u) * 127.5); }
.bgv-v-code > * { line-height: 1.2; }
.bgv-v-code small { display: block; font-size: calc(var(--u) * 4); font-weight: 700; letter-spacing: .3px; color: #7A4A1C; }
.bgv-v-code strong { display: block; white-space: nowrap; font-size: calc(var(--u) * 6.6); font-weight: 700; margin-top: calc(var(--u) * 1); }
.bgv-v-mountain { left: calc(var(--u) * 233); top: calc(var(--u) * 121); width: calc(var(--u) * 44); height: calc(var(--u) * 15); }
.bgv-note-code { margin: 8px 0 0; font-size: 12.5px; color: #8C7A66; }

.bgv-designs { display: flex; justify-content: center; gap: 26px; margin: 4px 0 18px; }
.bgv-design { position: relative; cursor: pointer; }
.bgv-design input { position: absolute; opacity: 0; pointer-events: none; }
.bgv-design img { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid transparent;
    box-shadow: 0 0 0 1px #E2D5BF; transition: border-color .2s, transform .2s; }
.bgv-design input:checked + img { border-color: var(--bgv-terra); box-shadow: 0 0 0 3px #FFFCF6, 0 0 0 5px var(--bgv-terra); }
.bgv-design input:focus-visible + img { outline: 2px solid var(--bgv-terra); outline-offset: 4px; }
.bgv-design.is-disabled { cursor: not-allowed; }
.bgv-design.is-disabled img { filter: grayscale(.85) opacity(.55); }
.bgv-design.is-disabled::after { content: 'Čoskoro'; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
    padding: 2px 8px; border-radius: 999px; background: #EADFCB; font-size: 11px; font-weight: 600; color: #6B5A45; white-space: nowrap; }
.bgv-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 14px; font-size: 14px; cursor: pointer; }
.bgv-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bgv-terra); flex: none; }
.bgv-delivery { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 10px; background: #FBEBDD; }
.bgv-delivery svg { width: 30px; height: 30px; color: var(--bgv-terra); flex: none; }
.bgv-delivery p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.bgv-delivery span { color: #C0392B; font-weight: 700; }
.bgv-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: #FDECEA; color: #A5281B; font-size: 14px; }
.bgv-actions { display: flex; gap: 14px; margin-top: 18px; }
.bgv-page .bgv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px !important;
    border-radius: 8px !important; font-family: 'DM Sans', sans-serif !important; font-size: 16px !important; font-weight: 700 !important;
    line-height: 1.2 !important; text-decoration: none !important; cursor: pointer; transition: background .2s, transform .2s; }
.bgv-btn svg { width: 20px; height: 20px; flex: none; }
.bgv-page .bgv-btn-outline { flex: 0 1 auto; background: #fff !important; border: 1.5px solid var(--bgv-ink) !important; color: var(--bgv-ink) !important; }
.bgv-page .bgv-btn-primary { flex: 1 1 auto; background: var(--bgv-terra) !important; border: 1.5px solid var(--bgv-terra) !important; color: #fff !important; }
.bgv-page .bgv-btn-primary:hover { background: #8B3D18 !important; border-color: #8B3D18 !important; }
.bgv-btn.is-busy { opacity: .65; pointer-events: none; }
.bgv-done { margin-top: -60px; position: relative; padding: 48px 40px; border-radius: 18px; background: #FFFCF6; text-align: center;
    box-shadow: 0 20px 50px rgba(43, 29, 14, .12); }
.bgv-page .bgv-done h2 { margin: 0 0 12px !important; font-family: 'Playfair Display', serif !important; font-size: 34px !important; color: var(--bgv-ink) !important; }
.bgv-done p { max-width: 620px; margin: 0 auto 24px; font-size: 17px; line-height: 1.55; }

/* "Ako funguje darčekový poukaz?" */
.bgv-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bgv-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 6, 2, .6); backdrop-filter: blur(2px); }
.bgv-modal-card { position: relative; width: min(780px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 30px 30px;
    border-radius: 22px; background: linear-gradient(180deg, #FFF8EE, #FCEFDF); color: var(--bgv-ink); font-family: 'DM Sans', sans-serif; }
.bgv-page .bgv-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 7px !important; border: 0 !important;
    border-radius: 50%; background: transparent !important; color: var(--bgv-ink) !important; cursor: pointer; }
.bgv-modal-close svg { display: block; width: 100%; height: 100%; }
.bgv-howto-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; margin-bottom: 14px; }
.bgv-howto-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #FBDDC5; color: var(--bgv-terra); }
.bgv-howto-icon svg { width: 30px; height: 30px; }
.bgv-page .bgv-howto-head h2 { margin: 0 !important; font-family: 'Playfair Display', serif !important; font-style: italic; font-size: 28px !important; line-height: 1.15 !important; color: var(--bgv-ink) !important; }
.bgv-howto-head p { margin: 4px 0 0; font-size: 14.5px; }
.bgv-howto-badge { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 14px; border-radius: 12px;
    background: #FBDDC5; color: var(--bgv-terra); font-size: 14px; line-height: 1.25; }
.bgv-howto-badge svg { width: 26px; height: 26px; flex: none; }
.bgv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bgv-steps li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .75); }
.bgv-steps li.is-hl { background: #FBE3CF; }
.bgv-steps i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #F6D9BD; font-style: normal; font-weight: 700; font-size: 18px; }
.bgv-page .bgv-steps h3 { margin: 0 0 2px !important; font-family: 'DM Sans', sans-serif !important; font-size: 17px !important; font-weight: 700 !important; color: var(--bgv-ink) !important; }
.bgv-steps p { margin: 0; font-size: 14px; line-height: 1.45; }
.bgv-steps li > div:first-of-type { flex: 1; }
.bgv-steps-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.bgv-steps-divider::before, .bgv-steps-divider::after { content: ''; flex: 1; height: 1px; background: #E2C9AA; }
.bgv-steps-divider span { padding: 7px 18px; border-radius: 999px; background: #F6D9BD; font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; }
.bgv-step-demo { flex: none; padding: 8px 10px; border-left: 1px solid #EADFCB; font-size: 12.5px; }
.bgv-step-demo small { display: block; margin-bottom: 4px; font-weight: 600; }
.bgv-demo-row { display: flex; gap: 6px; }
.bgv-demo-input { padding: 6px 10px; border: 1px solid #D9C8B0; border-radius: 6px; background: #fff; min-width: 80px; }
.bgv-demo-btn { padding: 6px 10px; border-radius: 6px; background: var(--bgv-terra); color: #fff; font-weight: 600; }

@media (max-width: 960px) {
    .bgv-card { grid-template-columns: 1fr; }
    .bgv-col-form { border-right: 0; border-bottom: 1px solid #EADFCB; }
}
@media (max-width: 600px) {
    .bgv-wrap { padding: 0 12px; }
    .bgv-hero { padding: 22px 0 80px; }
    .bgv-col { padding: 22px 16px 24px; }
    .bgv-grid2, .bgv-grid3 { grid-template-columns: 1fr; }
    .bgv-actions { flex-direction: column-reverse; }
    .bgv-designs { gap: 18px; }
    .bgv-design img { width: 64px; height: 64px; }
    .bgv-modal-card { padding: 20px 14px 18px; }
    .bgv-howto-head { flex-wrap: wrap; }
    .bgv-howto-badge { margin-left: 0; }
    .bgv-page .bgv-howto-head h2 { font-size: 23px !important; }
    .bgv-steps li { flex-wrap: wrap; gap: 12px; }
    .bgv-step-demo { border-left: 0; padding-left: 54px; }
}
