/* Cookie consent banner (assets/js/cookie-consent.js) */
.pt-consent {
	position: fixed;
	bottom: 20px;
	inset-inline-start: 20px;
	z-index: 1045;
	width: min(420px, calc(100vw - 32px));
	padding: 20px;
	background: #ffffff;
	color: #2a2b4a;
	border: 1px solid #ece9fb;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(41, 43, 73, 0.18);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	text-align: start;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.pt-consent.is-visible {
	opacity: 1;
	transform: none;
}
.pt-consent[hidden],
.pt-consent [hidden] {
	display: none !important;
}

.pt-consent-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.pt-consent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #f1ecff;
	color: #6115e7;
	font-size: 17px;
}
.pt-consent h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e1b4b;
}
.pt-consent p {
	margin: 0 0 14px;
	color: #5b5d7a;
}
.pt-consent p a {
	color: #6115e7;
	text-decoration: underline;
}

/* Optional choices */
.pt-consent-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
	padding-top: 12px;
	border-top: 1px solid #ece9fb;
}
.pt-consent-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 13px;
	color: #3b3d63;
	cursor: pointer;
}
.pt-consent-switch {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: none;
	width: 40px;
	height: 22px;
	margin: 0;
	border-radius: 22px;
	background: #d9d6ea;
	cursor: pointer;
	transition: background 0.2s ease;
}
.pt-consent-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: inset-inline-start 0.2s ease;
}
.pt-consent-switch:checked {
	background: #6115e7;
}
.pt-consent-switch:checked::after {
	inset-inline-start: 21px;
}

/* Buttons */
.pt-consent-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.pt-consent-btn {
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pt-consent-btn.is-primary {
	background: #6115e7;
	color: #ffffff;
}
.pt-consent-btn.is-primary:hover {
	background: #5312c9;
}
.pt-consent-btn.is-ghost {
	background: #ffffff;
	border-color: #dcd8f3;
	color: #3b3d63;
}
.pt-consent-btn.is-ghost:hover {
	background: #f6f4ff;
}
.pt-consent-btn.is-link {
	margin-inline-end: auto;
	padding-inline: 4px;
	color: #6115e7;
	text-decoration: underline;
}
.pt-consent-btn:focus-visible,
.pt-consent-switch:focus-visible,
.pt-consent p a:focus-visible {
	outline: 2px solid #6115e7;
	outline-offset: 2px;
}

/* Phones: full-width sheet with the buttons on one row */
@media (max-width: 575px) {
	.pt-consent {
		bottom: 12px;
		inset-inline: 12px;
		width: auto;
		padding: 16px;
	}
	.pt-consent-btn.is-ghost,
	.pt-consent-btn.is-primary {
		flex: 1 1 0;
	}
	.pt-consent-btn.is-link {
		flex-basis: 100%;
		text-align: center;
	}
	/* While customizing, "Save choices" gets its own row above Reject / Accept */
	.pt-consent.is-customizing [data-consent="save"] {
		flex-basis: 100%;
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pt-consent,
	.pt-consent-switch,
	.pt-consent-switch::after {
		transition: none;
	}
}
