/*
 * WDM Consent: CookieConsent v3 styled to match the banner wdmarket.com showed
 * under CookieYes (light box bottom-left, Onest, cream + lime pill buttons),
 * so switching consent tools changes nothing visually.
 *
 * Measured from the live CookieYes banner (2026-11-17): white box, 6px radius,
 * #f4f4f4 border, soft shadow; title 18px/700, text 14px, #212121; buttons
 * 14px/500 pills, Accept #d3fb52, Reject / Customise #f9ffe6, text #010708.
 *
 * Keep --cc-btn-border-radius small: CookieConsent also uses it for the
 * category boxes in the preferences panel, and a pill radius there turns an
 * expanded box into an ellipse that clips the cookie table. Pills are applied
 * to the buttons directly below.
 */
#cc-main {
	--cc-font-family: Onest, sans-serif;
	--cc-modal-border-radius: 6px;
	--cc-btn-border-radius: 6px;
	--cc-modal-transition-duration: .25s;
	--cc-link-color: #010708;
	--cc-overlay-bg: rgba(0, 0, 0, .5);
	--cc-z-index: 2147483000;
	--cc-modal-margin: 40px;

	--cc-bg: #fff;
	--cc-primary-color: #212121;
	--cc-secondary-color: #212121;

	--cc-btn-primary-bg: #d3fb52;
	--cc-btn-primary-color: #010708;
	--cc-btn-primary-border-color: #d3fb52;
	--cc-btn-primary-hover-bg: #a1de3b;
	--cc-btn-primary-hover-color: #010708;
	--cc-btn-primary-hover-border-color: #a1de3b;

	--cc-btn-secondary-bg: #f9ffe6;
	--cc-btn-secondary-color: #010708;
	--cc-btn-secondary-border-color: #f9ffe6;
	--cc-btn-secondary-hover-bg: #eef7cf;
	--cc-btn-secondary-hover-color: #010708;
	--cc-btn-secondary-hover-border-color: #eef7cf;

	--cc-separator-border-color: #f4f4f4;

	--cc-toggle-on-bg: #a1de3b;
	--cc-toggle-off-bg: #868c8c; /* 3.4:1 on white: visible control outline (WCAG 1.4.11) */
	--cc-toggle-on-knob-bg: #fff;
	--cc-toggle-off-knob-bg: #fff;
	--cc-toggle-enabled-icon-color: #010708;
	--cc-toggle-disabled-icon-color: #868c8c;
	--cc-toggle-readonly-bg: #e3f3b8;
	--cc-toggle-readonly-knob-bg: #fff;
	--cc-toggle-readonly-knob-icon-color: #4c5e59;

	--cc-section-category-border: #f4f4f4;
	--cc-cookie-category-block-bg: #fff;
	--cc-cookie-category-block-border: #f4f4f4;
	--cc-cookie-category-block-hover-bg: #fafafa;
	--cc-cookie-category-block-hover-border: #ececec;
	--cc-cookie-category-expanded-block-bg: #fff;
	--cc-cookie-category-expanded-block-hover-bg: #fafafa;

	--cc-footer-bg: #fff;
	--cc-footer-color: #212121;
	--cc-footer-border-color: #f4f4f4;

	--cc-webkit-scrollbar-bg: #d0d5d2;
	--cc-webkit-scrollbar-hover-bg: #868c8c;
}

/* Boxes: the CookieYes border + soft upward shadow. */
#cc-main .cm,
#cc-main .pm {
	border: 1px solid #f4f4f4;
	box-shadow: 0 -1px 10px rgba(172, 171, 171, .3);
}

/* Type. */
#cc-main .cm__title,
#cc-main .pm__title {
	font-size: 18px;
	font-weight: 700;
	color: #212121;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc,
#cc-main .pm__section > .pm__section-desc-wrapper {
	font-size: 14px;
	line-height: 1.5;
	color: #212121;
}

#cc-main .pm__section-title {
	font-size: 15px;
	font-weight: 600;
}

/* Buttons: pills, 14px / 500, as on the CookieYes banner. */
#cc-main .cm__btn,
#cc-main .pm__btn {
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	min-height: 40px;
	padding: 10px 18px;
}

#cc-main .cm__btn + .cm__btn,
#cc-main .cm__btn-group + .cm__btn-group,
#cc-main .pm__btn + .pm__btn,
#cc-main .pm__btn-group + .pm__btn-group {
	margin-top: 0;
}

