/*
 * Brist — custom CWS Suite cookie consent banner.
 * Design: Claude Design "Brist Cookie Consent".
 *
 * Every rule is scoped to [data-cws-tpl-style="custom"] so nothing leaks onto a
 * built-in banner, and button rules sit at (0,3,0) so the Elementor kit
 * (.elementor-kit-7 button, 0,1,1) can never restyle them.
 * The wrappers' opacity / visibility / .active mechanism is left to the plugin.
 */

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"],
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"],
.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
	--br-paper: #f7f4ee;
	--br-ink: #1f1e1b;
	--br-mute: #5d5a52;
	--br-line: #e2ddd2;
	--br-olive: #8b9442;
	--br-olive-d: #626b26;
	--br-olive-l: #ebecd6;
	--br-olive: oklch(0.62 0.12 115);
	--br-olive-d: oklch(0.48 0.1 115);
	--br-olive-l: oklch(0.93 0.04 115);
	--br-script: var(--e-global-typography-primary-font-family, "Run-Wild-HR"), cursive;
	--br-sans: var(--e-global-typography-text-font-family, "Roboto"), Helvetica, Arial, sans-serif;
	font-family: var(--br-sans);
	color: var(--br-ink);
}

[data-cws-tpl-style="custom"] .br-ck,
[data-cws-tpl-style="custom"] .br-ck * {
	box-sizing: border-box;
}

[data-cws-tpl-style="custom"] .br-ck p,
[data-cws-tpl-style="custom"] .br-ck h2,
[data-cws-tpl-style="custom"] .br-ck ul {
	margin: 0;
}

[data-cws-tpl-style="custom"] .br-ck-leaf {
	width: 34px;
	height: auto;
	flex: none;
	color: var(--br-olive);
}

[data-cws-tpl-style="custom"] .br-ck-script {
	font-family: var(--br-script);
	font-weight: 400;
	line-height: 1;
	color: var(--br-ink);
	text-transform: none;
	letter-spacing: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

[data-cws-tpl-style="custom"] .br-ck-tag {
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--br-mute);
}

/* ---------- Buttons ---------- */

[data-cws-tpl-style="custom"] .br-ck .br-btn {
	font: 500 14px/1 var(--br-sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 14px 18px;
	margin: 0;
	border-radius: 2px;
	cursor: pointer;
	border: 1px solid var(--br-ink);
	background: transparent;
	color: var(--br-ink);
	box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s;
	width: 100%;
}

[data-cws-tpl-style="custom"] .br-ck .br-btn:hover,
[data-cws-tpl-style="custom"] .br-ck .br-btn:focus-visible {
	background: var(--br-ink);
	color: var(--br-paper);
}

[data-cws-tpl-style="custom"] .br-ck .br-btn--primary {
	background: var(--br-olive);
	border-color: var(--br-olive);
	color: #fff;
}

[data-cws-tpl-style="custom"] .br-ck .br-btn--primary:hover,
[data-cws-tpl-style="custom"] .br-ck .br-btn--primary:focus-visible {
	background: var(--br-olive-d);
	border-color: var(--br-olive-d);
	color: #fff;
}

[data-cws-tpl-style="custom"] .br-ck .br-btn--link {
	border: 0;
	padding: 6px 0 0;
	width: auto;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--br-mute);
	background: none;
}

[data-cws-tpl-style="custom"] .br-ck .br-btn--link:hover,
[data-cws-tpl-style="custom"] .br-ck .br-btn--link:focus-visible {
	background: none;
	color: var(--br-ink);
}

/* ---------- Banner ---------- */

.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] {
	left: 24px;
	bottom: 24px;
	width: min(440px, calc(100vw - 48px));
	min-width: 0;
	padding: 28px 30px 26px;
	border-radius: 0;
	background: var(--br-paper);
	border-top: 3px solid var(--br-olive);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	z-index: 9999;
}

[data-cws-tpl-style="custom"] .br-ck-banner__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

[data-cws-tpl-style="custom"] .br-ck-banner__head .br-ck-script {
	font-size: 40px;
}

[data-cws-tpl-style="custom"] .br-ck-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--br-mute);
	text-wrap: pretty;
}

[data-cws-tpl-style="custom"] .br-ck-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 22px;
}

[data-cws-tpl-style="custom"] .br-ck-actions .br-btn--link {
	grid-column: 1 / -1;
	justify-self: start;
}

@media (max-width: 768px) {
	.cws-cookie-consent-notice-wrap[data-cws-tpl-style="custom"] {
		left: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 22px 20px 20px;
	}
}

/* ---------- Floating reopen button ---------- */

/* The plugin sets left/right: 12px inline from the "position" setting; the
   12px margins add up to the design's 24px offset on whichever side is used. */
.cws-cookie-floating-wrap[data-cws-tpl-style="custom"] {
	width: 52px;
	height: 52px;
	min-width: 0;
	padding: 0;
	margin: 0 12px;
	bottom: 24px;
	border-radius: 50%;
	background: var(--br-paper);
	border: 2px solid var(--br-olive);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	transform: none;
	transition: opacity 300ms, visibility 300ms, transform .3s;
}

.cws-cookie-floating-wrap[data-cws-tpl-style="custom"]:hover {
	background: var(--br-paper);
	transform: scale(1.08);
}

