.gl-consent-layer {
	--gl-consent-violet: #5b3df5;
	--gl-consent-violet-dark: #38238f;
	--gl-consent-deep: #20164f;
	--gl-consent-ink: #191527;
	--gl-consent-muted: #706b7e;
	--gl-consent-line: #e7e3ef;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gl-consent-layer * { box-sizing: border-box; }
.gl-consent-layer [hidden] { display: none !important; }
.gl-consent-is-open { overflow: hidden; }

.gl-consent-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999997;
	background: rgba(21, 15, 48, .56);
	backdrop-filter: blur(7px) saturate(.85);
	animation: gl-consent-fade .2s ease-out both;
}

.gl-consent-banner,
.gl-consent-modal {
	position: fixed;
	z-index: 999999;
	right: 16px;
	left: 16px;
	width: min(960px, calc(100% - 32px));
	margin: auto;
	border: 1px solid #e1dcef;
	background: #fff;
	color: var(--gl-consent-ink);
	box-shadow: 0 30px 90px rgba(20, 14, 48, .28);
}

.gl-consent-banner {
	position: fixed;
	bottom: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 34px;
	overflow: hidden;
	width: min(1080px, calc(100% - 32px));
	padding: 25px 26px;
	border-color: rgba(220, 213, 241, .9);
	border-radius: 24px;
	background: linear-gradient(118deg, #fff 0%, #fff 64%, #f7f4ff 100%);
	box-shadow: 0 24px 70px rgba(24, 16, 57, .2), 0 2px 8px rgba(24, 16, 57, .08);
}

.gl-consent-banner::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, #302071, #6546f2 52%, #aa91ff);
	content: '';
}

.gl-consent-banner::after {
	position: absolute;
	right: -92px;
	bottom: -138px;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(91, 61, 245, .08);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(91, 61, 245, .025), 0 0 0 68px rgba(91, 61, 245, .018);
	content: '';
	pointer-events: none;
}

