/* Brasidas GDPR Cookie Consent
   Colours come from CSS custom properties injected by the plugin
   (--bcc-accent, --bcc-text, etc.) so they stay in sync with the admin. */

#bcc-root,
#bcc-root * {
	box-sizing: border-box;
}

#bcc-root {
	--bcc-shadow: 0 12px 40px rgba(20, 22, 28, .18);
	/* Site button gradient (Elementor kit: --e-global-color-a488a8c -> -2e6e210). */
	--bcc-btn-grad: linear-gradient(90deg, #DC4449 0%, #F0676B 100%);
	font-family: "Plus Jakarta Sans", -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--bcc-text);
	line-height: 1.55;
}

#bcc-root[hidden] {
	display: none;
}

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

.bcc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--bcc-bg);
	border-radius: var(--bcc-radius);
	box-shadow: var(--bcc-shadow);
	padding: 22px 24px;
	width: 420px;
	max-width: calc(100vw - 40px);
	animation: bcc-rise .35s cubic-bezier(.2, .8, .25, 1) both;
}

.bcc-pos-bottom-left .bcc-banner {
	left: 20px;
	bottom: 20px;
}

.bcc-pos-bottom-right .bcc-banner {
	right: 20px;
	bottom: 20px;
}

/* Full-width bar variant */
.bcc-pos-bar .bcc-banner {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	border-radius: 0;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 20px clamp(20px, 5vw, 64px);
}

.bcc-pos-bar .bcc-banner__body {
	flex: 1;
}

.bcc-pos-bar .bcc-banner__actions {
	margin-top: 0;
	flex-shrink: 0;
}

.bcc-banner__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--bcc-text);
}

.bcc-banner__text {
	margin: 0;
	font-size: 13.5px;
	color: var(--bcc-muted);
}

.bcc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

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

/* Scoped under #bcc-root + !important so the host theme's own
   button{...} rules (Elementor / Hello Biz) cannot override them. */
/* Matches the site's only button flavour (Elementor kit-441 / .elementor-button):
   Plus Jakarta Sans, 14px / 1em, 50px pill, coral gradient, white text. */
#bcc-root .bcc-btn {
	appearance: none;
	font-family: inherit;
	border: 0 !important;
	border-radius: var(--bcc-btn-radius) !important;
	margin: 0 !important;
	padding: 12px 24px !important;
	min-height: 0 !important;
	width: auto !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1em !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	background-color: transparent !important;
	background-image: var(--bcc-btn-grad) !important;
	color: var(--bcc-accent-text) !important;
	transition: transform .12s ease, background-image .35s ease, filter .15s ease;
	white-space: nowrap;
}

#bcc-root .bcc-btn:hover {
	transform: translateY(-1px);
	/* Site hover state: gradient collapses to solid coral. */
	background-image: linear-gradient(180deg, var(--bcc-accent) 0%, var(--bcc-accent) 100%) !important;
	color: var(--bcc-accent-text) !important;
}

#bcc-root .bcc-btn:active {
	transform: translateY(0);
}

#bcc-root .bcc-btn:focus-visible {
	outline: 2px solid var(--bcc-accent);
	outline-offset: 2px;
}

/* Solid + ghost now share the single site flavour.
   Layout: the two secondary buttons stretch to fill the row equally
   (justified, flush to both edges); "Accept all" sits full-width below. */
#bcc-root .bcc-btn--ghost {
	flex: 1 1 0;
	min-width: 0;
}

#bcc-root .bcc-btn--solid {
	flex: 1 1 100%;
}

#bcc-root .bcc-link {
	color: var(--bcc-accent) !important;
	text-decoration: underline;
}

/* ---------- Inline preferences panel ([bcc_preferences] shortcode) ---------- */
/* Lives in normal page content (outside #bcc-root). The --bcc-* vars are on
   :root, and .bcc-cat / .bcc-switch are unscoped, so they apply here too. */
.bcc-inline {
	--bcc-btn-grad: linear-gradient(90deg, #DC4449 0%, #F0676B 100%);
	font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--bcc-text);
	line-height: 1.55;
	margin: 48px 0 8px;
	padding-top: 28px;
	border-top: 1px solid rgba(120, 120, 130, .18);
}

.bcc-inline * {
	box-sizing: border-box;
}

.bcc-inline__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--bcc-text);
}

.bcc-inline__intro {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bcc-muted);
}

.bcc-inline__cats {
	margin: 6px 0 4px;
}

.bcc-inline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.bcc-inline__saved {
	margin: 14px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bcc-accent);
	transition: opacity .2s ease;
}

.bcc-inline__saved[hidden] {
	display: none;
}

