.atw-sticky-lang-panel {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.atw-sticky-lang-panel[hidden] {
    display: none;
}

.atw-sticky-lang-panel__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.atw-sticky-lang-panel__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    max-height: min(70vh, 420px);
    overflow: auto;
}

.atw-sticky-lang-panel__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.atw-ls--panel-list .atw-ls-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.atw-ls--panel-list .atw-ls-panel-item {
    margin: 0;
    border-top: 1px solid #eee;
}

.atw-ls--panel-list .atw-ls-panel-item:first-child {
    border-top: 0;
}

.atw-ls--panel-list .atw-ls-panel-item a,
.atw-ls--panel-list .atw-ls-panel-item.is-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
    text-decoration: none;
}

.atw-ls--panel-list .atw-ls-panel-item a:hover,
.atw-ls--panel-list .atw-ls-panel-item a:focus {
    color: #111;
}

.atw-ls--panel-list .atw-ls-panel-item.is-current {
    font-weight: 600;
    color: #111;
}

.atw-ls--panel-list .atw-ls-flag {
    flex: 0 0 auto;
    display: block;
}

body.atw-sticky-lang-open {
    overflow: hidden;
}

/* #atw-languages-flags — inline flags in sticky toolbar (Oddway mobile) */
.wd-toolbar-link.atw-sticky-lang-flags-slot,
.wd-toolbar-item.atw-sticky-lang-flags-slot {
    flex: 1 1 auto;
    min-width: 0;
}

.atw-sticky-lang-flags-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 45px;
    padding: 0 4px;
}

.atw-sticky-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 2px;
    opacity: 0.92;
}

.atw-sticky-lang-flag:hover,
.atw-sticky-lang-flag:focus {
    opacity: 1;
}

.atw-sticky-lang-flag.is-current {
    opacity: 0.45;
}

.atw-sticky-lang-flag .atw-ls-flag {
    display: block;
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wd-toolbar a[href="#atw-languages-flags"] .wd-toolbar-label,
.wd-toolbar-link.atw-sticky-lang-flags-slot .wd-toolbar-label {
    display: none !important;
}
