/* Native Polylang footer menu: preserve the rest of the site navigation. */
footer.footer .footer-bottom:has(.pll-parent-menu-item),
footer.footer .footer-bottom.ki-has-pll-dropdown {
    overflow: visible;
}
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item {
    position: relative;
    align-self: center;
    list-style: none;
}
footer.footer .footer-bottom .social-links .pll-parent-menu-item > .ki-pll-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    margin: 0 8px 0 0;
    padding: 8px 12px;
    border: 1px solid rgba(31, 41, 55, .2);
    border-radius: 10px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    line-height: 1.5;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
}
footer.footer .footer-bottom .social-links .ki-pll-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 2px 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
footer.footer .footer-bottom .social-links .ki-pll-toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(225deg);
}
footer.footer .footer-bottom .social-links .ki-pll-toggle:hover,
footer.footer .footer-bottom .social-links .ki-pll-toggle[aria-expanded="true"] {
    border-color: #0F766E;
    color: #0F766E;
}
footer.footer .footer-bottom .social-links .ki-pll-toggle:focus-visible,
footer.footer .footer-bottom .social-links .pll-parent-menu-item > .sub-menu a:focus-visible {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item > ul.sub-menu {
    display: none;
    position: absolute;
    inset: auto auto calc(100% + 8px) 0;
    z-index: 1000;
    width: 224px;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: min(360px, 60vh);
    overflow: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(31, 41, 55, .2);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 118, 110, .12);
    list-style: none;
    text-align: start;
    opacity: 1;
    visibility: visible;
    transform: translateX(var(--ki-pll-offset, 0px));
    transition: none;
}
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item.ki-pll-open > ul.sub-menu,
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item:not(.ki-pll-ready):hover > ul.sub-menu,
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item:not(.ki-pll-ready):focus-within > ul.sub-menu {
    display: block;
}
footer.footer .footer-bottom .social-links ul.social-nav > .pll-parent-menu-item > ul.sub-menu[hidden] {
    display: none !important;
}
footer.footer .footer-bottom .social-links .pll-parent-menu-item > ul.sub-menu > li {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
footer.footer .footer-bottom .social-links .pll-parent-menu-item > ul.sub-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    color: #1F2937;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    transition: none;
}
footer.footer .footer-bottom .social-links .pll-parent-menu-item > ul.sub-menu > li > a:hover,
footer.footer .footer-bottom .social-links .pll-parent-menu-item > ul.sub-menu > li > a:focus-visible {
    background: #F4F4F4;
    color: #0F766E;
}

/* Keep Bootstrap's nested footer row inside the viewport when overflow is visible. */
footer.footer .footer-bottom.ki-has-pll-dropdown > .row,
footer.footer .footer-bottom:has(.pll-parent-menu-item) > .row { margin-inline: 0; }
