.themeswitcher-wrapper {
    position: relative;
    display: inline-block;
}

/* když je ThemeSwitcher uvnitř nav-right-group, nepotřebuje vlastní margin-left: auto */
.nav-right-group .themeswitcher-wrapper {
    margin-left: 0;
}

.themeswitcher-button {
    /* inherits DxButton styles */
}

.themeswitcher-container {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 2000;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    min-width: 200px;
}

.themeswitcher-container-hidden {
    display: none;
}

.themeswitcher-container-shown {
    display: block;
}

.themeswitcher-content {
    margin-bottom: 12px;
}

.themeswitcher-content:last-child {
    margin-bottom: 0;
}

.themeswitcher-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.themeswitcher-colors {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.themeswitcher-color a {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: outline-color .15s;
}

.themeswitcher-color a:hover {
    outline-color: var(--bs-primary, #0d6efd);
}

.themeswitcher-color.active a {
    outline-color: var(--bs-primary, #0d6efd);
}

/* Theme colors */
.themeswitcher-color.FluentLight a {
    background: #0078d4;
}

.themeswitcher-color.FluentDark a {
    background: #1f1f1f;
    border-color: #555;
}

.themeswitcher-color.BlazingBerry a {
    background: #b71c4e;
}

.themeswitcher-color.BlazingDark a {
    background: #1a1a2e;
    border-color: #444;
}

.themeswitcher-color.Purple a {
    background: #6a1b9a;
}

.themeswitcher-color.OfficeWhite a {
    background: #f0f0f0;
    border-color: #bbb;
}
