.owf-eu-notice-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border: 2px solid #003399;
	border-radius: 0.45rem;
	background: #fff;
	color: #003399;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 0.25rem 1rem rgba(0, 33, 99, 0.18);
}

.owf-eu-notice-trigger:hover,
.owf-eu-notice-trigger:focus-visible {
	background: #003399;
	color: #fff;
}

.owf-eu-notice-trigger:focus-visible,
.owf-eu-notice-modal__close:focus-visible,
.owf-eu-notice-modal__link a:focus-visible {
	outline: 3px solid #ffcc00;
	outline-offset: 3px;
}

.owf-eu-notice-trigger--automatic {
	position: fixed;
	left: max(1rem, env(safe-area-inset-left));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 99990;
	max-width: min(22rem, calc(100vw - 2rem));
}

.owf-eu-notice-modal[hidden] {
	display: none;
}

.owf-eu-notice-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	box-sizing: border-box;
	place-items: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.owf-eu-notice-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 15, 30, 0.78);
}

.owf-eu-notice-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(62rem, 100%);
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	border-radius: 0.6rem;
	background: #fff;
	color: #172033;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.owf-eu-notice-modal__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid #d8dee9;
}

.owf-eu-notice-modal__header h2 {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.35rem);
	line-height: 1.3;
}

.owf-eu-notice-modal__close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #25324b;
	border-radius: 50%;
	background: #fff;
	color: #172033;
	font: inherit;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.owf-eu-notice-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 1rem;
	-webkit-overflow-scrolling: touch;
}

.owf-eu-notice-modal__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.owf-eu-notice-modal__link {
	margin: 1rem 0 0;
	text-align: center;
}

.owf-eu-notice-modal__link a {
	display: inline-block;
	min-height: 44px;
	padding: 0.65rem 0.8rem;
	color: #003399;
	font-weight: 700;
	line-height: 1.4;
}

body.owf-eu-notice-is-open {
	overflow: hidden;
}

@media (max-width: 600px), (max-height: 520px) {
	.owf-eu-notice-trigger--automatic {
		left: max(0.5rem, env(safe-area-inset-left));
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		max-width: calc(100vw - 1rem);
	}

	.owf-eu-notice-modal {
		align-items: stretch;
		padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
	}

	.owf-eu-notice-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 1rem);
		max-height: calc(100dvh - 1rem);
	}

	.owf-eu-notice-modal__body {
		padding: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.owf-eu-notice-modal,
	.owf-eu-notice-trigger {
		scroll-behavior: auto;
	}
}
