.mtp-header-languages {
    box-sizing: border-box;
    position: relative;
    z-index: 105;
    display: flex;
    justify-content: flex-end;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3px max(12px, 2%);
    color: #26312f;
    font: 14px/1.35 Arial, Helvetica, sans-serif;
}
.mtp-header-languages *, .mtp-header-languages *::after { box-sizing: border-box; }
.mtp-header-languages details { position: relative; margin: 0; }
.mtp-header-languages summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 5px 11px;
    margin: 0;
    color: #26312f;
    background: #faf7f0;
    border: 1px solid #b6ada0;
    border-radius: 4px;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.mtp-header-languages summary::-webkit-details-marker { display: none; }
.mtp-header-languages summary span { color: #534d43; font-size: 13px; }
.mtp-header-languages summary strong { color: inherit; font: inherit; font-weight: 700; }
.mtp-header-languages summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
    margin-inline: 2px 1px;
}
.mtp-header-languages details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mtp-header-languages .mtp-language-options {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 3px);
    width: 168px;
    max-width: calc(100vw - 24px);
    max-height: min(360px, 65vh);
    overflow-y: auto;
    padding: 4px;
    background: #fff;
    color: #26312f;
    border: 1px solid #b6ada0;
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(28, 32, 29, .14);
}
.mtp-header-languages details:not([open]) .mtp-language-options { display: none; }
.mtp-header-languages .mtp-language-options a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin: 0;
    padding: 6px 9px;
    background: transparent;
    color: #26312f;
    font: 14px/1.35 Arial, Helvetica, sans-serif;
    text-align: start;
    text-decoration: none;
}
.mtp-header-languages .mtp-language-options a[aria-current="page"] { font-weight: 700; }
.mtp-header-languages .mtp-language-options a[aria-current="page"]::after { content: "✓"; }
.mtp-header-languages .mtp-language-options a:hover, .mtp-header-languages .mtp-language-options a:focus { background: #f3eee5; }
.mtp-header-languages :is(summary,a):focus-visible { outline: 2px solid #7c422c; outline-offset: -2px; }
@media (max-width: 767px) {
    .mtp-header-languages { padding: 2px 12px; }
    .mtp-header-languages summary, .mtp-header-languages .mtp-language-options a { min-height: 44px; }
}
