/*
 * Cookie consent: banner (live CookieYes box look per site), preferences
 * dialog and revisit button. Main = brown texts, Figtree; shop = dark texts,
 * Arial body with Figtree buttons (notes: design-main §3.11, design-shop §4).
 */

.lvt-consent[hidden],
.lvt-consent-modal[hidden],
.lvt-consent-revisit[hidden],
.lvt-consent-cat__cookies[hidden] {
	display: none !important;
}

/* ---------- banner box ---------- */

.lvt-consent__box {
	position: fixed;
	left: 40px;
	bottom: 40px;
	z-index: 99990;
	box-sizing: border-box;
	width: 440px;
	max-width: calc(100% - 80px);
	padding: 20px 26px;
	background: #fff;
	border: 1px solid #f4f4f4;
	border-radius: 6px;
	box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
	font-family: Figtree, sans-serif;
	text-align: left;
}

.lvt-consent--main .lvt-consent__box {
	padding-top: 32px; /* live renders an empty 12px title row */
}

.lvt-consent--shop .lvt-consent__box {
	border-color: #d4d8df;
	font-family: Arial, Helvetica, sans-serif;
}

.lvt-consent__title {
	margin: 0 0 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	color: #212121;
}

.lvt-consent__text {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: normal;
	color: #814d3b;
}

.lvt-consent--shop .lvt-consent__text {
	color: #212121;
}

.lvt-consent__text a {
	color: #333;
	text-decoration: none;
}

.lvt-consent__text a:hover {
	color: #814d3b;
}

.lvt-consent__text .lvt-consent__policy {
	border: 1px solid transparent; /* CookieYes: 1px border around the link, never broken over two lines */
	color: #814d3b;
	text-decoration: underline;
	white-space: nowrap;
}

/* The shop's CookieYes leaves that border in the link colour (a thin blue frame). */
.lvt-consent--shop .lvt-consent__text .lvt-consent__policy {
	border-color: currentColor;
	color: #1863dc;
}

.lvt-consent__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.lvt-consent--shop .lvt-consent__buttons {
	row-gap: 14px;
}

.lvt-consent__buttons .lvt-consent__btn {
	flex: 1 1 auto;
}

.lvt-consent__buttons .lvt-consent__btn--accept {
	flex-basis: 100%;
}

/* ---------- buttons (banner + dialog) ---------- */

.lvt-consent__btn {
	box-sizing: border-box;
	margin: 0;
	padding: 18px 34px;
	font-family: Figtree, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 22px;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	color: #814d3b;
	background: transparent;
	border: 2px solid #814d3b;
	border-radius: 5px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lvt-consent--shop .lvt-consent__btn,
.lvt-consent-modal--shop .lvt-consent__btn {
	padding: 10px 16px;
	font-weight: 500;
}

.lvt-consent__btn--solid {
	color: #fff;
	background: #814d3b;
}

.lvt-consent__btn--outline {
	background: #fff;
}

.lvt-consent__btn:hover {
	opacity: 0.8;
}

.lvt-consent__btn:focus-visible,
.lvt-consent__text a:focus-visible,
.lvt-consent-modal button:focus-visible,
.lvt-consent-switch input:focus-visible + .lvt-consent-switch__track,
.lvt-consent-revisit:focus-visible {
	outline: 2px solid #814d3b;
	outline-offset: 2px;
}

/* ---------- revisit button ---------- */

.lvt-consent-revisit {
	position: fixed;
	left: 15px;
	bottom: 15px;
	z-index: 99980;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 45px;
	height: 45px;
	margin: 0;
	padding: 0;
	color: #fff;
	background: #814d3b;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.17);
	cursor: pointer;
}

.lvt-consent-revisit svg {
	width: 26px;
	height: 26px;
}

/* ---------- preferences dialog ---------- */

html.lvt-consent-locked {
	overflow: hidden;
}

.lvt-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 99995;
	font-family: Figtree, sans-serif;
}

.lvt-consent-modal--shop {
	font-family: Arial, Helvetica, sans-serif;
}

.lvt-consent-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.lvt-consent-modal__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 845px;
	max-width: calc(100% - 30px);
	max-height: 79vh;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
	outline: none;
	overflow: hidden;
	text-align: left;
}

.lvt-consent-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	border-bottom: 1px solid #f4f4f4;
}

.lvt-consent-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	color: #814d3b;
}

.lvt-consent-modal--shop .lvt-consent-modal__title {
	color: #212121;
}

.lvt-consent-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	color: #888;
	background: none;
	border: 0;
	cursor: pointer;
}

.lvt-consent-modal__close:hover {
	color: #212121;
}

.lvt-consent-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 14px;
	line-height: 24px;
	color: #814d3b;
}

.lvt-consent-modal--shop .lvt-consent-modal__body {
	color: #212121;
}

.lvt-consent-modal__intro {
	padding: 20px 0 10px;
}

.lvt-consent-modal__intro p {
	margin: 0 0 20px;
}

.lvt-consent-modal__intro p:last-child {
	margin-bottom: 0;
}

.lvt-consent-modal__intro .lvt-consent-modal__more {
	display: none;
}

.lvt-consent-modal__intro.is-expanded .lvt-consent-modal__more {
	display: block;
}

.lvt-consent-modal__intro.is-expanded .lvt-consent-modal__ellipsis {
	display: none;
}

.lvt-consent-modal__toggle {
	margin: 0;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: #1863dc;
	background: none;
	border: 0;
	cursor: pointer;
}

/* categories */

