.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .78);
}

.cookie-modal.show { display: flex; }

.cookie-modal-content {
	width: min(440px, 100%);
	max-height: min(640px, calc(100dvh - 32px));
	overflow-y: auto;
	padding: 22px;
	border: 1px solid #4b4b4b;
	background: #141414;
	color: #f4f4f1;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.cookie-modal h2 {
		margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
}

.cookie-modal-intro {
	margin: 0 0 14px;
	color: #a0a09a;
	font-size: 13px;
	line-height: 1.55;
}

.cookie-modal-intro a {
	color: #f4f4f1;
	text-underline-offset: 3px;
}

.cookie-option {
	padding: 11px 0;
	border-top: 1px solid #303030;
}

.cookie-option h3 {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
}

.cookie-option p {
	margin: 0 0 12px;
	color: #929292;
	font-size: 12px;
	line-height: 1.5;
}

.cookie-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #f4f4f1;
	font-size: 12px;
}

.cookie-toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #761B37;
}

.cookie-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 15px;
}

.cookie-btn {
	min-height: 38px;
	padding: 0 15px;
	border: 1px solid #4b4b4b;
	border-radius: 999px;
	cursor: pointer;
	font: 600 12px/1 "Inter", Arial, sans-serif;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.cookie-btn-secondary {
	background: transparent;
	color: #f4f4f1;
}

.cookie-btn-primary {
	border-color: #f4f4f1;
	background: #f4f4f1;
	color: #050505;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
	background: #cfcfcb;
}

@media (max-width: 768px) {
	.cookie-modal-content { padding: 20px; }
	.cookie-buttons { flex-direction: column; }
	.cookie-btn { width: 100%; }
}

/* Mobile consent dialog: compact and usable without resizing the page. */
.cookie-modal-content { box-sizing: border-box; overscroll-behavior: contain; }
@media (max-width: 600px) {
  .cookie-modal { padding: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .cookie-modal-content { width: 100%; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 14px 16px; }
  .cookie-modal h2 { margin-bottom: 7px; font-size: 20px; line-height: 1.25; }
  .cookie-modal-intro { margin-bottom: 8px; font-size: 12px; line-height: 1.4; }
  .cookie-option { padding: 7px 0; }
  .cookie-option h3 { margin-bottom: 3px; font-size: 12px; line-height: 1.3; }
  .cookie-option p { margin-bottom: 4px; font-size: 11px; line-height: 1.35; }
  .cookie-toggle { font-size: 11px; }
  .cookie-toggle input[type="checkbox"] { width: 17px; height: 17px; }
  .cookie-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
  .cookie-btn { min-height: 42px; padding: 0 8px; font-size: 11px; }
  #cookieAccept { grid-column: 2; grid-row: 1; }
  #cookieReject { grid-column: 1; grid-row: 1; }
  #cookieSave { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 380px) {
  .cookie-modal-content { padding: 13px 14px; }
  .cookie-modal-intro { font-size: 11px; }
}
