/* Shared public authentication only; never style Woo checkout or account data. */
dialog.tms-ea-login:not([open]), .tms-ea-login [hidden] { display: none !important; }
dialog.tms-ea-login {
	box-sizing: border-box; width: min(540px, calc(100% - 40px)); max-width: 540px;
	max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
	margin: auto; padding: 0; border: 0; border-radius: 8px; overflow: auto;
	background: #fff; color: #111; box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
	font: 16px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0;
}
.tms-ea-login::backdrop { background: rgb(0 0 0 / 70%); }
.tms-ea-login *, .tms-ea-login-entry * { box-sizing: border-box; }
.tms-ea-login .tms-ea-login__header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 18px 64px; background: #000; color: #fff; }
.tms-ea-login__header img { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; }
.tms-ea-login button { cursor: pointer; font: inherit; }
.tms-ea-login .tms-ea-login__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid #555; border-radius: 50%; background: #171717; color: #fff; font-size: 28px; line-height: 1; }
.tms-ea-login .tms-ea-login__body { padding: 24px 30px; }
.tms-ea-login h2 { margin: 0 0 22px; padding: 0; color: #111; font-size: 26px; line-height: 1.25; }
.tms-ea-login form { margin: 0; }
.tms-ea-login label { display: block; font-size: 16px; font-weight: 600; color: #222; }
.tms-ea-login input:not([type="hidden"]):not([type="checkbox"]) { display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; border: 1px solid #acb5b0; border-radius: 4px; background: #fff; color: #111; padding: 10px 12px; font: inherit; margin: 6px 0 12px; }
.tms-ea-login .tms-ea-login__password-label { display: flex; align-items: center; justify-content: space-between; }
.tms-ea-login [data-password-toggle] { min-width: 52px; min-height: 44px; border: 0; padding: 6px; background: transparent; color: #1B8741; font-weight: 600; }
.tms-ea-login a { color: #1B8741; text-decoration: underline; }
.tms-ea-login .tms-ea-login__forgot { text-align: right; padding: 0; margin: 0 0 12px; }
.tms-ea-login .tms-ea-login__forgot a { display: inline-flex; align-items: center; min-height: 44px; }
.tms-ea-login .tms-ea-login__remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 16px; font-weight: 400; cursor: pointer; }
.tms-ea-login input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #1B8741; }
.tms-ea-login .tms-ea-login__button, .tms-ea-login-entry .tms-ea-login-entry__button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #1B8741; border-radius: 6px; background: #1B8741; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1.4; transition: background-color .2s, transform .2s; }
.tms-ea-login button::after, .tms-ea-login a::after { display: none !important; content: none !important; }
.tms-ea-login .tms-ea-login__button--secondary { background: #fff; color: #1B8741; }
.tms-ea-login .tms-ea-login__signup { border-top: 1px solid #e1e7e3; margin-top: 24px; padding-top: 20px; }
.tms-ea-login .tms-ea-login__signup p { margin: 0 0 12px; padding: 0; text-align: center; color: #4b5563; }
.tms-ea-login .tms-ea-login__error { margin: 0 0 16px; padding: 12px; border-left: 3px solid #a62424; background: #fff0f0; color: #8b1b1b; overflow-wrap: anywhere; }
.tms-ea-login [data-login-continue] { margin-top: 16px; }
.tms-ea-login :focus-visible { outline: 2px solid #1B8741; outline-offset: 3px; }
.tms-ea-login .tms-ea-login__close:focus-visible { outline-color: #fff; }
.tms-ea-login button:disabled { opacity: .6; cursor: wait; }
.tms-ea-login-entry { max-width: 540px; margin: 32px auto; padding: 24px; color: #111; }
.tms-ea-login-entry > a { margin-top: 16px; display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) and (pointer: fine) {
	.tms-ea-login .tms-ea-login__button:hover:not(:disabled), .tms-ea-login-entry .tms-ea-login-entry__button:hover { background: #239B4D; border-color: #239B4D; color: #fff; transform: translateY(-2px); }
}
@media (max-width: 430px) {
	.tms-ea-login .tms-ea-login__header { min-height: 84px; padding: 16px 54px; }
	.tms-ea-login__header img { width: 190px; }
	.tms-ea-login .tms-ea-login__close { right: 6px; top: 6px; }
	.tms-ea-login .tms-ea-login__body { padding: 20px; }
	.tms-ea-login h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tms-ea-login .tms-ea-login__button { transition: none; transform: none !important; } }