/* Desktop: one row, Customise · Reject · Accept (CookieYes order). */
@media (min-width: 641px) {
	#cc-main .cm__btns {
		display: flex;
		flex-direction: row-reverse;
		gap: 10px;
		padding-top: 16px;
		padding-bottom: 20px;
	}

	/* Three equal buttons: the Accept/Reject group gets twice the share of
	   the single Customise group. */
	#cc-main .cm__btn-group {
		display: flex;
		flex: 2 1 0;
		flex-direction: row-reverse;
		gap: 10px;
		margin: 0;
	}

	#cc-main .cm__btn-group:last-child {
		flex: 1 1 0;
	}

	#cc-main .cm__btn {
		flex: 1 1 0;
		margin: 0 !important;
		padding-left: 8px;
		padding-right: 8px;
		white-space: nowrap;
		width: auto;
	}

	/* Banner and panel sizes of the CookieYes version, in CSS px: the theme
	   zooms the page to .85 between 992 and 1499px, so 440px shows as ~374px
	   there, exactly as CookieYes did. */
	#cc-main .cm--box {
		max-width: 440px;
		width: 440px;
	}

	#cc-main .pm--box {
		max-width: 845px;
	}

	/* Preferences footer: Reject · Save · Accept in one row. The library puts
	   Accept+Reject and Save in separate groups, so the groups are flattened. */
	#cc-main .pm__footer {
		display: flex;
		gap: 10px;
	}

	#cc-main .pm__btn-group {
		display: contents;
	}

	#cc-main .pm__btn {
		flex: 1 1 0;
		margin: 0 !important;
		white-space: nowrap;
	}

	#cc-main .pm__btn[data-role="necessary"] { order: 1; }
	#cc-main .pm__btn[data-role="save"] { order: 2; }
	#cc-main .pm__btn[data-role="all"] { order: 3; }
}

/* No separator lines inside the banner (CookieYes had none). */
#cc-main .cm__btns,
#cc-main .cm__footer {
	border-top: 0;
}

/* Plain × close button, as on the CookieYes panel. */
#cc-main .pm__close-btn {
	background: transparent;
	border: 0;
}

#cc-main .pm__close-btn:hover {
	background: #f4f4f4;
}

#cc-main .pm__close-btn svg {
	stroke: #212121;
}

/* Phones: full-width sheet at the bottom, stacked buttons, Accept first, as
   CookieYes did. */
@media (max-width: 640px) {
	#cc-main {
		--cc-modal-margin: 0px;
	}

	#cc-main .cm--box {
		border-radius: 6px 6px 0 0;
		max-width: none;
		width: 100%;
	}

	#cc-main .cm__btns {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	#cc-main .cm__btn-group {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin: 0;
	}

	#cc-main .cm__btn {
		margin: 0 !important;
	}
}

#cc-main a,
#cc-main .cc__link {
	color: #010708;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#cc-main .cm__footer {
	font-size: 13px;
}

/* Cookie tables inside the preferences panel. */
#cc-main .pm__table th,
#cc-main .pm__table td {
	font-size: 13px;
	color: #212121;
}

#cc-main .pm__table small {
	color: #4c5e59;
}

#cc-main .wdm-cc-id {
	margin: 1.25em 0 0;
	font-size: 12px;
	color: #4c5e59;
	word-break: break-all;
}

/* Footer link rendered by [wdm_cookie_settings] / the theme footer. */
.wdm-cookie-settings-link {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

/* [wdm_cookie_table] on the privacy / cookie policy page. */
.wdm-cookie-table-wrap { overflow-x: auto; margin: 0 0 2em; }
.wdm-cookie-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.wdm-cookie-table th,
.wdm-cookie-table td { text-align: left; vertical-align: top; padding: .6em .8em; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.wdm-cookie-table th { font-weight: 700; }
.wdm-cookie-table code { word-break: break-all; }

/* Floating "Cookie settings" button: appears once a choice has been made. */
.wdm-cc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482000;
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #f4f4f4;
	border-radius: 50%;
	background: #fff;
	color: #052326;
	box-shadow: 0 2px 10px rgba(1, 7, 8, .18);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, box-shadow .15s ease;
}
.wdm-cc-done .wdm-cc-float { display: inline-flex !important; } /* inline display:none hides it until the CSS has loaded */
.wdm-cc-float:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(1, 7, 8, .22); }
.wdm-cc-float:focus-visible { outline: 2px solid #052326; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .wdm-cc-float { transition: none; } .wdm-cc-float:hover { transform: none; } }
