/* wp-content/plugins/ceca-cookies/assets/cookies.css */
/* Cookie consent, themed to CECA: plum #411024 panel head and primary
   button, pink #C65A93 accent on the toggles, 300px pill buttons, and the
   brand font inherited from the child theme. Bottom-left so it never sits
   over the footer's social links or a chat widget on the right. */

.ceca-cookies {
	--ceca-ck-plum: #411024;
	--ceca-ck-accent: #c65a93;
	--ceca-ck-text: #1a1a1a;
	--ceca-ck-muted: #545454;
	--ceca-ck-line: #e8e8e8;

	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	font-size: 16px;
	line-height: 24px;
	color: var(--ceca-ck-text);
}

/* Both children anchor to the container's bottom-left corner, so the button's
   position never depends on whether the panel is on screen. */
.ceca-cookies .ceca-cookies__reopen,
.ceca-cookies__panel {
	position: absolute;
	left: 0;
	bottom: 0;
}

/* Both states are in the DOM for cache-safety, so [hidden] must genuinely
   hide them. These need the .ceca-cookies prefix: the display rules below are
   0,2,0 and would otherwise outrank a bare `.class[hidden]` at 0,1,1 —
   leaving the icon on screen while the panel is open. */
.ceca-cookies[hidden],
.ceca-cookies .ceca-cookies__panel[hidden],
.ceca-cookies .ceca-cookies__reopen[hidden] {
	display: none;
}

/* --- Minimised icon ------------------------------------------------------ */

.ceca-cookies .ceca-cookies__reopen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	background: var(--ceca-ck-plum);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(65, 16, 36, 0.28);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.ceca-cookies .ceca-cookies__reopen:hover,
.ceca-cookies .ceca-cookies__reopen:focus-visible {
	background: var(--ceca-ck-accent);
	transform: translateY(-2px);
}

.ceca-cookies__reopen svg {
	width: 30px;
	height: 30px;
}

/* --- Panel --------------------------------------------------------------- */

.ceca-cookies__panel {
	width: min(400px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 18px 44px rgba(65, 16, 36, 0.24);
	transform-origin: bottom left;
}

@media (prefers-reduced-motion: reduce) {
	.ceca-cookies .ceca-cookies__reopen {
		transition: none;
	}
}

.ceca-cookies__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 22px;
	background: var(--ceca-ck-plum);
	border-radius: 10px 10px 0 0;
	color: #ffffff;
}

.ceca-cookies__mark svg {
	display: block;
	width: 26px;
	height: 26px;
	color: #ffffff;
}

/* The icon that flies between the minimised button and the panel header. It
   keeps the button's plum disc, which reads against the white panel on the
   way and then melts into the plum header on arrival — no cross-fade needed. */
.ceca-cookies__flyer {
	position: fixed;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ceca-ck-plum);
	border-radius: 50%;
	color: #ffffff;
	pointer-events: none;
	will-change: transform;
}

.ceca-cookies__flyer svg {
	display: block;
	width: 30px;
	height: 30px;
}

.ceca-cookies .ceca-cookies__title {
	margin: 0;
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: #ffffff;
}

.ceca-cookies .ceca-cookies__message {
	margin: 0;
	padding: 18px 22px 0;
	font-size: 15px;
	line-height: 23px;
	color: var(--ceca-ck-text);
}

.ceca-cookies__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 10px 0 0;
	padding: 0 22px;
}

.ceca-cookies .ceca-cookies__links a {
	font-size: 15px;
	color: var(--ceca-ck-plum);
	text-decoration: underline;
	text-underline-position: from-font;
}

.ceca-cookies .ceca-cookies__links a:hover,
.ceca-cookies .ceca-cookies__links a:focus {
	color: var(--ceca-ck-accent);
}

/* --- Categories ---------------------------------------------------------- */

.ceca-cookies__categories {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ceca-ck-line);
}

.ceca-cookies__category {
	border-bottom: 1px solid var(--ceca-ck-line);
}

