/*
 * VisitTatry Tickets — front-end shop.
 * Inherits the theme's design tokens when present (var(--c-*)), with safe
 * fallbacks so the plugin also looks right standalone.
 */
/* Tokens on BOTH .vtt-shop and .vtt-modal — the modal is portaled to <body>
 * (out of .vtt-shop), so it must carry its own tokens or it loses all colors. */
.vtt-shop, .vtt-modal, .vtt-tc {
	--vtt-primary: var(--c-primary, #A079FF);
	--vtt-primary-dark: var(--c-primary-dark, #14579A);
	--vtt-primary-soft: var(--c-primary-soft, #E6F0F9);
	--vtt-accent: var(--c-accent, #DF5959);
	--vtt-accent-dark: var(--c-accent-dark, #C94A4A);
	--vtt-accent-soft: var(--c-accent-soft, #FCEDED);
	--vtt-ink: var(--c-ink, #11283B);
	--vtt-text: var(--c-text, #3F4E5B);
	--vtt-muted: var(--c-muted, #8B98A6);
	--vtt-line: var(--c-line, #E4EAF0);
	--vtt-card: var(--c-card, #FFFFFF);
	--vtt-radius: var(--radius, 18px);
	--vtt-radius-sm: var(--radius-sm, 12px);
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	color: var(--vtt-text);
}

.vtt-shop {
	max-width: 560px;
	margin: 0 auto;
}

.vtt-card {
	background: var(--vtt-card);
	border: 1px solid var(--vtt-line);
	border-radius: var(--vtt-radius);
	box-shadow: var(--shadow-card, 0 18px 45px -22px rgba(17,40,59,.35));
	padding: 24px;
	margin: 0 0 18px;
}

.vtt-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.vtt-ico {
	flex: 0 0 auto; width: 42px; height: 42px;
	display: grid; place-items: center; border-radius: 50%;
	background: var(--vtt-accent); color: #fff;
}
.vtt-ico svg { width: 22px; height: 22px; }
.vtt-head h3 { margin: 0; font-family: var(--font-head, "Poppins", sans-serif); font-size: 18px; color: var(--vtt-accent); }
.vtt-head p { margin: 3px 0 0; font-size: 13px; color: var(--vtt-muted); }

/* Fields (mirror theme) */
.vtt-fields { display: grid; gap: 14px; min-width: 0; }
.vtt-row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
@media (max-width: 420px) { .vtt-row2 { grid-template-columns: 1fr; } }
.vtt-field {
	display: block; position: relative; min-width: 0;
	background: var(--vtt-card); border: 1px solid var(--vtt-line);
	border-radius: var(--vtt-radius-sm); padding: 10px 16px 8px;
	transition: border-color .15s, box-shadow .15s;
}
.vtt-field:focus-within { border-color: var(--vtt-primary); box-shadow: 0 0 0 3px rgba(25,106,178,.12); }
.vtt-field span { display: block; font-size: 12px; color: var(--vtt-muted); margin-bottom: 2px; }
.vtt-field span .req { color: var(--vtt-accent); }
.vtt-field input, .vtt-field select {
	width: 100%; min-width: 0; border: 0; padding: 0; background: none;
	font-family: inherit; font-size: 16px; font-weight: 500; color: var(--vtt-ink); outline: none;
}
.vtt-field select { appearance: none; cursor: pointer; }

/* Buttons */
.vtt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 15px 22px; border: 1px solid transparent;
	border-radius: var(--vtt-radius-sm); font-family: var(--font-head, "Poppins", sans-serif);
	font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
	cursor: pointer; transition: background .15s, transform .08s;
	color: #fff; background: var(--vtt-primary); text-decoration: none;
}
.vtt-btn:hover { background: var(--vtt-primary-dark); color: #fff; }
.vtt-btn:active { transform: translateY(1px); }
.vtt-btn[disabled] { opacity: .7; cursor: not-allowed; }
.vtt-btn--accent { background: var(--vtt-accent); }
.vtt-btn--accent:hover { background: var(--vtt-accent-dark); }
.vtt-btn--ghost { background: var(--vtt-card); color: var(--vtt-primary); border-color: var(--vtt-line); text-transform: none; letter-spacing: 0; }
.vtt-btn--ghost:hover { background: var(--vtt-primary-soft); color: var(--vtt-primary); }
.vtt-mt { margin-top: 18px; }

.vtt-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: vtt-spin .7s linear infinite; }
@keyframes vtt-spin { to { transform: rotate(360deg); } }

/* Alert */
.vtt-msg { margin: 0; }
.vtt-msg:empty { display: none; }
.vtt-msg.vtt-alert {
	display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 2px;
	padding: 12px 14px; font-size: 13.5px; font-weight: 500; line-height: 1.4;
	color: #A23131; background: var(--vtt-accent-soft); border: 1px solid #F1C4C4; border-radius: var(--vtt-radius-sm);
}
.vtt-alert svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--vtt-accent); margin-top: 1px; }

/* Summary */
.vtt-summary { display: grid; gap: 8px; margin-bottom: 16px; }
.vtt-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--vtt-line); font-size: 14px; }
.vtt-summary .row:last-child { border-bottom: 0; }
.vtt-summary .lbl { color: var(--vtt-muted); }
.vtt-summary .val { font-weight: 600; color: var(--vtt-ink); text-align: right; }

/* Card CTA */
.vtt-cardcta { background: var(--vtt-primary-soft); border: 1px solid #cfe0f2; border-radius: var(--vtt-radius-sm); padding: 16px; margin-bottom: 16px; }
.vtt-cardcta p { margin: 0 0 12px; font-size: 13.5px; color: var(--vtt-ink); }
.vtt-cardactive { display: flex; align-items: center; gap: 8px; color: #1a7f47; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.vtt-cardactive svg { width: 18px; height: 18px; }

/* Day chips */
.vtt-days { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.vtt-day {
	flex: 1 1 90px; cursor: pointer; text-align: center;
	border: 1.5px solid var(--vtt-line); border-radius: var(--vtt-radius-sm);
	padding: 12px 8px; background: var(--vtt-card); transition: border-color .15s, background .15s;
}
.vtt-day input { position: absolute; opacity: 0; pointer-events: none; }
.vtt-day .d { font-family: var(--font-head, sans-serif); font-weight: 700; font-size: 18px; color: var(--vtt-ink); }
.vtt-day .p { font-size: 12px; color: var(--vtt-muted); margin-top: 2px; }
.vtt-day.is-active { border-color: var(--vtt-primary); background: var(--vtt-primary-soft); }

/* Price box */
.vtt-price { border-top: 1px solid var(--vtt-line); padding-top: 14px; margin-top: 4px; }
.vtt-price .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--vtt-muted); padding: 3px 0; }
.vtt-price .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.vtt-price .total .t { font-size: 14px; color: var(--vtt-ink); font-weight: 600; }
.vtt-price .total .a { font-family: var(--font-head, sans-serif); font-weight: 800; font-size: 26px; color: var(--vtt-primary); }
.vtt-price .save { color: #1a7f47; }

/* Done + validation */
.vtt-done { text-align: center; }
.vtt-done .big {
	width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%;
	display: grid; place-items: center; background: #e6f6ed; color: #1a7f47;
}
.vtt-done .big svg { width: 32px; height: 32px; }
.vtt-done h3 { margin: 0 0 6px; font-family: var(--font-head, sans-serif); color: var(--vtt-ink); }
.vtt-ticketnum {
	display: inline-block; margin: 10px 0 16px; padding: 8px 16px; font-family: ui-monospace, monospace;
	font-weight: 700; letter-spacing: .05em; color: var(--vtt-ink); background: var(--vtt-primary-soft); border-radius: 999px;
}

/* Purchase modal */
.vtt-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vtt-modal[hidden] { display: none; }
.vtt-modal__overlay { position: absolute; inset: 0; background: rgba(17, 40, 59, .55); backdrop-filter: blur(2px); }
.vtt-modal__dialog {
	position: relative; background: #fff; border-radius: var(--vtt-radius);
	width: 100%; max-width: 900px; max-height: 92vh; overflow: auto;
	box-shadow: 0 30px 80px -30px rgba(17,40,59,.6); padding: 24px;
}
.vtt-modal__head { display: flex; align-items: center; gap: 12px; background: #d3e8fb; border-radius: var(--vtt-radius-sm); padding: 14px 18px; margin-bottom: 16px; }
.vtt-modal__head .vtt-ico { width: auto; height: auto; background: none; border-radius: 0; color: var(--vtt-ink); }
.vtt-modal__head .vtt-ico .vtt-ic { width: 34px; height: 40px; }
.vtt-modal__head h3 { margin: 0; font-family: var(--font-head, sans-serif); font-size: 16px; color: var(--vtt-accent); }
.vtt-modal__head p { margin: 2px 0 0; font-size: 12px; color: #11283B; }
.vtt-modal__x { margin-left: auto; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--vtt-muted); cursor: pointer; padding: 0 4px; }
.vtt-modal__x:hover { color: var(--vtt-accent); }

.vtt-modal__info { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0; padding: 14px 16px; background: var(--vtt-primary-soft); border-radius: var(--vtt-radius-sm); }
.vtt-modal__info .it { font-size: 12.5px; color: var(--vtt-text); }
.vtt-modal__info .it b { display: block; color: var(--vtt-ink); font-size: 13.5px; }

.vtt-modal__body { overflow-x: auto; }
.vtt-cart { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vtt-cart th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--vtt-muted); padding: 6px 10px; border-bottom: 1px solid var(--vtt-line); white-space: nowrap; }
.vtt-cart td { padding: 12px 10px; vertical-align: middle; }
.vtt-cart tbody tr { border-bottom: 1px solid var(--vtt-line); }
.vtt-cart .who b { color: var(--vtt-ink); }
.vtt-cart .who small { display: block; color: var(--vtt-muted); }
.vtt-badge-cat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--vtt-primary-soft); color: var(--vtt-primary); }
.vtt-badge-cat.child { background: #fdeede; color: #b5651d; }
.vtt-badge-cat.senior { background: #e8e3fb; color: #5b3fa8; }
.vtt-cart select { padding: 7px 10px; border: 1px solid var(--vtt-line); border-radius: 8px; font: inherit; background: #fff; color: var(--vtt-ink); }
.vtt-cart .price { font-weight: 700; color: var(--vtt-ink); white-space: nowrap; }
.vtt-cart th:last-child, .vtt-cart td.price { text-align: right; }
.vtt-cart td, .vtt-cart th { vertical-align: middle; }
.vtt-sumline--disc span:last-child { color: #1a7f47; font-weight: 700; }
.vtt-cart__x { border: 0; background: none; color: var(--vtt-muted); font-size: 18px; cursor: pointer; }
.vtt-cart__x:hover { color: var(--vtt-accent); }

.vtt-qty { display: inline-flex; align-items: center; border: 1px solid var(--vtt-line); border-radius: 8px; overflow: hidden; }
.vtt-qty button { width: 28px; height: 30px; border: 0; background: #f3f6fa; color: var(--vtt-ink); font-size: 16px; cursor: pointer; }
.vtt-qty button:hover { background: var(--vtt-primary-soft); }
.vtt-qty span { min-width: 30px; text-align: center; font-weight: 600; }

.vtt-modal__summary { margin: 18px 0 4px; }
.vtt-sumline { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--vtt-muted); padding: 4px 0; }
/* Handling fee waived / reduced by the card: original struck through. */
.vtt-sumline--fee small { display: block; font-size: 11.5px; color: #1a7f47; }
.vtt-sumline--fee s { color: var(--vtt-muted); font-weight: 400; opacity: .75; margin-right: 6px; }
.vtt-sumline--fee span:last-child { color: #1a7f47; font-weight: 700; white-space: nowrap; }
.vtt-sumtotal { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--vtt-line); margin-top: 6px; padding-top: 10px; }
.vtt-sumtotal .t { font-weight: 600; color: var(--vtt-ink); }
.vtt-sumtotal .a { font-family: var(--font-head, sans-serif); font-weight: 800; font-size: 24px; color: var(--vtt-primary); }

.vtt-modal__foot { display: flex; gap: 12px; margin-top: 8px; }
.vtt-modal__foot .vtt-btn { width: auto; flex: 1; }
.vtt-modal__note { font-size: 11.5px; color: var(--vtt-muted); text-align: center; margin: 12px 0 0; }

/* Cart row avatar + subtitles (Figma) */
.vtt-cart .who { display: flex; align-items: center; gap: 10px; }
.vtt-cart__avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--vtt-primary); color: #fff; }
.vtt-cart__avatar.child { background: #15c6a9; }
.vtt-cart__avatar.senior { background: #7c4dff; }
.vtt-cart__avatar svg { width: 18px; height: 18px; }
.vtt-cart .sub { display: block; font-size: 12px; color: #ababab; margin-top: 2px; }

/* Two-box order summary (Figma) */
.vtt-sumtitle { font-weight: 700; color: var(--vtt-ink); margin: 18px 0 10px; }
.vtt-sumwrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.vtt-sumbox { border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius); padding: 16px 18px; }
.vtt-sumbox--totals { background: #f0f0f0; }
.vtt-sumgroup { margin-bottom: 12px; }
.vtt-sumgroup:last-child { margin-bottom: 0; }
.vtt-sumgroup__head { font-size: 15px; font-weight: 600; color: var(--vtt-ink); margin-bottom: 4px; }
.vtt-sumrow { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; font-size: 14px; color: var(--vtt-ink); padding: 2px 0; }
.vtt-sumrow .ty { color: var(--vtt-muted); }
.vtt-sumrow .pr { text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .vtt-sumwrap { grid-template-columns: 1fr; } }

/* Card-activated confirmation banner */
.vtt-cardok { color: #1a7f47; font-weight: 600; font-size: 14px; background: #e6f6ed; border-radius: var(--vtt-radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.vtt-cardok[hidden] { display: none; }

/* "You already have a Tatry Card" — shown instead of offering a second one. */
.vtt-hascard {
	color: var(--vtt-ink); font-size: 13.5px; line-height: 1.5; font-weight: 600;
	background: var(--vtt-primary-soft); border: 1px solid #cfe0f2;
	border-radius: var(--vtt-radius-sm); padding: 10px 14px; margin-bottom: 14px;
}
.vtt-hascard[hidden] { display: none; }

/* Activation gate inside the modal */
.vtt-actview { text-align: center; }
.vtt-actview__img { width: 100%; height: auto; display: block; border-radius: var(--vtt-radius-sm); margin: 4px 0 16px; }
.vtt-actview__text { font-size: 14px; color: var(--vtt-text); margin: 0 0 14px; }
/* Person manager (activation): one card per person, e-mail + guardian inputs */
.vtt-persons { margin: 0 0 14px; text-align: left; }
.vtt-persons__list { display: grid; gap: 10px; }
.vtt-person { background: var(--vtt-primary-soft); border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm); padding: 12px 14px; }
.vtt-person__top { display: flex; align-items: center; gap: 9px; }
.vtt-person__name { font-weight: 600; color: var(--vtt-ink); flex: 1 1 auto; }
.vtt-person__field { display: block; margin-top: 8px; font-size: 12px; color: var(--vtt-muted); }
.vtt-person__field span { display: block; margin-bottom: 3px; }
.vtt-person__field input { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--vtt-line); border-radius: 9px; font: inherit; color: var(--vtt-text); background: #fff; }
.vtt-addperson { margin: 10px 0; background: #fff; border: 1px dashed var(--vtt-line); border-radius: var(--vtt-radius-sm); padding: 12px; }
.vtt-addperson__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.vtt-addperson__grid input { min-width: 0; padding: 9px 11px; border: 1px solid var(--vtt-line); border-radius: 9px; font: inherit; }
.vtt-addperson__grid input[type="date"] { grid-column: 1 / -1; }
.vtt-addperson__btns { display: flex; gap: 8px; margin-top: 10px; }
.vtt-addperson__btns .vtt-btn { flex: 1; }
.vtt-addbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 9px 16px; border: 0; border-radius: var(--vtt-radius-sm); background: var(--vtt-accent); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.vtt-addbtn:hover { background: var(--vtt-accent-dark); }
.vtt-actview__fineprint { font-size: 11px; line-height: 1.5; color: var(--vtt-muted); text-align: left; margin: 0 0 12px; }
.vtt-consent { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 13px; color: #196AB2; background: #F2F2F2; padding: 15px; border-radius: 0; margin: 0 0 10px; cursor: pointer; }
.vtt-consent input { margin: 3px 0 0; flex: 0 0 auto; width: 16px; height: 16px; }
.vtt-consent input:disabled { cursor: not-allowed; opacity: .7; }
.vtt-consent .req { color: var(--vtt-accent); } /* used by the [visittatry_tickets] shop consents */

/* Required T&C consent inside the registration form (both flows). The form is
 * a grid, so keep the extra spacing modest on top and none at the bottom. */
.vtt-consent--full { margin: 14px 0 0; }

/* Hint under the legal-guardian field (minors). */
.vtt-hint { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--vtt-muted); }

/* ZSSK data-sharing legal notice shown in the purchase modal. */
.vtt-zssk { font-size: 11px; line-height: 1.55; color: var(--vtt-muted); text-align: left; margin: 4px 0 12px; }

@media (max-width: 600px) {
	.vtt-modal__dialog { padding: 18px; }
	.vtt-modal__foot { flex-direction: column-reverse; }
	/* Stack the cart into a card per person (iPhone layout). */
	.vtt-modal__body { overflow-x: visible; }
	.vtt-cart, .vtt-cart tbody, .vtt-cart tr, .vtt-cart td { display: block; width: auto; min-width: 0; }
	.vtt-cart thead { display: none; }
	.vtt-cart tr { border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm); padding: 8px 12px; margin: 0 0 12px; }
	.vtt-cart td { border: 0; padding: 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
	.vtt-cart td[data-label]::before { content: attr(data-label); color: var(--vtt-muted); font-size: 12px; font-weight: 600; }
	.vtt-cart td.who { display: block; padding-bottom: 4px; }
	.vtt-cart td.rm { justify-content: flex-end; padding-top: 0; }
	.vtt-cart select { flex: 1; max-width: 62%; }
}

/* Validation page */
.vtt-validate { max-width: 480px; margin: 40px auto; }
.vtt-status { text-align: center; padding: 18px 0 6px; }
.vtt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.vtt-badge.valid { background: #e6f6ed; color: #1a7f47; }
.vtt-badge.upcoming { background: #fff4d6; color: #8a6100; }
.vtt-badge.expired, .vtt-badge.invalid { background: var(--vtt-accent-soft); color: #a23131; }

/* ==========================================================================
   [tatrycard] — full inline flow
   ========================================================================== */
.vtt-tc { max-width: 1000px; margin: 0 auto; }
.vtt-tc .vtt-ic, .vtt-modal .vtt-ic { width: 26px; height: 26px; display: block; }
/* Load state: centred verify card + long registration text only */
.vtt-tc-load { max-width: 460px; margin: 0 auto; }
.vtt-tc-box--center { max-width: 360px; margin: 0 auto; }
.vtt-tc-terms { font-size: 11px; line-height: 1.65; color: var(--vtt-muted); background: #fff; border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius); padding: 18px 20px; margin: 18px 0 0; text-align: justify; }
.vtt-addperson__terms { max-height: 150px; overflow-y: auto; margin: 10px 0 0; padding: 12px 14px; font-size: 10.5px; border-radius: var(--vtt-radius-sm); }
/* Verified summary (left card, full state) */
.vtt-tc-sum { display: grid; gap: 10px; }
.vtt-tc-sum__row { border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm); padding: 9px 13px; }
.vtt-tc-sum__row span { display: block; font-size: 11px; color: var(--vtt-muted); }
.vtt-tc-sum__row b { font-size: 14px; color: var(--vtt-ink); }
/* People pills topbar */
.vtt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.vtt-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--vtt-line); border-radius: 999px; background: var(--vtt-primary-soft); color: var(--vtt-ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.vtt-pill.is-active { background: var(--vtt-primary); color: #fff; border-color: var(--vtt-primary); }
.vtt-pill.is-hascard { border-color: #1a7f47; }
.vtt-pill.is-hascard.is-active { border-color: var(--vtt-primary); }
.vtt-pill--add { background: var(--vtt-accent); color: #fff; border-color: var(--vtt-accent); }
.vtt-pill--add:hover { background: var(--vtt-accent-dark); }
.vtt-pill__ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.vtt-pill__ico svg { width: 18px; height: 18px; }
/* Selected person panel */
.vtt-selperson { margin: 0 0 14px; }
.vtt-selperson__row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.vtt-selperson__row[hidden] { display: none; } /* author display:flex above would otherwise beat the UA [hidden] rule */
.vtt-selperson__col { min-width: 0; flex: 1; }
.vtt-selperson__row > div, .vtt-selperson__row .vtt-selperson__field { min-width: 0; flex: 1; }
.vtt-selperson__row > div > span, .vtt-selperson__field > span { display: block; font-size: 11px; color: var(--vtt-muted); margin-bottom: 2px; }
.vtt-selperson__row b { font-size: 14px; color: var(--vtt-ink); }
.vtt-selperson__row--name b { font-size: 16px; }
.vtt-selperson__ico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #B4D9FA; color: #fff; }
.vtt-selperson__ico svg, .vtt-selperson__ico img { width: 18px; height: 18px; display: block; }
.vtt-selperson__ico--accent { background: #DF5959; color: #fff; }
.vtt-selperson__field { display: block; border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm); padding: 7px 13px; cursor: text; }
.vtt-selperson__field > span { margin-bottom: 1px; }
.vtt-selperson__field input { width: 100%; min-width: 0; padding: 0; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--vtt-ink); outline: none; }
.vtt-selperson__field input::placeholder { color: var(--vtt-muted); }
.vtt-tc__cols { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.vtt-tc-box { background: #fff; border: 1px solid #A7D2F8; border-radius: var(--vtt-radius); box-shadow: var(--shadow-card, 0 18px 45px -22px rgba(17,40,59,.2)); padding: 22px; }
.vtt-tc-box__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.vtt-tc-box__ico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--vtt-accent); color: #fff; }
.vtt-tc-box__ico svg, .vtt-tc-box__ico img { width: 18px; height: 18px; display: block; }
.vtt-tc-box__head h3 { font-size: 16px; color: var(--vtt-accent); margin: 0 0 2px; }
.vtt-tc-box__head p { font-size: 12.5px; color: var(--vtt-muted); margin: 0; }
.vtt-tc-form { display: grid; gap: 12px; }
.vtt-tc-field { display: block; }
.vtt-tc-field > span { display: block; font-size: 12px; color: var(--vtt-muted); margin-bottom: 4px; }
.vtt-tc-field > span b { color: var(--vtt-accent); }
.vtt-tc-field input, .vtt-tc-field select { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm); font: inherit; color: var(--vtt-text); background: #fff; }
/* Keeps the native arrow, like the selects in the cart table above it. */
.vtt-tc-field select { cursor: pointer; height: auto; }
.vtt-tc-field2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.vtt-tc-verified { display: flex; justify-content: center; padding: 14px 0 2px; }
.vtt-tc-verified span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #15c6a9; color: #fff; }
.vtt-tc-verified svg { width: 26px; height: 26px; }
.vtt-tc-benefits { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: stretch; }
.vtt-tc-benefits__col { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.vtt-tc-benefits__top { display: flex; flex-direction: column; }
.vtt-tc-banner { width: 100%; height: auto; display: block; border-radius: var(--vtt-radius-sm); margin-bottom: 12px; }
.vtt-tc-promo { font-family: "Roboto", system-ui, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.5; color: #196AB2; text-align: start; margin: 0 0 14px; }
.vtt-tc [data-vtt-change] { border: 1px solid #A7D2F8; color: #4FA4EE; background: #fff; font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; font-size: 16px; line-height: 22px; }
.vtt-tc-foot { display: flex; gap: 12px; margin-top: 16px; }
.vtt-tc-foot .vtt-btn { flex: 1; }
.vtt-btn--primary { background: var(--vtt-primary); color: #fff; }
.vtt-btn--primary:hover { background: var(--vtt-primary-dark); }
.vtt-btn--activate, .vtt-btn--buy { background: var(--vtt-ink); color: #fff; }
.vtt-btn--activate:hover, .vtt-btn--buy:hover { background: #000; }
.vtt-btn--activate:disabled, .vtt-btn--buy:disabled { background: #b7b7bd; cursor: not-allowed; }
.vtt-tc-buybar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #A7D2F8; border-radius: var(--vtt-radius); box-shadow: var(--shadow-card, 0 18px 45px -22px rgba(17,40,59,.2)); padding: 18px 22px; margin-top: 20px; }
.vtt-tc-buybar__info { display: flex; align-items: center; gap: 12px; }
.vtt-tc-buybar__ico { display: grid; place-items: center; background: none; color: var(--vtt-ink); }
.vtt-tc-buybar__ico svg { width: 45px; height: 55px; display: block; }
.vtt-tc-buybar__ico .vtt-ic { width: 45px; height: 55px; display: block; }
.vtt-tc-buybar__info b { display: block; color: var(--vtt-accent); font-size: 15px; }
.vtt-tc-buybar__info span { font-size: 12.5px; color: var(--vtt-muted); }
.vtt-tc-buybar__note { max-width: 250px; text-align: right; font-size: 13px; color: var(--vtt-muted); margin: 0 0 0 auto; }
.vtt-tc-buybar .vtt-btn--buy { width: auto; padding-left: 28px; padding-right: 28px; }
.vtt-tc-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 6px; }
.vtt-tc-features > div { display: flex; align-items: center; gap: 10px; }
.vtt-tc-features__ico { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--vtt-muted); }
.vtt-tc-features__ico svg { width: 24px; height: 24px; }
.vtt-tc-features__ico img { width: 26px; height: 26px; display: block; }
.vtt-tc-features b { font-size: 13px; color: var(--vtt-ink); font-weight: 700; line-height: 1.2; }
.vtt-tc-powered { text-align: center; font-size: 12px; color: var(--vtt-muted); margin: 8px 0 0; }
.vtt-tc-done { text-align: center; background: #fff; border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius); padding: 30px; margin-top: 20px; }
.vtt-tc-done__ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #15c6a9; color: #fff; }
.vtt-tc-done__ico svg { width: 30px; height: 30px; }
.vtt-ticketnum { font-weight: 800; font-size: 20px; color: var(--vtt-ink); letter-spacing: .04em; margin: 8px 0; }
.vtt-cardimages { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 18px 0; }
.vtt-cardimg { margin: 0; max-width: 320px; }
.vtt-cardimg a { display: block; }
.vtt-cardimg img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.vtt-cardimg figcaption { margin-top: 8px; font-size: 14px; color: var(--vtt-ink); }
.vtt-cardimg__dl { margin-top: 10px; display: inline-flex; width: auto; }

@media (max-width: 860px) {
	.vtt-tc__cols { grid-template-columns: 1fr; }
	.vtt-tc-benefits { grid-template-columns: 1fr; }
	.vtt-tc-features { grid-template-columns: 1fr 1fr; }
}

/* ============================ Date picker ============================
 * Portaled to <body> (so no card/modal overflow can clip it), which means
 * it must carry its own design tokens — same reason .vtt-modal does. */
.vtt-dp {
	--vtt-primary: var(--c-primary, #A079FF);
	--vtt-accent: var(--c-accent, #DF5959);
	--vtt-accent-soft: var(--c-accent-soft, #FCEDED);
	--vtt-ink: var(--c-ink, #11283B);
	--vtt-text: var(--c-text, #3F4E5B);
	--vtt-muted: var(--c-muted, #8B98A6);
	--vtt-line: var(--c-line, #E4EAF0);
	--vtt-radius-sm: var(--radius-sm, 12px);
	position: absolute; z-index: 100010; top: 0; left: 0;
	background: #fff; border: 1px solid var(--vtt-line); border-radius: var(--vtt-radius-sm);
	box-shadow: 0 22px 50px -18px rgba(17,40,59,.45);
	padding: 12px; font-family: var(--font-body, "Inter", system-ui, sans-serif);
	color: var(--vtt-text); font-size: 13px; user-select: none;
}
.vtt-dp[hidden] { display: none; }

.vtt-dp__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vtt-dp__nav {
	flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--vtt-line);
	background: #fff; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
	color: var(--vtt-ink); display: grid; place-items: center; padding: 0;
}
.vtt-dp__nav:hover { border-color: var(--vtt-accent); color: var(--vtt-accent); }
.vtt-dp__selects { flex: 1 1 auto; display: flex; gap: 6px; justify-content: center; }
.vtt-dp__selects select {
	font: inherit; color: var(--vtt-ink); background: #fff; cursor: pointer;
	border: 1px solid var(--vtt-line); border-radius: 8px; padding: 5px 8px; max-width: 100%;
}
.vtt-dp__selects select:focus { outline: none; border-color: var(--vtt-accent); }

.vtt-dp__panels { display: flex; gap: 14px; }
.vtt-dp__panel { width: 238px; }
.vtt-dp__cap { text-align: center; font-weight: 700; color: var(--vtt-ink); margin-bottom: 6px; }
.vtt-dp__wd, .vtt-dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.vtt-dp__wd span { text-align: center; font-size: 11px; color: var(--vtt-muted); padding: 4px 0; }
.vtt-dp__pad { display: block; }
.vtt-dp__day {
	border: 0; background: none; font: inherit; color: var(--vtt-text); cursor: pointer;
	height: 32px; border-radius: 8px; padding: 0;
}
.vtt-dp__day:hover:not([disabled]) { background: var(--vtt-accent-soft); color: var(--vtt-accent); }
.vtt-dp__day[disabled] { color: #C9D2DA; cursor: default; }
.vtt-dp__day.is-today { box-shadow: inset 0 0 0 1px var(--vtt-muted); }
.vtt-dp__day.is-in { background: var(--vtt-accent-soft); color: var(--vtt-accent); border-radius: 0; }
.vtt-dp__day.is-sel, .vtt-dp__day.is-start, .vtt-dp__day.is-end {
	background: var(--vtt-accent); color: #fff; font-weight: 700; box-shadow: none;
}
.vtt-dp__day.is-sel { border-radius: 8px; }
.vtt-dp__day.is-start { border-radius: 8px 0 0 8px; }
.vtt-dp__day.is-end { border-radius: 0 8px 8px 0; }
.vtt-dp__day.is-start.is-end { border-radius: 8px; }

.vtt-dp__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vtt-line); }
.vtt-dp__hint { font-size: 12px; color: var(--vtt-muted); }
.vtt-dp__acts { margin-left: auto; display: flex; gap: 10px; }
.vtt-dp__link { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--vtt-muted); cursor: pointer; text-decoration: underline; }
.vtt-dp__link:hover { color: var(--vtt-accent); }

/* Narrow screens: bottom sheet instead of a popup that never quite fits. */
.vtt-dp--sheet {
	position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important;
	border-radius: 16px 16px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
	box-shadow: 0 -18px 50px -18px rgba(17,40,59,.5);
}
.vtt-dp--sheet .vtt-dp__panels { justify-content: center; }
.vtt-dp--sheet .vtt-dp__panel { width: 100%; max-width: 320px; }
.vtt-dp--sheet .vtt-dp__day { height: 38px; }

/* Fields wired to the picker get a calendar affordance. */
.vtt-hasdp {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B98A6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 17px 17px;
	padding-right: 38px !important; cursor: pointer;
}

/* Billing details in the purchase modal ("Fakturačné údaje") — layout only;
 * the fields themselves reuse each flow's existing field styles. */
.vtt-billing { margin: 18px 0 4px; }
.vtt-billing__h {
	margin: 0 0 10px; font-family: var(--font-head, sans-serif);
	font-size: 15px; color: var(--vtt-ink);
}
.vtt-billing__mode { margin-bottom: 12px; }
.vtt-billing .vtt-row2, .vtt-billing .vtt-tc-field2 { margin-bottom: 12px; }

/* E-mail typo hint — shown under a field whose domain looks mistyped.
 * Advisory by default (amber); red when the address is outright invalid. */
.vtt-emailhint {
	display: block; margin: 5px 0 0; font-size: 11.5px; line-height: 1.5;
	color: #8A6100;
}
.vtt-emailhint[hidden] { display: none; }
.vtt-emailhint--error { color: #A23131; }
.vtt-emailhint__fix {
	appearance: none; padding: 0; margin: 0; border: 0; background: none;
	font: inherit; font-weight: 600; color: inherit; text-decoration: underline;
	text-underline-offset: 2px; cursor: pointer;
}
.vtt-emailhint__fix:hover { opacity: .75; }
.vtt-input--warn { border-color: #E0B050 !important; }
