ol,
ul {
    margin-top: 0;
}

.switcher-panel {
    margin-left: auto;
    display: flex;
}

.blazor-scroll-view {
    height: 100%;
}

.dxbl-image.theme-icon {
    mask-size: cover;
    width: 1rem;
    height: 1rem;
    background-color: var(
        --dxds-color-content-neutral-default-rest,
        var(--bs-body-color, black)
    );
    mask-image: url("../images/theme.svg");
    -webkit-mask-image: url("../images/theme.svg");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.btn-container > .theme-settings {
    --dxbl-btn-border-radius: 50%;
    width: 2.125rem;
    height: 2.125rem;
    border-width: 2px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.theme-settings {
    margin-right: 0.5rem;
}

.theme-settings:hover .theme-icon {
    background-color: currentColor;
}

.themeswitcher-container {
    display: block;
    --themeswitcher-color-hover: var(
        --dxds-color-surface-neutral-default-selected,
        #e9e9e8
    );
    --themeswitcher-color-active: var(
        --dxds-color-surface-neutral-default-hovered,
        #f4f4f3
    );
    --themeswitcher-color-active-hover: var(
        --dxds-color-surface-neutral-default-selected-hovered,
        #d3d3d2
    );
}

.themeswitcher-container.theme-DefaultDark,
.themeswitcher-container.theme-FluentDark,
.themeswitcher-container.theme-BootstrapDark,
.themeswitcher-container.theme-BlazingDark,
.themeswitcher-container.theme-Darkly,
.themeswitcher-container.theme-Cyborg,
.themeswitcher-container.theme-Slate,
.themeswitcher-container.theme-Solar,
.themeswitcher-container.theme-SuperHero,
.themeswitcher-container.theme-Vapor {
    --themeswitcher-color-hover: #2e2e2d;
    --themeswitcher-color-active: #3f3f3e;
    --themeswitcher-color-active-hover: #505150;
    --themeswitcher-color-border: #5f5f5e;
    --themeswitcher-color-text: #f1f1f1;
    color: var(--themeswitcher-color-text);
}

.themeswitcher-fluent-mode {
    margin-top: 12px;
    padding: 0 12px;
}

.theme-DefaultDark .themeswitcher-fluent-mode .dxbl-btn.dxbl-disabled {
    --dxbl-btn-disabled-color: var(--bs-border-color);
}

.themeswitcher-container.theme-DefaultDark .themeswitcher-title,
.themeswitcher-container.theme-FluentDark .themeswitcher-title,
.themeswitcher-container.theme-BootstrapDark .themeswitcher-title,
.themeswitcher-container.theme-BlazingDark .themeswitcher-title,
.themeswitcher-container.theme-Darkly .themeswitcher-title,
.themeswitcher-container.theme-Cyborg .themeswitcher-title,
.themeswitcher-container.theme-Slate .themeswitcher-title,
.themeswitcher-container.theme-Solar .themeswitcher-title,
.themeswitcher-container.theme-SuperHero .themeswitcher-title,
.themeswitcher-container.theme-Vapor .themeswitcher-title {
    border-bottom-color: var(--themeswitcher-color-border);
}

.themeswitcher-title {
    display: block;
    background-color: var(
        --dxds-color-surface-neutral-default-rest,
        var(--bs-body-bg)
    );
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 100%;
    text-align: start;
    padding: 8px 12px;
    border-bottom: 1px solid #d6d6d6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.themeswitcher-subtitle {
    margin-top: 12px;
    padding: 0 12px;
    font-size: 1rem;
}

.themeswitcher-content {
    padding: 0;
    margin-bottom: 16px;
    padding-right: 4px;
}

.themeswitcher-content:first-child {
    margin-top: 12px;
}

.themeswitcher-colors {
    flex-flow: row wrap;
    display: flex;
    padding: 0;
    margin-bottom: 0;
}

.themeswitcher-color {
    display: flex;
    flex: 1 0 50%;
    max-width: 50%;
    padding: 2px 4px;
}

.themeswitcher-color a {
    display: flex;
    border-radius: 4px;
    padding: 8px 8px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 0.9rem;
    align-items: center;
}

.themeswitcher-container.theme-DefaultDark .themeswitcher-color a,
.themeswitcher-container.theme-FluentDark .themeswitcher-color a,
.themeswitcher-container.theme-BootstrapDark .themeswitcher-color a,
.themeswitcher-container.theme-BlazingDark .themeswitcher-color a,
.themeswitcher-container.theme-Darkly .themeswitcher-color a,
.themeswitcher-container.theme-Cyborg .themeswitcher-color a,
.themeswitcher-container.theme-Slate .themeswitcher-color a,
.themeswitcher-container.theme-Solar .themeswitcher-color a,
.themeswitcher-container.theme-SuperHero .themeswitcher-color a,
.themeswitcher-container.theme-Vapor .themeswitcher-color a {
    color: var(--themeswitcher-color-text);
}

.themeswitcher-color.active a:hover {
    background-color: var(--themeswitcher-color-active-hover);
}

.themeswitcher-color.active a {
    background-color: var(--themeswitcher-color-active);
    box-shadow: inset 0 0 0 1px var(
        --themeswitcher-color-border,
        var(--dxds-color-border-neutral-default, #bcbcbc)
    );
    font-weight: 700;
}

.themeswitcher-color a:hover {
    background-color: var(--themeswitcher-color-hover);
}

.themeswitcher-color a:before {
    content: "";
    margin-inline-end: 12px;
    display: block;
    border-radius: 4px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--themeswitcher-color);
}

.themeswitcher-color.active a:after {
    content: "";
    width: 0.4rem;
    height: 0.7rem;
    margin-inline-start: auto;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.theme-BlazingDark .themeswitcher-color.active a:before,
.themeswitcher-color.DefaultDark a:before {
    border: 1px solid #7a7a7a;
}

.themeswitcher-sizing {
    padding: 8px;
    margin: 0 4px;
    display: flex;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
}

.themeswitcher-icon-fluent-mode-light,
.themeswitcher-icon-fluent-mode-dark {
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
}

.themeswitcher-icon-fluent-mode-light {
    -webkit-mask-image: url("../images/themeswitcher-fluent-mode-light.svg");
    mask-image: url("../images/themeswitcher-fluent-mode-light.svg");
}

.themeswitcher-icon-fluent-mode-dark {
    -webkit-mask-image: url("../images/themeswitcher-fluent-mode-dark.svg");
    mask-image: url("../images/themeswitcher-fluent-mode-dark.svg");
}

.themeswitcher-container {
    --margin-top: 4.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: var(
        --dxds-color-surface-neutral-default-rest,
        var(--bs-body-bg, white)
    );
    position: absolute;
    top: calc(var(--margin-top) + 1px);
    right: 0;
    width: 320px;
    height: 0;
    max-height: calc(100vh - var(--margin-top));
    overflow: hidden;
    z-index: 1029;
}

.themeswitcher-container-shown,
.themeswitcher-container-hidden {
    transition: height 0.2s ease-in-out;
}

.themeswitcher-container-hidden {
    visibility: hidden;
    pointer-events: none;
}

.themeswitcher-container-shown {
    visibility: visible;
}

.themeswitcher-container-shown {
    height: calc(100vh - var(--margin-top));
}

.themeswitcher-custom-color {
    padding: 6px 8px 8px 8px;
    margin: 0 4px;
    display: flex;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
}

.themeswitcher-custom-color.active {
    background-color: var(--themeswitcher-color-active);
}

.themeswitcher-container.theme-DefaultDark .themeswitcher-custom-color.active,
.themeswitcher-container.theme-FluentDark .themeswitcher-custom-color.active,
.themeswitcher-container.theme-BootstrapDark .themeswitcher-custom-color.active,
.themeswitcher-container.theme-BlazingDark .themeswitcher-custom-color.active,
.themeswitcher-container.theme-Darkly .themeswitcher-custom-color.active,
.themeswitcher-container.theme-Cyborg .themeswitcher-custom-color.active,
.themeswitcher-container.theme-Slate .themeswitcher-custom-color.active,
.themeswitcher-container.theme-Solar .themeswitcher-custom-color.active,
.themeswitcher-container.theme-SuperHero .themeswitcher-custom-color.active,
.themeswitcher-container.theme-Vapor .themeswitcher-custom-color.active {
    border: 1px solid var(--themeswitcher-color-border);
}

.themeswitcher-container.theme-DefaultDark .themeswitcher-custom-color-button,
.themeswitcher-container.theme-FluentDark .themeswitcher-custom-color-button,
.themeswitcher-container.theme-BootstrapDark .themeswitcher-custom-color-button,
.themeswitcher-container.theme-BlazingDark .themeswitcher-custom-color-button,
.themeswitcher-container.theme-Darkly .themeswitcher-custom-color-button,
.themeswitcher-container.theme-Cyborg .themeswitcher-custom-color-button,
.themeswitcher-container.theme-Slate .themeswitcher-custom-color-button,
.themeswitcher-container.theme-Solar .themeswitcher-custom-color-button,
.themeswitcher-container.theme-SuperHero .themeswitcher-custom-color-button,
.themeswitcher-container.theme-Vapor .themeswitcher-custom-color-button {
    --dxbl-btn-bg: #2e2e2d;
    --dxbl-btn-hover-bg: #505150;
    --dxbl-btn-border-color: var(--themeswitcher-color-border);
    --dxbl-btn-hover-border-color: #737372;
    --dxbl-btn-color: var(--themeswitcher-color-text);
    --dxbl-btn-hover-color: var(--themeswitcher-color-text);
}

.themeswitcher-custom-color.active
    .themeswitcher-custom-color-button-icon:after {
    -webkit-mask-image: none;
    mask-image: none;
    background-color: var(--dxds-primary-90);
}

.themeswitcher-custom-color input[type="color"] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.01;
    z-index: 1;
}

.themeswitcher-custom-color-button {
    margin-left: 4px;
    position: relative;
}

.themeswitcher-custom-color .themeswitcher-custom-color-button-icon {
    width: 20px;
    height: 20px;
    position: relative;
    background-color: #dcdcdc;
    border-radius: 2px;
}

.themeswitcher-custom-color .themeswitcher-custom-color-button-icon:after {
    -webkit-mask-image: url("../../images/icons/themeswitcher-no-color-icon.svg");
    mask-image: url("../../images/icons/themeswitcher-no-color-icon.svg");
    position: absolute;
    width: 20px;
    height: 20px;
    content: "";
    top: 0;
    left: 0;
    background-color: #e00000;
    border-radius: 2px;
}

@media (max-width: 1199.98px) {
    .themeswitcher-container {
        position: fixed;
        top: var(--margin-top);
        width: 320px;
        height: calc(100% - var(--margin-top));
        transform: translateX(100%);
    }

    .themeswitcher-container-shown,
    .themeswitcher-container-hidden {
        transition: transform 0.2s ease-in-out;
    }

    .themeswitcher-container-shown {
        transform: translateX(0);
    }
}
