.mcssd-otp-login-button,
.mcssd-otp-header-button,
.mcssd-otp-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--mcssd-otp-primary, #2271b1);
	border-radius: 6px;
	background: var(--mcssd-otp-primary, #2271b1);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.mcssd-otp-login-button:hover,
.mcssd-otp-login-button:focus,
.mcssd-otp-header-button:hover,
.mcssd-otp-header-button:focus,
.mcssd-otp-popup__button:hover,
.mcssd-otp-popup__button:focus {
	filter: brightness(0.92);
	color: #ffffff;
}

body.mcssd-otp-mode-otp_only.woocommerce-checkout .woocommerce-form-login-toggle,
body.mcssd-otp-mode-otp_only.woocommerce-checkout form.woocommerce-form-login,
body.mcssd-otp-mode-otp_only.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.mcssd-otp-mode-otp_only.woocommerce-account:not(.logged-in) .woocommerce-form-register,
body.mcssd-otp-mode-otp_only.woocommerce-account:not(.logged-in) .u-column1,
body.mcssd-otp-mode-otp_only.woocommerce-account:not(.logged-in) .u-column2,
body.login.mcssd-otp-mode-otp_only #loginform,
body.login.mcssd-otp-mode-otp_only #registerform {
	display: none !important;
}

body.login #login {
	width: min(460px, calc(100% - 32px));
	padding-top: 5vh;
}

body.login .mcssd-otp-login-panel {
	margin-top: 18px;
	background: #11161c;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.mcssd-otp-login-panel,
.mcssd-otp-account-card {
	margin: 0 0 28px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
	color: #ffffff;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.mcssd-otp-login-panel__head {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
}

.mcssd-otp-login-panel__head strong {
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

.mcssd-otp-login-panel__head span {
	color: rgba(255, 255, 255, 0.74);
	font-size: 15px;
	line-height: 1.45;
}

.mcssd-otp-login-panel__grid,
.mcssd-otp-login-panel__profile,
.mcssd-otp-popup__profile {
	display: grid;
	gap: 12px;
}

.mcssd-otp-login-panel__profile[hidden],
.mcssd-otp-popup__profile[hidden] {
	display: none;
}

.mcssd-otp-login-panel label {
	display: grid;
	gap: 7px;
	margin: 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
}

.mcssd-otp-login-panel__input {
	width: 100%;
	min-height: 58px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 18px;
	background: #05070d;
	color: #ffffff;
	font-size: 17px;
	line-height: 1.4;
}

.mcssd-otp-login-panel__input:focus {
	border-color: #ff7a18;
	outline: 2px solid rgba(255, 122, 24, 0.22);
	outline-offset: 1px;
}

.mcssd-otp-login-panel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 12px 18px;
	border: 0;
	border-radius: 18px;
	background: #ff7a18;
	color: #ffffff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(255, 122, 24, 0.22);
}

.mcssd-otp-login-panel__button--dark {
	background: #1d2327;
	box-shadow: none;
}

.mcssd-otp-login-panel__button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.mcssd-otp-login-panel__message {
	display: none;
	padding: 13px 15px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.mcssd-otp-login-panel__message--success,
.mcssd-otp-login-panel__message--error,
.mcssd-otp-login-panel__message--info {
	display: block;
}

.mcssd-otp-login-panel__message--success {
	border: 1px solid #00a32a;
	background: rgba(0, 163, 42, 0.14);
	color: #7cff9b;
}

.mcssd-otp-login-panel__message--error {
	border: 1px solid rgba(255, 120, 120, 0.45);
	background: rgba(214, 54, 56, 0.16);
	color: #ffd8d8;
}

.mcssd-otp-login-panel__message--info {
	border: 1px solid rgba(255, 122, 24, 0.45);
	background: rgba(255, 122, 24, 0.13);
	color: #ffd6b8;
}

.mcssd-otp-checkout-note {
	display: grid;
	gap: 6px;
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 122, 24, 0.35);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(255, 255, 255, 0.04));
	color: #ffffff;
}

.mcssd-otp-checkout-note strong {
	font-size: 18px;
	font-weight: 900;
	line-height: 1.25;
}

.mcssd-otp-checkout-note span {
	color: rgba(255, 255, 255, 0.74);
	font-size: 14px;
	line-height: 1.45;
}

