/*
 * Ordination Infobanner – visitor banner.
 * Selectors use :not(#oib-x) to raise specificity above theme/Elementor rules (e.g. Hello Elementor's
 * button styles) without !important. Colours come from CSS variables set per banner.
 */
.oib-banner:not(#oib-x) {
	--oib-border: #f38439;
	--oib-title: #66c976;
	--oib-text: #000;
	position: fixed;
	z-index: 9990; /* below the Complianz cookie banner (99999) */
	left: 16px;
	right: 16px;
	bottom: 24px;
	box-sizing: border-box;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	margin: 0 auto;
	padding: 20px 56px 20px 20px;
	background: #fff;
	border: 3px solid var(--oib-border);
	border-radius: 0;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	color: var(--oib-text);
	font-family: var(--e-global-typography-text-font-family, Roboto), Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	text-align: left;
	animation: oib-in 0.35s ease-out both;
}

.oib-banner:not(#oib-x) *,
.oib-banner:not(#oib-x) *::before,
.oib-banner:not(#oib-x) *::after {
	box-sizing: border-box;
}

.oib-banner.oib-banner--out:not(#oib-x) {
	animation: oib-out 0.25s ease-in both;
}

.oib-banner:not(#oib-x) .oib-title {
	margin: 0 0 12px;
	padding: 0;
	color: var(--oib-title);
	font-family: var(--e-global-typography-accent-font-family, Roboto), Roboto, Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: normal;
	text-transform: none;
}

.oib-banner:not(#oib-x) .oib-text {
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
}

.oib-banner:not(#oib-x) .oib-text p,
.oib-banner:not(#oib-x) .oib-text ul,
.oib-banner:not(#oib-x) .oib-text ol {
	margin: 0 0 0.75em;
	padding: 0;
	color: inherit;
	font: inherit;
}

.oib-banner:not(#oib-x) .oib-text ul,
.oib-banner:not(#oib-x) .oib-text ol {
	padding-left: 1.4em;
}

.oib-banner:not(#oib-x) .oib-text ul {
	list-style: disc;
}

.oib-banner:not(#oib-x) .oib-text ol {
	list-style: decimal;
}

.oib-banner:not(#oib-x) .oib-text li {
	margin: 0 0 0.25em;
}

.oib-banner:not(#oib-x) .oib-text > :last-child {
	margin-bottom: 0;
}

.oib-banner:not(#oib-x) .oib-text strong,
.oib-banner:not(#oib-x) .oib-text b {
	font-weight: 700;
}

.oib-banner:not(#oib-x) .oib-text a {
	color: var(--e-global-color-primary, #283379);
	text-decoration: underline;
}

.oib-banner:not(#oib-x) .oib-close,
.oib-banner:not(#oib-x) .oib-close:hover,
.oib-banner:not(#oib-x) .oib-close:focus,
.oib-banner:not(#oib-x) .oib-close:active {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: var(--oib-text);
	font-size: 0;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

.oib-banner:not(#oib-x) .oib-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.oib-banner:not(#oib-x) .oib-close:focus {
	outline: none;
}

.oib-banner:not(#oib-x) .oib-close:focus-visible {
	outline: 2px solid var(--oib-border);
	outline-offset: 0;
}

.oib-banner:not(#oib-x) .oib-close svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* Preview inside the editor page. */
.oib-banner.oib-banner--preview:not(#oib-x) {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	z-index: auto;
	max-height: none;
	animation: none;
}

@media (max-width: 600px) {
	.oib-banner:not(#oib-x) {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 16px 52px 16px 16px;
		font-size: 15px;
		line-height: 21px;
	}

	.oib-banner:not(#oib-x) .oib-close {
		top: 6px;
		right: 6px;
	}
}

@keyframes oib-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes oib-out {
	to {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.oib-banner:not(#oib-x),
	.oib-banner.oib-banner--out:not(#oib-x) {
		animation: none !important;
	}
}
