.atlas-cookie-consent {
	--atlas-navy: #001b3d;
	--atlas-teal: #18b7a0;
	--atlas-teal-hover: #149e89;
	--atlas-teal-soft: rgba(24, 183, 160, 0.12);
	--atlas-white: #fff;
	--atlas-border: #d4e4e8;
	--atlas-text: #1d2327;
	--atlas-muted: #5c6b7a;
	--atlas-shadow: 0 16px 48px rgba(0, 27, 61, 0.18);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--atlas-text);
}

.atlas-cookie-consent *,
.atlas-cookie-consent *::before,
.atlas-cookie-consent *::after {
	box-sizing: border-box;
}

.atlas-cookie-consent[hidden] {
	display: none !important;
}

.atlas-cookie-consent.is-visible {
	display: block;
}

html.atlas-cookie-wizard-open {
	overflow: hidden;
}

/* Banner */
.atlas-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999990;
}

.atlas-cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 24px;
	background: var(--atlas-white);
	border: 1px solid var(--atlas-border);
	border-radius: 14px;
	box-shadow: var(--atlas-shadow);
}

.atlas-cookie-banner__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-cookie-banner__text {
	margin: 0 0 10px;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--atlas-muted);
}

.atlas-cookie-banner__privacy {
	font-size: 13px;
	font-weight: 600;
	color: var(--atlas-teal);
	text-decoration: underline;
}

.atlas-cookie-banner__privacy:hover {
	color: var(--atlas-teal-hover);
}

.atlas-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Buttons */
.atlas-cookie-consent button.atlas-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 5px;
	border: 1px solid #18b7a0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.atlas-cookie-consent button.atlas-cookie-btn:focus-visible {
	outline: 2px solid #18b7a0;
	outline-offset: 2px;
}

.atlas-cookie-consent button.atlas-cookie-btn--primary {
	background: #18b7a0;
	border-color: #18b7a0;
	color: #fff;
}

.atlas-cookie-consent button.atlas-cookie-btn--primary:hover,
.atlas-cookie-consent button.atlas-cookie-btn--primary:focus {
	background: #18b7a0;
	border-color: #18b7a0;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(24, 183, 160, 0.28);
	opacity: 0.95;
}

.atlas-cookie-consent button.atlas-cookie-btn--outline {
	background: #fff;
	border-color: #18b7a0;
	color: #18b7a0;
}

.atlas-cookie-consent button.atlas-cookie-btn--outline:hover,
.atlas-cookie-consent button.atlas-cookie-btn--outline:focus {
	background: #18b7a0;
	border-color: #18b7a0;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(24, 183, 160, 0.22);
}

.atlas-cookie-consent button.atlas-cookie-btn--ghost {
	background: #fff;
	border-color: #18b7a0;
	color: #18b7a0;
}

.atlas-cookie-consent button.atlas-cookie-btn--ghost:hover,
.atlas-cookie-consent button.atlas-cookie-btn--ghost:focus {
	background: rgba(24, 183, 160, 0.08);
	border-color: #18b7a0;
	color: #18b7a0;
}

/* Overlay + wizard */
.atlas-cookie-overlay {
	position: fixed;
	inset: 0;
	z-index: 999991;
	background: rgba(0, 27, 61, 0.45);
	backdrop-filter: blur(2px);
}

.atlas-cookie-wizard {
	position: fixed;
	inset: 0;
	z-index: 999992;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.atlas-cookie-wizard__panel {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	background: var(--atlas-white);
	border-radius: 16px;
	border: 1px solid var(--atlas-border);
	box-shadow: var(--atlas-shadow);
	overflow: hidden;
}

.atlas-cookie-wizard__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 12px;
}

.atlas-cookie-wizard__step-label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--atlas-teal);
}

.atlas-cookie-wizard__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-cookie-wizard__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: #fff;
	color: #18b7a0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.atlas-cookie-wizard__close:hover {
	background: rgba(24, 183, 160, 0.08);
	border-color: #18b7a0;
}

.atlas-cookie-wizard__progress {
	height: 4px;
	background: rgba(0, 27, 61, 0.08);
}

.atlas-cookie-wizard__progress-bar {
	display: block;
	height: 100%;
	width: 33.333%;
	background: linear-gradient(90deg, var(--atlas-teal), #0a9d8a);
	transition: width 0.25s ease;
}

.atlas-cookie-wizard__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 24px 20px;
}

.atlas-cookie-step__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--atlas-muted);
}

.atlas-cookie-categories {
	display: grid;
	gap: 12px;
}

.atlas-cookie-category {
	padding: 14px 16px;
	border: 1px solid var(--atlas-border);
	border-radius: 12px;
	background: var(--atlas-white);
}

.atlas-cookie-category.is-required {
	background: var(--atlas-teal-soft);
	border-color: rgba(24, 183, 160, 0.28);
}

.atlas-cookie-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.atlas-cookie-category__label {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--atlas-navy);
}

.atlas-cookie-category__badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--atlas-teal);
}

.atlas-cookie-category__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--atlas-muted);
}

/* Toggle */
.atlas-cookie-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
}

.atlas-cookie-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.atlas-cookie-toggle__track {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #c5d3d8;
	transition: background 0.2s ease;
	cursor: pointer;
}

.atlas-cookie-toggle__track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--atlas-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.atlas-cookie-toggle input:checked + .atlas-cookie-toggle__track {
	background: var(--atlas-teal);
}

.atlas-cookie-toggle input:checked + .atlas-cookie-toggle__track::after {
	transform: translateX(20px);
}

.atlas-cookie-toggle input:disabled + .atlas-cookie-toggle__track {
	opacity: 0.72;
	cursor: not-allowed;
}

/* Summary */
.atlas-cookie-summary {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.atlas-cookie-summary li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--atlas-border);
	border-radius: 10px;
	font-size: 14px;
}

.atlas-cookie-summary strong {
	color: var(--atlas-navy);
}

.atlas-cookie-summary span {
	font-weight: 600;
	color: var(--atlas-teal);
}

.atlas-cookie-summary span.is-off {
	color: var(--atlas-muted);
}

.atlas-cookie-wizard__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px 22px;
	border-top: 1px solid var(--atlas-border);
}

.atlas-cookie-wizard__footer-main {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
}

/* Floating settings tab */
.atlas-cookie-consent button.atlas-cookie-settings-tab {
	position: fixed;
	left: 0;
	bottom: 18px;
	z-index: 999989;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px 10px 12px;
	border: 1px solid #18b7a0;
	border-left: 0;
	border-radius: 0 5px 5px 0;
	background: #18b7a0;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(24, 183, 160, 0.28);
}

.atlas-cookie-consent button.atlas-cookie-settings-tab:hover {
	background: #18b7a0;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(24, 183, 160, 0.34);
	opacity: 0.95;
}

.atlas-cookie-settings-tab::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #fff;
}

@media (max-width: 720px) {
	.atlas-cookie-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.atlas-cookie-banner__inner {
		padding: 16px;
	}

	.atlas-cookie-banner__actions,
	.atlas-cookie-wizard__footer,
	.atlas-cookie-wizard__footer-main {
		width: 100%;
	}

	.atlas-cookie-banner__actions .atlas-cookie-btn,
	.atlas-cookie-wizard__footer-main .atlas-cookie-btn {
		flex: 1 1 auto;
	}

	.atlas-cookie-wizard {
		padding: 12px;
	}

	.atlas-cookie-wizard__header,
	.atlas-cookie-wizard__body,
	.atlas-cookie-wizard__footer {
		padding-left: 16px;
		padding-right: 16px;
	}
}
