/* Подвал для телефона (components/mobile_footer.html.twig). Подключается в конце <body>, не блокирует первый экран;
   переменные высоты панели и сама нижняя панель — в index.css (видны сразу). */
.ua-mobile-footer {
    padding: 14px 20px calc(16px + var(--ua-tabbar-height) + var(--ua-ad-anchor-bottom, 0px) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ua-footer-line);
    background: var(--ua-footer-surface);
    color: var(--ua-footer-text);
    font-size: 14px;
    line-height: 1.5;
}

.ua-mobile-footer__inner {
    max-width: 540px;
    margin-inline: auto;
}

.ua-mobile-footer__brand {
    display: flex;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ua-footer-line);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 8px;
}

.ua-mobile-footer a.ua-mobile-footer__wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ua-footer-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
}

.ua-mobile-footer__utility,
.ua-mobile-footer__legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    padding-block: 4px;
    border-bottom: 1px solid var(--ua-footer-line);
}

.ua-mobile-footer .ua-mobile-footer__link,
.ua-mobile-footer a.ua-mobile-footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 9px 0;
    border: 0;
    background: none;
    color: var(--ua-footer-link);
    font: inherit;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ua-mobile-footer button.ua-mobile-footer__link {
    width: 100%;
    cursor: pointer;
}

.ua-mobile-footer__help {
    min-width: 0;
}

.ua-mobile-footer summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
}

.ua-mobile-footer summary::-webkit-details-marker {
    display: none;
}

.ua-mobile-footer__chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: 0 3px 3px auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.ua-mobile-footer details[open] > summary .ua-mobile-footer__chevron {
    margin-bottom: 0;
    transform: rotate(225deg);
}

.ua-mobile-footer__help-links {
    padding-bottom: 6px;
}

.ua-mobile-footer__legal .ua-mobile-footer__link,
.ua-mobile-footer__help-links .ua-mobile-footer__link {
    font-size: 13px;
}

.ua-mobile-footer__privacy {
    grid-column: 1 / -1;
}

.ua-mobile-footer__language > summary {
    justify-content: space-between;
    min-height: 48px;
    color: var(--ua-footer-muted);
    font-size: 13px;
}

.ua-mobile-footer__current-language {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ua-footer-text);
    font-size: 14px;
}

.ua-mobile-footer__languages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-block: 4px 8px;
}

.ua-mobile-footer__language-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--ua-footer-text);
    overflow-wrap: anywhere;
}

.ua-mobile-footer__copyright {
    margin: 8px 0 0;
    color: var(--ua-footer-muted);
    font-size: 12px;
}

.ua-mobile-footer .pwa-install {
    margin: 0;
}

.ua-mobile-footer .pwa-install__button {
    min-height: 44px;
    padding: 8px 0 8px 8px;
    color: var(--ua-footer-link);
    font-size: 13px;
}

.ua-mobile-footer .pwa-install__label {
    display: inline;
}

.ua-mobile-footer :is(a, button):hover {
    color: var(--ua-footer-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ua-mobile-footer :is(a, button, summary):focus-visible {
    outline: 2px solid var(--ua-footer-link);
    outline-offset: 3px;
}

@media (max-width: 360px) {
    .ua-mobile-footer {
        padding-inline: 16px;
    }
}
