/* Account screens retain the shop's typography, controls and navigation. */
.ttt-account-page { box-sizing: border-box; width: 100%; max-width: 480px; margin: 64px auto 96px; padding: 0 20px; min-height: 300px; }
.ttt-account-page .container { width: auto; max-width: 100%; padding: 0; }
.ttt-account-page > br, .ttt-account-page main > br, .ttt-account-page section > br { display: none; }
.ttt-account-page .mobile__auth { padding: 0; }
.ttt-account-page h1, .ttt-account-page h2, .ttt-account-page h3 { font-family: PB, sans-serif; font-weight: normal; text-align: left; margin: 0 0 32px; font-size: 28px; line-height: 1.25; }
.ttt-account-page .auth__register { border-top: 1px solid #eee; padding-top: 32px; margin-top: 32px; }
.ttt-account-page .forgot-pass__content_mob { padding-top: 0; }
.ttt-account-page .row { margin-left: 0; margin-right: 0; }
.ttt-account-page [class*="col-"] { float: none; width: 100%; padding-left: 0; padding-right: 0; }
.ttt-account-page .input, .ttt-account-content .input { width: 100%; margin: 12px 0 24px; }
.ttt-account-page .input__field { font-size: 16px; }
.ttt-account-page .auth-btn__wrap { margin: 24px 0 36px; }
.ttt-account-page .btn, .ttt-account-content .btn { min-height: 44px; margin: 12px 0; }
.ttt-account-content p { margin: 0 0 24px; line-height: 1.6; }
.ttt-account-content hr { margin: 24px 0 16px; }
.ttt-form-error, [data-login-feedback], [id^="auth_errors"], .ttt-account-page .errortext {
    color: #b42318; line-height: 1.5; margin: 0 0 20px; overflow-wrap: anywhere;
}
[data-recovery-feedback]:not(:empty) { position: static; margin: 0 0 22px; line-height: 1.5; height: auto; }
[data-recovery-feedback]:empty { display: none; margin: 0; }
.ttt-captcha-retry { display: block; margin-top: 12px; text-decoration: underline; }
.auth[data-auth-view="recovery"] { height: auto !important; }
.auth[data-auth-view="recovery"] .auth__tabs,
.auth[data-auth-view="recovery"] .auth__tab-item,
.auth[data-auth-view="recovery"] .ch-auth__tab-item,
.auth[data-auth-view="recovery"] [id^="auth_errors"] { display: none !important; }
.auth[data-auth-view="recovery"] .forgot-pass__content { display: block !important; position: static; width: auto; height: auto; padding: 0; }
.auth[data-auth-view="recovery"] .auth__content { height: auto; }
.auth[data-auth-view="recovery"] > .auth__content { padding: 56px 40px 24px; }
.auth[data-auth-view="recovery"] .forgot-pass__content .auth__tab-item { display: block !important; }
.auth .g-recaptcha { margin: 16px 0 20px; }
.checkout .auth { max-height: calc(100dvh - 40px); overflow-y: auto; }
.ttt-mobile-account { margin: 12px -15px 0; background: #e2e2e2; font-size: 14px; line-height: 20px; }
.ttt-mobile-account a { color: #222; }
.ttt-mobile-account__row { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 44px; padding: 10px 15px; }
.ttt-mobile-account__icon { margin: 0; font-size: 20px; line-height: 1; }
.ttt-mobile-account__icon::before { margin: 0; }
.ttt-mobile-account__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ttt-mobile-account__links > * { max-width: 100%; overflow-wrap: anywhere; }
.ttt-mobile-account__email, .ttt-mobile-account .ttt-mobile-account__logout { color: #666; font-size: 13px; }
.ttt-account-page .input--haruki, .auth .input--haruki {
    display: flex; flex-direction: column-reverse; margin: 0 0 24px; padding: 0; overflow: visible;
}
.ttt-account-page .input--haruki::before, .ttt-account-page .input--haruki::after,
.auth .input--haruki::before, .auth .input--haruki::after,
.ttt-account-page .input__label--haruki::after, .auth .input__label--haruki::after { display: none; }
.ttt-account-page .input__label--haruki, .auth .input__label--haruki {
    position: static; width: 100%; padding: 0; height: auto; text-align: left; transform: none; pointer-events: auto;
}
.ttt-account-page .input__label-content--haruki, .auth .input__label-content--haruki {
    padding: 0; margin: 0; transform: none; font-size: 13px; line-height: 1.5;
}
.ttt-account-page .input__field--haruki:focus + .input__label--haruki .input__label-content--haruki,
.auth .input__field--haruki:focus + .input__label--haruki .input__label-content--haruki,
.ttt-account-page .input--filled .input__label-content--haruki,
.auth .input--filled .input__label-content--haruki { transform: none; font-size: 13px; }
.ttt-account-page .input__field--haruki, .auth .input__field--haruki {
    position: static; float: none; width: 100%; min-height: 40px; padding: 8px 0;
    border-bottom: 1px solid #b9b9b9; font-size: 16px; line-height: 1.5;
}
.ttt-account-page .input__field--haruki:focus, .auth .input__field--haruki:focus { border-bottom-color: #222; }
.ttt-account-page [aria-invalid="true"], .auth [aria-invalid="true"] { border-bottom-color: #b42318; }
.order__number { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid #ddd; padding: 0; cursor: pointer; }
.order__number:focus-visible { outline: 2px solid #222; outline-offset: 4px; }
.order_toggle__prices form { margin: 0; }
/* The fixed mobile header is outside document flow, including on tablets.
   mobile-header.js supplies its full height; the strip's scroll offset must
   not change the form's document position while the visitor types. */
@media (max-width: 991px) {
    .ttt-account-page { margin-top: calc(var(--mobile-header-height, 118px) + 32px); }
}
@media (max-width: 767px) {
    .ttt-account-page h1, .ttt-account-page h2, .ttt-account-page h3 { font-size: 24px; margin-bottom: 24px; }
    .ttt-account-page .btn { width: 100%; text-align: center; }
    .checkout .auth { position: fixed; top: 20px; left: 16px; right: 16px; bottom: auto; width: auto; margin: 0; z-index: 1001; }
    .auth .g-recaptcha { max-width: 100%; }
    .checkout .auth__content { padding: 56px 20px 24px; }
    .checkout .auth[data-auth-view="recovery"] > .auth__content { padding: 56px 20px 24px; }
    #ttt-account-orders .order_toggle { flex-direction: column; }
    #ttt-account-orders .order_toggle__tovars, #ttt-account-orders .order_toggle__prices { width: 100%; }
    #ttt-account-orders .order_toggle__prices { margin: 20px 0 0; }
}

/* Shared auth layout. Keep the shop's fonts, underline inputs and black buttons. */
.ttt-account-page .b_about_company { margin: 0; padding: 0; }
.ttt-account-page:has([data-account-content]) > h3,
.ttt-account-page .b_about_company:has([data-account-content]) > .row:first-child { display: none; }
.ttt-account-page h1, .ttt-account-page h2, .ttt-account-page h3 { margin: 0 0 24px; }
.ttt-account-page .ttt-auth-tabs { display: flex; gap: 32px; margin: 0 0 24px; }
.ttt-account-page .ttt-auth-tabs button { font: inherit; font-size: 18px; background: none; border: 0; border-bottom: 2px solid transparent; color: #666; padding: 0 0 8px; cursor: pointer; }
.ttt-account-page .ttt-auth-tabs [aria-selected="true"] { font-family: PB, sans-serif; color: #222; border-bottom-color: #222; }
.ttt-account-page [hidden] { display: none !important; }
.ttt-account-page[data-auth-enhanced] .auth__register { border: 0; padding: 0; margin: 0; }
.ttt-account-page .auth__login { padding: 0; }
.ttt-account-page .auth__register { background: none; }
.ttt-account-page .auth__form { margin-top: 0; }
.ttt-account-page .auth__input { margin: 0; }
.ttt-account-page .input { max-width: 100%; }
.ttt-account-page .auth-btn__wrap { display: flex; flex-direction: column; margin: 0; padding: 0; gap: 16px; }
.ttt-account-page .auth-btn__wrap::before, .ttt-account-page .auth-btn__wrap::after { display: none; }
.ttt-account-page .btn { box-sizing: border-box; display: block; width: 100%; min-height: 48px; margin: 0; text-align: center; white-space: normal; }
.ttt-account-page .btn:disabled, .ttt-account-page .btn[aria-disabled="true"] { opacity: .6; cursor: wait; }
.ttt-account-page .ttt-auth-forgot { text-align: right; margin: -16px 0 24px; }
.ttt-account-page .forgot__pass, .ttt-account-page .log-in { float: none; margin: 0; position: static; }
.ttt-account-page .ttt-auth-return { display: block; text-align: center; margin: 16px 0 0; text-decoration: underline; color: #555; }
.ttt-account-page .auth-btn__wrap .ttt-auth-return { margin: 0; }
.ttt-account-page .ttt-auth-description { font-size: 16px; line-height: 1.5; color: #666; margin: -8px 0 24px; }
.ttt-account-page .ttt-auth-result { text-align: center; }
.ttt-account-page .ttt-auth-result h2 { text-align: center; }
.ttt-account-page .ttt-auth-result:focus { outline: none; }
.ttt-account-page .ttt-password-input { position: relative; }
.ttt-account-page .ttt-password-input input { padding-right: 48px; }
.ttt-account-page .ttt-password-toggle { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 0; background: none; color: #666; cursor: pointer; }
.ttt-account-page .ttt-password-policy { color: #666; font-size: 13px; line-height: 1.5; margin: -16px 0 24px; }
/* Keep the registration hint with its field, using the existing helper type.
   The input keeps the login geometry; spacing belongs to the surrounding block. */
.auth [data-registration-form] .ttt-registration-password,
.ttt-account-page [data-registration-form] .ttt-registration-password { margin: 0 0 24px; }
.auth [data-registration-form] .ttt-registration-password > .input,
.ttt-account-page [data-registration-form] .ttt-registration-password > .input { margin-bottom: 0; }
.auth [data-registration-form] .ttt-password-policy,
.ttt-account-page [data-registration-form] .ttt-password-policy {
    margin: 8px 0 0; color: #666; font-family: PR, sans-serif; font-size: 13px; line-height: 1.5; font-weight: 400;
}
.ttt-account-page .ttt-form-error, .ttt-account-page [data-recovery-feedback]:not(:empty) { font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.ttt-account-page .input + .ttt-form-error { margin-top: -16px; }
.ttt-account-page .g-recaptcha { margin: 0 0 24px; transform: none; }
.ttt-account-page button:focus-visible, .ttt-account-page a:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.ttt-account-page input:focus { outline: none; box-shadow: none; }
@media (max-width: 767px) {
    .ttt-account-page h1, .ttt-account-page h2, .ttt-account-page h3 { font-size: 24px; }
}
/* Keep the normal 304px CAPTCHA fully visible on 320px screens. */
@media (max-width: 343px) {
    .ttt-account-page { padding-left: 8px; padding-right: 8px; }
}

/* Account identity uses the same type and spacing as the existing auth screens. */
.ttt-account-identity { text-align: center; margin-bottom: 48px; }
.ttt-account-identity h1 { font-family: PB, sans-serif; font-weight: normal; font-size: 28px; line-height: 1.25; margin: 0 0 12px; text-align: center; }
.ttt-account-email { color: #666; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; margin: 0 0 16px; }
.ttt-account-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.ttt-account-actions a, .ttt-account-back { color: #222; }
.ttt-account-actions a:focus-visible, .ttt-account-back:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.ttt-account-back { display: inline-block; margin-bottom: 24px; }
.ttt-profile { margin: 64px auto 96px; }
.ttt-profile .ttt-orders-heading { text-align: left; font-size: 24px; line-height: 1.25; margin-bottom: 24px; }
.ttt-profile .order__table { margin-top: 0; }
.ttt-profile .profule-content__item { padding-top: 0; }
.ttt-profile .order__empty { position: static; padding: 32px 0; }
.ttt-account-notice { margin: 0 0 24px; color: #222; }
.ttt-password-captcha img { width: 180px; max-width: 100%; height: auto; margin-bottom: 16px; }
.ttt-password-page .ttt-account-identity { margin-bottom: 32px; }
@media (max-width: 991px) {
    .ttt-profile { margin-top: calc(var(--mobile-header-height, 118px) + 32px); }
}
@media (max-width: 767px) {
    .ttt-account-identity h1 { font-size: 24px; }
    .ttt-profile { padding-left: 20px; padding-right: 20px; }
}
