/* Keep the switch in the dark primary menu, including when the mobile menu is closed. */
.td-store-nav-panel {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important; gap: 12px !important;
}
.td-store-nav-panel > .wp-block-navigation { min-width: 0; justify-self: center; }
.td-store-nav-panel > .td-book-language-switcher {
    display: inline-flex; align-items: center; justify-self: end; gap: 2px;
    margin: 0 !important; padding: 2px; border: 1px solid rgba(231,220,237,.5); border-radius: 5px;
    font-family: Outfit, Arial, sans-serif; font-size: 12px; line-height: 1.2;
}
.td-store-nav-panel .td-book-language-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 30px;
    padding: 4px 6px; color: #fff !important; border-radius: 3px; text-decoration: none !important; font-weight: 500;
}
.td-store-nav-panel .td-book-language-link.is-active { background: #e7dced; color: #39215b !important; font-weight: 700; }
.td-store-nav-panel .td-book-language-link:hover { background: rgba(231,220,237,.2); }
.td-store-nav-panel .td-book-language-link.is-active:hover { background: #e7dced; }
.td-store-nav-panel .td-book-language-link:focus-visible { outline: 2px solid #e3c584; outline-offset: 2px; }
@media (max-width:781px) {
    .td-store-nav-panel { grid-template-columns: minmax(0, 1fr) auto; }
    .td-store-nav-panel > .wp-block-navigation { justify-self: start; }
    .td-store-nav-panel .td-book-language-link { min-height: 34px; min-width: 34px; }
}
