/*
 * Test theme selector (RPinfo.ThemeSwitcher). Shown above every theme, so it
 * resets what it needs and uses its own high contrast colours: white on
 * near-black (18:1), yellow focus ring (13:1 on the panel).
 */
.rpts {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2147483000;
    max-width: calc(100% - 1rem);
    color: #ffffff;
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
}

/* Mobile: on the left, so it does not hide the menu buttons of the themes,
   which sit on the right of the header. */
@media (max-width: 47.99rem) {
    .rpts {
        right: auto;
        left: 0.5rem;
    }
}

.rpts *,
.rpts *::before,
.rpts *::after {
    box-sizing: border-box;
    margin: 0;
    letter-spacing: normal;
    text-transform: none;
}

.rpts__box {
    border: 2px solid #ffffff;
    border-radius: 0.5rem;
    background: #141414;
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}

.rpts__summary {
    display: block;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
}

.rpts__summary::-webkit-details-marker {
    display: none;
}

.rpts__summary::before {
    content: "▸ ";
}

.rpts__box[open] .rpts__summary::before {
    content: "▾ ";
}

.rpts__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 17rem;
    max-width: 100%;
    padding: 0 0.9rem 0.9rem;
}

.rpts__label {
    font-weight: 600;
}

.rpts__select,
.rpts__button {
    min-height: 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 0.35rem;
    font: inherit;
}

.rpts__select {
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: #ffffff;
    color: #141414;
}

.rpts__button {
    padding: 0.35rem 0.9rem;
    background: #ffd23f;
    color: #141414;
    font-weight: 700;
    cursor: pointer;
}

.rpts__note {
    color: #d6d6d6;
    font-size: 12px;
}

.rpts :focus-visible {
    outline: 3px solid #ffd23f;
    outline-offset: 2px;
}
