/* Site-wide accessibility rules (2026-11-30, Web Interface Guidelines), linked in every layout after the other styles */

/* «Перейти к содержимому»: the first thing the keyboard reaches; hidden until it has the focus */
.lf-skip {
    position: fixed; top: 8px; left: 8px; z-index: 2147483647;
    padding: 10px 16px; border-radius: 6px; background: #111; color: #fff !important;
    font: 14px/1.2 'CenturyGothic', Arial, sans-serif; text-decoration: none !important;
    transform: translateY(-200%); transition: transform .2s;
}
.lf-skip:focus, .lf-skip:focus-visible { transform: none; outline: 2px solid #b08d57; outline-offset: 2px; }

/* the page's content (layouts: <main id="main">): no outline when the skip link moves the focus to it */
#main:focus { outline: none; }

/* taps: no double-tap zoom delay on the controls */
a, button, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }

/* the visitor asked for less motion: transitions and animations finish at once, no smooth scrolling */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
    }
}

/* the fixed header (85px on a computer, 57px on a phone) never covers what the keyboard focuses or an anchor jumps to;
   the phone's bottom tab bar (60px) neither */
html { scroll-padding-top: 100px; }
@media (max-width: 767px) { html { scroll-padding-top: 72px; scroll-padding-bottom: 72px; } }

/* the header's search field: a search field without the browser's own look and «×» */
.lfh-search input[type="search"] { -webkit-appearance: none; appearance: none; }
.lfh-search input[type="search"]::-webkit-search-cancel-button,
.lfh-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* the menu, its section lists and the order panel: scrolling to their end does not scroll the page under them */
.lfh-drawer__body, .lfh-menu__list, .lfo-panel__box { overscroll-behavior: contain; }

/* headings: no single word left on the last line */
h1, h2, h3 { text-wrap: balance; }

/* prices in totals: digits of the same width, so the columns line up */
.lfk-totals dd, .lfcart-totals dd, .lfo-totals dd, .lfk-item__price, .lfcart-item__price { font-variant-numeric: tabular-nums; }

/* «Удалить» address (account → addresses) is a button (2026-11-30): it looks as the «Изменить» link next to it */
button.mall-btn.mall-btn--sm { padding: 0; border: 0; background: none; font-family: inherit; font-size: 18px; color: #007bff; cursor: pointer; }
button.mall-btn.mall-btn--sm:hover { color: #0056b3; text-decoration: underline; }
