/*
 * /vouchers/<guid> - gift voucher purchase page.
 *
 * Part 1: the voucher dialog rules of the BizSpa booking preview, copied as-is from
 *         Biz-NextJs/app/booking-preview/booking-preview.css, landing-page rules left out.
 * Part 2: this page's own rules - the dialog is the whole page (full-screen on phones), the sticky button bar reaches
 *         the dialog's bottom edge, the coupon box works, the payment window, the confirmation step.
 */

/* the site's color (sites.popBg, "תצוגת אונליין" settings): these defaults are the BizSpa purple, a site with a popBg
 * gets its own values from views/page.php - vouchers_brand_css() in inc/helpers.php */
:root{--brand:#6d28d9;--brand-2:#7c3aed;--brand-dark:#5b21b6;--brand-rgb:109,40,217;--brand-tint:#f2ebff;--brand-wash:#f7f3ff;--brand-line:#cdb9f2;--brand-ring:#c4a8ff}

/* ---------------------------------------------------------------- part 1: reference */
.booking-site{--ink:#20152b;--muted:#72687a;--violet:var(--brand);--green:#176b55;min-height:100vh;background:#fbfafc;color:var(--ink);font-family:Inter,"Heebo",Arial,sans-serif;text-align:start;scroll-behavior:smooth}
.booking-site *{box-sizing:border-box}
.booking-site a{text-decoration:none;color:inherit}
.booking-site button,.booking-site a{touch-action:manipulation}
.booking-site button:focus-visible,.booking-site a:focus-visible,.booking-site input:focus-visible{outline:3px solid var(--brand-ring);outline-offset:3px}
.booking-primary{min-height:46px;padding:0 20px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:850;box-shadow:0 12px 24px rgba(var(--brand-rgb),.2)}
.booking-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--brand-ring);font-size:14px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.booking-continue{width:100%;border:0}
.booking-dialog-backdrop{position:fixed;inset:0;z-index:60;background:rgba(20,12,25,.7);display:grid;place-items:center;padding:20px}
.booking-dialog{position:relative;width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:28px;background:#fff;padding:34px;box-shadow:0 30px 100px rgba(0,0,0,.35)}
.booking-dialog-close{position:absolute;top:16px;inset-inline-end:16px;width:44px;height:44px;border:1px solid #ded8e3;border-radius:13px;background:#fff;display:grid;place-items:center}
.booking-dialog h2{margin:12px 0 20px;font-size:34px}
.booking-dialog-summary{display:flex;align-items:center;gap:13px;padding:12px;border-radius:17px;background:#f4f0f6}
.booking-dialog-summary img{border-radius:12px;object-fit:cover}
.booking-dialog-summary strong,.booking-dialog-summary span,.booking-dialog-summary small{display:block}
.booking-dialog-summary span{margin:3px 0;color:var(--muted);font-size:13px}
.booking-dialog form{display:grid;gap:14px;margin-top:20px}
.booking-dialog label{display:grid;gap:7px;font-weight:800}
.booking-dialog input{min-height:50px;border:1px solid #dcd4e2;border-radius:12px;padding:0 14px;font:inherit}
.booking-demo-note{display:flex;align-items:flex-start;gap:8px;margin:0;padding:12px;border-radius:13px;background:#eaf5f1;color:#24604f;font-size:12px;line-height:1.5}
.booking-demo-note svg{flex:0 0 auto;width:17px}
.booking-form-error{margin:0;color:#b42318;font-weight:750}
.booking-dialog form>.booking-primary{border:0}
.booking-success{text-align:center;padding-block:30px}
.booking-success>span{width:64px;height:64px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#def2ea;color:var(--green)}
.booking-success p{color:var(--muted);line-height:1.6}
html[dir="rtl"] .booking-continue svg{transform:scaleX(-1)}
.booking-guest-count{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid #ded6e4;border-radius:16px;background:#faf8fc}
.booking-guest-count>div:first-child strong,.booking-guest-count>div:first-child small{display:block}
.booking-guest-count>div:first-child small{margin-top:4px;color:var(--muted)}
.booking-guest-count>div:last-child{display:flex;align-items:center;gap:12px}
.booking-guest-count button{width:42px;height:42px;border:1px solid #d9cfe0;border-radius:12px;background:#fff;color:var(--violet);display:grid;place-items:center}
.booking-guest-count button svg{width:18px}
.booking-guest-count>div:last-child>strong{min-width:24px;text-align:center;font-size:20px}
.booking-dialog-actions{display:grid;grid-template-columns:auto 1fr;gap:9px}
.booking-dialog-actions>button{min-height:48px;padding:0 18px;border:1px solid #d9d0df;border-radius:13px;background:#fff;color:#5d5263;font:inherit;font-weight:850}
.booking-dialog-actions>.booking-primary{border:0;color:#fff}
@media(max-width:760px){.booking-dialog{padding:28px 20px}.booking-dialog h2{font-size:29px}}
.voucher-dialog{width:min(680px,100%)}
.voucher-progress{margin:0 56px 24px 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.voucher-progress li{position:relative;display:flex;align-items:center;gap:8px;color:#94899b;font-size:12px;font-weight:800}
.voucher-progress li:not(:last-child):after{content:"";position:absolute;inset-inline-start:calc(100% - 8px);top:16px;width:calc(100% - 28px);height:2px;background:#e5dfea}
.voucher-progress b{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;background:#eee9f1;display:grid;place-items:center}
.voucher-progress li.active{color:var(--violet)}
.voucher-progress li.active b{background:var(--violet);color:#fff}
.voucher-progress li.done{color:var(--green)}
.voucher-progress li.done b{background:#dff3eb;color:var(--green)}
.voucher-offer-grid{display:grid;gap:10px}
.voucher-offer-grid>button{position:relative;width:100%;min-height:98px;padding:10px;border:1px solid #ded6e4;border-radius:17px;background:#fff;color:inherit;display:grid;grid-template-columns:92px 1fr 26px;align-items:center;gap:13px;text-align:start;font:inherit}
.voucher-offer-grid>button.selected{border-color:var(--brand-2);background:var(--brand-wash);box-shadow:0 0 0 2px rgba(var(--brand-rgb),.12)}
.voucher-offer-grid img{height:72px;border-radius:12px;object-fit:cover}
.voucher-offer-grid span strong,.voucher-offer-grid span small,.voucher-offer-grid span b{display:block}
.voucher-offer-grid span small{margin:4px 0;color:var(--muted);font-size:12px;line-height:1.35;white-space:pre-line}
.voucher-offer-grid span b{color:var(--violet);font-size:14px}
.voucher-offer-grid>button>svg{width:22px;color:var(--green)}
.voucher-value{margin:14px 0}
.voucher-quantity{margin:0 0 12px}
.voucher-total{display:flex;align-items:center;justify-content:space-between;margin:12px 0 16px;padding:14px 16px;border-radius:14px;background:#21142d;color:#fff}
.voucher-total strong{font-size:24px}
.voucher-dialog textarea{min-height:92px;resize:vertical;border:1px solid #dcd4e2;border-radius:12px;padding:12px 14px;font:inherit}
.voucher-delivery,.voucher-send-time{margin:0;padding:0;border:0}
.voucher-delivery legend,.voucher-send-time legend{margin-bottom:8px;font-weight:850}
.voucher-delivery button,.voucher-send-time button{min-height:44px;margin-inline-end:8px;padding:0 14px;border:1px solid #ddd4e3;border-radius:12px;background:#fff;color:#5e5365;display:inline-flex;align-items:center;gap:7px;font:inherit;font-weight:780}
.voucher-delivery button.selected,.voucher-send-time button.selected{border-color:var(--brand-2);background:var(--brand-tint);color:var(--brand-dark)}
.voucher-delivery svg{width:16px}
.voucher-preview{overflow:hidden;margin:0 0 16px;border-radius:20px;background:linear-gradient(135deg,#24132f,#17463a);color:#fff;display:grid;grid-template-columns:170px 1fr;align-items:stretch}
.voucher-preview img{width:100%;height:100%;object-fit:cover}
.voucher-preview>div{padding:20px}
.voucher-preview small,.voucher-preview strong,.voucher-preview span{display:block}
.voucher-preview strong{margin:4px 0 8px;font-size:24px}
.voucher-preview p{margin:0 0 14px;color:#e5dce9;line-height:1.5}
.voucher-preview span{color:#bfe9dc;font-weight:780}
.voucher-review{margin:0 0 16px;border:1px solid #e1d9e6;border-radius:16px;overflow:hidden}
.voucher-review>div{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:12px 14px}
.voucher-review>div+div{border-top:1px solid #eee8f1}
.voucher-review dt{color:var(--muted)}
.voucher-review dd{margin:0;font-weight:800}
@media(max-width:760px){.voucher-progress{margin:0 48px 18px 0}.voucher-progress li span{display:none}.voucher-offer-grid>button{grid-template-columns:74px 1fr 22px;min-height:90px}.voucher-offer-grid img{width:74px;height:68px}.voucher-preview{grid-template-columns:1fr}.voucher-preview img{height:130px}.voucher-review>div{grid-template-columns:82px 1fr}.voucher-delivery,.voucher-send-time{display:grid;grid-template-columns:1fr 1fr;gap:8px}.voucher-delivery button,.voucher-send-time button{margin:0;justify-content:center}}
@media(max-width:430px){.booking-dialog-summary img{width:76px;height:68px}}
.booking-dialog-actions .booking-primary:disabled{cursor:not-allowed;background:#ded7e5;color:#8c8192!important;box-shadow:none}
.voucher-recipient-list{display:grid;gap:14px}
.voucher-recipient-card{display:grid;gap:13px;padding:18px;border:1px solid #ddd4e3;border-radius:20px;background:#faf8fc}
.voucher-recipient-card>header{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #e8e1ec}
.voucher-recipient-card>header>span{width:40px;height:40px;border-radius:13px;background:var(--brand-tint);color:var(--violet);display:grid;place-items:center}
.voucher-recipient-card>header svg{width:20px}
.voucher-recipient-card>header small,.voucher-recipient-card>header strong{display:block}
.voucher-recipient-card>header small{color:var(--muted);font-size:11px}
.voucher-recipient-card>header strong{margin-top:2px}
.voucher-preview-list{display:grid;gap:10px;margin-bottom:16px}
.voucher-preview-list .voucher-preview{margin:0}
.voucher-sticky-single,.voucher-sticky-actions{position:sticky;bottom:-20px;z-index:5;margin-inline:-8px;padding:12px 8px 4px;background:#fff}
.voucher-sticky-single .booking-continue{width:100%}
.voucher-dialog form .voucher-sticky-actions{margin-bottom:-20px}
.voucher-dialog form{padding-bottom:4px}
.voucher-design-choices{margin:0;padding:0;border:0;min-width:0}
.voucher-design-choices legend{margin-bottom:9px;font-weight:850}
.voucher-design-choices>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.voucher-design-choices button{position:relative;min-width:0;padding:6px 6px 9px;border:1px solid #ddd4e3;border-radius:13px;background:#fff;color:#24182e;font:inherit;font-weight:800;text-align:center;cursor:pointer}
.voucher-design-choices button.selected{border:2px solid var(--brand);background:var(--brand-wash);box-shadow:0 0 0 2px rgba(var(--brand-rgb),.1)}
.voucher-design-choices button img{display:block;width:100%;height:66px;object-fit:cover;border-radius:8px}
.voucher-design-choices button span{display:block;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.voucher-design-choices button svg{position:absolute;top:10px;inset-inline-end:10px;width:20px;height:20px;padding:3px;border-radius:50%;background:var(--brand);color:#fff}
.voucher-schedule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.voucher-schedule-fields input{width:100%;min-width:0}
.voucher-preview.voucher-design-birthday{background:linear-gradient(135deg,#432164,#713e8c)}
.voucher-preview.voucher-design-anniversary{background:linear-gradient(135deg,#432a4e,#805374)}
.voucher-preview.voucher-design-love{background:linear-gradient(135deg,#5b284d,#9b4d75)}
.voucher-preview.voucher-design-success{background:linear-gradient(135deg,#133f48,#2d7474)}
.voucher-dialog .booking-eyebrow{color:var(--brand-dark);letter-spacing:.04em}
.voucher-step-hint{margin:-10px 0 18px;color:#62566a;font-size:14px;line-height:1.5}
.voucher-quantity input{width:68px;min-height:42px;padding:0 6px;text-align:center;font-weight:800;direction:ltr;appearance:textfield;-moz-appearance:textfield}
.voucher-quantity input::-webkit-inner-spin-button,.voucher-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.voucher-total{padding:10px 14px;border:1px solid var(--brand-line);border-radius:12px;background:var(--brand-wash);color:#625276}
.voucher-total span{font-size:14px;font-weight:700}
.voucher-total strong{color:#40215e;font-size:21px;font-weight:700}
.voucher-dialog .booking-dialog-actions .booking-primary:is(:disabled,[aria-disabled="true"]){border:1px solid #e4e1e8;background:#f1f0f3;color:#a5a0ac!important;box-shadow:none}
.voucher-dialog form input[aria-invalid="true"]{border-color:#dc4545;background:#fff9f9;box-shadow:0 0 0 2px rgba(220,69,69,.12)}
.voucher-dialog form label:has(input[aria-invalid="true"]),.voucher-dialog .voucher-delivery[aria-invalid="true"] legend{color:#b42318}
.voucher-dialog .voucher-delivery[aria-invalid="true"] button{border-color:#dc4545;background:#fff9f9}
.voucher-offer-details{display:grid;gap:12px;margin-top:14px;padding:16px;border:1px solid #e1d9e6;border-radius:16px;background:#faf8fc;color:#261a31;text-align:start}
.voucher-offer-details>div+div{padding-top:12px;border-top:1px solid #e8e1ec}
.voucher-offer-details h3{margin:0 0 6px;font-size:15px}
.voucher-offer-details p{margin:0;color:#62566a;line-height:1.55;white-space:pre-line}
.voucher-offer-details p+p{margin-top:7px}
.voucher-invoice{display:grid;gap:12px;margin:14px 0 4px;padding:14px 16px;border:1px solid #e1d9e6;border-radius:14px;background:#fff}
.voucher-invoice .voucher-invoice-option{display:flex;align-items:center;gap:10px;cursor:pointer}
.voucher-invoice .voucher-invoice-option input{width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--violet)}
.voucher-invoice>label:not(.voucher-invoice-option){max-width:360px}
.voucher-invoice>label>span{color:#b42318}
.voucher-coupon{display:grid;gap:9px;margin:14px 0 0;padding:14px 16px;border:1px solid #e1d9e6;border-radius:14px;background:#fff}
.voucher-coupon-entry{display:flex;gap:9px;min-width:0}
.voucher-coupon-entry input{flex:1;min-width:0}
.voucher-coupon-entry button{min-width:76px;padding:0 14px;border:1px solid #e5e0e9;border-radius:12px;background:#f6f4f8;color:#93899b;font:inherit;font-weight:800;cursor:not-allowed}
.voucher-coupon p{margin:0;color:#756a7c;font-size:12px;line-height:1.5}
@media(max-width:760px){.voucher-recipient-card{padding:14px}.voucher-sticky-single,.voucher-sticky-actions{bottom:-20px;margin-inline:-4px;padding-inline:4px}.voucher-preview-list .voucher-preview{grid-template-columns:88px 1fr}.voucher-preview-list .voucher-preview img{height:100%;min-height:128px}.voucher-preview-list .voucher-preview>div{padding:14px}}
@media(max-width:420px){.voucher-design-choices button img{height:52px}.voucher-design-choices button span{font-size:11px}.voucher-schedule-fields{grid-template-columns:1fr}.voucher-schedule-fields input{padding-inline:12px}}
.booking-dialog-actions>.booking-primary{border:0;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff!important;box-shadow:0 12px 24px rgba(var(--brand-rgb),.2)}
.booking-dialog-actions>.booking-primary:hover{background:linear-gradient(135deg,var(--brand-dark),var(--brand))}
.booking-dialog-actions>.booking-primary:focus-visible{outline:3px solid var(--brand-ring);outline-offset:3px}
.booking-dialog .booking-success .booking-primary{min-width:190px;min-height:48px;margin-top:12px;border:0;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff!important;font-size:15px;font-weight:850;box-shadow:0 12px 24px rgba(var(--brand-rgb),.2)}
.booking-dialog-close{z-index:10;cursor:pointer}
.voucher-progress{margin:0 0 24px;margin-inline-end:64px;padding:5px;border:1px solid #e8e1ed;border-radius:16px;background:#f7f5f9;gap:5px}
.voucher-progress li{min-width:0;min-height:56px;justify-content:center;flex-direction:column;gap:2px;padding:5px 4px;border-radius:11px;color:#756a7c;font-size:10px;line-height:1.15;text-align:center;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.voucher-progress li:not(:last-child):after{display:none}
.voucher-progress b{width:24px;height:24px;background:#e9e3ed;font-size:12px}
.voucher-progress li.active{background:#fff;color:var(--brand-dark);box-shadow:0 5px 16px rgba(49,27,65,.09)}
.voucher-progress li.active b{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 6px 14px rgba(var(--brand-rgb),.2)}
.voucher-progress li.done{background:#eaf6f2;color:#176b57}
.voucher-progress li.done b{background:#d3eee5;color:#176b57}
.voucher-progress li span{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voucher-progress{grid-template-columns:repeat(4,minmax(0,1fr))}
.voucher-progress li span{white-space:normal;overflow-wrap:anywhere}
.voucher-progress li>button{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:0;border:0;border-radius:11px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:center}
.voucher-progress li>button:disabled{cursor:default}
.voucher-progress li.done>button{cursor:pointer}
.voucher-progress li.done>button:hover,.voucher-progress li.done>button:focus-visible{background:#d7ede5;outline:2px solid #176b57;outline-offset:1px}
.voucher-dialog .booking-dialog-actions:has(>button:only-child){grid-template-columns:1fr}
.voucher-offer-grid .voucher-venue-logo{width:92px;height:72px;padding:6px;border:1px solid #e6dff0;border-radius:12px;background:var(--brand-wash);display:grid;place-items:center}
.voucher-offer-grid .voucher-venue-logo>span{width:54px;height:54px;border:1px solid var(--brand-line);border-radius:50%;background:#fff;color:var(--brand-dark);display:grid;place-items:center;font-size:18px;font-weight:800;letter-spacing:.03em}
.voucher-offer-grid .voucher-venue-logo img{width:auto;max-width:80px;height:auto;max-height:58px;border-radius:0;object-fit:contain}
@media(max-width:760px){.voucher-progress{margin-inline-end:58px;margin-bottom:20px}.voucher-progress li span{display:inline;font-size:9px}}
@media(max-width:760px){.voucher-offer-grid .voucher-venue-logo{width:74px;height:68px}.voucher-offer-grid .voucher-venue-logo>span{width:48px;height:48px;font-size:16px}.voucher-offer-grid .voucher-venue-logo img{max-width:62px;max-height:52px}}
@media(prefers-reduced-motion:reduce){.booking-site{scroll-behavior:auto}.booking-site *{transition:none!important}}
.booking-dialog .booking-dialog-close{position:sticky;top:0;inset-inline-end:auto;z-index:12;margin-inline-start:auto;margin-bottom:-44px;box-shadow:0 5px 16px rgba(32,21,43,.12)}
@media(max-width:430px){.voucher-quantity{flex-direction:column;align-items:stretch;gap:12px}.voucher-quantity>div:last-child{justify-content:space-between}}
@supports (-moz-appearance:none){.voucher-dialog{scrollbar-width:thin;scrollbar-color:#d2c4de transparent}}
.voucher-dialog::-webkit-scrollbar{width:4px;background:transparent}
.voucher-dialog::-webkit-scrollbar-track{background:transparent}
.voucher-dialog::-webkit-scrollbar-thumb{border:0;border-radius:999px;background:#d2c4de}
.voucher-dialog::-webkit-scrollbar-thumb:hover{background:#baa6d0}
.voucher-dialog::-webkit-scrollbar-button{display:none;width:0;height:0}
.voucher-dialog::-webkit-scrollbar-button:vertical:start:decrement,.voucher-dialog::-webkit-scrollbar-button:vertical:end:increment{display:block;width:4px;height:14px;border:0;background:transparent}
.voucher-dialog::-webkit-scrollbar-corner{background:transparent}
.voucher-offer-grid .voucher-offer-price{display:inline-flex;width:max-content;margin-top:8px;padding:4px 9px;border:1px solid var(--brand-line);border-radius:8px;background:var(--brand-wash);color:var(--brand-dark);font-size:13px;line-height:1.2}
.voucher-choice-content{display:grid;gap:12px;margin:18px 0 8px;padding:16px;border:1px solid #e8e1ec;border-radius:16px;background:#fbf9fd;text-align:start}
.voucher-choice-content>div+div{padding-top:12px;border-top:1px solid #eae4ee}
.voucher-choice-content h3{margin:0 0 5px;font-size:14px;color:#342340}
.voucher-choice-content p{margin:0;color:#62566a;font-size:13px;line-height:1.6;white-space:pre-line}
.voucher-offer-grid .voucher-offer-photo{padding:0;overflow:hidden;background:#f4eff7}
.voucher-offer-grid .voucher-offer-photo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.voucher-choice-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:12px;margin-bottom:18px}
.voucher-choice-heading>.booking-eyebrow{grid-column:1;grid-row:1;justify-self:start}
.voucher-choice-heading>div{grid-column:1;grid-row:2;min-width:0}
.voucher-choice-heading>.voucher-choice-logo{grid-column:2;grid-row:2;align-self:center}
.voucher-choice-heading h2{margin-top:0;margin-bottom:12px}
.voucher-choice-heading .voucher-step-hint{margin:0}
.voucher-choice-logo{display:grid;place-items:center;flex:none;width:110px;height:82px;overflow:hidden;border:1px solid var(--brand-line);border-radius:15px;background:var(--brand-wash);color:var(--brand);font-size:23px;font-weight:700;line-height:1}
.voucher-choice-logo img{display:block;width:100%;height:100%;padding:7px;object-fit:contain}
@media(max-width:760px){.voucher-choice-heading{column-gap:10px}.voucher-choice-logo{width:70px;height:58px;font-size:17px}.voucher-choice-logo img{padding:5px}}
.voucher-quantity button:disabled{border-color:#e6e3e9;background:#fbfafc;color:#c8c3ce;box-shadow:none;cursor:not-allowed}
.voucher-dialog-toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;min-height:48px;margin:0 0 12px;padding:2px 0;background:#fff;direction:ltr}
.voucher-dialog-toolbar::before{content:"";position:absolute;inset:-34px -34px -12px;background:#fff;z-index:-1;pointer-events:none}
.booking-dialog .voucher-dialog-toolbar .booking-dialog-close{position:static;inset:auto;z-index:auto;width:44px;height:44px;flex:none;margin:0;box-shadow:0 5px 16px rgba(32,21,43,.12)}
.voucher-share-button{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #ded8e3;border-radius:13px;background:#fff;color:var(--brand-dark);cursor:pointer}
.voucher-share-button:hover{background:var(--brand-wash);border-color:var(--brand-line)}
.voucher-share-button svg{width:18px;height:18px}
.voucher-dialog-toolbar>.system-language-control{position:relative!important;inset:auto!important;z-index:35}
.voucher-dialog-toolbar .system-language-trigger{width:44px;min-width:44px;height:44px;padding:0;border-color:#ded8e3}
.voucher-dialog-toolbar .system-language-trigger span{display:none}
.voucher-dialog-toolbar .system-language-dialog{top:72px;right:14px}
.voucher-share-notice{min-width:0;color:#176b55;font-size:12px;font-weight:750;line-height:1.3}
.voucher-dialog .voucher-progress{margin-inline-end:0}
.voucher-dialog .voucher-sticky-single .booking-continue svg{transform:none}
.voucher-dialog .voucher-next-button{justify-content:space-between;gap:12px;direction:rtl;min-width:0}
.voucher-dialog .voucher-next-label{display:inline-flex;align-items:center;gap:8px;min-width:0;text-align:right}
.voucher-dialog .voucher-next-label svg{flex:none;width:18px;height:18px}
.voucher-dialog .voucher-next-amount{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:850}
.voucher-design-preview-button{justify-self:start;min-height:38px;padding:0 14px;border:1px solid var(--brand-line);border-radius:10px;background:#fff;color:var(--brand-dark);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.voucher-design-preview-button:hover{background:var(--brand-wash);border-color:var(--brand-2)}
.voucher-design-preview-button:focus-visible,.voucher-design-preview-close:focus-visible{outline:3px solid var(--brand-ring);outline-offset:3px}
.voucher-design-preview-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(25,14,36,.68);backdrop-filter:blur(4px)}
.voucher-design-preview-dialog{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #e4d9ed;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(24,12,38,.28);color:#24182e}
.voucher-design-preview-close{position:absolute;top:14px;left:14px;z-index:2;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ded5e5;border-radius:11px;background:#fff;color:#2c1b38;cursor:pointer}
.voucher-design-preview-close svg{width:18px;height:18px}
.voucher-design-preview-card{overflow:hidden;margin-top:38px;border:1px solid #ded5e6;border-radius:18px;background:#faf7fd;box-shadow:0 10px 28px rgba(41,21,58,.09)}
.voucher-design-preview-image{position:relative;height:190px;background:#eee8f3}
.voucher-design-preview-image img{object-fit:cover}
.voucher-design-preview-content{display:grid;gap:9px;padding:22px;text-align:center}
.voucher-design-preview-content>span{color:var(--brand);font-size:13px;font-weight:850}
.voucher-design-preview-content>small{color:#72687a;font-size:12px;font-weight:750}
.voucher-design-preview-content h3{margin:0;font-size:23px;line-height:1.25}
.voucher-design-preview-content p{margin:0;line-height:1.5}
.voucher-design-preview-content blockquote{margin:5px 0;padding:12px;border-radius:11px;background:var(--brand-tint);line-height:1.5;white-space:pre-wrap}
.voucher-design-preview-content>b{margin-top:3px;color:var(--brand-dark);font-size:20px}
.voucher-design-preview-note{margin:14px 0 0;color:#756a7c;font-size:12px;line-height:1.5;text-align:center}
@media(max-width:520px){.voucher-design-preview-dialog{padding:16px;border-radius:18px}.voucher-design-preview-image{height:150px}.voucher-design-preview-content{padding:18px}.voucher-design-preview-content h3{font-size:20px}}
.voucher-recipient-gift-toggle{display:flex;align-items:center;gap:9px;margin-inline-start:auto;white-space:nowrap;color:#4c4057;font-size:12px;font-weight:750}
.voucher-recipient-gift-toggle .bizspa-switch{width:50px;min-width:50px;height:30px;min-height:30px}
.voucher-private-note{margin:0;padding:12px 14px;border:1px solid #e8e1ed;border-radius:12px;background:#fff;color:#62566a;font-size:13px;line-height:1.5}
@media(max-width:430px){.voucher-recipient-card>header{flex-wrap:wrap}.voucher-recipient-gift-toggle{width:100%;justify-content:flex-end;margin-inline-start:0;padding-top:8px;border-top:1px solid #e8e1ec}}

/* app/system/bizspa-switch.css */
.bizspa-switch{box-sizing:border-box;position:relative;display:inline-block;flex:none;width:50px;min-width:50px;height:30px;min-height:30px;padding:0;overflow:hidden;border:1px solid #aaa5b8;border-radius:999px;background:#b9b5c4;vertical-align:middle;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;cursor:pointer;appearance:none}
.bizspa-switch[aria-checked="true"]{background:var(--brand);border-color:var(--brand)}
.bizspa-switch-thumb{box-sizing:border-box;position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #160b2d42;transform:translateX(0);transition:transform .18s ease}
.bizspa-switch[aria-checked="true"] .bizspa-switch-thumb{transform:translateX(20px)}
.bizspa-switch:focus-visible{outline:3px solid var(--brand-ring);outline-offset:3px}
@media (hover:hover){.bizspa-switch:not(:disabled):hover{box-shadow:0 0 0 4px rgba(var(--brand-rgb),.11)}}
@media (prefers-reduced-motion:reduce){.bizspa-switch,.bizspa-switch-thumb{transition:none}}

/* ---------------------------------------------------------------- part 2: this page */
html,body{margin:0;padding:0;background:#21142d}
body.vouchers-page{overflow:hidden;font-family:"Heebo",Arial,sans-serif;line-height:1.6;-webkit-text-size-adjust:100%}
.vouchers-page .booking-site{min-height:100vh;min-height:100dvh;font-family:"Heebo",Arial,sans-serif}
.vouchers-page [hidden]{display:none!important}
.vouchers-page button{cursor:pointer;font:inherit}
.vouchers-page button:disabled{cursor:not-allowed}

/* the dialog's padding as variables: the sticky toolbar and button bar are placed against them */
.vouchers-page .voucher-dialog{--pad-t:34px;--pad-x:34px;--pad-b:34px;padding:var(--pad-t) var(--pad-x) var(--pad-b);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;color:var(--ink)}
.vouchers-page .voucher-dialog-toolbar::before{inset:calc(-1 * var(--pad-t)) calc(-1 * var(--pad-x)) -12px}

/* sticky button bar: flush with the dialog's bottom edge, stuck or not - nothing scrolls into view below it
   (the reference stops it 20px short of a 34px padding, which leaves a strip of scrolling content under the buttons) */
.vouchers-page .voucher-sticky-single,
.vouchers-page .voucher-sticky-actions,
.vouchers-page .voucher-dialog form .voucher-sticky-actions{position:sticky;bottom:calc(-1 * var(--pad-b));z-index:5;margin:16px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-b));padding:12px var(--pad-x) calc(var(--pad-b) + env(safe-area-inset-bottom, 0px));background:#fff;box-shadow:0 -10px 18px -14px rgba(32,21,43,.35)}
.vouchers-page .voucher-dialog form{padding-bottom:0}

/* LTR (English): the reference is RTL-first */
html[dir="ltr"] .vouchers-page .voucher-dialog .voucher-next-button{direction:ltr}
html[dir="ltr"] .vouchers-page .voucher-dialog .voucher-next-label{text-align:left}
html[dir="ltr"] .vouchers-page .voucher-design-preview-close{left:auto;right:14px}
/* the toolbar mirrors too: ✕ at the top-left in Hebrew, top-right in English */
html[dir="ltr"] .vouchers-page .voucher-dialog-toolbar{flex-direction:row-reverse}
/* switches: ON = the knob at the end side (left in Hebrew, right in English) */
html[dir="rtl"] .vouchers-page .bizspa-switch-thumb{left:auto;right:3px}
html[dir="rtl"] .vouchers-page .bizspa-switch[aria-checked="true"] .bizspa-switch-thumb{transform:translateX(-20px)}

/* toolbar: the language control of the reference (Biz-NextJs app/system/system-language-control.css): a globe button that
   opens a language dialog over a scrim. vouchers.js places the dialog under the button (inline top/left); phones: a bottom sheet */
.vouchers-page .system-language-control{font-family:inherit}
.vouchers-page .system-language-trigger{height:42px;min-width:92px;border:1px solid #e3ddec;border-radius:12px;background:#fff;color:#281a39;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;font-size:12px;font-weight:750;box-shadow:0 2px 8px rgba(35,17,53,.05);cursor:pointer}
.vouchers-page .system-language-trigger svg{width:17px}
.vouchers-page .voucher-dialog-toolbar .system-language-trigger{width:44px;min-width:44px;height:44px;padding:0;border-color:#ded8e3;border-radius:13px;color:var(--brand-dark);box-shadow:none}
.vouchers-page .voucher-dialog-toolbar .system-language-trigger svg{width:18px;height:18px}
.vouchers-page .voucher-dialog-toolbar .system-language-trigger span{display:none}
.vouchers-page .voucher-dialog-toolbar .system-language-trigger:hover{background:var(--brand-wash);border-color:var(--brand-line)}
.vouchers-page .system-language-scrim{position:fixed;z-index:1;inset:0;border:0;padding:0;background:rgba(24,12,35,.46);backdrop-filter:blur(3px);cursor:default}
.vouchers-page .system-language-dialog{position:fixed;z-index:2;width:min(390px,calc(100% - 28px));background:#fff;border:1px solid #e5dfea;border-radius:18px;box-shadow:0 22px 65px rgba(30,14,44,.25);overflow:hidden;text-align:start;color:#20152b}
html[dir="rtl"] .vouchers-page .system-language-dialog{direction:rtl}
html[dir="ltr"] .vouchers-page .system-language-dialog{direction:ltr}
.vouchers-page .system-language-dialog header{padding:19px;display:flex;gap:12px;border-bottom:1px solid #e8e2ec}
.vouchers-page .system-language-dialog header>div{flex:1}
.vouchers-page .system-language-dialog header span{font-size:10px;color:var(--brand);font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.vouchers-page .system-language-dialog h2{margin:4px 0;font-size:22px;line-height:1.25}
.vouchers-page .system-language-dialog p{margin:0;color:#6d6675;font-size:12px}
.vouchers-page .system-language-dialog header button{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid #e5dfea;background:#fff;border-radius:11px;color:#20152b}
.vouchers-page .system-language-dialog header button svg{width:18px;height:18px}
.vouchers-page .system-language-dialog>div{padding:10px}
.vouchers-page .system-language-dialog>div>button{width:100%;min-height:62px;border:0;background:#fff;border-radius:12px;display:grid;grid-template-columns:1fr auto;align-items:center;text-align:start;padding:10px 13px;color:inherit}
.vouchers-page .system-language-dialog>div>button:hover,.vouchers-page .system-language-dialog>div>button.selected{background:var(--brand-wash)}
.vouchers-page .system-language-dialog>div span{font-size:15px;font-weight:800}
.vouchers-page .system-language-dialog>div small{grid-column:1;color:#746c7b;font-size:11px}
.vouchers-page .system-language-dialog>div svg{grid-column:2;grid-row:1/3;color:var(--brand);width:18px}
@media(max-width:700px){
    .vouchers-page .system-language-dialog{top:auto!important;left:14px!important;right:14px!important;bottom:14px;width:auto;max-height:calc(100dvh - 28px);overflow-y:auto}
    .vouchers-page .system-language-dialog>div>button{min-height:66px}
}
.vouchers-page .voucher-share-notice{flex:1}

/* the card summary on steps 1-3 */
.vouchers-page .booking-dialog-summary{margin:8px 0}

/* bizpop's popup (?popup=1): the page is an iframe over bizpop - no page background, bizpop dims what is behind it */
html.vouchers-popup,html.vouchers-popup body,html.vouchers-popup .booking-site,html.vouchers-popup .booking-dialog-backdrop{background:transparent}

/* "Preview voucher" acts on the whole voucher, not on the send-time choice right above it: its own row at the foot of the
   recipient card, behind a divider like the card header's, full width, dashed, with an eye icon */
.vouchers-page .voucher-recipient-preview{margin-top:3px;padding-top:13px;border-top:1px solid #e8e1ec}
.vouchers-page .voucher-recipient-preview .voucher-design-preview-button{width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-style:dashed;background:transparent}
.vouchers-page .voucher-recipient-preview .voucher-design-preview-button:hover{background:var(--brand-wash)}
.vouchers-page .voucher-recipient-preview .voucher-design-preview-button svg{width:17px;height:17px;flex:none}

/* choice screen */
.vouchers-page .voucher-offer-grid>button{cursor:pointer}
.vouchers-page .voucher-choice-content p,.vouchers-page .voucher-offer-details p,.vouchers-page .voucher-step-hint{white-space:pre-line}
.vouchers-page .voucher-empty{margin:0;padding:18px;border:1px dashed #d9cfe0;border-radius:14px;color:var(--muted);text-align:center}

/* step 1: open sum, its range hint, the coupon box (live here - the reference shows it disabled) */
.vouchers-page .voucher-value input{text-align:start}
.vouchers-page .voucher-value small{color:var(--muted);font-size:12px;font-weight:700}
.vouchers-page .voucher-value input[aria-invalid="true"]{border-color:#dc4545;background:#fff9f9}
.vouchers-page .voucher-coupon-entry input{min-height:46px;border:1px solid #dcd4e2;border-radius:12px;padding:0 14px;font:inherit;text-transform:uppercase}
.vouchers-page .voucher-coupon-entry input[readonly]{background:#f6f4f8;color:#5d5263}
.vouchers-page .voucher-coupon-entry button{min-height:46px;border-color:var(--brand-line);background:var(--brand-tint);color:var(--brand-dark);cursor:pointer}
.vouchers-page .voucher-coupon-entry button:disabled{background:#f6f4f8;color:#93899b;border-color:#e5e0e9;cursor:not-allowed}
.vouchers-page .voucher-coupon p.ok{color:var(--green);font-weight:750}
.vouchers-page .voucher-coupon p.fail{color:#b42318;font-weight:750}
.vouchers-page .voucher-coupon-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-6px 0 16px;padding:10px 14px;border:1px dashed var(--brand-line);border-radius:12px;background:var(--brand-wash);color:var(--brand-dark);font-size:13px;font-weight:750}
.vouchers-page .voucher-coupon-line b{white-space:nowrap;direction:ltr}
.vouchers-page .voucher-total s{margin-inline-end:8px;color:#bfb3c9;font-size:16px;font-weight:600}
.vouchers-page .voucher-dialog .voucher-next-button .voucher-next-hint{flex:1;min-width:0;font-size:13px;font-weight:700;line-height:1.25;white-space:normal;text-align:center}
.vouchers-page #voucher-dialog-title:focus{outline:none}

/* step 3 */
.vouchers-page .voucher-dialog textarea{width:100%;box-sizing:border-box}
.vouchers-page .voucher-message-max{color:var(--muted);font-size:11px;font-weight:600}
.vouchers-page .voucher-schedule-fields input{direction:ltr}
.vouchers-page .voucher-dialog label{min-width:0}
.vouchers-page .voucher-dialog input{min-width:0;width:100%;box-sizing:border-box}
.vouchers-page .voucher-dialog input[type="checkbox"]{width:auto}
.vouchers-page .voucher-quantity input{width:56px}

/* payment window (CardCom page) over the dialog */
.vouchers-page .voucher-payment-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:16px;background:rgba(25,14,36,.68);backdrop-filter:blur(4px)}
.vouchers-page .voucher-payment-dialog{position:relative;display:flex;flex-direction:column;width:min(480px,100%);height:min(760px,calc(100vh - 32px));border:1px solid #e4d9ed;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(24,12,38,.28);overflow:hidden}
.vouchers-page .voucher-payment-dialog>header{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #eee8f1}
.vouchers-page .voucher-payment-dialog>header strong{flex:1;display:flex;align-items:center;gap:8px;font-size:15px}
.vouchers-page .voucher-payment-dialog>header strong svg{width:18px;height:18px;color:var(--green)}
.vouchers-page .voucher-payment-dialog>header b{direction:ltr;color:var(--brand-dark);font-size:15px}
.vouchers-page .voucher-payment-close{width:40px;height:40px;flex:none;display:grid;place-items:center;border:1px solid #ded5e5;border-radius:11px;background:#fff;color:#2c1b38}
.vouchers-page .voucher-payment-close svg{width:18px;height:18px}
.vouchers-page .voucher-payment-frame{position:relative;flex:1;min-height:0}
.vouchers-page .voucher-payment-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.vouchers-page .voucher-payment-frame p{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:var(--muted);font-weight:700}

/* step 4: confirmation */
.vouchers-page .voucher-done-banner{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:14px 16px;border:1px solid #cfe9df;border-radius:16px;background:#eef8f4;color:#1d5a49;font-weight:750;line-height:1.5}
.vouchers-page .voucher-done-banner>span{flex:none;width:34px;height:34px;border-radius:50%;background:#d7f0e6;color:var(--green);display:grid;place-items:center}
.vouchers-page .voucher-done-banner svg{width:18px;height:18px}
.vouchers-page .voucher-preview .voucher-number{display:inline-block;margin-top:10px;padding:4px 9px;border-radius:8px;background:rgba(255,255,255,.14);color:#fff;font-size:13px;font-weight:800;direction:ltr;font-variant-numeric:tabular-nums}
.vouchers-page .voucher-preview .voucher-number.pending{color:#e5dce9;font-weight:600}

/* busy primary button */
.vouchers-page .booking-primary[aria-busy="true"]{opacity:.75;cursor:progress}

/* not found */
.vouchers-not-found{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f7f6fa;color:#1c1230;text-align:center}
.vouchers-not-found>section{width:min(520px,100%);padding:38px;border:1px solid #ddd7e7;border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(43,24,64,.09)}
.vouchers-not-found span{color:var(--brand);font-size:14px;font-weight:800;letter-spacing:.14em}
.vouchers-not-found h1{margin:10px 0;font-size:32px;line-height:1.15}
.vouchers-not-found p{margin:0;color:#665e70;line-height:1.55}

/* phones: the dialog is the full screen - no backdrop margin, no rounded "popover", no side scroll */
@media (max-width:760px){
    .vouchers-page .booking-dialog-backdrop{padding:0;place-items:stretch;background:#fff;backdrop-filter:none}
    .vouchers-page .booking-dialog.voucher-dialog{--pad-t:14px;--pad-x:16px;--pad-b:16px;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0;box-shadow:none}
    .vouchers-page .voucher-dialog .booking-dialog-close{box-shadow:none}
    .vouchers-page .voucher-payment-backdrop{padding:0}
    .vouchers-page .voucher-payment-dialog{width:100%;height:100vh;height:100dvh;border:0;border-radius:0}
    .vouchers-page .voucher-design-preview-backdrop{padding:0}
    .vouchers-page .voucher-design-preview-dialog{width:100%;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0}
}

/* ---------------------------------------------------------------- part 3: the recipient's voucher (views/voucher.php) */
html.vouchers-view-root{background:#f4f0f6}
body.vouchers-view{min-height:100vh;min-height:100dvh;background:#f4f0f6;color:#20152b;font-family:"Heebo",Arial,sans-serif;line-height:1.6;-webkit-text-size-adjust:100%}
.voucher-view{--muted:#72687a;width:min(560px,100%);margin:0 auto;padding:24px 16px calc(32px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
.voucher-view *{box-sizing:border-box}
.voucher-view .voucher-design-preview-card{margin-top:0;background:#fff}
.voucher-view .voucher-design-preview-image{height:auto;aspect-ratio:2/1}
.voucher-view .voucher-design-preview-image img{position:absolute;inset:0;width:100%;height:100%}
.voucher-view .voucher-design-preview-content h1{margin:0;font-size:26px;line-height:1.25}
.voucher-view .voucher-design-preview-content>b{font-size:24px}
.voucher-view-text{margin-top:6px;color:#4d4455;font-size:14px;line-height:1.55;white-space:pre-line}
.voucher-view-fine{color:var(--muted);font-size:12px}
.voucher-view-meta{display:flex;justify-content:space-between;gap:12px;margin:0;padding:14px 22px;border-top:1px dashed #d9cde4;font-size:13px}
.voucher-view-meta div{display:grid;gap:2px}
.voucher-view-meta div:last-child{text-align:end}
.voucher-view-meta dt{color:var(--muted);font-weight:700}
.voucher-view-meta dd{margin:0;font-weight:800}
.voucher-view-contact{margin:18px 4px 0;color:#4d4455;font-size:14px;text-align:center}
.voucher-view-contact a{color:var(--brand-dark);font-weight:800;white-space:nowrap}
.voucher-view-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}
.voucher-view-actions button{min-width:130px;cursor:pointer;font:inherit;font-weight:800}
.voucher-view-secondary{min-height:46px;padding:0 20px;border:1px solid var(--brand-line);border-radius:13px;background:#fff;color:var(--brand-dark)}
.voucher-view-secondary:hover{background:var(--brand-wash)}
.voucher-view-notice{margin:10px 0 0;color:var(--muted);font-size:13px;text-align:center}
@media(max-width:430px){.voucher-view{padding-top:16px}.voucher-view .voucher-design-preview-content h1{font-size:22px}.voucher-view-meta{padding:12px 16px}}
@media print{
    body.vouchers-view{background:#fff}
    .voucher-view{width:100%;max-width:560px;padding:0}
    .voucher-view .voucher-design-preview-card{box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .voucher-view-actions,.voucher-view-notice{display:none!important}
}
