/* WB Newsletter: sign-up window, toast, sidebar rail and invitation popup. */

.wbn-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(14, 21, 34, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.wbn-overlay.on {
	display: flex;
}

.wbn-box {
	position: relative;
	background: #fff;
	color: #0f1622;
	width: 100%;
	max-width: 500px;
	max-height: 92vh;
	overflow: auto;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	padding: 30px 30px 26px;
	font-family: Inter, system-ui, sans-serif;
}

.wbn-box h2 {
	font-family: "Bricolage Grotesque", Inter, sans-serif;
	font-size: 1.5rem;
	margin: 0 0 4px;
	letter-spacing: -.02em;
}

.wbn-box p.wbn-sub {
	margin: 0 0 18px;
	color: #586374;
	font-size: .95rem;
}

.wbn-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #586374;
	cursor: pointer;
}

.wbn-field {
	margin: 0 0 14px;
}

.wbn-field label,
.wbn-field .wbn-label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: #3a4658;
	margin-bottom: 5px;
}

.wbn-field input[type=text],
.wbn-field input[type=email],
.wbn-field input[type=tel] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d7deea;
	border-radius: 10px;
	font: inherit;
	font-size: .95rem;
	background: #fff;
	color: #0f1622;
}

.wbn-field input:focus {
	outline: 2px solid #3f83c9;
	border-color: #3f83c9;
}

.wbn-req {
	color: inherit;
}

.wbn-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 4px;
}

.wbn-chk {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: .9rem;
	font-weight: 400;
	color: #3a4658;
	cursor: pointer;
	margin-bottom: 0;
}

.wbn-chk input {
	width: 16px;
	height: 16px;
	accent-color: #1c3f6e;
}

.wbn-hp {
	position: absolute;
	left: -9999px;
}

.wbn-box .wb-captcha {
	margin: 0 0 14px;
}

.wbn-submit {
	width: 100%;
	margin-top: 8px;
	background: #1c3f6e;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background .15s;
}

.wbn-submit:hover {
	background: #122c50;
}

.wbn-submit:disabled {
	opacity: .6;
	cursor: default;
}

.wbn-msg {
	margin: 12px 0 0;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: .9rem;
	display: none;
}

.wbn-msg.err {
	display: block;
	background: #fdecea;
	color: #8a1f1a;
}

.wbn-msg.ok {
	display: block;
	background: #e8f5ec;
	color: #1e5b33;
}

.wbn-hint {
	font-size: .78rem;
	color: #8a94a6;
	margin: 10px 0 0;
}

.wbn-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(20px);
	z-index: 100000;
	background: #1c3f6e;
	color: #fff;
	padding: 13px 22px;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
	font-family: Inter, sans-serif;
	font-size: .92rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}

.wbn-toast.on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---- sidebar rail ---- */

