/* Cookie banner (QA-024): Complianz's markup, GlobeMarket's card. Layout only; behaviour is Complianz's. */

body .cmplz-cookiebanner.cmplz-center,
body .cmplz-cookiebanner {
	box-sizing: border-box;
	width: min(480px, calc(100vw - 32px));
	padding: 28px 28px 24px;
	border: 1px solid #e6e8eb;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
	font-family: inherit;
	gap: 0;
}

/* Title row: icon + title, left aligned. */
body .cmplz-cookiebanner .cmplz-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
}
body .cmplz-cookiebanner .cmplz-logo,
body .cmplz-cookiebanner .cmplz-close,
body .cmplz-cookiebanner .cmplz-divider,
body .cmplz-cookiebanner .cmplz-documents { display: none !important; } /* The policy link sits in the text. */
body .cmplz-cookiebanner .cmplz-title {
	display: flex !important; /* Complianz hides it on phones; the title stays. */
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	letter-spacing: -.01em;
	text-align: left;
	color: #0a0a0a;
}
body .cmplz-cookiebanner .cmplz-title::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #fff4eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 4 4 0 0 1-4-4 4 4 0 0 1-5-5z'/%3E%3Cpath d='M8.5 12.5h.01M12.5 16h.01M16 13.5h.01M10 8.5h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Text: comfortable line length and spacing. */
body .cmplz-cookiebanner .cmplz-body { margin: 0; }
body .cmplz-cookiebanner .cmplz-message {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: #2b2f33;
	text-align: left;
}
body .cmplz-cookiebanner .cmplz-message .gm-cmplz-more { margin-top: 12px; }
body .cmplz-cookiebanner .cmplz-message a {
	color: #0a0a0a;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
body .cmplz-cookiebanner .cmplz-message a:hover { color: #b85300; }
body .cmplz-cookiebanner .cmplz-message a:focus-visible {
	outline: 2px solid #b85300;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Buttons: two equal on the first row, Manage preferences full width below. */
body .cmplz-cookiebanner .cmplz-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid #cfd4d9;
	border-radius: 12px;
	background: #fff;
	color: #0a0a0a;
	font-family: inherit;
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
	white-space: normal;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences { grid-column: 1 / -1; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover {
	border-color: #ff7a00;
	background: #fff6ee;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:focus-visible {
	outline: none;
	border-color: #ff7a00;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b85300; /* 4.9:1 against white. */
}

/* Manage preferences: categories keep the card's spacing. Complianz sizes these from its own padding; fill ours instead. */
body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-categories,
body .cmplz-cookiebanner .cmplz-category {
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
}
body .cmplz-cookiebanner .cmplz-categories { margin-top: 16px; }
body .cmplz-cookiebanner .cmplz-category { border-radius: 12px; }
body .cmplz-cookiebanner .cmplz-category-header { padding: 12px 14px; }

@media (max-width: 480px) {
	body .cmplz-cookiebanner.cmplz-center,
	body .cmplz-cookiebanner {
		width: calc(100vw - 24px);
		padding: 22px 20px 20px;
		border-radius: 18px;
	}
	body .cmplz-cookiebanner .cmplz-title { font-size: 18px; line-height: 26px; }
	body .cmplz-cookiebanner .cmplz-message { font-size: 15px; line-height: 23px; }
	body .cmplz-cookiebanner .cmplz-buttons { gap: 10px; margin-top: 20px; }
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { min-height: 50px; padding: 12px 10px; font-size: 15px; }
}
/* Phones: "Reject non-essential" doesn't fit half the card, so the three buttons stack (same style, full width) rather than wrap. */
@media (max-width: 419px) {
	body .cmplz-cookiebanner .cmplz-buttons { grid-template-columns: 1fr; }
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { white-space: nowrap; }
}

/* No floating "Cookie settings" tab after a choice: the footer link reopens the banner. */
#cmplz-manage-consent,
body .cmplz-manage-consent { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { transition: none; }
}
