/* Плашка cookie. Мобилка — снизу на всю ширину, десктоп — карточка 638 справа снизу.
   z-index ниже шапки (50), меню (90) и <dialog> (top layer). */

.cookie {
	position: fixed;
	z-index: 40;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	padding: 15px;
	background: var(--c-cream);
	color: var(--c-black);
	box-shadow: 0 -4px 6px 1px rgba(0, 0, 0, 0.09);
	transform: translateY(110%);
}

.cookie.is-ready {
	transition: transform 0.45s var(--ease);
}

.cookie.is-in {
	transform: translateY(0);
}

.cookie__box {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 15px;
}

.cookie__close {
	align-self: flex-end;
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	line-height: 0;
	color: var(--c-black);
}

.cookie__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

.cookie__close:hover {
	color: var(--c-orange-dark);
}

.cookie__text {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.32;
	overflow-wrap: break-word;
}

.cookie__text strong,
.cookie__link {
	font-weight: 600;
}

.cookie__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.cookie__link:hover {
	color: var(--c-orange-dark);
}

.cookie__ok {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--c-orange);
	color: var(--c-white);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.32;
	text-align: center;
	transition: background-color 0.25s var(--ease);
}

.cookie__ok:hover {
	background: var(--c-orange-dark);
}

@media (max-width: 767.98px) {
	.cookie__br {
		display: none;
	}
}

@media (min-width: 768px) {
	.cookie {
		right: 16px;
		bottom: 16px;
		left: auto;
		width: min(638px, calc(100% - 32px));
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	}
}
