/* Olam Cookie Consent */
.olam-cc {
	--olam-cc-bg: #ffffff;
	--olam-cc-fg: #1a1a1a;
	--olam-cc-muted: #6b6b6b;
	--olam-cc-accent: #b8985a;
	--olam-cc-accent-fg: #ffffff;
	--olam-cc-border: #e5e5e5;
	--olam-cc-radius: 12px;
	--olam-cc-shadow: 0 -2px 24px rgba(0, 0, 0, 0.12);

	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 999999;
	background: var(--olam-cc-bg);
	color: var(--olam-cc-fg);
	box-shadow: var(--olam-cc-shadow);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	padding: 24px;
	box-sizing: border-box;
	transform: translateY(100%);
	transition: transform 0.35s ease;
}

.olam-cc[hidden] {
	display: none;
}

.olam-cc.is-visible {
	transform: translateY(0);
}

.olam-cc * {
	box-sizing: border-box;
}

.olam-cc__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.olam-cc__text {
	flex: 1 1 420px;
	min-width: 0;
}

.olam-cc__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
}

.olam-cc__desc {
	margin: 0;
	color: var(--olam-cc-muted);
	font-size: 14px;
}

.olam-cc__desc a {
	color: var(--olam-cc-accent);
	text-decoration: underline;
}

.olam-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.olam-cc__btn {
	appearance: none;
	border: 1px solid var(--olam-cc-border);
	background: transparent;
	color: var(--olam-cc-fg);
	padding: 11px 20px;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
}

.olam-cc__btn:hover {
	opacity: 0.85;
}

.olam-cc__btn--primary {
	background: var(--olam-cc-accent);
	color: var(--olam-cc-accent-fg);
	border-color: var(--olam-cc-accent);
}

.olam-cc__btn--link {
	border-color: transparent;
	text-decoration: underline;
	padding-inline: 8px;
}

/* Preferences panel */
.olam-cc__prefs {
	max-width: 1100px;
	margin: 18px auto 0;
	border-top: 1px solid var(--olam-cc-border);
	padding-top: 18px;
}

.olam-cc__prefs[hidden] {
	display: none;
}

.olam-cc__prefs-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.olam-cc__cat {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--olam-cc-border);
}

.olam-cc__cat:last-child {
	border-bottom: none;
}

.olam-cc__cat-name {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 2px;
}

.olam-cc__cat-desc {
	color: var(--olam-cc-muted);
	font-size: 13px;
	margin: 0;
}

.olam-cc__always {
	color: var(--olam-cc-accent);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	padding-top: 2px;
}

/* Toggle */
.olam-cc__switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.olam-cc__switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.olam-cc__slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: background 0.2s ease;
	cursor: pointer;
}

.olam-cc__slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	inset-inline-start: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.olam-cc__switch input:checked + .olam-cc__slider {
	background: var(--olam-cc-accent);
}

.olam-cc__switch input:checked + .olam-cc__slider::before {
	transform: translateX(20px);
}

/* RTL: flip the toggle knob travel */
.olam-cc[dir="rtl"] .olam-cc__switch input:checked + .olam-cc__slider::before {
	transform: translateX(-20px);
}

.olam-cc__prefs-save {
	margin-top: 16px;
}

@media (max-width: 640px) {
	.olam-cc {
		padding: 18px;
	}
	.olam-cc__inner {
		flex-direction: column;
		align-items: stretch;
	}
	.olam-cc__actions {
		justify-content: stretch;
	}
	.olam-cc__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
