.bwm-widget,
.bwm-widget * {
	box-sizing: border-box;
}

.bwm-widget {
	--bwm-bg: #78909a;
	--bwm-panel: #152c3d;
	--bwm-card: #1c3547;
	--bwm-text: #f8f5ef;
	--bwm-muted: rgba(248, 245, 239, 0.43);
	--bwm-body: rgba(248, 245, 239, 0.79);
	--bwm-line: rgba(255, 255, 255, 0.15);
	width: 100%;
	color: var(--bwm-text);
	background: var(--bwm-bg);
	font-family: "Poppins", sans-serif;
}

.bwm__main-title {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	color: #162438;
	font: 400 48px/1 "Poppins", sans-serif;
	text-align: left;
	white-space: nowrap;
}

.bwm__inner {
	display: grid;
	grid-template-columns: minmax(280px, 0.9fr) minmax(480px, 1.35fr);
	gap: clamp(48px, 8vw, 150px);
	width: min(100%, 1680px);
	margin-inline: auto;
	padding: clamp(36px, 5vw, 72px);
}

.bwm__nav {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 680px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.bwm__tab {
	border: 0;
	padding: 12px 0;
	color: var(--bwm-muted);
	background: transparent !important;
	box-shadow: none !important;
	font: 300 clamp(39px, 4vw, 68px)/1.14 "Poppins", sans-serif;
	letter-spacing: -0.045em;
	text-align: left;
	cursor: pointer;
	transition: color 0.35s ease;
}

.bwm__tab:hover,
.bwm__tab:focus,
.bwm__tab:active,
.bwm__tab[aria-selected="true"] {
	color: var(--bwm-text);
	border-color: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.bwm__tab:focus {
	outline: none !important;
}

.bwm__tab:focus-visible,
.bwm__switcher:focus-visible {
	outline: 1px solid var(--bwm-text) !important;
	outline-offset: 6px;
}

.bwm__stage {
	display: flex;
	min-width: 0;
	min-height: 780px;
	flex-direction: column;
	border-radius: 19px;
	background: var(--bwm-panel);
	padding: clamp(35px, 4vw, 68px);
	box-shadow: 0 30px 90px rgba(20, 40, 52, 0.15);
	touch-action: pan-y;
}

.bwm__panel {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--bwm-line);
	border-radius: 18px;
	background: var(--bwm-card);
	padding: clamp(28px, 3.2vw, 52px);
}

.bwm__panel[hidden] {
	display: none;
}

.bwm__panel.is-active > * {
	animation: bwm-change 0.45s ease;
}

.bwm__eyebrow {
	margin: 0 0 22px;
	color: var(--bwm-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.bwm__title {
	max-width: 760px;
	margin: 0 48px 25px 0;
	color: var(--bwm-text);
	font: 300 clamp(36px, 3.8vw, 62px)/1.05 "Poppins", sans-serif;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.bwm__text {
	max-width: 760px;
	margin: 0 40px 0 0;
	color: var(--bwm-body);
	font-size: clamp(15px, 1.35vw, 20px);
	line-height: 1.62;
}

.bwm__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.bwm__tag {
	padding: 7px 11px;
	border: 1px solid var(--bwm-line);
	border-radius: 999px;
	color: var(--bwm-body);
	font-size: 11px;
}

.bwm__controls {
	display: flex;
	justify-content: flex-end;
	padding-top: 24px;
}

.bwm__switcher {
	width: 96px;
	min-height: 42px;
	border: 0 !important;
	color: var(--bwm-text);
	background: transparent !important;
	box-shadow: none !important;
	font: 300 34px/1 "Poppins", sans-serif;
	cursor: pointer;
	opacity: 0.82;
	transition: opacity 0.2s ease;
}

.bwm__switcher:hover,
.bwm__switcher:focus,
.bwm__switcher:active {
	border-color: transparent !important;
	color: var(--bwm-text) !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: 1;
}

.bwm__switcher:focus {
	outline: none !important;
}

.bwm__switcher:focus-visible {
	outline: 1px solid var(--bwm-text) !important;
	outline-offset: 6px;
}

@keyframes bwm-change {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
	.bwm__inner {
		grid-template-columns: 1fr;
		gap: 52px;
		padding: 34px 24px;
	}

	.bwm__nav {
		display: grid;
		grid-template-columns: 1fr 1fr;
		min-height: 0;
	}

	.bwm__tab {
		font-size: clamp(32px, 6vw, 52px);
	}

	.bwm__stage {
		min-height: 680px;
	}
}

@media (max-width: 767px) {
	.bwm__inner {
		gap: 36px;
		padding: 25px 17px;
	}

	.bwm__nav {
		display: flex;
		width: 100%;
		overflow-x: auto;
		flex-direction: row;
		justify-content: flex-start;
		gap: 24px;
		scrollbar-width: none;
	}

	.bwm__nav::-webkit-scrollbar {
		display: none;
	}

	.bwm__tab {
		min-width: max-content;
		font-size: 28px;
	}

	.bwm__stage {
		width: 100%;
		min-height: 640px;
		padding: 20px;
	}

	.bwm__panel {
		padding: 28px 24px;
	}

	.bwm__title {
		margin-right: 24px;
		font-size: 35px;
	}

	.bwm__text {
		margin-right: 12px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bwm-widget *,
	.bwm-widget *::before,
	.bwm-widget *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Remove empty viewport-height space around the two Beosigner widgets */
.e-con:has(.bwm-widget),
.e-con:has(.bzc-widget) {
	min-height: 0 !important;
}
.elementor-widget-beosigner-wirk-matrix .bwm__nav {
	min-height: 520px !important;
}
.elementor-widget-beosigner-wirk-matrix .bwm__stage {
	min-height: 560px !important;
}

