.ivm-cookie-ui [hidden] { display: none !important; }

.ivm-cookie-banner {
	position: fixed;
	z-index: 999990;
	left: 50%;
	bottom: 20px;
	width: min(1080px, calc(100vw - 40px));
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 22px 24px;
	border: 1px solid #ffcc00;
	border-radius: 14px;
	background: rgba(14, 14, 14, .97);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .42);
	color: #fff;
	font: 15px/1.5 Arial, sans-serif;
}

.ivm-cookie-banner__copy { min-width: 0; max-width: 650px; }
.ivm-cookie-banner h2,
.ivm-cookie-dialog h2 { margin: 0 0 7px; color: #fff; font: 700 20px/1.25 Arial, sans-serif; }
.ivm-cookie-banner p,
.ivm-cookie-dialog p { margin: 0; color: #e6e6e6; font: 14px/1.55 Arial, sans-serif; }
.ivm-cookie-banner .ivm-cookie-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; }
.ivm-cookie-links a { color: #ffdb3b; text-decoration: underline; text-underline-offset: 3px; }
.ivm-cookie-links a:hover { color: #fff; }

.ivm-cookie-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.ivm-cookie-button {
	min-height: 44px;
	padding: 10px 15px;
	border: 1px solid #ffcc00;
	border-radius: 9px;
	font: 600 14px/1.25 Arial, sans-serif;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ivm-cookie-button--primary { background: #ffcc00; color: #111; }
.ivm-cookie-button--primary:hover { background: #ffe16b; border-color: #ffe16b; }
.ivm-cookie-button--outline { background: transparent; color: #ffdb3b; }
.ivm-cookie-button--outline:hover { background: rgba(255, 204, 0, .14); }
.ivm-cookie-button--quiet { border-color: rgba(255, 255, 255, .4); background: transparent; color: #fff; }
.ivm-cookie-button--quiet:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.ivm-cookie-button:focus-visible,
.ivm-cookie-close:focus-visible,
.ivm-cookie-settings-trigger:focus-visible,
.ivm-cookie-links a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.ivm-cookie-backdrop {
	position: fixed;
	z-index: 999991;
	inset: 0;
	background: rgba(0, 0, 0, .72);
}
.ivm-cookie-dialog {
	position: fixed;
	z-index: 999992;
	top: 50%;
	left: 50%;
	width: min(620px, calc(100vw - 32px));
	max-height: min(86vh, 760px);
	overflow-y: auto;
	transform: translate(-50%, -50%);
	padding: 25px;
	border: 1px solid rgba(255, 204, 0, .7);
	border-radius: 16px;
	background: #151515;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
	color: #fff;
	font: 15px/1.5 Arial, sans-serif;
}
.ivm-cookie-dialog:focus { outline: none; }
.ivm-cookie-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ivm-cookie-dialog__header h2 { margin: 0; }
.ivm-cookie-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: 400 26px/1 Arial, sans-serif;
	cursor: pointer;
}
.ivm-cookie-close:hover { border-color: #ffcc00; color: #ffcc00; }
.ivm-cookie-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 14px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 10px;
	background: rgba(255, 255, 255, .04);
	cursor: pointer;
}
.ivm-cookie-category h3 { margin: 0 0 4px; color: #fff; font: 700 15px/1.3 Arial, sans-serif; }
.ivm-cookie-category p { max-width: 430px; font-size: 13px; }
.ivm-cookie-category span { flex: 0 0 auto; color: #ffdb3b; font-size: 13px; font-weight: 700; }
.ivm-cookie-category input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #ffcc00; cursor: pointer; }
.ivm-cookie-category--locked { cursor: default; }
.ivm-cookie-note { margin-top: 14px !important; color: #cfcfcf !important; font-size: 13px !important; }
.ivm-cookie-actions--dialog { margin-top: 21px; }

.ivm-cookie-settings-trigger {
	margin-left: 16px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.ivm-cookie-settings-trigger:hover { color: #ffcc00; }

@media (max-width: 767px) {
	.ivm-cookie-banner {
		bottom: 8px;
		width: calc(100vw - 16px);
		max-height: calc(100dvh - 16px);
		overflow-y: auto;
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
		padding: 18px;
	}
	.ivm-cookie-banner h2 { font-size: 18px; }
	.ivm-cookie-banner .ivm-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.ivm-cookie-banner .ivm-cookie-button--primary { grid-column: 1 / -1; grid-row: 1; }
	.ivm-cookie-banner .ivm-cookie-button { width: 100%; min-height: 46px; }
	.ivm-cookie-dialog { padding: 19px; }
	.ivm-cookie-actions--dialog { display: grid; grid-template-columns: 1fr 1fr; }
	.ivm-cookie-actions--dialog .ivm-cookie-button--primary { grid-column: 1 / -1; grid-row: 1; }
	.ivm-cookie-settings-trigger { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ivm-cookie-button { transition: none; }
}
