#btm-login-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	padding: 40px 0;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.6s ease;
	overflow-y: auto;
	min-height: 100vh;
}

#btm-login-modal-overlay.visible.ready {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#btm-login-modal-wrapper {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

#btm-login-modal {
	background: #fff;
	width: 100%;
	padding: 30px;
	position: relative;
	z-index: 9999;
	box-sizing: border-box;
	max-height: 90vh;
	overflow-y: auto;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

#btm-login-modal.closing {
	opacity: 0;
	visibility: hidden;
}

@media (min-width: 768px) {
	#btm-login-modal {
		padding-left: 70px;
		padding-right: 70px;
	}

	#btm-login-modal-wrapper {
		margin: 120px auto 60px;
	}

	#btm-modal-start-form,
	#btm-modal-login {
		max-width: 360px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	#btm-login-modal-wrapper {
		margin-inline: 16px;
		width: calc(100% - 32px);
	}

	#btm-login-modal-overlay {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		overflow-y: hidden;
	}

	#btm-login-modal {
		margin: 0 auto;
		max-height: 90vh;
		overflow-y: auto;
	}
}

#btm-login-modal-close {
	position: absolute;
	top: 0;
	right: 12px;
	font-size: 26px;
	cursor: pointer;
	border: none;
	background: transparent;
}

#btm-modal-instruction,
#btm-modal-start-form {
	opacity: 0;
	visibility: hidden;
	position: relative;
	transition: opacity 0.6s ease;
}

#btm-modal-instruction.visible,
#btm-modal-start-form.visible {
	opacity: 1;
	visibility: visible;
}

#btm-modal-start-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--theme-text-color, #333);
	text-align: center;
}

#btm-modal-start-form input,
#btm-modal-start-form button {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	margin-bottom: 10px;
	border-radius: 5px;
}

#btm-modal-start-form input {
	border: 1px solid #ccc;
}

.social-or-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 280px;
	margin: 20px auto 30px;
	color: #777;
	font-size: 14px;
}

.social-or-divider::before,
.social-or-divider::after {
	content: '';
	display: block;
	width: 100%;
	max-width: 100px;
	border-top: 1px solid #767676;
	margin: 0 10px;
}

#btm-modal-back {
	margin-bottom: 20px;
	display: none;
}

#btm-back-button {
	background: none;
	border: none;
	color: #1771a1;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
}

#btm-login-modal .woocommerce-privacy-policy-text {
	display: none !important;
}
