.kevira-auth-modal[hidden] { display: none !important; }
.kevira-auth-modal { position: fixed; z-index: 100001; inset: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); font-family: inherit; overscroll-behavior: contain; }
.kevira-auth-modal__backdrop { position: absolute; inset: 0; background: rgba(18, 22, 29, .58); backdrop-filter: blur(3px); }
.kevira-auth-modal__card { position: relative; box-sizing: border-box; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: min(12vh, 90px) auto 24px; padding: 32px; overflow: auto; border-radius: 22px; background: #fff; color: #252525; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); text-align: right; transition: height .22s ease; scrollbar-width: thin; }
.kevira-auth-modal__stage.is-entering { animation: kevira-auth-step-in .2s ease both; }
.kevira-auth-modal__close { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e1e5e8; border-radius: 10px; background: #f7f8f8; color: #5d646c; font: 21px/1 Arial, sans-serif; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.kevira-auth-modal__close:hover { border-color: #cbd4cf; background: #eef4f0; color: var(--wd-primary-color, #2f6f4e); }
.kevira-auth-modal__close:focus-visible { outline: 3px solid rgba(47, 111, 78, .2); outline-offset: 2px; }
.kevira-auth-modal__close:active { transform: scale(.96); }
.kevira-auth-modal__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; background: #f1f5f2; color: var(--wd-primary-color, #2f6f4e); }
.kevira-auth-modal__icon svg { fill: currentColor; }
.kevira-auth-modal h2 { margin: 0 0 8px; color: inherit; font-size: 23px; line-height: 1.5; text-align: center; }
.kevira-auth-modal__description { margin: 0 0 22px; color: #6b7280; line-height: 1.8; text-align: center; }
.kevira-auth-modal label { display: block; margin: 0 0 14px; color: #3f3f46; font-size: 14px; }
.kevira-auth-modal label[hidden] { display: none; }
.kevira-auth-modal input { box-sizing: border-box; width: 100%; height: 48px; margin-top: 7px; padding: 0 14px; border: 1px solid #d9dde3; border-radius: 12px; background: #fff; color: #202124; direction: ltr; text-align: left; font: inherit; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.kevira-auth-modal input:focus { border-color: var(--wd-primary-color, #2f6f4e); box-shadow: 0 0 0 3px rgba(47, 111, 78, .13); }
.kevira-auth-modal input:disabled { background: #f5f6f6; cursor: wait; }
.kevira-auth-modal label.is-invalid input,
.kevira-auth-modal label.is-invalid .kevira-auth-modal__otp input { border-color: #b42318; background: #fff9f8; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.kevira-auth-modal__field-error { display: block; margin-top: 7px; color: #b42318; font-size: 12.5px; font-weight: 500; line-height: 1.65; animation: kevira-auth-error-in .16s ease both; }
.kevira-auth-modal__field-error:empty { display: none; }
.kevira-auth-modal__otp { display: flex; gap: 9px; margin-top: 9px; direction: ltr; }
.kevira-auth-modal__otp input { flex: 1 1 0; aspect-ratio: 1; width: 100%; min-width: 0; height: auto; min-height: 46px; margin-top: 0; padding: 0; border-radius: 12px; text-align: center; caret-color: var(--wd-primary-color, #2f6f4e); font-size: 21px; font-weight: 750; }
.kevira-auth-modal__otp input.is-filled { border-color: #8fb09c; background: #f8fcf9; }
.kevira-auth-modal__otp input:focus { border-color: var(--wd-primary-color, #2f6f4e); background: #fbfefc; transform: translateY(-1px); }
.kevira-auth-modal__otp-actions { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.kevira-auth-modal__otp-actions[hidden],
.kevira-auth-modal__password-actions[hidden],
.kevira-auth-modal__secondary-actions[hidden] { display: none; }
.kevira-auth-modal__otp-actions button,
.kevira-auth-modal__password-actions button { padding: 5px 2px; border: 0; background: transparent; color: var(--wd-primary-color, #2f6f4e); font: inherit; font-size: 13px; cursor: pointer; }
.kevira-auth-modal__password-actions { margin: -4px 0 10px; }
.kevira-auth-modal button:focus-visible { outline: 3px solid rgba(47, 111, 78, .18); outline-offset: 2px; }
.kevira-auth-modal__otp-actions button:disabled { color: #8b929c; cursor: default; }
.kevira-auth-modal__submit,
.kevira-auth-modal__secondary,
.kevira-auth-modal__reset { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.kevira-auth-modal__submit { width: 100%; margin-top: 4px; border: 0; background: var(--wd-primary-color, #2f6f4e); color: #fff; }
.kevira-auth-modal__secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.kevira-auth-modal__secondary-actions button:only-child { grid-column: 1 / -1; }
.kevira-auth-modal__secondary,
.kevira-auth-modal__reset { width: 100%; padding: 8px 10px; border: 1px solid var(--wd-primary-color, #2f6f4e); background: #f5faf7; color: var(--wd-primary-color, #2f6f4e); font-size: 13px; }
.kevira-auth-modal__secondary[hidden],
.kevira-auth-modal__reset[hidden] { display: none; }
.kevira-auth-modal button:disabled { cursor: wait; opacity: .68; }
.kevira-auth-modal button.is-loading > span { visibility: hidden; }
.kevira-auth-modal button.is-loading::after { position: absolute; width: 17px; height: 17px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; content: ''; animation: kevira-auth-spin .65s linear infinite; }
.kevira-auth-modal__message { min-height: 0; margin: 7px 0 9px; color: #b42318; font-size: 13px; font-weight: 500; line-height: 1.75; }
.kevira-auth-modal__message:not(:empty) { min-height: 23px; animation: kevira-auth-error-in .16s ease both; }
.kevira-auth-toast { position: fixed; z-index: 3; right: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); min-width: 190px; padding: 12px 18px; border-radius: 12px; background: #183f2d; color: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .25); text-align: center; transform: translate(50%, 16px); opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.kevira-auth-toast.is-visible { transform: translate(50%, 0); opacity: 1; }
.kevira-auth-modal-open { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }
.kevira-auth-account-prompt { max-width: 520px; margin: 24px auto; padding: 28px; border: 1px solid #ececec; border-radius: 18px; text-align: center; }
.kevira-auth-modal-enabled.woocommerce-account #customer_login { display: none; }
.kevira-auth-modal-enabled .login-form-side,
.kevira-auth-modal-enabled .wd-login-side { display: none !important; pointer-events: none !important; }
.kevira-auth-email-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; padding: 12px 14px; border: 1px solid #ead5d2; border-radius: 12px; background: #fff9f8; }
.kevira-auth-email-status.is-verified { border-color: #cde5d7; background: #f4fbf7; color: #237247; }
.kevira-auth-email-status__label { font-size: 13px; font-weight: 700; }
.kevira-auth-email-status .button { border-radius: 9px; background: var(--wd-primary-color, #2f6f4e); color: #fff; }
.kevira-auth-email-modal .kevira-auth-modal__card { margin-top: min(18vh, 140px); }
@media (max-width: 480px) {
	.kevira-auth-modal input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']),
	.kevira-auth-modal select,
	.kevira-auth-modal textarea { font-size: 16px !important; }
	.kevira-auth-modal__card { width: min(100% - 20px, 420px); max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin-top: 10px; padding: 28px 20px 24px; border-radius: 18px; }
	.kevira-auth-modal__secondary-actions { grid-template-columns: 1fr; }
	.kevira-auth-modal__otp { gap: 6px; }
	.kevira-auth-modal__otp input { min-height: 42px; border-radius: 10px; font-size: 19px; }
	.kevira-auth-email-status { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
	.kevira-auth-modal__card { animation: kevira-auth-in .18s ease-out; }
}
@keyframes kevira-auth-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes kevira-auth-step-in { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes kevira-auth-error-in { from { opacity: 0; transform: translateY(-3px); } }
@keyframes kevira-auth-spin { to { transform: rotate(360deg); } }