.gl-consent-banner__copy {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 17px;
	max-width: 650px;
}
.gl-consent-banner__brand {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid #ded7ff;
	border-radius: 15px;
	background: linear-gradient(145deg, #f7f4ff, #ebe5ff);
	color: #5639e8;
	box-shadow: inset 0 1px 0 #fff, 0 9px 22px rgba(73, 48, 201, .11);
}
.gl-consent-banner__brand svg { width: 24px; height: 24px; }
.gl-consent-banner__content { min-width: 0; }
.gl-consent-banner__content h2 { letter-spacing: -.025em; }
.gl-consent-banner__content > p:last-of-type { max-width: 610px; margin-bottom: 8px; color: #615b6e; font-size: .86rem; }
.gl-consent-banner__content a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .78rem; }
.gl-consent-banner__content a:hover { text-decoration: underline; }
.gl-consent-banner__content a span { transition: transform .18s ease; }
.gl-consent-banner__content a:hover span { transform: translateX(3px); }
.gl-consent-eyebrow {
	margin: 0 0 5px !important;
	color: var(--gl-consent-violet);
	font-size: .68rem !important;
	font-weight: 830;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.gl-consent-layer h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.2; }
.gl-consent-layer p { margin: 0 0 12px; line-height: 1.55; }
.gl-consent-layer a { color: #4930c9; font-weight: 750; }
.gl-consent-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }

.gl-consent-banner .gl-consent-actions {
	justify-content: flex-end;
	padding: 6px;
	border: 1px solid rgba(225, 219, 241, .82);
	border-radius: 17px;
	background: rgba(255, 255, 255, .74);
	box-shadow: 0 10px 30px rgba(42, 28, 95, .06);
	backdrop-filter: blur(8px);
}

.gl-consent-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	border: 1px solid var(--gl-consent-violet);
	border-radius: 12px;
	padding: 10px 16px;
	font: 760 .82rem Inter, system-ui, sans-serif;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gl-consent-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.gl-consent-button:hover { transform: translateY(-2px); }
.gl-consent-button--secondary { background: #fff; color: #4930c9; }
.gl-consent-button--secondary:hover { border-color: #9d8aff; background: #f7f4ff; }
.gl-consent-button--primary {
	border-color: var(--gl-consent-violet);
	background: linear-gradient(135deg, #6648f7, #4a2bd2);
	color: #fff;
	box-shadow: 0 10px 22px rgba(91, 61, 245, .22);
}
.gl-consent-button--primary:hover { background: linear-gradient(135deg, #7258fa, #5133d8); box-shadow: 0 13px 27px rgba(91, 61, 245, .28); }
.gl-consent-button:focus-visible,
.gl-consent-close:focus-visible,
.gl-consent-profiles button:focus-visible,
.gl-consent-open:focus-visible,
.gl-consent-categories input:focus-visible {
	outline: 3px solid #c9bdff;
	outline-offset: 3px;
}

.gl-consent-modal {
	top: 50%;
	bottom: auto;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(880px, calc(100% - 32px));
	max-width: 880px;
	max-height: min(92dvh, 790px);
	overflow: hidden;
	border-color: rgba(220, 211, 250, .9);
	border-radius: 28px;
	transform: translateY(-50%);
	animation: gl-consent-enter .24s cubic-bezier(.2, .8, .2, 1) both;
}

.gl-consent-modal__head {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 15px;
	overflow: hidden;
	padding: 24px 26px;
	background: radial-gradient(circle at 92% 0, rgba(137, 111, 255, .62), transparent 37%), linear-gradient(135deg, #20164f, #382590 62%, #4c31ce);
	color: #fff;
}

.gl-consent-modal__head::after {
	position: absolute;
	right: -72px;
	bottom: -150px;
	width: 270px;
	height: 270px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 50%;
	box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 76px rgba(255, 255, 255, .018);
	content: '';
	pointer-events: none;
}

.gl-consent-modal__brand,
.gl-consent-close,
.gl-consent-modal__title { position: relative; z-index: 1; }
.gl-consent-modal__brand {
	display: grid;
	width: 50px;
	height: 50px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 15px;
	background: rgba(255, 255, 255, .11);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
}
.gl-consent-modal__brand svg { width: 25px; height: 25px; }
.gl-consent-modal__title { min-width: 0; }
.gl-consent-modal__title .gl-consent-eyebrow { color: #d4cbff; }
.gl-consent-modal__title h2 { margin: 0 0 5px; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -.03em; }
.gl-consent-modal__title > p:last-child { margin: 0; color: rgba(255, 255, 255, .72); font-size: .78rem; }
.gl-consent-close {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 13px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.gl-consent-close:hover { transform: rotate(4deg); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18); }
.gl-consent-close svg { width: 22px; height: 22px; }

.gl-consent-modal__body {
	min-height: 0;
	overflow-y: auto;
	padding: 22px 25px 25px;
	background: #faf9fd;
	scrollbar-color: #b6a9e8 transparent;
	scrollbar-width: thin;
}
.gl-consent-modal__body::-webkit-scrollbar { width: 8px; }
.gl-consent-modal__body::-webkit-scrollbar-track { background: transparent; }
.gl-consent-modal__body::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #b6a9e8; background-clip: padding-box; }

.gl-consent-profile-section { display: grid; gap: 14px; }
.gl-consent-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.gl-consent-section-heading > div { display: grid; gap: 2px; }
.gl-consent-section-kicker { margin: 0 !important; color: var(--gl-consent-violet); font-size: .62rem; font-weight: 830; letter-spacing: .085em; text-transform: uppercase; }
.gl-consent-section-heading h3 { margin: 0; color: #292335; font-size: 1rem; letter-spacing: -.015em; }
.gl-consent-section-heading > span { color: #888193; font-size: .68rem; }

.gl-consent-profiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 11px;
}
.gl-consent-profiles button {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px;
	min-width: 0;
	min-height: 110px;
	padding: 14px;
	border: 1px solid #e3dfee;
	border-radius: 16px;
	background: #fff;
	color: var(--gl-consent-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 7px 20px rgba(33, 24, 67, .04);
	transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.gl-consent-profiles button:hover { transform: translateY(-2px); border-color: #bcaeff; box-shadow: 0 11px 24px rgba(57, 39, 139, .09); }
.gl-consent-profiles button.is-active { border-color: #8f79ff; background: linear-gradient(145deg, #fff, #f4f0ff); box-shadow: 0 0 0 2px rgba(91, 61, 245, .09), 0 12px 28px rgba(57, 39, 139, .11); }
.gl-consent-profile__icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: #f0ecff;
	color: var(--gl-consent-violet);
}
.gl-consent-profiles button:nth-child(2) .gl-consent-profile__icon { background: #fff6dc; color: #9b6a00; }
.gl-consent-profiles button:nth-child(3) .gl-consent-profile__icon { background: #eee9ff; color: #6747ef; }
.gl-consent-profile__icon svg { width: 19px; height: 19px; }
.gl-consent-profiles button > span:nth-child(2) { min-width: 0; }
.gl-consent-profiles strong, .gl-consent-profiles small { display: block; }
.gl-consent-profiles strong { color: #2b2537; font-size: .84rem; }
.gl-consent-profiles small { margin-top: 4px; color: #777082; font-size: .68rem; line-height: 1.45; }
.gl-consent-profile__check {
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border: 1px solid #d9d3e5;
	border-radius: 50%;
	background: #fff;
	color: transparent;
	font-size: .7rem;
	font-weight: 900;
}
.gl-consent-profiles button.is-active .gl-consent-profile__check { border-color: var(--gl-consent-violet); background: var(--gl-consent-violet); color: #fff; }

.gl-consent-categories { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; border: 0; }
.gl-consent-categories legend { display: grid; gap: 2px; width: 100%; margin: 0 0 4px; padding: 0; color: #292335; font-size: 1rem; font-weight: 780; }
.gl-consent-categories legend span { color: var(--gl-consent-violet); font-size: .62rem; font-weight: 830; letter-spacing: .085em; text-transform: uppercase; }
.gl-consent-categories label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #e6e2ed;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 16px rgba(34, 25, 66, .025);
	transition: border-color .18s ease, background .18s ease;
}
.gl-consent-categories label:hover { border-color: #cec5ed; background: #fefeff; }
.gl-consent-category { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; }
.gl-consent-category__icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: #f2efff;
	color: #6044e9;
}
.gl-consent-category__icon svg { width: 19px; height: 19px; }
.gl-consent-category__copy, .gl-consent-category__copy strong, .gl-consent-category__copy small { display: block; min-width: 0; }
.gl-consent-category__copy strong { color: #302a3c; font-size: .78rem; line-height: 1.35; }
.gl-consent-category__copy small { margin-top: 3px; color: #777183; font-size: .68rem; line-height: 1.45; }
.gl-consent-categories input {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 25px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	appearance: none;
	background: #d9d5e1;
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease;
}
.gl-consent-categories input::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(34, 25, 66, .24);
	content: '';
	transition: transform .2s ease;
}
.gl-consent-categories input:checked { background: var(--gl-consent-violet); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.gl-consent-categories input:checked::after { transform: translateX(19px); }
.gl-consent-categories input:disabled { cursor: not-allowed; opacity: 1; }
.gl-consent-categories input:disabled:checked { background: #168365; }

.gl-consent-modal__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: 16px 24px;
	border-top: 1px solid var(--gl-consent-line);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -10px 26px rgba(32, 22, 79, .045);
}
.gl-consent-actions--modal { justify-content: flex-end; }
.gl-consent-actions--modal .gl-consent-button { min-width: 170px; }
.gl-consent-footnote { margin: 0 !important; color: #7a7486; font-size: .68rem; line-height: 1.5 !important; }
.gl-consent-footnote a { color: #4f35cf; text-decoration: none; }
.gl-consent-footnote a:hover { text-decoration: underline; }
.gl-consent-footnote span { margin: 0 5px; color: #b0a9bb; }

.gl-consent-open {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 999996;
	min-height: 42px;
	border: 1px solid #ded8ff;
	border-radius: 999px;
	padding: 8px 14px;
	background: #fff;
	color: #4930c9;
	box-shadow: 0 8px 24px rgba(19, 27, 50, .16);
	font: 750 .78rem Inter, system-ui, sans-serif;
	cursor: pointer;
}

@keyframes gl-consent-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gl-consent-enter { from { opacity: 0; transform: translateY(calc(-50% + 16px)) scale(.985); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

@media (max-width: 760px) {
	.gl-consent-banner { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
	.gl-consent-banner .gl-consent-actions { display: grid; grid-template-columns: 1fr; }
	.gl-consent-modal { right: 10px; left: 10px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 23px; }
	.gl-consent-modal__head { padding: 20px; }
	.gl-consent-modal__body { padding: 19px 20px 22px; }
	.gl-consent-modal__footer { grid-template-columns: 1fr; gap: 12px; padding: 14px 20px 18px; }
	.gl-consent-actions--modal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gl-consent-actions--modal .gl-consent-button { min-width: 0; }
}

@media (max-width: 640px) {
	.gl-consent-section-heading { align-items: start; }
	.gl-consent-section-heading > span { display: none; }
	.gl-consent-profiles { grid-template-columns: 1fr; }
	.gl-consent-profiles button { min-height: 0; }
}

@media (max-width: 460px) {
	.gl-consent-banner { right: 8px; left: 8px; width: calc(100% - 16px); padding: 19px 16px 16px; border-radius: 20px; }
	.gl-consent-banner__copy { grid-template-columns: 1fr; gap: 11px; }
	.gl-consent-banner__brand { width: 42px; height: 42px; border-radius: 13px; }
	.gl-consent-banner__content > p:last-of-type { font-size: .8rem; }
	.gl-consent-modal { top: 8px; bottom: 8px; right: 8px; left: 8px; width: calc(100% - 16px); max-height: none; transform: none; border-radius: 20px; animation-name: gl-consent-enter-mobile; }
	.gl-consent-modal__head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 17px 16px; }
	.gl-consent-modal__brand { width: 40px; height: 40px; border-radius: 12px; }
	.gl-consent-modal__brand svg { width: 21px; height: 21px; }
	.gl-consent-modal__title h2 { font-size: 1.18rem; }
	.gl-consent-modal__title > p:last-child { display: none; }
	.gl-consent-close { width: 38px; height: 38px; }
	.gl-consent-modal__body { padding: 17px 15px 20px; }
	.gl-consent-categories label { padding: 11px; }
	.gl-consent-category__icon { width: 34px; height: 34px; }
	.gl-consent-modal__footer { padding: 13px 15px 15px; }
	.gl-consent-actions--modal { grid-template-columns: 1fr; }
	.gl-consent-actions--modal .gl-consent-button { min-height: 44px; }
}

@keyframes gl-consent-enter-mobile { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.gl-consent-layer * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
