/* ==========================================================================
   Cookie Consent Banner — IS Analytics
   Compact card, bottom-left.
   ========================================================================== */

.is-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 10000;
	padding: 16px;
	max-width: 420px;
	width: 100%;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.is-consent--visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.is-consent__inner {
	background: var(--neutral-white, #ffffff);
	border: 1px solid var(--color-border, #e0e0e0);
	border-radius: var(--corner-s, 12px);
	box-shadow: var(--shadow-dropdown, 0 8px 32px rgba(0, 0, 0, 0.12));
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Title row — title + close in one line */

.is-consent__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.is-consent__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--neutral-900, #1d1e21);
	font-family: var(--font-family, 'IBM Plex Sans', sans-serif);
}

.is-consent__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--neutral-500, #9299a3);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: color 0.15s ease;
}

.is-consent__close:hover {
	color: var(--neutral-900, #1d1e21);
}

/* Body — text */

.is-consent__message {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--neutral-600, #757a82);
	font-family: var(--font-family, 'IBM Plex Sans', sans-serif);
}

.is-consent__link {
	color: var(--color-link, #5046e5);
	text-decoration: underline;
}

.is-consent__link:hover {
	text-decoration: none;
}

/* Details — toggle panel */

.is-consent__details {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--color-border, #e0e0e0);
}

.is-consent__details[hidden] {
	display: none;
}

.is-consent__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.is-consent__option--disabled {
	cursor: default;
	opacity: 0.6;
}

.is-consent__option-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.is-consent__option-info strong {
	font-size: 13px;
	font-weight: 600;
	color: var(--neutral-900, #1d1e21);
	font-family: var(--font-family, 'IBM Plex Sans', sans-serif);
}

.is-consent__option-info span {
	font-size: 12px;
	color: var(--neutral-600, #757a82);
	font-family: var(--font-family, 'IBM Plex Sans', sans-serif);
}

/* Toggle switch */

.is-consent__option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.is-consent__toggle {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 22px;
	background: var(--neutral-300, #bec2c8);
	border-radius: 11px;
	transition: background 0.2s ease;
}

.is-consent__toggle::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.is-consent__option input:checked + .is-consent__toggle {
	background: var(--color-cta, #be161d);
}

.is-consent__option input:checked + .is-consent__toggle::after {
	transform: translateX(18px);
}

.is-consent__option--disabled .is-consent__toggle {
	background: var(--neutral-300, #bec2c8);
}

.is-consent__option--disabled input:checked + .is-consent__toggle {
	background: var(--neutral-500, #9299a3);
}

/* Actions — buttons */

.is-consent__actions {
	display: flex;
	gap: 8px;
}

.is-consent__btn {
	padding: 10px 16px;
	border: none;
	border-radius: var(--corner-xs, 4px);
	font-size: 13px;
	font-weight: 500;
	font-family: var(--font-family, 'IBM Plex Sans', sans-serif);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
	flex: 1;
}

.is-consent__btn--accept {
	background: var(--color-cta, #be161d);
	color: #ffffff;
}

.is-consent__btn--accept:hover {
	background: var(--color-cta-hover, #a01218);
}

.is-consent__btn--customize {
	background: var(--neutral-100, #e9ebed);
	color: var(--neutral-900, #1d1e21);
}

.is-consent__btn--customize:hover {
	background: var(--neutral-300, #bec2c8);
}

.is-consent__btn--save {
	background: var(--neutral-100, #e9ebed);
	color: var(--neutral-900, #1d1e21);
}

.is-consent__btn--save:hover {
	background: var(--neutral-300, #bec2c8);
}

/* Responsive — on small screens go full width */

@media (max-width: 480px) {
	.is-consent {
		max-width: none;
		padding: 8px;
	}

	.is-consent__inner {
		border-radius: var(--corner-s, 12px) var(--corner-s, 12px) 0 0;
	}
}
