.dbst-switcher {
    position: relative;
    display: inline-block;
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #20233a;
}

.dbst-switcher-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #20233a;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.dbst-switcher-current img {
    display: none;
}

.dbst-switcher-current::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url("flags/globe.svg") center / contain no-repeat;
}

.dbst-switcher-current span,
.dbst-switcher-current i {
    display: none;
}

.dbst-switcher-item img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}

.dbst-switcher-current i {
    width: 0;
    height: 0;
    margin-left: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #111;
}

.dbst-switcher-menu {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 99999;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
    width: 330px;
    max-width: calc(100vw - 24px);
    padding: 16px 18px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}

.dbst-switcher.is-open .dbst-switcher-menu {
    display: grid;
}

.dbst-switcher-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #20233a !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dbst-switcher-item:hover,
.dbst-switcher-item.is-active {
    color: #0b55ff !important;
}

.dbst-switcher-more {
    grid-column: 1 / -1;
    margin-top: 4px;
    color: #20233a;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 760px) {
    .dbst-switcher-menu {
        right: auto;
        left: 0;
        width: 292px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 12px;
    }

    .dbst-switcher-item {
        font-size: 14px;
    }
}
