/*!
 * RoofersCoffeeShop consent manager (rcs-cmp)
 * Loaded only on hosts configured as MODE_STRICT.
 *
 * Design rules baked in here, do not "tidy" them away:
 *  - "Accept all" and "Reject all" share one class and are visually identical:
 *    same size, weight, colour and border. ICO requires equal prominence.
 *  - "Manage preferences" is the third, lower-emphasis option - never the only
 *    route to rejecting.
 *  - All interactive elements keep a visible 3px focus ring (WCAG 2.2 AA).
 *  - Text/background pairings below are all >= 4.5:1.
 */

.rcs-cc-open,
.rcs-cc-open body {
	overflow: hidden;
}

.rcs-cc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(17, 19, 24, 0.62);
	padding: 0;
}

.rcs-cc-backdrop[hidden] {
	display: none !important;
}

.rcs-cc-panel {
	background: #ffffff;
	color: #1d2026;
	width: 100%;
	max-width: 880px;
	max-height: 92vh;
	overflow-y: auto;
	border-top: 4px solid #a6252a;
	border-radius: 6px 6px 0 0;
	box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.35);
	padding: 24px 28px 26px;
	font-family: "Montserrat", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
	.rcs-cc-backdrop {
		align-items: center;
		padding: 24px;
	}

	.rcs-cc-panel {
		border-radius: 6px;
		border-top-width: 5px;
	}
}

.rcs-cc-title {
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 10px;
	color: #1d2026;
}

.rcs-cc-text {
	margin: 0 0 14px;
	color: #33373f;
}

.rcs-cc-links {
	margin: 0 0 18px;
	font-size: 15px;
}

.rcs-cc-links a {
	color: #8f1f23;
	text-decoration: underline;
	margin-right: 18px;
	display: inline-block;
}

.rcs-cc-links a:hover,
.rcs-cc-links a:focus {
	color: #6a171c;
}

/* ---------------------------------------------------------------- buttons */

.rcs-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0;
}

.rcs-cc-btn {
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border-radius: 4px;
	cursor: pointer;
	padding: 13px 22px;
	min-height: 48px;
	min-width: 168px;
	text-align: center;
	border: 2px solid transparent;
	transition: background-color 120ms linear, color 120ms linear;
}

/*
 * Accept all and Reject all BOTH use this class. Keep them identical.
 */
.rcs-cc-btn--primary {
	background: #a6252a;
	border-color: #a6252a;
	color: #ffffff;
}

.rcs-cc-btn--primary:hover {
	background: #851d21;
	border-color: #851d21;
	color: #ffffff;
}

.rcs-cc-btn--secondary {
	background: #ffffff;
	border-color: #5a6070;
	color: #2a2e37;
}

.rcs-cc-btn--secondary:hover {
	background: #eef0f4;
	color: #1d2026;
}

.rcs-cc-btn--link {
	background: transparent;
	border-color: transparent;
	color: #8f1f23;
	text-decoration: underline;
	min-width: 0;
	padding: 13px 8px;
}

.rcs-cc-btn:focus-visible,
.rcs-cc-btn:focus,
.rcs-cc-panel a:focus-visible,
.rcs-cc-panel a:focus,
.rcs-cc-panel input:focus-visible,
.rcs-cc-panel input:focus {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.rcs-cc-actions {
		flex-direction: column;
	}

	.rcs-cc-btn {
		width: 100%;
		min-width: 0;
	}
}

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

.rcs-cc-group {
	border: 1px solid #d3d7de;
	border-radius: 5px;
	padding: 14px 16px;
	margin: 0 0 12px;
	background: #fbfbfc;
}

.rcs-cc-group__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.rcs-cc-group__label {
	font-weight: 700;
	font-size: 17px;
	color: #1d2026;
	margin: 0;
}

.rcs-cc-group__summary {
	margin: 8px 0 0;
	font-size: 15px;
	color: #40454f;
}

.rcs-cc-group__list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: #545a66;
}

.rcs-cc-group__list li {
	display: inline;
}

.rcs-cc-group__list li:not(:last-child)::after {
	content: " · ";
}

.rcs-cc-locked {
	font-size: 14px;
	font-weight: 700;
	color: #2f6b3a;
	white-space: nowrap;
	padding-top: 4px;
}

/* switch-style checkbox, but a real checkbox underneath */
.rcs-cc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
	cursor: pointer;
}

.rcs-cc-switch input {
	position: absolute;
	width: 52px;
	height: 30px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.rcs-cc-switch__track {
	width: 52px;
	height: 30px;
	border-radius: 15px;
	background: #6b7280;
	border: 2px solid #4b515e;
	position: relative;
	transition: background-color 120ms linear;
	flex: 0 0 auto;
}

.rcs-cc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform 120ms ease-in-out;
}

.rcs-cc-switch input:checked + .rcs-cc-switch__track {
	background: #1f7a3d;
	border-color: #175c2e;
}

.rcs-cc-switch input:checked + .rcs-cc-switch__track::after {
	transform: translateX(22px);
}

.rcs-cc-switch input:focus + .rcs-cc-switch__track,
.rcs-cc-switch input:focus-visible + .rcs-cc-switch__track {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

.rcs-cc-switch__state {
	font-size: 14px;
	font-weight: 600;
	color: #40454f;
	min-width: 30px;
}

.rcs-cc-foot {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #e2e5ea;
}

.rcs-cc-meta {
	margin: 14px 0 0;
	font-size: 13px;
	color: #5b616d;
}

/* ------------------------------------------------------- click-to-load */

.rcs-cc-embed {
	border: 1px dashed #9aa1ae;
	border-radius: 5px;
	background: #f4f5f7;
	padding: 18px;
	margin: 0 0 18px;
	text-align: center;
	color: #33373f;
	font-size: 15px;
}

.rcs-cc-embed__text {
	margin: 0 0 12px;
}

.rcs-cc-embed__btn {
	margin: 4px 6px 0;
	min-width: 0;
}

/* -------------------------------------------------- inline text control
 * Not used by the footer any more - consent is reopened from /cookie-policy.
 * Kept as a utility: put data-cc-open on any element with this class to get a
 * text-style "Cookie settings" control that opens the preferences panel.
 */

.rcs-cc-settings-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.rcs-cc-settings-link:focus-visible,
.rcs-cc-settings-link:focus {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

/* --------------------------------------------------------- policy table */

.rcs-cc-table-wrap {
	overflow-x: auto;
	margin: 0 0 28px;
}

.rcs-cc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.rcs-cc-table caption {
	text-align: left;
	font-weight: 700;
	padding: 0 0 8px;
	color: #1d2026;
}

.rcs-cc-table th,
.rcs-cc-table td {
	border: 1px solid #d3d7de;
	padding: 9px 11px;
	vertical-align: top;
	text-align: left;
}

.rcs-cc-table thead th {
	background: #eef0f4;
	color: #1d2026;
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
	.rcs-cc-btn,
	.rcs-cc-switch__track,
	.rcs-cc-switch__track::after {
		transition: none;
	}
}

/* ----------------------------------------------------- forced colours */

@media (forced-colors: active) {
	.rcs-cc-panel {
		border: 1px solid CanvasText;
	}

	.rcs-cc-btn {
		border: 2px solid ButtonText;
	}

	.rcs-cc-switch__track {
		border: 2px solid ButtonText;
		background: ButtonFace;
	}

	.rcs-cc-switch input:checked + .rcs-cc-switch__track {
		background: Highlight;
	}
}

/* Local fallback so the dialog does not depend on Bootstrap's .sr-only. */
.rcs-cc-panel .sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