.wbn-rail {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.wbn-rail__item {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 11px;
	height: 48px;
	padding: 0 18px 0 0;
	border: 0;
	cursor: pointer;
	border-radius: 14px 0 0 14px;
	font-family: Inter, system-ui, sans-serif;
	font-weight: 700;
	font-size: .9rem;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: -6px 8px 22px rgba(0, 0, 0, .2);
	transform: translateX(calc(100% - 48px));
	transition: transform .28s cubic-bezier(.45, .05, .55, .95);
	will-change: transform;
}

.wbn-rail__item:hover,
.wbn-rail__item:focus-visible {
	transform: translateX(0);
}

.wbn-rail__ico {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wbn-rail__ico svg {
	width: 21px;
	height: 21px;
}

.wbn-rail__nl {
	background: #eab308;
	color: #3a2a05;
}

.wbn-rail__nl:hover {
	background: #f5c518;
	color: #3a2a05;
}

.wbn-rail__fb {
	background: #1c3f6e;
	color: #fff;
}

.wbn-rail__fb:hover {
	background: #122c50;
	color: #fff;
}

:root[data-theme="dark"] .wbn-rail__fb {
	background: #2f6fb8;
}

:root[data-theme="dark"] .wbn-rail__fb:hover {
	background: #3f83c9;
}

/* ---- invitation popup ---- */

.wbn-promo {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99992;
	width: min(340px, calc(100vw - 36px));
	background: #fff;
	color: #0f1622;
	border: 1px solid #e4e9f1;
	border-radius: 16px;
	padding: 18px 18px 16px;
	box-shadow: 0 18px 50px rgba(15, 22, 34, .22);
	font-family: Inter, system-ui, sans-serif;
	display: none;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .3s, transform .3s;
}

.wbn-promo.on {
	display: block;
}

.wbn-promo.show {
	opacity: 1;
	transform: translateY(0);
}

.wbn-promo__x {
	position: absolute;
	top: 8px;
	right: 11px;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #8a94a6;
	cursor: pointer;
}

.wbn-promo__title {
	margin: 0 0 6px;
	font-family: "Bricolage Grotesque", Inter, sans-serif;
	font-weight: 700;
	font-size: 1.08rem;
	letter-spacing: -.01em;
}

.wbn-promo__txt {
	margin: 0 0 14px;
	font-size: .88rem;
	line-height: 1.55;
	color: #586374;
}

.wbn-promo__row {
	display: flex;
	gap: 9px;
	align-items: center;
}

.wbn-promo__yes {
	background: #1c3f6e;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	font-size: .88rem;
	cursor: pointer;
	transition: background .16s;
}

.wbn-promo__yes:hover {
	background: #122c50;
}

.wbn-promo__no {
	background: none;
	border: 0;
	color: #8a94a6;
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
	padding: 10px 4px;
}

.wbn-promo__no:hover {
	color: #586374;
}

/* ---- dark theme ---- */

:root[data-theme="dark"] .wbn-box {
	background: #141c29;
	color: #e6ecf5;
}

:root[data-theme="dark"] .wbn-box p.wbn-sub {
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbn-close {
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbn-field label,
:root[data-theme="dark"] .wbn-field .wbn-label {
	color: #c3ccda;
}

:root[data-theme="dark"] .wbn-field input[type=text],
:root[data-theme="dark"] .wbn-field input[type=email],
:root[data-theme="dark"] .wbn-field input[type=tel] {
	background: #0f1622;
	border-color: #2a3547;
	color: #e6ecf5;
}

:root[data-theme="dark"] .wbn-chk {
	color: #c3ccda;
}

:root[data-theme="dark"] .wbn-submit {
	background: #2f6fb8;
}

:root[data-theme="dark"] .wbn-submit:hover {
	background: #3f83c9;
}

:root[data-theme="dark"] .wbn-msg.err {
	background: #3a1d1b;
	color: #f3b4ae;
}

:root[data-theme="dark"] .wbn-msg.ok {
	background: #173425;
	color: #a7e0bf;
}

:root[data-theme="dark"] .wbn-promo {
	background: #141c29;
	color: #e6ecf5;
	border-color: #232d3d;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

:root[data-theme="dark"] .wbn-promo__txt {
	color: #9aa7bb;
}

:root[data-theme="dark"] .wbn-promo__yes {
	background: #2f6fb8;
}

:root[data-theme="dark"] .wbn-promo__yes:hover {
	background: #3f83c9;
}

@media (max-width: 600px) {
	.wbn-rail {
		gap: 8px;
	}

	.wbn-rail__item {
		height: 40px;
		padding: 0;
		transform: none;
		border-radius: 12px 0 0 12px;
		box-shadow: -4px 6px 16px rgba(0, 0, 0, .22);
	}

	.wbn-rail__item:hover {
		transform: none;
	}

	.wbn-rail__ico {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
	}

	.wbn-rail__label {
		display: none;
	}

	.wbn-promo {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wbn-rail__item {
		transition: none;
	}

	.wbn-promo {
		transition: none;
	}
}