.lvt-consent-cat {
	padding: 20px 0;
	border-top: 1px solid #f4f4f4;
}

.lvt-consent-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lvt-consent-cat__expand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: inherit;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.lvt-consent-cat__chevron {
	flex: 0 0 auto;
	width: 7px;
	height: 11px;
	transition: transform 0.2s ease;
}

.lvt-consent-cat__expand[aria-expanded="true"] .lvt-consent-cat__chevron {
	transform: rotate(90deg);
}

.lvt-consent-cat__always {
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	color: #008000;
	white-space: nowrap;
}

.lvt-consent-cat__desc {
	margin: 10px 0 0;
	padding-left: 22px;
}

.lvt-consent-cat__cookies {
	margin: 16px 0 0 22px;
}

.lvt-consent-cookie {
	display: grid;
	gap: 4px;
	margin: 0 0 10px;
	padding: 12px 16px;
	font-size: 12px;
	line-height: 20px;
	color: #212121;
	background: #f4f4f4;
	border-radius: 6px;
}

.lvt-consent-cookie > div {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 10px;
}

.lvt-consent-cookie dt {
	font-weight: 700;
}

.lvt-consent-cookie dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* switch */

.lvt-consent-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	cursor: pointer;
}

.lvt-consent-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.lvt-consent-switch__track {
	position: relative;
	width: 44px;
	height: 24px;
	background: #d0d5d2;
	border-radius: 12px;
	transition: background-color 0.2s ease;
	pointer-events: none;
}

.lvt-consent-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.lvt-consent-switch input:checked + .lvt-consent-switch__track {
	background: #814d3b;
}

.lvt-consent-switch input:checked + .lvt-consent-switch__track::after {
	transform: translateX(20px);
}

/* footer */

.lvt-consent-modal__footer {
	display: flex;
	gap: 9px;
	padding: 22px 24px;
	border-top: 1px solid #f4f4f4;
}

.lvt-consent-modal__footer .lvt-consent__btn {
	flex: 1 1 auto;
}

/* ---------- tablet / mobile ---------- */

@media (max-width: 1024px) {
	.lvt-consent-revisit {
		left: 10px;
		bottom: 10px;
	}
}

/*
 * Live CookieYes: the buttons get a 1px frame at <= 767px (the main site's
 * also get smaller padding and stand in one row); at <= 576px the 440px box
 * moves into the bottom-left corner; only at <= 440px it becomes the
 * full-width sheet; at <= 352px the texts shrink (title 16px, text 12px).
 */
@media (max-width: 767px) {
	.lvt-consent__buttons .lvt-consent__btn {
		border-width: 1px;
	}

	.lvt-consent--main .lvt-consent__buttons .lvt-consent__btn {
		padding: 12px 24px;
	}

	.lvt-consent--main .lvt-consent__buttons .lvt-consent__btn--accept {
		flex-basis: auto;
	}
}

@media (max-width: 576px) {
	.lvt-consent__box {
		left: 0;
		bottom: 0;
		max-width: none;
	}
}

@media (max-width: 440px) {
	.lvt-consent__box {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		padding: 20px 24px;
		border-radius: 6px; /* live keeps all four corners round, also at the screen bottom */
	}

	/* Live CookieYes bars on phones: 21px (padding + border) under the last button. */
	.lvt-consent--main .lvt-consent__box {
		padding-top: 32px;
	}

	.lvt-consent__buttons {
		flex-direction: column;
		gap: 10px;
	}

	.lvt-consent--shop .lvt-consent__buttons {
		row-gap: 10px;
	}

	.lvt-consent__buttons .lvt-consent__btn,
	.lvt-consent--main .lvt-consent__buttons .lvt-consent__btn {
		flex: 0 0 auto;
		width: 100%;
		padding: 12px 16px;
		border-width: 1px;
	}

	.lvt-consent__buttons .lvt-consent__btn--accept {
		order: 1;
	}

	/* Shop (live): 44px buttons, "Accept All" 6px lower than the row start. */
	.lvt-consent--shop .lvt-consent__buttons .lvt-consent__btn {
		padding: 10px 16px;
	}

	.lvt-consent--shop .lvt-consent__buttons .lvt-consent__btn--accept {
		margin-top: 6px;
	}

	.lvt-consent__buttons .lvt-consent__btn--customize {
		order: 2;
	}

	.lvt-consent__buttons .lvt-consent__btn--reject {
		order: 3;
	}
}

@media (max-width: 352px) {
	.lvt-consent__title {
		font-size: 16px;
	}

	.lvt-consent__text,
	.lvt-consent__text a {
		font-size: 12px;
	}
}

@media (max-width: 576px) {
	.lvt-consent-modal__dialog {
		max-width: calc(100% - 20px);
		max-height: calc(100% - 40px);
	}

	.lvt-consent-modal__header,
	.lvt-consent-modal__footer {
		padding: 16px;
	}

	.lvt-consent-modal__body {
		padding: 0 16px;
	}

	.lvt-consent-modal__footer {
		flex-direction: column;
		gap: 8px;
	}

	.lvt-consent-modal__footer .lvt-consent__btn {
		padding: 10px 16px;
		border-width: 1px;
	}

	.lvt-consent-cat__desc,
	.lvt-consent-cat__cookies {
		padding-left: 0;
		margin-left: 0;
	}

	.lvt-consent-cookie > div {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lvt-consent__btn,
	.lvt-consent-cat__chevron,
	.lvt-consent-switch__track,
	.lvt-consent-switch__track::after {
		transition: none;
	}
}
