/* Banner: bottom right, square, site colors (dark #27282B on white). */
.daf-consent[hidden] {
	display: none;
}

.daf-consent {
	bottom: 24px;
	max-width: calc(100vw - 48px);
	right: 24px;
	position: fixed;
	width: 380px;
	z-index: 99999;
}

.daf-consent__box {
	background: #fff;
	border: 1px solid #27282b;
	color: #27282b;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 18px 20px 16px;
}

.daf-consent__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.daf-consent__title {
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 1.3;
	margin: 0;
}

.daf-consent__close {
	background: none;
	border: 0;
	color: #27282b;
	cursor: pointer;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	margin-right: -4px;
	padding: 0 4px;
}

.daf-consent__message {
	font-size: 12px;
	line-height: 1.6;
	margin: 0 0 14px;
}

.daf-consent__prefs {
	border-top: 1px solid #e4e4e4;
	margin-bottom: 14px;
}

.daf-consent__cat {
	border-bottom: 1px solid #e4e4e4;
	font-size: 12px;
}

.daf-consent__cat summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 10px;
	list-style: none;
	padding: 10px 0;
}

.daf-consent__cat summary::-webkit-details-marker {
	display: none;
}

.daf-consent__cat summary::after {
	border-bottom: 1px solid #27282b;
	border-right: 1px solid #27282b;
	content: "";
	height: 6px;
	margin-right: 2px;
	transform: rotate(45deg);
	transition: transform 0.2s;
	width: 6px;
}

.daf-consent__cat[open] summary::after {
	transform: rotate(-135deg);
}

.daf-consent__cat-label {
	flex: 1;
	font-size: 13px;
}

.daf-consent__always {
	font-size: 11px;
	letter-spacing: 0.5px;
}

.daf-consent__cat p {
	line-height: 1.55;
	margin: 0;
	padding: 0 0 10px;
}

.daf-consent__services {
	color: #6b6b6b;
}

.daf-consent__switch {
	display: inline-flex;
	position: relative;
}

.daf-consent__switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.daf-consent__switch span {
	background: #fff;
	border: 1px solid #27282b;
	cursor: pointer;
	display: block;
	height: 16px;
	position: relative;
	transition: background 0.2s;
	width: 30px;
}

.daf-consent__switch span::before {
	background: #27282b;
	content: "";
	height: 10px;
	left: 2px;
	position: absolute;
	top: 2px;
	transition: transform 0.2s, background 0.2s;
	width: 10px;
}

.daf-consent__switch input:checked + span {
	background: #27282b;
}

.daf-consent__switch input:checked + span::before {
	background: #fff;
	transform: translateX(14px);
}

.daf-consent__switch input:disabled + span {
	cursor: default;
	opacity: 0.5;
}

.daf-consent__switch input:focus-visible + span {
	outline: 1px solid #27282b;
	outline-offset: 2px;
}

.daf-consent__buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.daf-consent-btn {
	background: #fff;
	border: 1px solid #27282b;
	border-radius: 0;
	color: #27282b;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	letter-spacing: 1px;
	min-height: 38px;
	padding: 6px 12px;
	transition: background 0.2s, color 0.2s;
}

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

/* Accept and Deny look the same: refusing must be as easy and visible as accepting (EDPB, AEPD). */
.daf-consent-btn--primary,
.daf-consent-btn[data-action="deny"] {
	background: #27282b;
	color: #fff;
}

.daf-consent-btn[data-action="preferences"],
.daf-consent-btn[data-action="save"] {
	grid-column: 1 / -1;
}

.daf-consent-btn:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

.daf-consent-btn:focus-visible,
.daf-consent__close:focus-visible {
	outline: 1px solid #27282b;
	outline-offset: 2px;
}

.daf-consent__links {
	display: flex;
	gap: 16px;
	margin: 12px 0 0;
}

.daf-consent__links a {
	color: #27282b;
	font-size: 11px;
	letter-spacing: 1px;
	text-decoration: underline;
}

/* "Manage consent" tab: rests half below the bottom edge, rises on hover, opens the preferences. */
.daf-consent-tab {
	background: #fff;
	border: 1px solid #27282b;
	border-bottom: 0;
	border-radius: 0;
	bottom: 0;
	color: #27282b;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 1px;
	line-height: 1;
	padding: 9px 16px 16px;
	position: fixed;
	right: 40px;
	transform: translateY(8px);
	transition: transform 0.2s ease;
	z-index: 99998;
}

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

.daf-consent-tab:hover,
.daf-consent-tab:focus-visible {
	transform: translateY(0);
}

.daf-consent-tab:focus-visible {
	outline: 1px solid #27282b;
	outline-offset: 2px;
}

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

/* Cookie Policy page: [daf_cookie_settings], [daf_cookie_table] and the .daf-policy wrapper */
.daf-cookie-settings {
	margin: 4px 0 24px;
	min-width: 180px;
	padding: 8px 24px;
}

.daf-policy {
	max-width: 860px;
	margin: 0 auto 64px;
}

.daf-policy h2 {
	font-size: 1.5625rem;
	line-height: 1.875rem;
	margin: 48px 0 16px;
}

.daf-policy h2:first-of-type {
	margin-top: 0;
}

.daf-policy p,
.daf-policy li {
	line-height: 1.7;
}

.daf-policy a {
	text-decoration: underline;
}

.daf-policy .daf-cookie-cat,
.daf-cookie-cat {
	font-size: 1.25rem;
	line-height: 1.6rem;
	margin: 32px 0 8px;
}

.daf-cookie-table {
	border-collapse: collapse;
	font-size: 14px;
	margin: 12px 0 8px;
	width: 100%;
}

.daf-cookie-table th,
.daf-cookie-table td {
	border-bottom: 1px solid #e4e4e4;
	padding: 10px 16px 10px 0;
	text-align: left;
	vertical-align: top;
}

.daf-cookie-table th {
	border-bottom-color: #222;
	font-weight: 600;
}

.daf-cookie-table code {
	background: none;
	color: inherit;
	font-size: 13px;
	padding: 0;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.daf-cookie-table thead {
		display: none;
	}

	.daf-cookie-table tr {
		border-bottom: 1px solid #e4e4e4;
		display: block;
		padding: 8px 0;
	}

	.daf-cookie-table td {
		border: 0;
		display: block;
		padding: 2px 0;
	}
}

@media (max-width: 480px) {
	.daf-consent {
		bottom: 12px;
		left: 12px;
		max-width: none;
		right: 12px;
		width: auto;
	}

	.daf-consent__box {
		max-height: calc(100vh - 24px);
	}

	.daf-consent-tab {
		right: 16px;
	}
}
