/* =====================================================================
 * BV OTP Login – front end
 * Colours come from the plugin's Design settings (see :root variables
 * printed inline); fallbacks match the BV Lifestyle storefront.
 * ===================================================================== */
.bvotp,
.bvotp-modal,
.bvotp-bar,
.bvotp-switch {
	--bvotp-navy: var(--bvotp-heading, #072733);
	--bvotp-pink: var(--bvotp-primary, #F093B5);
	--bvotp-pink-hover: var(--bvotp-primary-hover, #EA7FA6);
	--bvotp-on-pink: var(--bvotp-btn-text, #072733);
	--bvotp-sky: var(--bvotp-soft, #E1EDF5);
	--bvotp-border: #D9E2E8;
	--bvotp-muted: #5B6B73;
	--bvotp-error: #B3264F;
	--bvotp-ok: #12694A;
	--bvotp-r: var(--bvotp-radius, 14px);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bvotp {
	max-width: 460px;
	margin: 0 auto;
	color: var(--bvotp-navy);
	line-height: 1.5;
	text-align: left;
}
.bvotp *,
.bvotp *::before,
.bvotp *::after { box-sizing: border-box; }
.bvotp [hidden],
.bvotp-account [hidden],
.bvotp-modal[hidden] { display: none !important; }

.bvotp__card {
	background: #fff;
	border: 1px solid var(--bvotp-border);
	border-radius: var(--bvotp-r);
	padding: 36px 36px 28px;
	box-shadow: 0 12px 32px rgba(7, 39, 51, .08);
}

/* Heading */
.bvotp .bvotp__title {
	margin: 0 0 6px;
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bvotp-navy);
}
.bvotp .bvotp__sub {
	margin: 0;
	font-size: 15px;
	color: var(--bvotp-muted);
}
.bvotp__head { margin-bottom: 24px; }

/* Method switch */
.bvotp__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 22px;
	background: var(--bvotp-sky);
	border-radius: 12px;
}
.bvotp .bvotp__tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--bvotp-muted);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s, box-shadow .15s;
}
.bvotp .bvotp__tab:hover,
.bvotp .bvotp__tab:focus {
	background: rgba(255, 255, 255, .55);
	color: var(--bvotp-navy);
}
.bvotp .bvotp__tab.is-active,
.bvotp .bvotp__tab.is-active:hover,
.bvotp .bvotp__tab.is-active:focus {
	background: #fff;
	color: var(--bvotp-navy);
	box-shadow: 0 1px 3px rgba(7, 39, 51, .14);
}
.bvotp .bvotp__tab[data-bvotp-tab="whatsapp"].is-active svg { color: #128C4A; }

/* Fields */
.bvotp__form { margin: 0; }
.bvotp .bvotp__label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--bvotp-navy);
}
.bvotp .bvotp__input,
.bvotp .bvotp__cc--select {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--bvotp-navy);
	background: #fff;
	border: 1px solid var(--bvotp-border);
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.bvotp .bvotp__input::placeholder { color: #93A1A8; opacity: 1; }
.bvotp .bvotp__input:focus,
.bvotp .bvotp__cc--select:focus,
.bvotp .bvotp__digit:focus {
	border-color: var(--bvotp-pink);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bvotp-pink) 28%, transparent);
}
.bvotp__phone {
	display: flex;
	gap: 8px;
}
.bvotp__phone .bvotp__input { flex: 1; min-width: 0; }
.bvotp .bvotp__cc {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 500;
	color: var(--bvotp-navy);
	background: var(--bvotp-sky);
	border: 1px solid var(--bvotp-sky);
	border-radius: 10px;
}
.bvotp .bvotp__cc--select {
	width: 128px;
	padding: 0 10px;
	background: var(--bvotp-sky);
	border-color: var(--bvotp-sky);
	font-weight: 500;
	cursor: pointer;
}
.bvotp__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Primary button – same shape as the storefront's "Buy Now" */
.bvotp .bvotp__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 20px 0 0;
	padding: 15px 36px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--bvotp-on-pink);
	background: var(--bvotp-pink);
	border: 1px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.bvotp .bvotp__btn:hover,
.bvotp .bvotp__btn:focus {
	background: var(--bvotp-pink-hover);
	color: var(--bvotp-on-pink);
	transform: translateY(-1px);
}
.bvotp .bvotp__btn[disabled] {
	cursor: default;
	transform: none;
	opacity: .75;
}
.bvotp .bvotp__btn.is-loading .bvotp__btn-label::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 10px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: bvotpSpin .7s linear infinite;
}
@keyframes bvotpSpin { to { transform: rotate(360deg); } }