.bcc-inline .bcc-btn {
	appearance: none;
	border: 0 !important;
	cursor: pointer;
	border-radius: var(--bcc-btn-radius) !important;
	margin: 0 !important;
	padding: 12px 24px !important;
	min-height: 0 !important;
	width: auto !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1em !important;
	text-transform: none !important;
	color: var(--bcc-accent-text) !important;
	background-color: transparent !important;
	background-image: var(--bcc-btn-grad) !important;
	box-shadow: none !important;
	white-space: nowrap;
	transition: transform .12s ease, background-image .35s ease;
}

/* Natural-width buttons: sit neatly in a row using only the space they need,
   wrap to the next line when space runs out — never stretch full width. */
.bcc-inline .bcc-btn--ghost,
.bcc-inline .bcc-btn--solid {
	flex: 0 1 auto;
}

.bcc-inline .bcc-btn:hover {
	transform: translateY(-1px);
	background-image: linear-gradient(180deg, var(--bcc-accent) 0%, var(--bcc-accent) 100%) !important;
	color: var(--bcc-accent-text) !important;
}

.bcc-inline .bcc-btn:active {
	transform: translateY(0);
}

.bcc-inline .bcc-btn:focus-visible {
	outline: 2px solid var(--bcc-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.bcc-inline .bcc-btn {
		flex: 1 1 100%;
	}
}

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

.bcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
}

.bcc-modal[hidden] {
	display: none;
}

.bcc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 20, 26, .55);
	animation: bcc-fade .25s ease both;
}

.bcc-modal__dialog {
	position: relative;
	margin: 6vh auto;
	width: 560px;
	max-width: calc(100vw - 32px);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: var(--bcc-bg);
	border-radius: var(--bcc-radius);
	box-shadow: var(--bcc-shadow);
	overflow: hidden;
	animation: bcc-rise .3s cubic-bezier(.2, .8, .25, 1) both;
}

.bcc-modal__head,
.bcc-modal__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 24px;
}

.bcc-modal__head {
	justify-content: space-between;
	border-bottom: 1px solid rgba(120, 120, 130, .16);
}

.bcc-modal__head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.bcc-modal__foot {
	justify-content: flex-end;
	flex-wrap: wrap;
	border-top: 1px solid rgba(120, 120, 130, .16);
}

#bcc-root .bcc-modal__close {
	background: none !important;
	border: 0 !important;
	cursor: pointer;
	font-size: 28px !important;
	line-height: 1 !important;
	color: var(--bcc-muted) !important;
	min-height: 0 !important;
	box-shadow: none !important;
	padding: 0 4px !important;
	width: auto !important;
}

#bcc-root .bcc-modal__close:hover {
	color: var(--bcc-text) !important;
}

.bcc-modal__body {
	padding: 8px 24px;
	overflow-y: auto;
}

.bcc-modal__note {
	margin: 16px 0 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(120, 120, 130, .14);
	font-size: 12.5px;
	color: var(--bcc-muted);
	line-height: 1.5;
}

/* ---------- Category rows ---------- */

.bcc-cat {
	padding: 16px 0;
	border-bottom: 1px solid rgba(120, 120, 130, .14);
}

.bcc-cat:last-child {
	border-bottom: 0;
}

.bcc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bcc-cat__name {
	font-size: 15px;
	font-weight: 700;
}

.bcc-cat__always {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bcc-accent);
}

.bcc-cat__desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--bcc-muted);
}

/* ---------- Toggle switch ---------- */

.bcc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.bcc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.bcc-switch__slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background: rgba(120, 120, 130, .4);
	border-radius: 999px;
	transition: background .2s ease;
}

.bcc-switch__slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.bcc-switch input:checked+.bcc-switch__slider {
	background: var(--bcc-accent);
}

.bcc-switch input:checked+.bcc-switch__slider::before {
	transform: translateX(20px);
}

.bcc-switch input:focus-visible+.bcc-switch__slider {
	outline: 2px solid var(--bcc-accent);
	outline-offset: 2px;
}

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

#bcc-root .bcc-fab {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 2147482000;
	width: 46px !important;
	height: 46px !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--bcc-accent) !important;
	color: var(--bcc-accent-text) !important;
	cursor: pointer;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--bcc-shadow);
	transition: transform .15s ease;
}

.bcc-pos-bottom-right .bcc-fab {
	left: auto;
	right: 20px;
}

.bcc-fab:hover {
	transform: scale(1.06);
}

.bcc-fab[hidden] {
	display: none;
}

/* ---------- Animations / responsive ---------- */

@keyframes bcc-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bcc-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 600px) {

	.bcc-pos-bottom-left .bcc-banner,
	.bcc-pos-bottom-right .bcc-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
	}

	.bcc-pos-bar .bcc-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.bcc-btn--solid {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.bcc-banner,
	.bcc-modal__dialog,
	.bcc-modal__overlay {
		animation: none;
	}

	.bcc-btn {
		transition: none;
	}
}