/**
 * Cookie consent strip fixed to the bottom of the page.
 * The blue is the color of the banner screenshot (#507098).
 *
 * @package medexpress
 */

.me-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 990;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 12px var(--content-side-padding);
	background: #507098;
	color: #fff;
	text-align: center;
}

.me-cookie-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 18px;
	/* p in typography.css sets a dark color and beats the inherited white. */
	color: #fff;
}

.me-cookie-banner__host {
	white-space: nowrap;
}

.me-cookie-banner__text a,
.me-cookie-banner__text a:visited,
.me-cookie-banner__text a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.me-cookie-banner__ok {
	flex: 0 0 auto;
	margin: 0;
	padding: 5px 14px;
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
	font-size: 13px;
	line-height: 16px;
	font-weight: 500;
}

.me-cookie-banner__ok:active {
	border-color: #fff;
}

@media (min-width: 769px) {
	.me-cookie-banner__ok:hover {
		background: rgba(255, 255, 255, 0.15);
	}
}

@media (max-width: 768px) {
	.me-cookie-banner {
		flex-direction: column;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.me-cookie-banner__text {
		font-size: 13px;
		line-height: 17px;
	}
}

@media print {
	.me-cookie-banner {
		display: none;
	}
}