.ceca-cookies__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 22px;
	cursor: pointer;
}

.ceca-cookies__toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ceca-cookies__switch {
	position: relative;
	flex: none;
	width: 40px;
	height: 22px;
	margin-top: 2px;
	background: #c9c9c9;
	border-radius: 300px;
	transition: background-color 0.2s ease;
}

.ceca-cookies__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.ceca-cookies__toggle input:checked + .ceca-cookies__switch {
	background: var(--ceca-ck-accent);
}

.ceca-cookies__toggle input:checked + .ceca-cookies__switch::after {
	transform: translateX(18px);
}

/* Essential is locked on — show it as settled, not interactive. */
.ceca-cookies__toggle input:disabled + .ceca-cookies__switch {
	background: var(--ceca-ck-plum);
	opacity: 0.55;
}

.ceca-cookies__toggle input:disabled ~ .ceca-cookies__category-text {
	cursor: default;
}

.ceca-cookies__toggle input:focus-visible + .ceca-cookies__switch {
	outline: 2px solid var(--ceca-ck-accent);
	outline-offset: 3px;
}

.ceca-cookies__category-name {
	display: block;
	font-size: 16px;
	line-height: 22px;
	font-weight: 700;
	color: var(--ceca-ck-text);
}

.ceca-cookies__always {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 400;
	color: var(--ceca-ck-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ceca-cookies__category-desc {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ceca-ck-muted);
}

/* --- Actions ------------------------------------------------------------- */

.ceca-cookies__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 18px 22px 22px;
}

/* Double specificity + explicit states so Elementor kit button globals cannot
   repaint these (a recurring problem across this project). */
.ceca-cookies .ceca-cookies__btn {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 6px 20px;
	border: 1px solid var(--ceca-ck-plum);
	border-radius: 300px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-cookies .ceca-cookies__btn--accept {
	background: var(--ceca-ck-plum);
	color: #ffffff;
}

.ceca-cookies .ceca-cookies__btn--accept:hover,
.ceca-cookies .ceca-cookies__btn--accept:focus {
	background: var(--ceca-ck-accent);
	border-color: var(--ceca-ck-accent);
	color: #ffffff;
}

/* Rejecting must be exactly as easy as accepting, so it gets equal weight. */
.ceca-cookies .ceca-cookies__btn--reject {
	background: #ffffff;
	color: var(--ceca-ck-plum);
}

.ceca-cookies .ceca-cookies__btn--reject:hover,
.ceca-cookies .ceca-cookies__btn--reject:focus {
	background: var(--ceca-ck-plum);
	color: #ffffff;
}

.ceca-cookies .ceca-cookies__btn--save {
	flex-basis: 100%;
	background: #ffffff;
	border-color: var(--ceca-ck-line);
	color: var(--ceca-ck-text);
}

.ceca-cookies .ceca-cookies__btn--save:hover,
.ceca-cookies .ceca-cookies__btn--save:focus {
	background: #f3f3f3;
	border-color: #c9c9c9;
	color: var(--ceca-ck-text);
}

@media (max-width: 600px) {
	.ceca-cookies {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.ceca-cookies__panel {
		width: auto;
		right: 0;
	}
}

/* Mobile: the footer's social links moved to the LEFT in the mobile design
   pass, so the launcher hops to the right side there to stay clear. */
@media (max-width: 767px) {
	.ceca-cookies {
		left: auto;
		right: 20px;
	}

	.ceca-cookies .ceca-cookies__reopen,
	.ceca-cookies__panel {
		left: auto;
		right: 0;
	}

	.ceca-cookies__panel {
		transform-origin: bottom right;
	}
}

/* Mobile: the launcher stays bottom-right, but the PANEL opens full
   width across the viewport (user report — it was a squeezed column). */
@media (max-width: 767px) {
	.ceca-cookies__panel {
		position: fixed;
		left: 20px;
		right: 20px;
		bottom: 20px;
		width: auto;
		max-width: none;
		max-height: calc(100vh - 90px);
	}
}