.mcssd-otp-inline {
	display: grid;
	grid-template-columns: minmax(180px, auto) minmax(120px, 1fr) minmax(160px, auto);
	gap: 12px;
	margin-top: 12px;
}

.mcssd-otp-inline__button,
.mcssd-otp-inline__input {
	min-height: 54px;
	border-radius: 18px;
	font-size: 16px;
	font-weight: 900;
}

.mcssd-otp-inline__button {
	border: 0;
	padding: 12px 18px;
	background: #ff7a18;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(255, 122, 24, 0.2);
}

.mcssd-otp-inline__button--dark {
	background: #1d2327;
	box-shadow: none;
}

.mcssd-otp-inline__button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.mcssd-otp-inline__input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: #05070d;
	color: #ffffff;
}

.mcssd-otp-inline__message {
	display: none;
	grid-column: 1 / -1;
	padding: 13px 15px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
}

.mcssd-otp-inline__message--success,
.mcssd-otp-inline__message--error,
.mcssd-otp-inline__message--info {
	display: block;
}

.mcssd-otp-inline__message--success {
	border: 1px solid #00a32a;
	background: rgba(0, 163, 42, 0.14);
	color: #7cff9b;
}

.mcssd-otp-inline__message--error {
	border: 1px solid rgba(255, 120, 120, 0.45);
	background: rgba(214, 54, 56, 0.16);
	color: #ffd8d8;
}

.mcssd-otp-inline__message--info {
	border: 1px solid rgba(255, 122, 24, 0.45);
	background: rgba(255, 122, 24, 0.13);
	color: #ffd6b8;
}

.mcssd-otp-verified-badge {
	margin-top: 10px;
	padding: 11px 14px;
	border-radius: 14px;
	background: rgba(0, 163, 42, 0.14);
	color: #7cff9b;
	font-weight: 900;
}

@media (max-width: 720px) {
	.mcssd-otp-inline {
		grid-template-columns: 1fr;
	}
}

.mcssd-otp-account-card {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
}

.mcssd-otp-account-card strong {
	font-size: 18px;
	font-weight: 900;
}

.mcssd-otp-account-card a {
	color: #ffad6c;
	font-weight: 900;
}

