/* ON7 — modal de login/cadastro. Escopo isolado para não afetar checkout ou conta. */
#on7-auth-modal,
#on7-auth-modal * { box-sizing: border-box; }

#on7-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Outfit, Arial, sans-serif;
}

#on7-auth-modal.is-open { display: flex; }
#on7-auth-modal__backdrop,
.on7-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 48, .68);
    backdrop-filter: blur(5px);
}

.on7-auth-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: 28px 32px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    color: #17243d;
    box-shadow: 0 24px 80px rgba(10, 22, 43, .3);
    scrollbar-width: thin;
}

.on7-auth-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f4f6fa;
    color: #53627a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.on7-auth-modal__close:hover { background: #fff0e4; color: #b95100; }
.on7-auth-modal__intro { text-align: center; margin: 0 auto 20px; max-width: 510px; }
.on7-auth-modal__eyebrow { color: #f58220; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.on7-auth-modal__intro h2 { margin: 6px 0 5px; color: #17243d; font-size: 27px; line-height: 1.2; font-weight: 800; }
.on7-auth-modal__intro p,
.on7-auth-modal__hint { margin: 0; color: #6c7a90; font-size: 14px; line-height: 1.5; }

.on7-auth-modal__tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 12px; background: #f4f6fa; }
.on7-auth-modal__tabs button { flex: 1; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 9px; background: transparent; color: #64738b; font: 700 14px Outfit, Arial, sans-serif; cursor: pointer; }
.on7-auth-modal__tabs button[aria-selected="true"] { background: #fff; color: #b95100; box-shadow: 0 2px 8px rgba(23, 36, 61, .08); }
.on7-auth-modal__panel h3 { margin: 0 0 4px; color: #17243d; font-size: 21px; line-height: 1.25; font-weight: 800; }
.on7-auth-modal__form { margin-top: 16px; }
.on7-auth-modal__form > label,
.on7-auth-modal-field label { display: block; margin: 13px 0 6px; color: #243650; font-size: 13px; line-height: 1.25; font-weight: 700; }
.on7-auth-modal__form input:not([type="checkbox"]):not([type="hidden"]),
.on7-auth-modal__form select { width: 100%; height: 46px; min-width: 0; padding: 10px 12px; border: 1px solid #d6dfeb; border-radius: 9px; background: #fff; color: #21324d; font: 15px Outfit, Arial, sans-serif; }
.on7-auth-modal__form input::placeholder { color: #9aa6b8; }
.on7-auth-modal__form input:focus,
.on7-auth-modal__form select:focus { border-color: #f58220; outline: 3px solid rgba(245, 130, 32, .16); }
.on7-auth-modal__password { position: relative; }
.on7-auth-modal__password input { padding-right: 78px !important; }
.on7-auth-modal__password button { position: absolute; top: 3px; right: 5px; min-height: 40px; padding: 7px 8px; border: 0; background: transparent; color: #64738b; font: 700 12px Outfit, Arial, sans-serif; cursor: pointer; }
.on7-auth-modal__form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 18px; font-size: 12px; }
.on7-auth-modal__form-row a,
.on7-auth-modal__switch button,
.on7-auth-modal__consent a { color: #b95100; text-decoration: none; font-weight: 700; }
.on7-auth-modal__form-row a:hover,
.on7-auth-modal__switch button:hover,
.on7-auth-modal__consent a:hover { text-decoration: underline; }
.on7-auth-modal__remember { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; color: #687891 !important; font-size: 12px !important; font-weight: 500 !important; }
.on7-auth-modal__remember input,
.on7-auth-modal__consent input { width: 17px !important; height: 17px !important; flex: 0 0 17px; accent-color: #f58220; }
.on7-auth-modal__submit { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 10px; background: #f58220; color: #fff; font: 800 15px Outfit, Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 18px rgba(245, 130, 32, .24); }
.on7-auth-modal__submit:hover { background: #dd680d; }
.on7-auth-modal__switch { margin: 18px 0 0; color: #6c7a90; text-align: center; font-size: 13px; }
.on7-auth-modal__switch button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.on7-auth-modal__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.on7-auth-modal-field--wide { grid-column: 1 / -1; }
.on7-auth-modal__fields h4 { margin: 19px 0 0; padding-top: 17px; border-top: 1px solid #e4e9f0; color: #6c7a90; font-size: 13px; line-height: 1.25; letter-spacing: .02em; }
.on7-auth-modal__password-help { display: block; margin-top: 7px; color: #7b8799; font-size: 11px; }
.on7-auth-modal__cep-status,
.on7-auth-modal__password-help[data-on7-password-match-message] { display: block; min-height: 16px; margin-top: 6px; color: #7b8799; font-size: 11px; line-height: 1.4; }
.on7-auth-modal__cep-status[data-state="loading"] { color: #64738b; }
.on7-auth-modal__cep-status[data-state="success"],
.on7-auth-modal__password-help[data-state="success"] { color: #16845a; }
.on7-auth-modal__cep-status[data-state="error"],
.on7-auth-modal__password-help[data-state="error"] { color: #c2410c; }
.on7-auth-modal__consent { display: flex !important; align-items: flex-start; gap: 8px; margin: 17px 0 !important; color: #697890 !important; font-size: 11px !important; line-height: 1.55 !important; font-weight: 500 !important; }
.on7-auth-modal__consent span { flex: 1; }
.on7-auth-modal__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.on7-auth-modal__panel[hidden] { display: none !important; }
#on7-auth-modal :focus-visible { outline: 3px solid rgba(245, 130, 32, .45); outline-offset: 2px; }
body.on7-auth-modal-open { overflow: hidden; }

@media (max-width: 640px) {
    #on7-auth-modal { align-items: flex-start; padding: 12px; }
    .on7-auth-modal__card { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: 0 auto; padding: 24px 18px 20px; border-radius: 18px; }
    .on7-auth-modal__close { top: 8px; right: 8px; width: 38px; height: 38px; font-size: 25px; }
    .on7-auth-modal__intro h2 { font-size: 23px; }
    .on7-auth-modal__intro p { font-size: 13px; }
    .on7-auth-modal__fields { grid-template-columns: 1fr; }
    .on7-auth-modal-field--wide { grid-column: auto; }
    .on7-auth-modal__fields h4 { grid-column: auto; }
}
