body.wpotp-auth-required form.checkout.woocommerce-checkout {
	display: none !important;
}

body.wpotp-account-auth-required #customer_login {
	display: none !important;
}

.wpotp-auth-gate {
	--wpotp-brand: #e91e63;
	--wpotp-brand-action: #c2185b;
	--wpotp-brand-text: #9f123f;
	--wpotp-brand-soft: #fff3f7;
	max-width: 560px;
	margin: clamp(20px, 5vw, 48px) auto;
	padding: 0 12px;
	color: #2d2026;
}

.wpotp-auth-card {
	position: relative;
	padding: clamp(22px, 5vw, 36px);
	border: 1px solid #eadde3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(68, 35, 49, 0.08);
}

.wpotp-close-button {
	display: none;
	position: absolute;
	top: 8px;
	right: 8px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5e4450;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.wpotp-close-button:hover {
	background: #f8f5f6;
	color: #291c22;
}

.wpotp-auth-card h2,
.wpotp-auth-card h3 {
	margin: 0 0 10px;
	color: #291c22;
	line-height: 1.25;
}

.wpotp-auth-card h2 {
	font-size: clamp(26px, 6vw, 34px);
}

.wpotp-auth-card h3 {
	font-size: 21px;
}

.wpotp-auth-card p {
	margin: 0 0 18px;
	color: #6c5a62;
}

.wpotp-auth-eyebrow {
	color: #6c5a62;
	font-weight: 600;
}

.wpotp-verified-field .description {
	color: #376a48;
	font-weight: 600;
}

.wpotp-auth-eyebrow {
	margin-bottom: 8px !important;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wpotp-auth-methods {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 20px 0;
}

.wpotp-auth-methods button {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #dfcbd4;
	border-radius: 10px;
	background: #fff;
	color: #5e4450;
	font-weight: 600;
	cursor: pointer;
}

.wpotp-auth-methods button.is-active {
	border-color: var(--wpotp-brand);
	background: var(--wpotp-brand-soft);
	color: var(--wpotp-brand-text);
}

.wpotp-auth-stage label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
}

.wpotp-auth-stage input {
	width: 100%;
	min-height: 50px;
	margin: 0 0 14px;
	padding: 11px 14px;
	border: 1px solid #d8c7cf;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	font-size: 16px;
}

/* Keep direct form inputs separated from their action button when themes reset input margins. */
.wpotp-auth-gate .wpotp-auth-stage form > input {
	margin-bottom: 14px !important;
}

.wpotp-auth-stage input:focus,
.wpotp-auth-methods button:focus-visible,
.wpotp-auth-card button:focus-visible {
	border-color: var(--wpotp-brand);
	outline: 3px solid rgba(233, 30, 99, 0.2);
	outline-offset: 2px;
}

.wpotp-phone-control {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	margin-bottom: 14px;
}

.wpotp-phone-control span {
	display: flex;
	align-items: center;
	padding: 0 13px;
	border: 1px solid #d8c7cf;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: #f8f5f6;
	font-weight: 600;
}

.wpotp-phone-control input {
	margin: 0;
	border-radius: 0 10px 10px 0;
}

.wpotp-primary-button {
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--wpotp-brand-action);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.wpotp-primary-button:hover {
	background: #a91450;
}

.wpotp-primary-button:disabled,
.wpotp-auth-card button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.wpotp-auth-gate.is-busy button:disabled {
	cursor: wait;
}

.wpotp-code-input {
	text-align: center;
	font-size: 26px !important;
	font-weight: 700;
	letter-spacing: 0.5em;
	font-variant-numeric: tabular-nums;
}

.wpotp-back-button,
.wpotp-resend-button {
	padding: 7px 0;
	border: 0;
	background: transparent;
	color: var(--wpotp-brand-text);
	font-weight: 600;
	cursor: pointer;
}

.wpotp-back-button {
	margin-bottom: 12px;
}

.wpotp-resend-button {
	margin-top: 12px;
}

.wpotp-countdown {
	margin-left: 7px;
	color: #75656c;
	font-size: 13px;
}

.wpotp-feedback {
	min-height: 22px;
	margin: 16px 0 0 !important;
	color: #376a48 !important;
	font-size: 14px;
}

.wpotp-feedback.is-error {
	color: #a12131 !important;
}

.wpotp-auth-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wpotp-verified-field input[readonly] {
	background-color: #f8f5f6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.wpotp-auth-gate {
		margin: 16px auto;
		padding: 0 4px;
	}

	.wpotp-auth-card {
		border-radius: 14px;
	}
}

@media (max-width: 767px) {
	.wpotp-close-button {
		display: flex;
	}

	body.wpotp-account-auth-required,
	body.wpotp-auth-required {
		overflow: hidden;
	}

	body.wpotp-account-auth-required .woocommerce-breadcrumb,
	body.wpotp-account-auth-required .woocommerce-breadcrumbs,
	body.wpotp-account-auth-required .breadcrumb,
	body.wpotp-account-auth-required .breadcrumbs,
	body.wpotp-account-auth-required .woocommerce-page-header,
	body.wpotp-account-auth-required .page-header,
	body.wpotp-account-auth-required .entry-header {
		display: none !important;
	}

	body.wpotp-account-auth-required .wpotp-auth-gate,
	body.wpotp-auth-required .wpotp-auth-gate {
		position: fixed;
		inset: 0;
		z-index: 99999;
		display: flex;
		align-items: center;
		justify-content: center;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 16px;
		background: rgba(255, 255, 255, 0.78);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	body.wpotp-account-auth-required .wpotp-auth-card,
	body.wpotp-auth-required .wpotp-auth-card {
		width: min(100%, 480px);
		max-height: calc(100dvh - 32px);
		overflow-y: auto;
		padding: 24px 20px;
		border-color: rgba(234, 221, 227, 0.82);
		background: rgba(255, 255, 255, 0.94);
		box-shadow: 0 18px 54px rgba(68, 35, 49, 0.16);
	}

	body.wpotp-account-auth-required .wpotp-auth-eyebrow,
	body.wpotp-account-auth-required .wpotp-auth-description {
		display: none;
	}

	body.wpotp-account-auth-required .wpotp-auth-card > h2 {
		margin: 0 40px 18px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpotp-auth-card *,
	.wpotp-auth-card *::before,
	.wpotp-auth-card *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
