/*
 * PesuVaraus booking app.
 * The app renders inside a Shadow DOM (.pv-ui) and a body layer (.pv-layer),
 * so these rules are isolated from the theme. The same file is also loaded in
 * the page head for the pre-load placeholder and [pesuvaraus_my_bookings].
 *
 * Icons: Phosphor Icons (MIT).
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

.pv-ui,
.pv-layer {
	--pv-accent: #447be0;
	--pv-accent-ink: #fff;
	--pv-accent-strong: color-mix(in srgb, var(--pv-accent) 84%, #000);
	--pv-display: "Saira", "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pv-ease: cubic-bezier(.16, 1, .3, 1);
	--pv-r-xl: 28px;
	--pv-r-lg: 20px;
	--pv-r-md: 16px;
	--pv-r-sm: 12px;

	/* dark (default) */
	--pv-bg: #0e1217;
	--pv-surface: #161b22;
	--pv-surface-2: #1e252e;
	--pv-surface-3: #2a323d;
	--pv-line: rgba(255, 255, 255, .07);
	--pv-line-2: rgba(255, 255, 255, .13);
	--pv-text: #eef2f7;
	--pv-muted: #97a3b4;
	--pv-faint: #6c7788;
	--pv-accent-text: color-mix(in srgb, var(--pv-accent) 70%, #fff);
	--pv-accent-soft: color-mix(in srgb, var(--pv-accent) 17%, transparent);
	--pv-ok: #43d193;
	--pv-warn: #f6b85a;
	--pv-err: #ff7272;
	--pv-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
	--pv-elev: 0 1px 0 rgba(255, 255, 255, .04) inset;
	--pv-plate: #f4f6f8;
	--pv-soft-bg: color-mix(in srgb, var(--pv-accent-strong) 42%, var(--pv-surface));
	--pv-soft-ink: color-mix(in srgb, #fff 84%, var(--pv-accent));
	color-scheme: dark;
}

.pv-ui[data-theme="light"],
.pv-layer[data-theme="light"] {
	--pv-bg: #ffffff;
	--pv-surface: #f4f6f9;
	--pv-surface-2: #eceff4;
	--pv-surface-3: #dfe4eb;
	--pv-line: #e5e9ef;
	--pv-line-2: #d3d9e1;
	--pv-text: #101722;
	--pv-muted: #5b6575;
	--pv-faint: #8a93a1;
	--pv-accent-text: var(--pv-accent-strong);
	--pv-accent-soft: color-mix(in srgb, var(--pv-accent) 10%, #fff);
	--pv-ok: #0f9960;
	--pv-warn: #a86a12;
	--pv-err: #d23b3b;
	--pv-shadow: 0 1px 2px rgba(16, 23, 34, .05), 0 24px 60px -28px rgba(16, 23, 34, .25);
	--pv-elev: none;
	--pv-soft-bg: color-mix(in srgb, var(--pv-accent) 14%, #fff);
	--pv-soft-ink: var(--pv-accent-strong);
	color-scheme: light;
}

/* ------------------------------------------------------------------ */
/* Surfaces & reset                                                    */
/* ------------------------------------------------------------------ */

.pv-ui,
.pv-layer {
	color: var(--pv-text);
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-align: left;
	text-indent: 0;
	white-space: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.pv-ui *,
.pv-ui *::before,
.pv-ui *::after,
.pv-layer *,
.pv-layer *::before,
.pv-layer *::after {
	box-sizing: border-box;
}

:where(.pv-ui, .pv-layer) :where(button, input, textarea) {
	font: inherit;
	color: inherit;
	margin: 0;
	letter-spacing: inherit;
	text-transform: none;
}

:where(.pv-ui, .pv-layer) :where(button) {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: inherit;
	touch-action: manipulation;
}

:where(.pv-ui, .pv-layer) :where(button:disabled) {
	cursor: default;
}

:where(.pv-ui, .pv-layer) :where(a) {
	color: var(--pv-accent-text);
	text-underline-offset: 3px;
}

:where(.pv-ui, .pv-layer) :where(h2, h3) {
	margin: 0;
	color: var(--pv-text);
	font-family: var(--pv-display);
	text-transform: none;
	letter-spacing: -.01em;
}

:where(.pv-ui, .pv-layer) :where(p) {
	margin: 0;
}

:where(.pv-ui, .pv-layer) :where(ul) {
	list-style: none;
	margin: 0;
	padding: 0;
}

:where(.pv-ui) :where(fieldset) {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

:where(.pv-ui) :where(legend) {
	padding: 0;
}

:where(.pv-ui, .pv-layer) :where(svg) {
	flex: none;
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.pv-ui :focus-visible,
.pv-layer :focus-visible {
	outline: 2px solid var(--pv-accent);
	outline-offset: 2px;
}

.pv-ui :focus:not(:focus-visible) {
	outline: none;
}

/* The panel */

.pv-ui {
	container: pv / inline-size;
	position: relative;
	isolation: isolate;
	max-width: 1080px;
	margin: 0 auto;
	padding: 4px 16px 18px;
	border-radius: var(--pv-r-xl);
	background: var(--pv-bg);
	box-shadow: var(--pv-shadow);
	/* Step slide-ins must never make the page scroll sideways; clip keeps sticky working. */
	overflow-x: clip;
}

.pv-ui::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background:
		radial-gradient(520px 220px at 88% -40px, color-mix(in srgb, var(--pv-accent) 22%, transparent), transparent 70%),
		radial-gradient(420px 200px at -10% 110%, color-mix(in srgb, var(--pv-accent) 8%, transparent), transparent 70%);
}

.pv-ui[data-theme="light"] {
	border: 1px solid var(--pv-line);
}

.pv-ui[data-theme="light"]::before {
	opacity: .55;
}

@media (min-width: 560px) {
	.pv-ui {
		padding: 6px 28px 28px;
	}
}

/* ------------------------------------------------------------------ */
/* Header & LED progress (signature)                                   */
/* ------------------------------------------------------------------ */

.pv-head {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 8px;
	padding: 12px 0 12px;
}

.pv-head__t {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
	line-height: 1.2;
}

.pv-head__k {
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.pv-head__t strong {
	font-family: var(--pv-display);
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.pv-head--manage {
	grid-template-columns: minmax(0, 1fr) auto;
}

.pv-head--manage .pv-head__t {
	align-items: flex-start;
	text-align: left;
}

.pv-led {
	position: relative;
	height: 4px;
	margin: 0 0 22px;
	border-radius: 99px;
	background: var(--pv-surface-2);
}

.pv-led i {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--pv-p, 0%);
	border-radius: inherit;
	background: linear-gradient(90deg, color-mix(in srgb, var(--pv-accent) 25%, transparent), var(--pv-accent));
	box-shadow: 0 0 14px color-mix(in srgb, var(--pv-accent) 65%, transparent);
	transition: width .6s var(--pv-ease);
}

.pv-led i::after {
	content: "";
	position: absolute;
	right: -3px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pv-accent) 55%, transparent), 0 0 16px 2px var(--pv-accent);
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.pv-body {
	display: block;
}

.pv-main {
	display: block;
	min-width: 0;
}

.is-wide .pv-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 312px;
	gap: 28px;
	align-items: start;
}

.is-wide .pv-actions {
	display: none;
}

.pv-cart {
	position: sticky;
	top: 24px;
}

.pv-screen {
	min-width: 0;
}

.pv-enter-fwd {
	animation: pv-in-fwd .42s var(--pv-ease) both;
}

.pv-enter-back {
	animation: pv-in-back .42s var(--pv-ease) both;
}

@keyframes pv-in-fwd {
	from {
		opacity: 0;
		transform: translate3d(28px, 0, 0);
	}
}

@keyframes pv-in-back {
	from {
		opacity: 0;
		transform: translate3d(-28px, 0, 0);
	}
}

.pv-nudge {
	animation: pv-nudge .36s var(--pv-ease);
}

@keyframes pv-nudge {
	25% { transform: translateX(-6px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-2px); }
}

.pv-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 6px !important;
	outline: none;
	text-wrap: balance;
}

.pv-title:focus {
	outline: none;
}

.pv-lead {
	color: var(--pv-muted);
	font-size: 15px;
	margin: 0 0 18px !important;
	max-width: 60ch;
}

.pv-title + :not(.pv-lead) {
	margin-top: 18px;
}

.pv-subtitle {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px !important;
}

.pv-intro {
	color: var(--pv-muted);
	margin-bottom: 16px;
	font-size: 14.5px;
}

.pv-label {
	display: block;
	margin: 0 0 10px;
	color: var(--pv-muted);
	font-size: 13px;
	font-weight: 600;
}

.pv-muted {
	color: var(--pv-muted);
	font-size: 14px;
}

.pv-block {
	margin-top: 24px;
}

.pv-stack {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.pv-sr,
.pv-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Icon squares                                                        */
/* ------------------------------------------------------------------ */

.pv-sq {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: var(--pv-surface-2);
	color: var(--pv-accent-text);
	transition: background-color .25s var(--pv-ease), color .25s var(--pv-ease), transform .3s var(--pv-ease);
}

.pv-sq svg {
	width: 26px;
	height: 26px;
}

.pv-sq img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.pv-sq--lg {
	width: 68px;
	height: 68px;
	border-radius: 22px;
}

.pv-sq--lg svg {
	width: 38px;
	height: 38px;
}

.pv-sq--lg img {
	object-fit: contain;
	padding: 6px;
}

.pv-sq--sm {
	width: 40px;
	height: 40px;
	border-radius: 13px;
}

.pv-sq--sm svg {
	width: 22px;
	height: 22px;
}

.pv-sq--muted {
	color: var(--pv-muted);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.pv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 22px;
	border-radius: var(--pv-r-md);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .18s var(--pv-ease), background-color .2s, box-shadow .2s, opacity .2s;
	cursor: pointer;
}

.pv-btn svg {
	width: 18px;
	height: 18px;
}

.pv-btn:active:not(:disabled) {
	transform: scale(.97);
}

.pv-btn--primary {
	background: var(--pv-accent-strong);
	color: var(--pv-accent-ink) !important;
	box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--pv-accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.pv-btn--primary:hover:not(:disabled) {
	/* Hover goes deeper, not lighter, so white text stays above 4.5:1. */
	background: color-mix(in srgb, var(--pv-accent) 70%, #000);
}

.pv-btn--primary.is-soft {
	/* Still clickable (it explains what is missing), so the label keeps AA contrast. */
	background: var(--pv-soft-bg);
	color: var(--pv-soft-ink) !important;
	box-shadow: none;
}

.pv-btn--primary.is-soft:hover:not(:disabled) {
	background: var(--pv-soft-bg);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pv-accent) 50%, transparent);
}

.pv-btn--primary:disabled {
	opacity: .6;
}

.pv-btn--soft {
	background: var(--pv-surface-2);
	color: var(--pv-text) !important;
}

.pv-btn--soft:hover:not(:disabled) {
	background: var(--pv-surface-3);
}

.pv-btn--ghost {
	border: 1px solid var(--pv-line-2);
	color: var(--pv-text) !important;
}

.pv-btn--ghost:hover {
	background: var(--pv-surface);
}

.pv-btn--danger {
	background: var(--pv-err);
	color: #fff !important;
}

.pv-btn--block {
	width: 100%;
}

.pv-icbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	color: var(--pv-text) !important;
	transition: background-color .2s, transform .18s var(--pv-ease), opacity .2s;
}

.pv-icbtn:hover:not(:disabled) {
	background: var(--pv-surface-2);
}

.pv-icbtn:active:not(:disabled) {
	transform: scale(.94);
}

.pv-icbtn:disabled {
	opacity: .3;
}

.pv-icbtn.is-ghost {
	visibility: hidden;
}

.pv-icbtn--sm {
	width: 36px;
	height: 36px;
	border-radius: 11px;
}

.pv-icbtn--sm svg {
	width: 17px;
	height: 17px;
}

.pv-link {
	padding: 10px 4px;
	color: var(--pv-accent-text);
	font-size: 14.5px;
	font-weight: 600;
	justify-self: center;
}

.pv-link:hover {
	text-decoration: underline;
}

.pv-link--danger {
	color: var(--pv-err);
}

.pv-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 99px;
	background: var(--pv-surface-2);
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.pv-pill svg {
	width: 15px;
	height: 15px;
}

.pv-pill--btn {
	min-height: 36px;
	padding: 0 12px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	color: var(--pv-text);
}

.pv-pill--btn:hover {
	border-color: var(--pv-line-2) !important;
}

.pv-pill--ok,
.pv-pill.pv-st-2,
.pv-pill.pv-st-4 {
	background: color-mix(in srgb, var(--pv-ok) 16%, transparent);
	color: var(--pv-ok);
}

.pv-pill.pv-st-1,
.pv-pill.pv-st-5 {
	background: color-mix(in srgb, var(--pv-warn) 16%, transparent);
	color: var(--pv-warn);
}

.pv-pill.pv-st-3,
.pv-pill.pv-st-6,
.pv-pill.pv-st-7,
.pv-pill.pv-st-8 {
	background: color-mix(in srgb, var(--pv-err) 14%, transparent);
	color: var(--pv-err);
}

/* ------------------------------------------------------------------ */
/* Vehicle tiles                                                       */
/* ------------------------------------------------------------------ */

.pv-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@container pv (min-width: 540px) {
	.pv-tiles {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
}

.pv-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 12px 16px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	box-shadow: var(--pv-elev);
	text-align: center !important;
	transition: transform .25s var(--pv-ease), border-color .2s, background-color .2s;
}

.pv-tile:hover {
	transform: translateY(-2px);
	border-color: var(--pv-line-2) !important;
}

.pv-tile:active {
	transform: scale(.97);
}

.pv-tile__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.pv-tile__meta {
	margin-top: -4px;
	color: var(--pv-muted);
	font-size: 13px;
}

.pv-tile.is-on {
	border-color: var(--pv-accent) !important;
	background: linear-gradient(180deg, var(--pv-accent-soft), transparent 90%), var(--pv-surface);
	box-shadow: 0 0 0 1px var(--pv-accent) inset;
}

.pv-tile.is-on .pv-sq,
.pv-offer.is-on .pv-sq,
.pv-row.is-on .pv-sq {
	background: var(--pv-accent);
	color: #fff;
}

.pv-tick {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pv-accent);
	color: #fff;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .2s, transform .35s var(--pv-ease);
}

.pv-tick svg {
	width: 14px;
	height: 14px;
}

.is-on > .pv-tick {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Offer cards (packages, locations)                                   */
/* ------------------------------------------------------------------ */

.pv-list {
	display: grid;
	gap: 10px;
}

.pv-list--tight {
	gap: 8px;
}

.pv-offer {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 14px;
	width: 100%;
	padding: 16px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	box-shadow: var(--pv-elev);
	transition: border-color .2s, background-color .2s, transform .2s var(--pv-ease);
}

.pv-offer:hover {
	border-color: var(--pv-line-2) !important;
}

.pv-offer:active {
	transform: scale(.985);
}

.pv-offer.is-on {
	border-color: var(--pv-accent) !important;
	background: linear-gradient(160deg, var(--pv-accent-soft), transparent 55%), var(--pv-surface);
	box-shadow: 0 0 0 1px var(--pv-accent) inset;
}

.pv-offer__b {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pv-offer__t {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-family: var(--pv-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

.pv-offer__d {
	color: var(--pv-muted);
	font-size: 13.5px;
	line-height: 1.4;
}

.pv-offer__m {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
	color: var(--pv-muted);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.pv-offer__m svg {
	width: 15px;
	height: 15px;
}

.pv-offer__p {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}

.pv-offer__p strong {
	font-family: var(--pv-display);
	font-size: 19px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pv-offer__p s {
	color: var(--pv-muted);
	font-size: 12.5px;
	white-space: nowrap;
}

.pv-offer__more {
	display: grid;
	gap: 7px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--pv-line);
	animation: pv-fade .35s var(--pv-ease) both;
}

.pv-offer__desc {
	color: var(--pv-muted);
	font-size: 13.5px;
}

.pv-incl {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.pv-incl svg {
	width: 16px;
	height: 16px;
	color: var(--pv-accent-text);
}

@keyframes pv-fade {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

.pv-flag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 7px;
	background: var(--pv-accent-strong);
	color: #fff;
	font-family: inherit;
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .01em;
}

.pv-offer--plain {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	background: transparent;
	border-style: dashed !important;
	border-color: var(--pv-line-2) !important;
	box-shadow: none;
}

.pv-radio {
	display: grid;
	place-items: center;
	align-self: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--pv-line-2);
	color: transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}

.pv-radio svg {
	width: 13px;
	height: 13px;
}

.is-on > .pv-radio {
	background: var(--pv-accent);
	border-color: var(--pv-accent);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* Rows with switches / radios                                         */
/* ------------------------------------------------------------------ */

.pv-row {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--pv-r-md);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.pv-row:hover {
	border-color: var(--pv-line-2) !important;
}

.pv-row.is-on {
	border-color: color-mix(in srgb, var(--pv-accent) 60%, transparent) !important;
	background: linear-gradient(90deg, var(--pv-accent-soft), transparent 70%), var(--pv-surface);
}

.pv-row__b {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pv-row__b strong {
	font-size: 15px;
	font-weight: 600;
}

.pv-row__b small {
	color: var(--pv-muted);
	font-size: 13px;
}

.pv-row__d {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--pv-muted);
	font-size: 13px;
	line-height: 1.35;
}

.pv-row__m {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 2px;
	color: var(--pv-muted);
	font-size: 12.5px;
}

.pv-row__m > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pv-row__m svg {
	width: 14px;
	height: 14px;
}

.pv-row__m b {
	color: var(--pv-text);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pv-row--switch {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.pv-row__p {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pv-switch {
	position: relative;
	width: 46px;
	height: 28px;
	border-radius: 99px;
	background: var(--pv-surface-3);
	transition: background-color .25s var(--pv-ease);
}

.pv-switch i {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	transition: transform .3s var(--pv-ease);
}

.is-on .pv-switch {
	background: var(--pv-accent);
}

.is-on .pv-switch i {
	transform: translateX(18px);
}

.pv-row--radio {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.pv-row--radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pv-row--radio:has(input:focus-visible) {
	outline: 2px solid var(--pv-accent);
	outline-offset: 2px;
}

.pv-row.has-error {
	border-color: var(--pv-err) !important;
}

/* ------------------------------------------------------------------ */
/* Time                                                                */
/* ------------------------------------------------------------------ */

.pv-time-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.pv-time-head .pv-label {
	margin: 0;
}

.pv-dates {
	display: flex;
	gap: 8px;
	margin: 0 -16px;
	padding: 4px 16px 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 16px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
}

@media (min-width: 560px) {
	.pv-dates {
		margin: 0 -28px;
		padding-inline: 28px;
		scroll-padding-inline: 28px;
	}
}

.is-wide .pv-dates {
	margin: 0;
	padding: 4px 0 12px;
	scroll-padding-inline: 0;
}

.pv-dates::-webkit-scrollbar {
	display: none;
}

.pv-date {
	flex: 0 0 66px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 10px 4px 9px;
	border-radius: 18px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	text-align: center !important;
	scroll-snap-align: start;
	transition: background-color .2s, border-color .2s, transform .2s var(--pv-ease);
}

.pv-date:active {
	transform: scale(.95);
}

.pv-date__w {
	color: var(--pv-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.pv-date__d {
	font-family: var(--pv-display);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.pv-date__m {
	color: var(--pv-muted);
	font-size: 11.5px;
	text-transform: lowercase;
}

.pv-date__f {
	margin-top: 5px;
	padding: 1px 6px;
	border-radius: 99px;
	background: var(--pv-surface-2);
	color: var(--pv-muted);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
}

.pv-date.is-full {
	opacity: .5;
}

.pv-date.is-on {
	background: var(--pv-accent-strong);
	border-color: var(--pv-accent) !important;
	color: #fff;
	box-shadow: 0 10px 24px -12px var(--pv-accent);
}

.pv-date.is-on .pv-date__w,
.pv-date.is-on .pv-date__m {
	color: rgba(255, 255, 255, .85);
}

.pv-date.is-on .pv-date__f {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.pv-date.has-pick:not(.is-on) {
	border-color: var(--pv-accent) !important;
}

.pv-date-sentinel {
	flex: 0 0 1px;
}

.pv-day-title {
	margin: 14px 0 12px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

.pv-slot-group + .pv-slot-group {
	margin-top: 14px;
}

.pv-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 8px;
}

.pv-slot {
	min-height: 48px;
	border-radius: 14px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	font-size: 15.5px;
	font-weight: 600;
	text-align: center !important;
	font-variant-numeric: tabular-nums;
	transition: background-color .2s, border-color .2s, transform .18s var(--pv-ease), box-shadow .2s;
}

.pv-slot:hover {
	border-color: var(--pv-line-2) !important;
}

.pv-slot:active {
	transform: scale(.95);
}

.pv-slot.is-on {
	background: var(--pv-accent-strong);
	border-color: var(--pv-accent) !important;
	color: #fff;
	box-shadow: 0 0 0 3px var(--pv-accent-soft), 0 8px 20px -10px var(--pv-accent);
}

.pv-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 24px 12px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	color: var(--pv-muted);
	text-align: center;
}

.pv-callrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: var(--pv-r-md);
	background: var(--pv-surface);
	color: var(--pv-text) !important;
	text-decoration: none;
}

.pv-callrow span:last-child {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.pv-callrow small {
	color: var(--pv-muted);
	font-size: 12.5px;
}

.pv-callrow strong {
	font-weight: 600;
}

/* skeletons */

.pv-skel {
	background: linear-gradient(90deg, var(--pv-surface) 25%, var(--pv-surface-2) 50%, var(--pv-surface) 75%) !important;
	background-size: 200% 100% !important;
	animation: pv-shimmer 1.2s linear infinite;
	border-color: transparent !important;
}

.pv-dates--skel .pv-date {
	height: 92px;
}

.pv-slots--skel {
	margin-top: 44px;
}

.pv-slots--skel .pv-slot {
	display: block;
}

.pv-month__skel {
	grid-column: 1 / -1;
	height: 260px;
	border-radius: var(--pv-r-md);
}

@keyframes pv-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.pv-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px !important;
	color: var(--pv-muted);
	font-size: 14px;
}

.pv-note svg {
	width: 18px;
	height: 18px;
}

.pv-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

@container pv (min-width: 520px) {
	.pv-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pv-field--wide {
		grid-column: 1 / -1;
	}
}

.pv-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.pv-field label {
	color: var(--pv-text);
	font-size: 13.5px;
	font-weight: 600;
}

.pv-field label b,
.pv-check b {
	margin-left: 3px;
	color: var(--pv-accent-text);
	font-weight: 700;
}

.pv-field input,
.pv-field textarea,
.pv-input {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 14px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line-2);
	color: var(--pv-text);
	font-size: 16px;
	outline: none;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}

.pv-field textarea {
	min-height: 104px;
	padding: 14px 16px;
	resize: vertical;
	line-height: 1.45;
}

.pv-field input:focus,
.pv-field textarea:focus,
.pv-input:focus {
	border-color: var(--pv-accent);
	box-shadow: 0 0 0 4px var(--pv-accent-soft);
	background: var(--pv-bg);
}

.pv-field.has-error input,
.pv-field.has-error textarea {
	border-color: var(--pv-err);
}

.pv-field__e {
	color: var(--pv-err);
	font-size: 12.5px;
	font-weight: 500;
}

.pv-field__h {
	color: var(--pv-muted);
	font-size: 12.5px;
}

/* Finnish licence plate */

.pv-plate {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 260px;
	height: 54px;
	overflow: hidden;
	border-radius: 10px;
	border: 2px solid #1a1d22;
	background: var(--pv-plate);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
	transition: box-shadow .2s;
}

.pv-plate:focus-within {
	box-shadow: 0 0 0 4px var(--pv-accent-soft), 0 0 0 1px var(--pv-accent);
}

.pv-plate__eu {
	flex: 0 0 34px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	padding: 0 0 6px;
	background: #1f4fb8;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
}

.pv-plate__eu i {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px dotted #ffd33d;
}

.pv-field .pv-plate input {
	flex: 1;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #121418;
	font-family: var(--pv-display);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: .14em;
	text-align: center;
	text-transform: uppercase;
}

/* Segmented control */

.pv-seg {
	margin: 4px 0 16px;
}

.pv-seg__opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 5px;
	border-radius: var(--pv-r-md);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
}

.pv-seg__opts button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 10px;
	border-radius: 12px;
	color: var(--pv-muted);
	font-weight: 600;
	transition: background-color .25s var(--pv-ease), color .2s;
}

.pv-seg__opts button.is-on {
	background: var(--pv-accent-strong);
	color: #fff;
	box-shadow: 0 8px 20px -12px var(--pv-accent);
}

/* ------------------------------------------------------------------ */
/* Confirm: receipt, coupon, tips, consents                            */
/* ------------------------------------------------------------------ */

.pv-rc {
	padding: 4px 16px 16px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
}

.pv-rc__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}

.pv-rc__row + .pv-rc__row {
	border-top: 1px solid var(--pv-line);
}

.pv-rc__row > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pv-rc__row strong {
	font-weight: 600;
}

.pv-rc__row small {
	color: var(--pv-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.pv-rc__cut,
.pv-ticket__cut {
	position: relative;
	height: 22px;
	margin: 4px -17px;
	background:
		radial-gradient(circle at 0 50%, var(--pv-bg) 10px, transparent 10.5px) left center / 50% 100% no-repeat,
		radial-gradient(circle at 100% 50%, var(--pv-bg) 10px, transparent 10.5px) right center / 50% 100% no-repeat;
}

.pv-rc__cut::before,
.pv-ticket__cut::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 50%;
	border-top: 2px dashed var(--pv-line-2);
}

.pv-lines {
	display: grid;
	gap: 8px;
	font-size: 14px;
}

.pv-lines li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
}

.pv-lines li span:first-child {
	color: var(--pv-muted);
}

.pv-lines li span:last-child {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pv-lines .is-discount span {
	color: var(--pv-ok) !important;
}

.pv-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--pv-line);
}

.pv-total > span {
	display: flex;
	flex-direction: column;
	font-weight: 600;
}

.pv-total small {
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 400;
}

.pv-total strong {
	font-family: var(--pv-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.pv-linkrow {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 15px 16px;
	border-radius: var(--pv-r-md);
	background: transparent;
	border: 1px dashed var(--pv-line-2) !important;
	font-weight: 600;
	transition: background-color .2s;
}

.pv-linkrow:hover {
	background: var(--pv-surface);
}

.pv-linkrow > svg:first-child {
	color: var(--pv-accent-text);
}

.pv-linkrow > svg:last-child {
	margin-left: auto;
	width: 16px;
	height: 16px;
	color: var(--pv-muted);
}

.pv-coupon {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 12px;
	border-radius: var(--pv-r-md);
	background: color-mix(in srgb, var(--pv-ok) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--pv-ok) 35%, transparent);
}

.pv-coupon .pv-sq {
	background: var(--pv-ok);
	color: #fff;
}

.pv-coupon div {
	display: flex;
	flex-direction: column;
}

.pv-coupon strong {
	letter-spacing: .06em;
}

.pv-coupon small {
	color: var(--pv-ok);
	font-size: 12.5px;
}

.pv-inline {
	display: flex;
	gap: 8px;
}

.pv-inline .pv-input {
	flex: 1;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.pv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pv-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	min-height: 52px;
	padding: 6px 14px;
	border-radius: 14px;
	background: var(--pv-surface);
	border: 1px solid var(--pv-line) !important;
	font-weight: 600;
	text-align: center !important;
	transition: border-color .2s, background-color .2s;
}

.pv-chip small {
	color: var(--pv-muted);
	font-size: 12px;
	font-weight: 500;
}

.pv-chip.is-on {
	border-color: var(--pv-accent) !important;
	background: var(--pv-accent-soft);
}

.pv-tip-input {
	max-width: 180px;
	margin-top: 10px;
}

.pv-checks {
	display: grid;
	gap: 12px;
}

.pv-check {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.45;
}

.pv-check input {
	position: absolute;
	opacity: 0;
	width: 24px;
	height: 24px;
	margin: 0;
}

.pv-check__box {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	border: 2px solid var(--pv-line-2);
	color: transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}

.pv-check__box svg {
	width: 14px;
	height: 14px;
}

.pv-check input:checked + .pv-check__box {
	background: var(--pv-accent);
	border-color: var(--pv-accent);
	color: #fff;
}

.pv-check input:focus-visible + .pv-check__box {
	outline: 2px solid var(--pv-accent);
	outline-offset: 2px;
}

.pv-check.has-error .pv-check__box {
	border-color: var(--pv-err);
}

.pv-check.has-error .pv-check__t {
	color: var(--pv-err);
}

.pv-fine {
	margin-top: 14px !important;
	color: var(--pv-muted);
	font-size: 13px;
}

.pv-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--pv-err) 12%, transparent);
	color: var(--pv-err);
	font-size: 14px;
	font-weight: 500;
}

.pv-msg {
	margin: 10px 0 0 !important;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 14px;
}

.pv-msg.is-ok {
	background: color-mix(in srgb, var(--pv-ok) 12%, transparent);
	color: var(--pv-ok);
}

.pv-msg.is-warn {
	background: color-mix(in srgb, var(--pv-warn) 12%, transparent);
	color: var(--pv-warn);
}

.pv-manage .pv-msg {
	margin: 0 0 14px !important;
}

/* ------------------------------------------------------------------ */
/* Action bar, cart, dock                                              */
/* ------------------------------------------------------------------ */

.pv-actions {
	margin-top: 26px;
}

.pv-actbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 16px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
}

.pv-actbar .pv-btn {
	flex: 1 1 auto;
	max-width: 280px;
	margin-left: auto;
}

.pv-sum {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 4px 0;
	line-height: 1.2;
	text-align: left !important;
}

.pv-sum__t {
	font-family: var(--pv-display);
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pv-sum__d {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--pv-muted);
	font-size: 12.5px;
	white-space: nowrap;
}

.pv-sum__d svg {
	width: 13px;
	height: 13px;
}

.pv-sum:disabled .pv-sum__t {
	color: var(--pv-muted);
}

.pv-cart__card {
	display: grid;
	gap: 14px;
	padding: 18px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
	box-shadow: var(--pv-elev);
}

.pv-cart__head {
	display: grid;
	gap: 12px;
}

.pv-cart__head .pv-label {
	margin: 0;
}

.pv-cart__veh {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.pv-cart__when {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px !important;
	font-weight: 600;
	font-size: 14px;
}

.pv-cart__when svg {
	width: 18px;
	height: 18px;
	color: var(--pv-accent-text);
}

.pv-cart__card .pv-total {
	margin-top: 0;
}

.pv-cart__sheet {
	padding-bottom: 8px;
}

/* Layer: dock, sheets, toasts */

.pv-layer {
	position: relative;
	z-index: 2147483000;
}

.pv-dock {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom));
	z-index: 2147483000;
	max-width: 560px;
	margin: 0 auto;
	transform: translate3d(0, 150%, 0);
	visibility: hidden;
	transition: transform .45s var(--pv-ease), visibility 0s linear .45s;
	pointer-events: none;
}

.pv-dock.is-on {
	transform: none;
	visibility: visible;
	transition: transform .45s var(--pv-ease);
	pointer-events: auto;
}

.pv-actbar--dock {
	background: color-mix(in srgb, var(--pv-surface) 86%, transparent);
	border-color: var(--pv-line-2);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.pv-toasts {
	position: fixed;
	left: 50%;
	top: calc(16px + env(safe-area-inset-top));
	z-index: 2147483001;
	display: grid;
	gap: 8px;
	width: max-content;
	max-width: calc(100vw - 32px);
	transform: translateX(-50%);
	pointer-events: none;
}

.pv-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 16px;
	background: #1c222b;
	color: #f2f5f9;
	font-size: 14.5px;
	font-weight: 500;
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
	opacity: 0;
	transform: translateY(-12px) scale(.98);
	transition: opacity .25s, transform .35s var(--pv-ease);
}

.pv-toast.is-in {
	opacity: 1;
	transform: none;
}

.pv-toast__ic {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 9px;
	background: color-mix(in srgb, var(--pv-accent) 30%, transparent);
	color: #fff;
}

.pv-toast__ic svg {
	width: 16px;
	height: 16px;
}

.pv-toast.is-ok .pv-toast__ic {
	background: var(--pv-ok);
}

.pv-sheet-wrap {
	position: fixed;
	inset: 0;
	z-index: 2147483002;
}

.pv-scrim {
	position: absolute;
	inset: 0;
	background: rgba(4, 7, 11, .58);
	opacity: 0;
	transition: opacity .28s;
}

.pv-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 88vh;
	overflow: auto;
	padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
	border-radius: 26px 26px 0 0;
	background: var(--pv-bg);
	border-top: 1px solid var(--pv-line-2);
	box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
	transform: translate3d(0, 100%, 0);
	transition: transform .38s var(--pv-ease);
	outline: none;
}

.pv-sheet-wrap.is-open .pv-scrim {
	opacity: 1;
}

.pv-sheet-wrap.is-open .pv-sheet {
	transform: none;
}

.pv-sheet__grab {
	width: 40px;
	height: 5px;
	margin: 2px auto 8px;
	border-radius: 99px;
	background: var(--pv-line-2);
}

.pv-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.pv-sheet__head h3 {
	font-size: 19px !important;
	font-weight: 700 !important;
}

@media (min-width: 640px) {
	.pv-sheet {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		width: min(460px, 92vw);
		padding: 16px 22px 24px;
		border-radius: 26px;
		border: 1px solid var(--pv-line-2);
		opacity: 0;
		transform: translate3d(-50%, -46%, 0) scale(.98);
		transition: transform .32s var(--pv-ease), opacity .2s;
	}

	.pv-sheet-wrap.is-open .pv-sheet {
		opacity: 1;
		transform: translate3d(-50%, -50%, 0);
	}

	.pv-sheet__grab {
		display: none;
	}
}

/* Month grid (in a sheet) */

.pv-month__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pv-month__nav strong {
	font-family: var(--pv-display);
	font-size: 17px;
}

.pv-month__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.pv-month__wd {
	padding: 4px 0;
	color: var(--pv-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.pv-month__day {
	aspect-ratio: 1;
	border-radius: 13px;
	color: var(--pv-faint);
	font-size: 15px;
	font-weight: 500;
	text-align: center !important;
	font-variant-numeric: tabular-nums;
	transition: background-color .2s, color .2s;
}

.pv-month__day.has-free {
	background: var(--pv-surface-2);
	color: var(--pv-text);
	font-weight: 600;
}

.pv-month__day.has-free:hover:not(:disabled) {
	background: var(--pv-accent-soft);
}

.pv-month__day.is-on {
	background: var(--pv-accent-strong);
	color: #fff;
}

.pv-month__day.is-out {
	opacity: .35;
}

/* ------------------------------------------------------------------ */
/* Done & manage                                                       */
/* ------------------------------------------------------------------ */

.pv-done,
.pv-manage {
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 0 6px;
}

.pv-done {
	text-align: center;
}

.pv-done .pv-lead {
	margin-left: auto;
	margin-right: auto;
}

.pv-done__badge {
	position: relative;
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin: 6px auto 18px;
	border-radius: 30px;
	background: var(--pv-accent-soft);
	color: var(--pv-accent-text);
	animation: pv-pop .6s var(--pv-ease) both;
}

.pv-done__badge::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--pv-accent);
	animation: pv-ring 1.4s .25s var(--pv-ease) both;
}

.pv-done__badge svg {
	width: 50px;
	height: 50px;
}

@keyframes pv-pop {
	from {
		opacity: 0;
		transform: scale(.6) rotate(-8deg);
	}
}

@keyframes pv-ring {
	from {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--pv-accent) 70%, transparent);
	}
	to {
		box-shadow: 0 0 0 22px transparent;
	}
}

.pv-ticket {
	margin-top: 22px;
	padding: 0 16px 6px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
	text-align: left;
}

.pv-ticket__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0 8px;
}

.pv-ticket__top > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pv-ticket__top .pv-label {
	margin: 0 0 4px;
}

.pv-ticket__date {
	font-family: var(--pv-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}

.pv-ticket__time {
	color: var(--pv-accent-text);
	font-family: var(--pv-display);
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.pv-ticket__no {
	align-items: flex-end;
	text-align: right;
}

.pv-ticket__no strong {
	font-family: var(--pv-display);
	font-size: 17px;
	letter-spacing: .04em;
}

.pv-ticket__rows {
	margin: 0;
}

.pv-ticket__rows > div {
	display: grid;
	grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
}

.pv-ticket__rows > div + div {
	border-top: 1px solid var(--pv-line);
}

.pv-ticket__rows dt {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pv-muted);
	font-size: 13.5px;
}

.pv-ticket__rows dt svg {
	width: 18px;
	height: 18px;
}

.pv-ticket__rows dd {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.pv-ticket__rows dd small {
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 400;
}

.pv-ticket__rows dd .pv-pill {
	align-self: flex-start;
	margin: 4px 0;
}

@container pv (max-width: 420px) {
	.pv-ticket__rows > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

.pv-done__actions {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.pv-manage .pv-head {
	padding-top: 6px;
	margin-bottom: 8px;
}

.pv-manage .pv-ticket {
	margin-top: 8px;
}

.pv-card {
	padding: 22px;
	border-radius: var(--pv-r-lg);
	background: var(--pv-surface);
	border: 1px solid var(--pv-line);
}

.pv-center {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 36px 20px;
	text-align: center;
}

.pv-spin {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid var(--pv-surface-3);
	border-top-color: var(--pv-accent);
	animation: pv-spin .8s linear infinite;
}

@keyframes pv-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.pv-ui *,
	.pv-ui *::before,
	.pv-ui *::after,
	.pv-layer *,
	.pv-layer *::before,
	.pv-layer *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ------------------------------------------------------------------ */
/* Page-level (light DOM): placeholder before JS, [pesuvaraus_my_bookings] */
/* ------------------------------------------------------------------ */

.pv-app {
	display: block;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

/* The host gets focus when the app inside it has focus; its own ring is not wanted. */
.pv-app,
.pv-app:focus,
.pv-app:focus-within,
[data-pesuvaraus-layer] {
	outline: none !important;
	box-shadow: none !important;
}

.pv-skeleton {
	display: grid;
	gap: 12px;
	padding: 20px;
	border-radius: 28px;
	background: #0e1217;
}

.pv-skeleton span {
	display: block;
	height: 56px;
	border-radius: 16px;
	background: #1a2028;
}

.pv-skeleton span:first-child {
	height: 22px;
	width: 45%;
}

.pv-skeleton span:last-child {
	height: 140px;
}

.pv-mybookings {
	--pv-mb-accent: #447be0;
	max-width: 760px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.45;
}

.pv-mybookings__title {
	margin: 24px 0 10px;
	font-size: 18px;
}

.pv-mybookings__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pv-mybooking {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid #e3e7ed;
	background: #fff;
}

.pv-mybooking > div:first-child {
	display: flex;
	flex-direction: column;
}

.pv-mybooking > div:first-child span {
	color: #5b6575;
	font-size: 14px;
}

.pv-mybooking__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.pv-mybooking__meta a {
	color: var(--pv-mb-accent);
	font-weight: 600;
}

.pv-mybookings .pv-badge {
	display: inline-flex;
	padding: 3px 10px;
	border-radius: 99px;
	background: #eef1f5;
	color: #4b5563;
	font-size: 12.5px;
	font-weight: 600;
}

.pv-notice {
	padding: 14px 16px;
	border-radius: 14px;
	background: #f4f6f9;
}
