/* InnoVision Cookie Consent — front end. Selectors are doubled (.a.a) where themes
 * and page builders commonly out-rank single-class rules on buttons/links. */

.iv-consent-banner,
.iv-consent-preferences {
	position: fixed;
	z-index: 2147483000;
	background: #ffffff;
	color: #111111;
	border: 1px solid #111111;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
	box-sizing: border-box;
}

.iv-consent-banner {
	left: 0;
	right: 0;
	bottom: 0;
	border-left: none;
	border-right: none;
	border-bottom: none;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	max-height: 80vh;
	overflow-y: auto;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.iv-consent-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.iv-consent-banner__text {
	flex: 1 1 400px;
	margin: 0;
}

.iv-consent-banner__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.iv-consent-banner__policy-link,
.iv-consent-gpc {
	flex-basis: 100%;
	margin: 4px 0 0;
	font-size: 12px;
}

.iv-consent-banner.iv-consent-banner a,
.iv-consent-preferences.iv-consent-preferences a {
	color: #111111;
	text-decoration: underline;
}

.iv-consent-btn.iv-consent-btn {
	display: inline-block;
	border: 1px solid #111111;
	background: #ffffff;
	color: #111111;
	padding: 10px 18px;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	border-radius: 2px;
	box-shadow: none;
	min-height: 44px;
}

/* Accept All and Reject All share this style on purpose: California
 * regulations require symmetry in choice (no visually favoured "accept"). */
.iv-consent-btn.iv-consent-btn--primary {
	background: #111111;
	color: #ffffff;
}

.iv-consent-btn.iv-consent-btn:hover {
	opacity: 0.85;
}

.iv-consent-btn.iv-consent-btn:focus-visible,
.iv-consent-link:focus-visible,
.iv-consent-footer-link a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.iv-consent-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147482999;
	background: rgba(0, 0, 0, 0.45);
}

.iv-consent-preferences {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, 92vw);
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.iv-consent-preferences__inner {
	padding: 24px;
}

.iv-consent-preferences__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.iv-consent-preferences__title {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.3;
	color: #111111;
}

.iv-consent-preferences__close.iv-consent-preferences__close {
	background: none;
	border: 0;
	font-size: 24px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	color: #111111;
}

.iv-consent-preferences__policy-link {
	margin: 0 0 16px;
	font-size: 12px;
}

.iv-consent-category {
	border-top: 1px solid #dddddd;
	padding: 12px 0;
}

.iv-consent-category:first-of-type {
	border-top: none;
}

.iv-consent-category__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.iv-consent-category__desc {
	margin: 4px 0 0 26px;
	color: #444444;
}

.iv-consent-preferences__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

/* Footer text link (replaces the old floating "Manage Cookies" pill). */
.iv-consent-footer-link {
	display: block;
	clear: both;
	margin: 0;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
}

.iv-consent-footer-link a.iv-consent-link,
a.iv-consent-link.iv-consent-link {
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	background: none;
}

/* Blocked embed placeholder. */
.iv-consent-embed {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 220px;
	margin: 0 0 1em;
	padding: 24px;
	background: #f3f4f6;
	border: 1px dashed #9ca3af;
	color: #111111;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	overflow: auto;
}

.iv-consent-embed--overlay {
	position: absolute;
	inset: 0;
	margin: 0;
	min-height: 0;
	z-index: 1;
}

.iv-consent-embed--form {
	min-height: 0;
	margin: 0 0 16px;
	padding: 16px;
	border-style: solid;
	border-color: #b91c1c;
	background: #fef2f2;
}

.iv-consent-embed__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 520px;
}

.iv-consent-embed__text {
	display: block;
	font-weight: 600;
}

.iv-consent-embed__note {
	display: block;
	font-size: 12px;
	color: #4b5563;
}

.iv-consent-banner[hidden],
.iv-consent-preferences[hidden],
.iv-consent-backdrop[hidden],
.iv-consent-gpc[hidden] {
	display: none !important;
}
