.bwpu-open {
	overflow: hidden;
}

.bwpu-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
	font-family: inherit;
}

.bwpu-modal.is-hidden {
	display: none;
}

.bwpu-overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 22, 31, 0.58);
	backdrop-filter: blur(4px);
}

.bwpu-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 400px);
	padding: 28px 24px 24px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(9, 22, 31, 0.28);
	color: #16252d;
}

.bwpu-close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	color: #53636b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bwpu-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #25d366;
	border: 0;
	color: #fff;
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.bwpu-icon svg {
	display: block;
	width: 28px;
	height: 28px;
}

.bwpu-dialog h2 {
	margin: 0;
	color: #16252d;
	font-size: 18px;
	line-height: 1.3;
	text-align: center;
}

.bwpu-dialog[dir="rtl"] h2 {
	font-size: 17px;
}

.bwpu-description {
	margin: 10px auto 0;
	color: #4a5d66;
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
}

.bwpu-field-label {
	display: block;
	margin: 18px 0 8px;
	color: #31434b;
	font-size: 13px;
	font-weight: 650;
	text-align: start;
}

.bwpu-phone-row {
	display: flex;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
	border: 1.5px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.bwpu-phone-row:focus-within {
	border-color: #25d366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .14);
	outline: none;
}

.bwpu-phone-row:has(.bidoki-country-picker.is-open) {
	overflow: visible;
}

.bwpu-phone-row .bidoki-country-picker {
	width: 118px;
	max-width: 38%;
	flex-shrink: 0;
}

.bwpu-country-inline {
	flex: 0 0 auto;
	width: 118px;
	max-width: 25%;
	min-height: 48px;
	padding: 0 8px;
	border: 0;
	border-inline-end: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0;
	background: #f3f5f6;
	color: #16252d;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: start;
	cursor: pointer;
	appearance: auto;
	line-height: 1.2;
}

.bwpu-phone-row input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 11px 16px;
	border: 0;
	outline: none;
	background: #fff;
	color: #16252d;
	font: inherit;
	font-size: 14px;
}

.bwpu-phone-row input::placeholder {
	color: #9aa6ad;
}

.bwpu-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 16px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #25d366;
	box-shadow: 0 7px 18px rgba(37, 211, 102, .28);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s, transform .15s;
}

.bwpu-primary:hover {
	opacity: .93;
	color: #fff;
}

.bwpu-primary:active {
	transform: scale(.985);
}

.bwpu-primary:disabled {
	box-shadow: none;
	cursor: not-allowed;
	opacity: .46;
}

.bwpu-status {
	min-height: 20px;
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.bwpu-status.is-error {
	color: #c43232;
}

.bwpu-note {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
	color: #6b7280;
}

.bwpu-member-panel[hidden],
.bwpu-join-panel[hidden] {
	display: none !important;
}

.bwpu-member-phone {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: #0f766e;
	letter-spacing: 0.02em;
}

.bwpu-chat-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-decoration: none;
}

.bwpu-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.bwpu-status-badge.is-active {
	background: #dcfce7;
	color: #166534;
}

.bwpu-status-badge.is-unsubscribed {
	background: #fee2e2;
	color: #991b1b;
}

@media (max-width: 480px) {
	.bwpu-modal {
		align-items: end;
		padding: 10px;
	}

	.bwpu-dialog {
		padding: 26px 18px 20px;
		border-radius: 20px;
	}

	.bwpu-dialog h2 {
		font-size: 17px;
	}

	.bwpu-country-inline {
		width: 108px;
	}
}