.mcssd-otp-header-button {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	width: 56px;
	height: 56px;
	min-height: 56px;
	padding: 0;
	border-radius: 50%;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.mcssd-otp-header-button::before {
	content: "\260E";
	display: block;
	font-size: 25px;
	line-height: 1;
}

.mcssd-otp-header-button span {
	position: absolute;
	right: 66px;
	top: 50%;
	width: max-content;
	max-width: 220px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #1d2327;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) translateX(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.mcssd-otp-header-button:hover span,
.mcssd-otp-header-button:focus span {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.mcssd-otp-popup[hidden] {
	display: none;
}

.mcssd-otp-popup,
.mcssd-otp-popup * {
	box-sizing: border-box;
}

.mcssd-otp-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	color: var(--mcssd-otp-text, #1d2327);
}

.mcssd-otp-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
}

.mcssd-otp-popup__dialog {
	position: relative;
	width: min(92vw, 440px);
	margin: 8vh auto;
	padding: 24px;
	border-radius: 8px;
	background: var(--mcssd-otp-bg, #ffffff);
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.mcssd-otp-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.mcssd-otp-popup__dialog h2 {
	margin: 0 36px 18px 0;
	font-size: 24px;
	line-height: 1.25;
	color: inherit;
}

.mcssd-otp-popup__field {
	margin-bottom: 14px;
}

.mcssd-otp-popup__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.mcssd-otp-popup__input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	background: #ffffff;
	color: #1d2327;
	font-size: 16px;
	line-height: 1.4;
}

.mcssd-otp-popup__input:focus {
	border-color: var(--mcssd-otp-primary, #2271b1);
	outline: 2px solid color-mix(in srgb, var(--mcssd-otp-primary, #2271b1) 24%, transparent);
	outline-offset: 1px;
}

.mcssd-otp-popup__button {
	width: 100%;
	margin-bottom: 16px;
}

.mcssd-otp-popup__button--dark {
	border-color: #1d2327;
	background: #1d2327;
}

.mcssd-otp-popup__message {
	display: none;
	padding: 12px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.45;
}

.mcssd-otp-popup__message--success,
.mcssd-otp-popup__message--error,
.mcssd-otp-popup__message--info {
	display: block;
}

.mcssd-otp-popup__message--success {
	border: 1px solid #00a32a;
	background: #edfaef;
	color: #0a4b1b;
}

.mcssd-otp-popup__message--error {
	border: 1px solid #d63638;
	background: #fcf0f1;
	color: #8a2424;
}

.mcssd-otp-popup__message--info {
	border: 1px solid #72aee6;
	background: #f0f6fc;
	color: #0a4b78;
}

.mcssd-otp-checkout-gate {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #ffffff;
}

.mcssd-otp-checkout-inline {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: inherit;
}

.mcssd-otp-checkout-inline__content {
	display: grid;
	gap: 4px;
}

.mcssd-otp-checkout-inline__content strong {
	font-size: 18px;
	line-height: 1.25;
}

.mcssd-otp-checkout-inline__content span {
	color: rgba(255, 255, 255, 0.74);
	font-size: 14px;
	line-height: 1.45;
}

.mcssd-otp-checkout-inline .mcssd-otp-login-button {
	flex: 0 0 auto;
}

.mcssd-otp-inline {
	display: grid;
	gap: 10px;
	margin-top: 12px;
	width: 100%;
}

.mcssd-otp-inline__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 62px;
	padding: 14px 22px;
	border: 0;
	border-radius: 18px;
	background: var(--mcssd-otp-primary, #ff7a18);
	color: #ffffff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(255, 122, 24, 0.18);
}

.mcssd-otp-inline__button--dark {
	background: #1d2327;
	box-shadow: none;
}

.mcssd-otp-inline__button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.mcssd-otp-inline__input {
	width: 100%;
	min-height: 68px;
	padding: 18px 28px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 22px;
	background: #05070d;
	color: #ffffff;
	font-size: 22px;
	line-height: 1.4;
}

.mcssd-otp-inline__input:focus {
	border-color: var(--mcssd-otp-primary, #ff7a18);
	outline: 2px solid rgba(255, 122, 24, 0.22);
	outline-offset: 1px;
}

.mcssd-otp-inline__message {
	display: none;
	width: 100%;
	padding: 14px 18px;
	border-radius: 14px;
	font-size: 17px;
	line-height: 1.45;
}

.mcssd-otp-inline__message--success,
.mcssd-otp-inline__message--error,
.mcssd-otp-inline__message--info {
	display: block;
}

.mcssd-otp-inline__message--success {
	border: 1px solid #00a32a;
	background: #edfaef;
	color: #0a4b1b;
}

.mcssd-otp-inline__message--error {
	border: 1px solid #d63638;
	background: #fcf0f1;
	color: #8a2424;
}

.mcssd-otp-inline__message--info {
	border: 1px solid #72aee6;
	background: #f0f6fc;
	color: #0a4b78;
}

.mcssd-otp-verified-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-top: 12px;
	padding: 10px 14px;
	border: 1px solid #00a32a;
	border-radius: 999px;
	background: rgba(0, 163, 42, 0.14);
	color: #7cff9b;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.mcssd-otp-verified-badge::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border-radius: 50%;
	background: #00a32a;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
}

body.woocommerce-checkout.mcssd-otp-customer-verified #billing_email_field,
body.woocommerce-checkout.mcssd-otp-customer-verified #billing_phone_field {
	display: none !important;
}

body.woocommerce-checkout.mcssd-otp-customer-verified.mcssd-otp-name-present #billing_first_name_field {
	display: none !important;
}

body.woocommerce-checkout.mcssd-otp-customer-verified .woocommerce-billing-fields::after {
	content: "WhatsApp login verified. Continue to payment.";
	display: block;
	margin-top: 10px;
	padding: 14px 18px;
	border: 1px solid rgba(0, 163, 42, 0.45);
	border-radius: 16px;
	background: rgba(0, 163, 42, 0.14);
	color: #7cff9b;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.mcssd-otp-checkout-gate p {
	margin: 0 0 12px;
}

.mcssd-otp-popup-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.mcssd-otp-popup__dialog {
		margin: 4vh auto;
		padding: 20px;
	}

	.mcssd-otp-checkout-inline {
		align-items: stretch;
		flex-direction: column;
	}
}
