/**
 * Suksiboksivuokraus - frontend styles.
 *
 * Self-contained: the form must look the same regardless of what the surrounding theme
 * does. Two consequences that are easy to undo by accident:
 *
 * 1. Every rule is scoped under .suksiboksivuokraus, giving at least (0,2,0) specificity.
 *    The Keskusautohalli theme styles bare elements with selectors like
 *    `input[type="text"]` (0,1,1) and `.site-main button` (0,1,1), which would otherwise
 *    win over a single class.
 * 2. All sizes are in px, never rem. That theme sets `html { font-size: 62.5% }`, so 1rem
 *    is 10px there and 16px almost everywhere else — rem values would silently shrink.
 *
 * The palette, the pill buttons, the square inputs and the soft card shadow mirror the
 * Keskusautohalli design tokens, but they are declared here rather than inherited. The
 * font stack names 'Assistant' (the site's face, loaded by the theme) and falls back to
 * the system sans stack elsewhere.
 */

.suksiboksivuokraus {
	/* Brand palette */
	--sbv-petrol: #007084;
	--sbv-petrol-dark: #005a6b;
	--sbv-gold: #d3a170;
	--sbv-blue: #313c4c;
	--sbv-white: #fff;
	--sbv-surface: #f4f6f7;
	--sbv-border: #d6d9db;
	--sbv-disabled: #eee;
	/* The range bar is the petrol at low alpha, so the solid petrol endpoints still read
	   as endpoints instead of merging into one block. */
	--sbv-petrol-tint: rgba(0, 112, 132, .16);
	--sbv-muted: #5c5c6a;
	--sbv-error: #cc2e2e;

	/* Shape */
	--sbv-radius-card: 10px;
	--sbv-radius-pill: 24px;
	--sbv-shadow: 1px 1px 37px 0 rgba(0, 0, 0, .05);
	--sbv-shadow-raised: 1px 4px 24px 0 rgba(0, 0, 0, .12);
	--sbv-transition: .18s cubic-bezier(.25, .46, .45, .94);

	/* Height of the host site's fixed top bars, measured at runtime by the script, plus the
	   gap we want between them and the sticky summary panel. */
	--sbv-sticky-top: 0px;
	--sbv-sticky-gap: 24px;

	box-sizing: border-box;
	color: var(--sbv-blue);
	font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.suksiboksivuokraus *,
.suksiboksivuokraus *::before,
.suksiboksivuokraus *::after {
	box-sizing: inherit;
}

/* ------------------------------------------------------------------ layout */

/*
 * Narrow screens get one column in source order, which puts the summary between the box
 * choice and the contact details: the visitor sees what they are booking before filling in
 * the form. The two column grid below lifts it into its own sticky column.
 */
.suksiboksivuokraus .suksiboksivuokraus__layout {
	display: block;
}

@media (min-width: 1001px) {

	.suksiboksivuokraus .suksiboksivuokraus__layout {
		align-items: start;
		column-gap: 40px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.suksiboksivuokraus .suksiboksivuokraus__step,
	.suksiboksivuokraus .suksiboksivuokraus__done {
		grid-column: 1;
	}

	/*
	 * Spanning every row rather than sitting in row 1 is what lets position: sticky work:
	 * a grid item can only stick inside its own area, and a single row area is no taller
	 * than the first step.
	 */
	.suksiboksivuokraus .suksiboksivuokraus__summary {
		align-self: start;
		grid-column: 2;
		grid-row: 1 / span 99;
		position: sticky;
		top: calc(var(--sbv-sticky-top) + var(--sbv-sticky-gap));
	}
}

.suksiboksivuokraus .suksiboksivuokraus__step {
	margin: 0 0 48px;
}

.suksiboksivuokraus .suksiboksivuokraus__step-title {
	align-items: center;
	color: var(--sbv-blue);
	display: flex;
	font-family: inherit;
	font-size: 22px;
	font-weight: 900;
	gap: 14px;
	line-height: 1.28;
	margin: 0 0 6px;
	text-transform: none;
}

.suksiboksivuokraus .suksiboksivuokraus__step-number {
	align-items: center;
	background: var(--sbv-blue);
	border-radius: 50%;
	color: var(--sbv-white);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	height: 34px;
	justify-content: center;
	line-height: 1;
	width: 34px;
}

.suksiboksivuokraus .suksiboksivuokraus__step-help,
.suksiboksivuokraus .suksiboksivuokraus__loading {
	color: var(--sbv-muted);
	font-size: 15px;
	margin: 0 0 20px;
	padding-left: 48px;
}

/* ------------------------------------------------------------------ instructions */

.suksiboksivuokraus .suksiboksivuokraus__info {
	background: var(--sbv-surface);
	border-radius: var(--sbv-radius-card);
	margin: 0 0 40px;
	padding: 26px 30px;
}

.suksiboksivuokraus .suksiboksivuokraus__info-title {
	color: var(--sbv-blue);
	font-family: inherit;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.28;
	margin: 0 0 10px;
	padding: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__info-content {
	padding: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__info-content > *:first-child {
	margin-top: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__info-content > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ notices */

.suksiboksivuokraus .suksiboksivuokraus__notice {
	background: var(--sbv-surface);
	border-radius: var(--sbv-radius-card);
	font-size: 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
}

.suksiboksivuokraus .suksiboksivuokraus__notice--error {
	background: #fbeceb;
	box-shadow: inset 4px 0 0 0 var(--sbv-error);
	color: var(--sbv-error);
	font-weight: 600;
}

.suksiboksivuokraus .suksiboksivuokraus__field-error {
	color: var(--sbv-error);
	display: block;
	font-size: 14px;
	margin-top: 6px;
}

/* ------------------------------------------------------------------ calendar */

.suksiboksivuokraus .suksiboksivuokraus__calendar {
	padding-left: 48px;
}

.suksiboksivuokraus .suksiboksivuokraus__calendar-nav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-bottom: 10px;
}

.suksiboksivuokraus .suksiboksivuokraus__nav-btn {
	align-items: center;
	appearance: none;
	background: var(--sbv-white);
	border: 1px solid var(--sbv-border);
	border-radius: 50%;
	color: var(--sbv-blue);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 18px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: all var(--sbv-transition);
	width: 40px;
}

.suksiboksivuokraus .suksiboksivuokraus__nav-btn:hover:not(:disabled),
.suksiboksivuokraus .suksiboksivuokraus__nav-btn:focus-visible {
	background: var(--sbv-petrol);
	border-color: var(--sbv-petrol);
	color: var(--sbv-white);
}

.suksiboksivuokraus .suksiboksivuokraus__nav-btn:disabled {
	color: var(--sbv-border);
	cursor: default;
	opacity: .6;
}

.suksiboksivuokraus .suksiboksivuokraus__months {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.suksiboksivuokraus .suksiboksivuokraus__month {
	flex: 1 1 280px;
	min-width: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__month-title {
	color: var(--sbv-blue);
	font-size: 18px;
	font-weight: 900;
	margin-bottom: 10px;
	text-align: center;
	text-transform: capitalize;
}

.suksiboksivuokraus .suksiboksivuokraus__grid {
	border: 0;
	border-collapse: collapse;
	margin: 0;
	table-layout: fixed;
	width: 100%;
}

.suksiboksivuokraus .suksiboksivuokraus__grid th,
.suksiboksivuokraus .suksiboksivuokraus__grid td {
	background: none;
	border: 0;
	padding: 0;
	text-align: center;
	vertical-align: middle;
}

.suksiboksivuokraus .suksiboksivuokraus__grid th {
	color: var(--sbv-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	padding-bottom: 8px;
	text-transform: uppercase;
}

/*
 * The range fill sits on the cell so it reads as one continuous bar, while the start and
 * end days are drawn as filled circles on top of it.
 */
.suksiboksivuokraus .suksiboksivuokraus__grid td {
	position: relative;
}

.suksiboksivuokraus .suksiboksivuokraus__grid td.is-in-range {
	background: var(--sbv-petrol-tint);
}

.suksiboksivuokraus .suksiboksivuokraus__grid td.is-range-start {
	background: linear-gradient(to right, transparent 50%, var(--sbv-petrol-tint) 50%);
}

.suksiboksivuokraus .suksiboksivuokraus__grid td.is-range-end {
	background: linear-gradient(to left, transparent 50%, var(--sbv-petrol-tint) 50%);
}

.suksiboksivuokraus .suksiboksivuokraus__day {
	appearance: none;
	aspect-ratio: 1 / 1;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--sbv-blue);
	cursor: pointer;
	display: block;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	margin: 0 auto;
	max-width: 46px;
	padding: 0;
	position: relative;
	transition: background var(--sbv-transition), color var(--sbv-transition), border-color var(--sbv-transition);
	width: 100%;
}

.suksiboksivuokraus .suksiboksivuokraus__day:hover:not(:disabled) {
	border-color: var(--sbv-petrol);
	color: var(--sbv-petrol);
}

.suksiboksivuokraus .suksiboksivuokraus__day:focus-visible {
	outline: 2px solid var(--sbv-petrol);
	outline-offset: 2px;
}

.suksiboksivuokraus .suksiboksivuokraus__day--past {
	color: #b9c0c4;
	cursor: default;
	font-weight: 400;
}

/*
 * Days no box can reach from the chosen start. Dimmed rather than struck through: unlike a
 * booked day these are perfectly bookable, just not from this particular start date.
 */
.suksiboksivuokraus .suksiboksivuokraus__day--unreachable {
	color: #b9c0c4;
	font-weight: 400;
	opacity: .55;
}

.suksiboksivuokraus .suksiboksivuokraus__day--booked {
	background: var(--sbv-disabled);
	color: #9aa1a6;
	cursor: not-allowed;
	font-weight: 400;
	text-decoration: line-through;
}

.suksiboksivuokraus .suksiboksivuokraus__day--closed {
	background: repeating-linear-gradient(
		135deg,
		var(--sbv-disabled) 0 3px,
		transparent 3px 6px
	);
	color: #9aa1a6;
	cursor: not-allowed;
	font-weight: 400;
}

.suksiboksivuokraus .suksiboksivuokraus__day--start,
.suksiboksivuokraus .suksiboksivuokraus__day--end {
	background: var(--sbv-petrol);
	border-color: var(--sbv-petrol);
	color: var(--sbv-white);
	font-weight: 700;
}

/*
 * Must repeat :not(:disabled) so this matches the specificity of the generic hover rule
 * above — otherwise that rule's petrol text colour wins and the number disappears into the
 * filled circle, which is exactly what the hovered end date looks like while picking.
 */
/*
 * The two ends double as drag handles for resizing the period. touch-action keeps a touch
 * drag from scrolling the page instead, and is scoped to the handles so the rest of the
 * calendar still scrolls normally.
 */
.suksiboksivuokraus .suksiboksivuokraus__day--start,
.suksiboksivuokraus .suksiboksivuokraus__day--end {
	cursor: ew-resize;
	touch-action: none;
}

.suksiboksivuokraus .suksiboksivuokraus__day--start:hover:not(:disabled),
.suksiboksivuokraus .suksiboksivuokraus__day--end:hover:not(:disabled) {
	background: var(--sbv-petrol-dark);
	border-color: var(--sbv-petrol-dark);
	color: var(--sbv-white);
}

.suksiboksivuokraus .suksiboksivuokraus__legend {
	color: var(--sbv-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 20px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__legend li {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__legend li::before {
	content: none;
}

.suksiboksivuokraus .suksiboksivuokraus__swatch {
	border: 1px solid var(--sbv-border);
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
}

.suksiboksivuokraus .suksiboksivuokraus__swatch--free {
	background: var(--sbv-white);
}

.suksiboksivuokraus .suksiboksivuokraus__swatch--selected {
	background: var(--sbv-petrol);
	border-color: var(--sbv-petrol);
}

.suksiboksivuokraus .suksiboksivuokraus__swatch--booked {
	background: var(--sbv-disabled);
	border-color: var(--sbv-disabled);
}

/*
 * A day nobody is at the shop. Not struck through like a booked day — the box may well be
 * free, it just cannot change hands, and a period may run over it.
 */
.suksiboksivuokraus .suksiboksivuokraus__swatch--closed {
	background: repeating-linear-gradient(
		135deg,
		var(--sbv-disabled) 0 3px,
		#fff 3px 6px
	);
	border-color: var(--sbv-disabled);
}

.suksiboksivuokraus .suksiboksivuokraus__legend-note {
	color: var(--sbv-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 0 0;
}

/* ------------------------------------------------------------------ box cards */


/*
 * One box per row rather than a grid of cards: the list has to stay readable when there are
 * a dozen boxes, and a full width row leaves space for the photo, the lead and the price
 * side by side.
 */
.suksiboksivuokraus .suksiboksivuokraus__boxes {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
	padding-left: 48px;
}

.suksiboksivuokraus .suksiboksivuokraus__box {
	background: var(--sbv-white);
	border: 2px solid transparent;
	border-radius: var(--sbv-radius-card);
	box-shadow: var(--sbv-shadow);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	position: relative;
	transition: border-color var(--sbv-transition), box-shadow var(--sbv-transition);
}

@media (min-width: 620px) {

	.suksiboksivuokraus .suksiboksivuokraus__box {
		align-items: stretch;
		flex-direction: row;
	}

	.suksiboksivuokraus .suksiboksivuokraus__box-image {
		flex: 0 0 220px;
		height: auto;
		width: 220px;
	}

	.suksiboksivuokraus .suksiboksivuokraus__box-content {
		flex: 1 1 auto;
	}
}

.suksiboksivuokraus .suksiboksivuokraus__box:hover {
	box-shadow: var(--sbv-shadow-raised);
}

/*
 * A box someone else has for these days. Listed rather than hidden, so the visitor sees which
 * box it is and when it comes back — but drained of colour and of every affordance that says
 * "pick me": no pointer, no hover lift, no selection marker.
 */
.suksiboksivuokraus .suksiboksivuokraus__box--taken {
	background: var(--sbv-surface);
	box-shadow: none;
	cursor: default;
	opacity: .75;
}

.suksiboksivuokraus .suksiboksivuokraus__box--taken:hover {
	box-shadow: none;
}

.suksiboksivuokraus .suksiboksivuokraus__box--taken .suksiboksivuokraus__box-image {
	filter: grayscale(1);
}

.suksiboksivuokraus .suksiboksivuokraus__box--taken .suksiboksivuokraus__box-name,
.suksiboksivuokraus .suksiboksivuokraus__box--taken .suksiboksivuokraus__box-excerpt {
	color: var(--sbv-muted);
}

.suksiboksivuokraus .suksiboksivuokraus__box-taken-note {
	border-top: 1px solid var(--sbv-border);
	color: var(--sbv-blue);
	font-weight: 700;
	margin: 8px 0 0;
	padding-top: 12px;
}

.suksiboksivuokraus .suksiboksivuokraus__box--selected {
	border-color: var(--sbv-petrol);
	box-shadow: var(--sbv-shadow-raised);
}

.suksiboksivuokraus .suksiboksivuokraus__box:focus-within {
	outline: 2px solid var(--sbv-petrol);
	outline-offset: 3px;
}

/*
 * The native radio is hidden and replaced by our own marker. The theme also hides bare
 * radios and draws a marker on an adjacent label, which our markup does not have — so the
 * indicator has to be ours.
 */
.suksiboksivuokraus .suksiboksivuokraus__box-radio {
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	width: 1px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-marker {
	background: var(--sbv-white);
	border: 1px solid var(--sbv-border);
	border-radius: 50%;
	height: 28px;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: all var(--sbv-transition);
	width: 28px;
	z-index: 1;
}

.suksiboksivuokraus .suksiboksivuokraus__box-marker::after {
	border-bottom: 2px solid var(--sbv-white);
	border-left: 2px solid var(--sbv-white);
	content: '';
	height: 6px;
	left: 7px;
	opacity: 0;
	position: absolute;
	top: 8px;
	transform: rotate(-45deg);
	transition: opacity var(--sbv-transition);
	width: 12px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-radio:checked ~ .suksiboksivuokraus__box-marker {
	background: var(--sbv-petrol);
	border-color: var(--sbv-petrol);
}

.suksiboksivuokraus .suksiboksivuokraus__box-radio:checked ~ .suksiboksivuokraus__box-marker::after {
	opacity: 1;
}

.suksiboksivuokraus .suksiboksivuokraus__box-excerpt {
	color: var(--sbv-muted);
	margin: 0 0 8px;
}

/*
 * The card content is a flex column, so a button would stretch across it and make the whole
 * row a toggle. align-self keeps the hit area on the words, and text-align undoes the
 * theme's centred button label.
 */
.suksiboksivuokraus .suksiboksivuokraus__box-more,
.suksiboksivuokraus .suksiboksivuokraus__box-more:hover,
.suksiboksivuokraus .suksiboksivuokraus__box-more:focus,
.suksiboksivuokraus .suksiboksivuokraus__box-more:active {
	align-self: flex-start;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--sbv-petrol);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin: 0 0 8px;
	padding: 0;
	text-align: left;
	text-decoration: underline;
	width: auto;
}

.suksiboksivuokraus .suksiboksivuokraus__box-more:focus-visible {
	outline: 2px solid var(--sbv-petrol);
	outline-offset: 2px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-image {
	display: block;
	height: 180px;
	object-fit: cover;
	width: 100%;
}

.suksiboksivuokraus .suksiboksivuokraus__box-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 22px 24px 24px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-name {
	color: var(--sbv-blue);
	font-family: inherit;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.28;
	margin: 0 0 8px;
	padding-right: 34px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-description {
	color: var(--sbv-muted);
	font-size: 15px;
}

.suksiboksivuokraus .suksiboksivuokraus__box-description > *:first-child {
	margin-top: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__box-description > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ price lines */

.suksiboksivuokraus .suksiboksivuokraus__price-lines {
	border-top: 1px solid var(--sbv-border);
	font-size: 15px;
	list-style: none;
	margin: 18px 0 0;
	padding: 14px 0 0;
}

.suksiboksivuokraus .suksiboksivuokraus__price-lines li {
	color: var(--sbv-muted);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin: 0 0 6px;
	padding: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__price-lines li::before {
	content: none;
}

.suksiboksivuokraus .suksiboksivuokraus__price-lines li > span:last-child {
	color: var(--sbv-blue);
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.suksiboksivuokraus .suksiboksivuokraus__box-total,
.suksiboksivuokraus .suksiboksivuokraus__total {
	color: var(--sbv-petrol);
	font-size: 26px;
	font-weight: 900;
	line-height: 1.2;
	margin: 12px 0 0;
	margin-top: auto;
	padding-top: 10px;
}

/* The struck-through normal price is what makes an offer read as an offer. */
.suksiboksivuokraus .suksiboksivuokraus__price-normal {
	color: var(--sbv-muted);
	font-weight: 400;
}

.suksiboksivuokraus .suksiboksivuokraus__total-normal {
	color: var(--sbv-muted);
	font-size: 0.7em;
	font-weight: 400;
	margin-right: 4px;
	vertical-align: middle;
}

.suksiboksivuokraus .suksiboksivuokraus__offer-note {
	color: var(--sbv-muted);
	font-size: 14px;
	margin: 8px 0 0;
}

/* ------------------------------------------------------------------ summary */

/*
 * Two shapes for one panel: a sticky column beside the form on wide screens, and a bar
 * pinned to the bottom of the viewport on everything narrower. Both keep the price in sight
 * while the contact details are filled in, which is the whole point of the panel.
 */
.suksiboksivuokraus .suksiboksivuokraus__summary {
	background: var(--sbv-surface);
	border-radius: var(--sbv-radius-card);
	margin: 0 0 48px;
	padding: 26px 28px;
}

@media (max-width: 1000px) {

	/*
	 * Fixed rather than sticky: a sticky bottom only holds an element that is still ahead in
	 * the document, and the panel sits above the contact form it has to stay visible for.
	 *
	 * Pinned to the top, not the bottom: the site carries a fixed chat button in the bottom
	 * right corner that sits on top of anything parked there. --sbv-sticky-top is the height
	 * of the host's own fixed bars, measured by the script as the page scrolls.
	 */
	.suksiboksivuokraus .suksiboksivuokraus__summary {
		border-bottom: 1px solid var(--sbv-border);
		border-radius: 0;
		bottom: auto;
		box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
		left: 0;
		margin: 0;
		padding: 0 16px 8px;
		position: fixed;
		right: 0;
		top: calc(var(--sbv-sticky-top) + env(safe-area-inset-top, 0px));
		z-index: 5;
	}

	/* Out of the way once the form itself has scrolled past, so it never sits on the footer. */
	.suksiboksivuokraus.is-form-offscreen .suksiboksivuokraus__summary {
		display: none;
	}

	.suksiboksivuokraus .suksiboksivuokraus__summary-body {
		display: none;
		max-height: 60vh;
		overflow-y: auto;
		padding-bottom: 8px;
	}

	/* The collapsed line already says "Yhteenveto"; the heading would only repeat it. */
	.suksiboksivuokraus .suksiboksivuokraus__summary-title {
		display: none;
	}

	.suksiboksivuokraus .suksiboksivuokraus__summary.is-open .suksiboksivuokraus__summary-body {
		display: block;
	}

	/* The bar covers the top of the viewport, so anything scrolled to needs to clear it. */
	.suksiboksivuokraus .suksiboksivuokraus__step,
	.suksiboksivuokraus .suksiboksivuokraus__field {
		scroll-margin-top: 80px;
	}
}

/*
 * Every state is pinned, not just the resting one. The theme styles bare buttons: a dark blue
 * fill on hover, a rounded outline on focus and a width of its own, all of which made the
 * summary heading read as a form field rather than a bar.
 */
.suksiboksivuokraus .suksiboksivuokraus__summary-toggle,
.suksiboksivuokraus .suksiboksivuokraus__summary-toggle:hover,
.suksiboksivuokraus .suksiboksivuokraus__summary-toggle:focus,
.suksiboksivuokraus .suksiboksivuokraus__summary-toggle:active {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--sbv-blue);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 700;
	gap: 12px;
	justify-content: space-between;
	margin: 0;
	max-width: none;
	min-height: 0;
	outline: none;
	padding: 13px 0;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	width: 100%;
}

/* Drawn inside the bar so the ring cannot stick out past the screen edge. */
.suksiboksivuokraus .suksiboksivuokraus__summary-toggle:focus-visible {
	outline: 2px solid var(--sbv-petrol);
	outline-offset: -2px;
}

.suksiboksivuokraus .suksiboksivuokraus__summary-toggle > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * Points down when collapsed — the panel opens downwards — and up once it is open.
 *
 * Rotating a square pushes its corners about 2px outside its own box, so the right margin
 * keeps the tip clear of the bar's edge instead of letting it be clipped. The caret only ever
 * renders on narrow screens; the wide layout hides the whole toggle.
 */
.suksiboksivuokraus .suksiboksivuokraus__summary-caret {
	border-bottom: 2px solid var(--sbv-petrol);
	border-right: 2px solid var(--sbv-petrol);
	flex: 0 0 auto;
	height: 9px;
	margin-right: 6px;
	margin-top: -4px;
	transform: rotate(45deg);
	transition: transform var(--sbv-transition);
	width: 9px;
}

.suksiboksivuokraus .suksiboksivuokraus__summary.is-open .suksiboksivuokraus__summary-caret {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* The wide layout shows the whole panel, so there is nothing to unfold. */
@media (min-width: 1001px) {

	.suksiboksivuokraus .suksiboksivuokraus__summary-toggle {
		display: none;
	}
}

.suksiboksivuokraus .suksiboksivuokraus__summary-title {
	color: var(--sbv-blue);
	font-family: inherit;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.28;
	margin: 0 0 18px;
}

.suksiboksivuokraus .suksiboksivuokraus__summary-list {
	margin: 0;
}

.suksiboksivuokraus .suksiboksivuokraus__summary-list dt {
	color: var(--sbv-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	margin: 0;
	text-transform: uppercase;
}

.suksiboksivuokraus .suksiboksivuokraus__summary-list dd {
	color: var(--sbv-blue);
	font-size: 17px;
	font-weight: 700;
	margin: 2px 0 16px;
}

.suksiboksivuokraus .suksiboksivuokraus__summary .suksiboksivuokraus__price-lines {
	font-size: 14px;
}

.suksiboksivuokraus .suksiboksivuokraus__pay-note {
	color: var(--sbv-muted);
	font-size: 14px;
	margin: 14px 0 0;
}

/* ------------------------------------------------------------------ contact form */

.suksiboksivuokraus .suksiboksivuokraus__form {
	padding-left: 48px;
}

.suksiboksivuokraus .suksiboksivuokraus__form-group {
	margin: 0 0 20px;
	max-width: 420px;
}

.suksiboksivuokraus .suksiboksivuokraus__label {
	color: var(--sbv-blue);
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
}

.suksiboksivuokraus .suksiboksivuokraus__required {
	color: var(--sbv-error);
}

.suksiboksivuokraus .suksiboksivuokraus__control {
	appearance: none;
	background: var(--sbv-white);
	border: 1px solid var(--sbv-border);
	border-radius: 0;
	color: var(--sbv-blue);
	display: block;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	padding: 14px 15px;
	transition: border-color var(--sbv-transition), box-shadow var(--sbv-transition);
	width: 100%;
}

.suksiboksivuokraus .suksiboksivuokraus__form-group--wide {
	max-width: 600px;
}

.suksiboksivuokraus .suksiboksivuokraus__optional {
	color: var(--sbv-muted);
	font-weight: 400;
}

.suksiboksivuokraus .suksiboksivuokraus__control--textarea {
	min-height: 110px;
	resize: vertical;
}

.suksiboksivuokraus .suksiboksivuokraus__control:focus {
	border-color: var(--sbv-petrol);
	box-shadow: 0 0 0 3px rgba(0, 112, 132, .15);
	outline: none;
}

/*
 * The checkbox is drawn rather than hidden: these rules are (0,2,0) and beat the theme's
 * bare input[type="checkbox"], and the tick is a background image because an input does not
 * render ::after.
 */
.suksiboksivuokraus .suksiboksivuokraus__check {
	align-items: center;
	color: var(--sbv-blue);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	gap: 10px;
	line-height: 22px;
}

.suksiboksivuokraus .suksiboksivuokraus__check-input {
	appearance: none;
	background: var(--sbv-white);
	border: 1px solid var(--sbv-border);
	border-radius: 0;
	cursor: pointer;
	display: block;
	flex: none;
	height: 22px;
	margin: 0;
	opacity: 1;
	position: static;
	transition: all var(--sbv-transition);
	width: 22px;
}

.suksiboksivuokraus .suksiboksivuokraus__check-input:checked {
	background: var(--sbv-petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.4l3.2 3.2L12 3.8' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") center no-repeat;
	background-size: 14px 14px;
	border-color: var(--sbv-petrol);
}

.suksiboksivuokraus .suksiboksivuokraus__check-input:focus-visible {
	border-color: var(--sbv-petrol);
	box-shadow: 0 0 0 3px rgba(0, 112, 132, .15);
	outline: none;
}

.suksiboksivuokraus .suksiboksivuokraus__honeypot {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.suksiboksivuokraus .suksiboksivuokraus__actions {
	margin: 28px 0 0;
}

/* The site's signature call to action: gold pill, inverting to oxford blue on hover. */
.suksiboksivuokraus .suksiboksivuokraus__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--sbv-radius-pill);
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	margin: 0;
	max-width: 300px;
	overflow: hidden;
	padding: 16px 30px;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	transition: all var(--sbv-transition);
	white-space: nowrap;
}

.suksiboksivuokraus .suksiboksivuokraus__btn--primary {
	background: var(--sbv-gold);
	border-color: var(--sbv-gold);
	color: var(--sbv-white);
}

.suksiboksivuokraus .suksiboksivuokraus__btn--primary:hover:not(:disabled),
.suksiboksivuokraus .suksiboksivuokraus__btn--primary:focus-visible {
	background: var(--sbv-blue);
	border-color: var(--sbv-blue);
	color: var(--sbv-white);
}

.suksiboksivuokraus .suksiboksivuokraus__btn:disabled {
	cursor: default;
	opacity: .55;
}

/* ------------------------------------------------------------------ confirmation */

.suksiboksivuokraus .suksiboksivuokraus__done {
	background: var(--sbv-surface);
	border-radius: var(--sbv-radius-card);
	box-shadow: inset 4px 0 0 0 var(--sbv-petrol);
	padding: 32px 36px;
}

.suksiboksivuokraus .suksiboksivuokraus__done-title {
	color: var(--sbv-blue);
	font-family: inherit;
	font-size: 25px;
	font-weight: 900;
	line-height: 1.28;
	margin: 0 0 20px;
}

.suksiboksivuokraus .suksiboksivuokraus__done p {
	margin: 16px 0 0;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 700px) {

	.suksiboksivuokraus .suksiboksivuokraus__step-help,
	.suksiboksivuokraus .suksiboksivuokraus__calendar,
	.suksiboksivuokraus .suksiboksivuokraus__boxes,
	.suksiboksivuokraus .suksiboksivuokraus__form {
		padding-left: 0;
	}

	.suksiboksivuokraus .suksiboksivuokraus__step-title {
		font-size: 20px;
	}

	.suksiboksivuokraus .suksiboksivuokraus__day {
		font-size: 14px;
		max-width: 40px;
	}
}

/*
 * Set on <body> while a calendar end is being dragged, so the resize cursor and the text
 * selection lock apply everywhere the pointer travels — not only inside the form.
 */
body.kah-sbv-dragging {
	cursor: ew-resize;
	user-select: none;
}