/* Keyboard focus */
.bvotp .bvotp__btn:focus-visible,
.bvotp .bvotp__tab:focus-visible,
.bvotp-link:focus-visible,
.bvotp-modal .bvotp-modal__close:focus-visible {
	outline: 2px solid var(--bvotp-navy);
	outline-offset: 2px;
}

/* Text links / text buttons (class doubled to out-rank the theme's button rules) */
.bvotp-link.bvotp-link,
.bvotp-link.bvotp-link:hover,
.bvotp-link.bvotp-link:focus {
	display: inline;
	padding: 0;
	margin: 0;
	min-height: 0;
	border: 0;
	border-radius: 2px;
	background: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: inherit;
	color: var(--bvotp-navy);
	text-decoration: underline;
	text-decoration-color: var(--bvotp-pink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bvotp-link.bvotp-link:hover { text-decoration-color: var(--bvotp-navy); }

/* Helper text */
.bvotp .bvotp__fine {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--bvotp-muted);
	text-align: center;
}
.bvotp .bvotp__sent {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--bvotp-muted);
}
.bvotp .bvotp__sent strong {
	color: var(--bvotp-navy);
	font-weight: 600;
	white-space: nowrap;
}
.bvotp .bvotp__sent .bvotp-link.bvotp-link { margin-left: 6px; font-size: 14px; }

/* Code boxes */
.bvotp__otp {
	display: flex;
	gap: 10px;
}
.bvotp .bvotp__digit {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	max-width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: var(--bvotp-navy);
	background: #fff;
	border: 1px solid var(--bvotp-border);
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.bvotp .bvotp__otp.is-error .bvotp__digit { border-color: var(--bvotp-error); }

/* Messages */
.bvotp .bvotp__msg {
	margin: 14px 0 0;
	padding: 10px 14px;
	font-size: 14px;
	border-radius: 10px;
	color: var(--bvotp-error);
	background: #FCE8F0;
}
.bvotp .bvotp__msg.is-success {
	color: var(--bvotp-ok);
	background: #E4F4EC;
}
.bvotp .bvotp__test {
	margin: 14px 0 0;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--bvotp-navy);
	background: #FFF6D6;
	border: 1px dashed #D9B429;
	border-radius: 10px;
}
.bvotp .bvotp__test strong { font-size: 16px; letter-spacing: 2px; }

.bvotp .bvotp__resend {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--bvotp-muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.bvotp__foot {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--bvotp-border);
	font-size: 14px;
	text-align: center;
}

/* My Account: switch between the code card and the stock password forms */
.bvotp-switch {
	margin: 28px 0 0;
	font-size: 15px;
	text-align: center;
}
.bvotp-loggedin { font-size: 15px; }

/* Checkout prompt */
.bvotp-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 24px;
	padding: 14px 18px;
	font-size: 15px;
	color: var(--bvotp-navy);
	background: var(--bvotp-sky);
	border-radius: 12px;
}
.bvotp-bar .bvotp-bar__link {
	font-weight: 600;
	color: var(--bvotp-navy);
	text-decoration: underline;
	text-decoration-color: var(--bvotp-pink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Popup */
.bvotp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 72px 16px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.bvotp-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 39, 51, .45);
	animation: bvotpFade .2s ease;
}
.bvotp-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	animation: bvotpUp .22s ease;
}
.bvotp-modal .bvotp__card {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(7, 39, 51, .25);
}
.bvotp-modal .bvotp__title { padding-right: 36px; }
.bvotp-modal .bvotp-modal__close,
.bvotp-modal .bvotp-modal__close:hover,
.bvotp-modal .bvotp-modal__close:focus {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bvotp-navy);
	cursor: pointer;
}
.bvotp-modal .bvotp-modal__close:hover { background: var(--bvotp-sky); }
html.bvotp-lock,
html.bvotp-lock body { overflow: hidden; }
@keyframes bvotpFade { from { opacity: 0; } }
@keyframes bvotpUp { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 767px) {
	.bvotp__card { padding: 26px 20px 22px; }
	.bvotp .bvotp__title { font-size: 24px; }
	.bvotp__otp { gap: 7px; }
	.bvotp .bvotp__digit { height: 52px; font-size: 20px; }
	.bvotp-modal { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.bvotp *,
	.bvotp-modal__overlay,
	.bvotp-modal__dialog { animation: none !important; transition: none !important; }
}
