/* Light/Dark Switch Popover Styling Fixes */

.popover.ld-switch-popover {
    --popover-width: 200px;
}

.popover.ld-switch-popover ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-xxs, 0.375rem);
}

.popover.ld-switch-popover li {
    flex: 1;
}

.ld-switch-popover__option {
    user-select: none;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xxs, 0.25rem);
}

.ld-switch-popover__option:hover {
    cursor: pointer;
    opacity: 0.85;
}

.ld-switch-popover__option:focus {
    outline: none;
}

.ld-switch-popover__option:focus figure {
    box-shadow: 0 0 0 1px var(--color-bg-light), 0 0 0 3px var(--color-contrast-higher);
}

.ld-switch-popover__option[aria-selected=true] {
    color: var(--color-primary);
}

.ld-switch-popover__option[aria-selected=true] figure {
    box-shadow: 0 0 0 1px var(--color-bg-light), 0 0 0 3px currentColor;
}

.ld-switch-popover__option figure {
    width: 32px;
    height: 32px;
    margin: 0 0 var(--space-xxxs, 0.125rem) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 0.25em);
    overflow: hidden;
}

.ld-switch-popover__option figure svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ld-switch-popover__option .text-sm {
    font-size: 0.75rem;
    line-height: 1;
}