/* Cookie consent notice (mu-plugins/coast-consent.php, js/consent.js). Tokens from style.css. */

.coast-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9995;
	padding: 0 12px calc(12px + env(safe-area-inset-bottom));
	transform: translateY(16px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}

.coast-consent.is-open {
	transform: none;
	opacity: 1;
	pointer-events: auto;
}

.coast-consent[hidden] {
	display: none;
}

.coast-consent__inner {
	max-width: 1140px;
	margin: 0 auto;
	background: #fff;
	color: var(--coast-ink, #3d4552);
	border: 1px solid var(--coast-rule, #d9e2e6);
	border-top: 4px solid var(--apt-sun, #e3a12f);
	border-radius: 4px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 22px;
}

.coast-consent__text {
	flex: 1;
	font-size: 15px;
	line-height: 1.55;
}

.coast-consent__text p {
	margin: 0;
	max-width: none;
}

.coast-consent__title {
	font-family: var(--coast-display, Georgia, serif) !important;
	font-size: 20px;
	line-height: 1.2;
	color: var(--coast-navy, #333b48);
	margin: 0 0 4px !important;
}

.coast-consent__text a {
	color: var(--coast-sea, #1f6f8b);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.coast-consent__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.coast-consent__btn {
	appearance: none;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	padding: 12px 18px;
	border-radius: 3px;
	cursor: pointer;
	border: 2px solid var(--coast-navy, #333b48);
	min-width: 150px;
}

.coast-consent__btn--accept {
	background: var(--coast-navy, #333b48);
	color: #fff;
}

.coast-consent__btn--accept:hover {
	background: var(--apt-sun, #e3a12f);
	border-color: var(--apt-sun, #e3a12f);
	color: var(--coast-navy, #333b48);
}

.coast-consent__btn--essential {
	background: #fff;
	color: var(--coast-navy, #333b48);
}

.coast-consent__btn--essential:hover {
	background: var(--coast-foam, #eef5f6);
}

.coast-consent__btn:focus-visible {
	outline: 3px solid var(--apt-sun, #e3a12f);
	outline-offset: 2px;
}

/* footer "Cookie settings" link, printed by wp_footer after the site footer */
.coast-consent__footer-link {
	margin: 0;
	padding: 6px 15px 10px;
	text-align: center;
	font-size: 12px;
	background: #1c222a;
}

.coast-consent__footer-link a {
	color: #cfd5dd;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 767px) {
	/* sit above the sticky book/call bar */
	.coast-consent {
		padding-bottom: calc(52px + 10px + env(safe-area-inset-bottom));
	}

	.coast-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 16px 16px 14px;
	}

	.coast-consent__actions {
		flex-direction: column;
	}

	.coast-consent__btn {
		width: 100%;
		min-width: 0;
	}

	.coast-consent__footer-link {
		padding-bottom: 10px;
	}
}

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