[data-cws-tpl-style="custom"] .br-ck-fab {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

[data-cws-tpl-style="custom"] .br-ck-fab .br-ck-leaf {
	width: 28px;
}

/* ---------- Modal ---------- */

.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
	background: rgba(20, 19, 17, .6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	padding: 24px;
	transition: opacity 300ms, visibility 300ms;
}

[data-cws-tpl-style="custom"] .br-ck-dialog {
	background: var(--br-paper);
	width: min(680px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

[data-cws-tpl-style="custom"] .br-ck-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 32px 18px;
	border-bottom: 1px solid var(--br-line);
}

[data-cws-tpl-style="custom"] .br-ck-dialog__head .br-ck-tag {
	margin-bottom: 2px;
}

[data-cws-tpl-style="custom"] .br-ck-dialog__head .br-ck-script {
	font-size: 42px;
	gap: 12px;
}

[data-cws-tpl-style="custom"] .br-ck .br-ck-x {
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border: 1px solid var(--br-line);
	border-radius: 50%;
	background: none;
	color: var(--br-ink);
	font: 400 20px/1 var(--br-sans);
	cursor: pointer;
	box-shadow: none;
	transition: border-color .2s;
}

[data-cws-tpl-style="custom"] .br-ck .br-ck-x:hover,
[data-cws-tpl-style="custom"] .br-ck .br-ck-x:focus-visible {
	border-color: var(--br-ink);
	background: none;
	color: var(--br-ink);
}

[data-cws-tpl-style="custom"] .br-ck-dialog__body {
	overflow: auto;
	padding: 22px 32px 8px;
}

[data-cws-tpl-style="custom"] .br-ck-intro {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--br-mute);
	margin-bottom: 18px;
	text-wrap: pretty;
}

/* Category rows. The plugin's script toggles .active on .expand-trigger and
   .expanded on the first .expander in the trigger's parent (.br-ck-cat). */

[data-cws-tpl-style="custom"] .br-ck-cat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 14px;
	border-top: 1px solid var(--br-line);
}

[data-cws-tpl-style="custom"] .br-ck .br-ck-cat__trigger {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--br-ink);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font: 500 16px/1.3 var(--br-sans);
	cursor: pointer;
}

[data-cws-tpl-style="custom"] .br-ck .br-ck-cat__trigger:hover,
[data-cws-tpl-style="custom"] .br-ck .br-ck-cat__trigger:focus-visible {
	background: none;
	color: var(--br-ink);
}

[data-cws-tpl-style="custom"] .br-ck-chev {
	width: 9px;
	height: 9px;
	flex: none;
	margin-left: 2px;
	border-right: 1.5px solid var(--br-ink);
	border-bottom: 1.5px solid var(--br-ink);
	transform: rotate(-45deg);
	transition: transform .2s;
}

[data-cws-tpl-style="custom"] .br-ck-cat__trigger.active .br-ck-chev {
	transform: rotate(45deg);
}

[data-cws-tpl-style="custom"] .br-ck-cat .expander {
	display: none;
	flex: 0 0 100%;
	padding: 0 0 18px 25px;
	margin-top: -4px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--br-mute);
}

[data-cws-tpl-style="custom"] .br-ck-cat .expander.expanded {
	display: block;
}

[data-cws-tpl-style="custom"] .br-ck-cookies {
	list-style: none;
	padding: 10px 0 0;
	margin: 0;
	font-size: 13px;
}

[data-cws-tpl-style="custom"] .br-ck-cookies li {
	padding: 6px 0;
	border-top: 1px dashed var(--br-line);
}

[data-cws-tpl-style="custom"] .br-ck-cookies strong {
	color: var(--br-ink);
	font-weight: 500;
}

[data-cws-tpl-style="custom"] .br-ck-always {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--br-olive-d);
	background: var(--br-olive-l);
	padding: 6px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

/* Switch */
[data-cws-tpl-style="custom"] .br-ck-tg {
	position: relative;
	display: block;
	width: 44px;
	height: 24px;
	flex: none;
	margin: 0;
}

[data-cws-tpl-style="custom"] .br-ck-tg input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

[data-cws-tpl-style="custom"] .br-ck-tg span {
	position: absolute;
	inset: 0;
	background: #cfc9bc;
	border-radius: 20px;
	transition: background-color .2s;
}

[data-cws-tpl-style="custom"] .br-ck-tg span::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform .2s;
}

[data-cws-tpl-style="custom"] .br-ck-tg input:checked + span {
	background: var(--br-olive);
}

[data-cws-tpl-style="custom"] .br-ck-tg input:checked + span::after {
	transform: translateX(20px);
}

[data-cws-tpl-style="custom"] .br-ck-tg input:focus-visible + span {
	outline: 2px solid var(--br-olive-d);
	outline-offset: 2px;
}

[data-cws-tpl-style="custom"] .br-ck-dialog__foot {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	gap: 10px;
	padding: 18px 32px 22px;
	border-top: 1px solid var(--br-line);
}

@media (max-width: 560px) {
	.cws-cookie-consent-modal[data-cws-tpl-style="custom"] {
		padding: 12px;
	}

	[data-cws-tpl-style="custom"] .br-ck-dialog {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}

	[data-cws-tpl-style="custom"] .br-ck-dialog__foot {
		grid-template-columns: 1fr;
	}

	[data-cws-tpl-style="custom"] .br-ck-dialog__head,
	[data-cws-tpl-style="custom"] .br-ck-dialog__body,
	[data-cws-tpl-style="custom"] .br-ck-dialog__foot {
		padding-left: 20px;
		padding-right: 20px;
	}

	[data-cws-tpl-style="custom"] .br-ck-dialog__head .br-ck-script {
		font-size: 34px;
	}
}
