/**
 * Cookie consent banner.
 *
 * Bottom-left card so it never covers the booking pill at bottom right, and
 * never spans the whole viewport width on desktop. On phones it takes the full
 * width above the safe area.
 */
.hdl-consent {
	position: fixed;
	z-index: 9000;
	left: 20px;
	bottom: 20px;
	width: min( 420px, calc( 100vw - 40px ) );
	background: #fff;
	color: #101114;
	border: 1px solid rgba( 16, 17, 20, 0.12 );
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba( 16, 17, 20, 0.18 );
	opacity: 0;
	transform: translateY( 12px );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hdl-consent.is-in {
	opacity: 1;
	transform: none;
}

.hdl-consent-in {
	padding: 20px 20px 18px;
}

/* The theme colours h2 for a dark section; inside this card it has to be set
   explicitly or the heading renders near-white on white. */
.hdl-consent-h,
.hdl-consent h2 {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #101114;
	text-transform: none;
}

.hdl-consent p,
.hdl-consent label,
.hdl-consent button {
	color: #101114;
}

.hdl-consent-b {
	margin: 0 0 14px;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #45484f;
}

.hdl-consent-b {
	color: #45484f;
}

.hdl-consent-b a {
	color: inherit;
	text-underline-offset: 2px;
}

/* display:grid would otherwise win over the hidden attribute, so the options
   panel rendered open before the visitor asked for it. */
.hdl-consent-opts[hidden] {
	display: none;
}

.hdl-consent-opts {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 0 0;
	border-top: 1px solid rgba( 16, 17, 20, 0.1 );
}

.hdl-consent-opt {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #45484f;
}

.hdl-consent-opt strong {
	color: #101114;
	font-weight: 600;
}

.hdl-consent-opt input {
	margin: 2px 0 0;
	width: 16px;
	height: 16px;
	accent-color: #101114;
}

.hdl-consent-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hdl-consent-btn {
	flex: 1 1 auto;
	min-height: 40px;
	padding: 0 14px;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	border-radius: 9px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hdl-consent-btn.is-ghost {
	background: #fff;
	color: #101114;
	border: 1px solid rgba( 16, 17, 20, 0.18 );
}

.hdl-consent-btn.is-ghost:hover {
	border-color: rgba( 16, 17, 20, 0.4 );
}

.hdl-consent-btn.is-solid {
	background: #101114;
	color: #fff;
	border: 1px solid #101114;
}

.hdl-consent-btn.is-solid:hover {
	background: #26282e;
}

.hdl-consent-btn:focus-visible {
	outline: 2px solid #2f6bff;
	outline-offset: 2px;
}

@media ( max-width: 600px ) {
	.hdl-consent {
		left: 12px;
		right: 12px;
		bottom: calc( 12px + env( safe-area-inset-bottom ) );
		width: auto;
	}

	.hdl-consent-btn {
		flex: 1 1 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hdl-consent {
		transition: none;
	}
}

/* The reopen control on /cookies/ reads as a link, not a form control. */
.hdl-consent-reopen {
	font: inherit;
	font-size: 1.02rem;
	color: inherit;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: 0;
	cursor: pointer;
}

.hdl-consent-reopen:hover {
	opacity: 0.7;
}

.hdl-consent-reopen:focus-visible {
	outline: 2px solid #2f6bff;
	outline-offset: 3px;
}
