/* Кабинет покупателя (12.10.2026): вход, регистрация, восстановление пароля, кабинет. Классы ac-*. */
.ac { --ac-brand: #B74923; --ac-brand-d: #9e3d1c; --ac-ink: #222; --ac-muted: #666; --ac-line: #e3e3e3; --ac-bg: #f2f2f2; --ac-err: #d7322b; --ac-ok: #1e7b34;
    background: var(--ac-bg); padding: 28px 0 56px; color: var(--ac-ink); }
.ac * { box-sizing: border-box; }
.ac-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ac-auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 360px); gap: 24px; justify-content: center; align-items: start; }
.ac-card { background: #fff; border: 1px solid var(--ac-line); border-radius: 5px; padding: 28px; }
.ac-card h1 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
.ac-sub { font-size: 15px; color: var(--ac-muted); margin: 0 0 20px; line-height: 1.45; }
.ac-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.ac-f label { font-size: 14px; font-weight: 500; }
.ac-f label i { color: var(--ac-err); font-style: normal; }
.ac-f input, .ac-f textarea, .ac-f select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 5px; font: inherit; font-size: 16px; color: var(--ac-ink); background: #fff; }
.ac-f textarea { min-height: 72px; resize: vertical; }
.ac-f input:focus, .ac-f textarea:focus { outline: 2px solid var(--ac-brand); outline-offset: 0; border-color: var(--ac-brand); }
.ac-f.is-err input, .ac-f.is-err textarea { border-color: var(--ac-err); }
.ac-f .ac-e { font-size: 13px; color: var(--ac-err); }
.ac-f .ac-h { font-size: 13px; color: var(--ac-muted); }
.ac-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ac-pass { position: relative; }
.ac-pass input { padding-right: 84px; }
.ac-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 10px; border: 0; background: none; color: var(--ac-brand); font: inherit; font-size: 14px; cursor: pointer; }
.ac-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 4px 0 16px; }
.ac-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--ac-brand); }
.ac-check a { color: var(--ac-brand); }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 5px; background: var(--ac-brand); color: #fff !important;
    font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ac-btn--full { width: 100%; }
.ac-btn--line { background: #fff; color: var(--ac-brand) !important; border: 1px solid var(--ac-brand); }
.ac-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ac-btn--danger { background: #fff; color: var(--ac-err) !important; border: 1px solid #f0c2bf; }
.ac-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; font-size: 15px; }
.ac-links a { color: var(--ac-brand); }
.ac-msg { padding: 12px 14px; border-radius: 5px; font-size: 15px; line-height: 1.45; margin: 0 0 16px; }
.ac-msg--err { background: #fdecea; color: #8f1d17; }
.ac-msg--ok { background: #e8f5ec; color: #17602a; }
.ac-why { padding: 24px; }
.ac-why h2 { font-size: 18px; margin: 0 0 14px; font-weight: 600; }
.ac-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ac-why li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; line-height: 1.4; color: #333; }
.ac-why svg { color: var(--ac-brand); }
.ac-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* кабинет */
.ac-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.ac-head h1 { font-size: 28px; font-weight: 600; margin: 0; }
.ac-head p { margin: 4px 0 0; color: var(--ac-muted); font-size: 15px; }
.ac-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.ac-nav { background: #fff; border: 1px solid var(--ac-line); border-radius: 5px; padding: 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
.ac-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 5px; color: var(--ac-ink); text-decoration: none; font-size: 15px; }
.ac-nav a[aria-current="page"] { background: #fbeee9; color: var(--ac-brand); font-weight: 600; }
.ac-nav a svg { flex: none; }
.ac-nav .ac-nav__out { color: var(--ac-muted); border-top: 1px solid var(--ac-line); border-radius: 0 0 5px 5px; margin-top: 4px; }
.ac-panel { background: #fff; border: 1px solid var(--ac-line); border-radius: 5px; padding: 24px; min-width: 0; }
.ac-panel h2 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.ac-form { max-width: 560px; }
.ac-empty { text-align: center; padding: 28px 12px; color: var(--ac-muted); font-size: 15px; line-height: 1.5; }
.ac-empty b { display: block; color: var(--ac-ink); font-size: 18px; margin-bottom: 6px; }
.ac-empty .ac-btn { margin-top: 14px; }

.ac-ord { border: 1px solid var(--ac-line); border-radius: 5px; margin: 0 0 12px; }
.ac-ord summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; padding: 14px 16px; cursor: pointer; }
.ac-ord summary::-webkit-details-marker { display: none; }
.ac-ord__no { font-weight: 600; font-size: 16px; }
.ac-ord__meta { font-size: 13.5px; color: var(--ac-muted); margin-top: 2px; }
.ac-ord__sum { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-st { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; background: #eef0f2; color: #3b4248; white-space: nowrap; }
.ac-st--finished { background: #e8f5ec; color: #17602a; }
.ac-st--canceled { background: #fdecea; color: #8f1d17; }
.ac-st--delivery, .ac-st--progress { background: #fff4e0; color: #8a5a00; }
.ac-ord__body { border-top: 1px solid var(--ac-line); padding: 8px 16px 14px; }
.ac-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; }
.ac-line + .ac-line { border-top: 1px dashed #eee; }
.ac-line img, .ac-line .ac-noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 5px; background: #fafafa; }
.ac-line a { color: var(--ac-ink); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.ac-line small { display: block; color: var(--ac-muted); font-size: 13px; margin-top: 2px; }
.ac-line b { font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-ord__again { margin-top: 10px; font-size: 14px; color: var(--ac-muted); }

.ac-addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ac-addr { border: 1px solid var(--ac-line); border-radius: 5px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ac-addr.is-def { border-color: var(--ac-brand); }
.ac-addr__t { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac-addr__t span { font-size: 12px; font-weight: 600; color: var(--ac-brand); background: #fbeee9; border-radius: 10px; padding: 2px 8px; }
.ac-addr p { margin: 0; font-size: 14.5px; line-height: 1.4; color: #333; }
.ac-addr__act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.ac-addr__act form { margin: 0; }
.ac-addr__act button, .ac-addr__act a { min-height: 34px; padding: 0 10px; border: 1px solid var(--ac-line); border-radius: 5px; background: #fff; color: var(--ac-ink); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

@media (hover: hover) {
    .ac-btn:hover { background: var(--ac-brand-d); }
    .ac-btn--line:hover, .ac-btn--danger:hover { background: #fbeee9; }
    .ac-nav a:hover { background: #f6f6f6; }
    .ac-addr__act button:hover, .ac-addr__act a:hover { border-color: var(--ac-brand); color: var(--ac-brand); }
}
.ac a:focus-visible, .ac button:focus-visible, .ac summary:focus-visible { outline: 2px solid var(--ac-brand); outline-offset: 2px; }

@media (max-width: 900px) {
    .ac-auth { grid-template-columns: minmax(0, 520px); }
    .ac-layout { grid-template-columns: 1fr; }
    .ac-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
    .ac-nav a { white-space: nowrap; flex: none; }
    .ac-nav .ac-nav__out { border-top: 0; margin-top: 0; }
}
@media (max-width: 600px) {
    .ac { padding: 16px 0 40px; }
    .ac-card, .ac-panel { padding: 18px 14px; }
    .ac-card h1, .ac-head h1 { font-size: 22px; }
    .ac-row2 { grid-template-columns: 1fr; }
    .ac-ord summary { grid-template-columns: minmax(0, 1fr) auto; }
    .ac-ord summary .ac-st { grid-column: 1; justify-self: start; }
    .ac-ord__sum { grid-column: 2; grid-row: 1; }
}
