.ras-module-selector {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.ras-module-selector > legend {
    color: var(--ink, #102746);
    float: left;
    font-weight: 700;
    padding: 0;
}

.ras-module-select-all.button {
    float: right;
    min-height: 0;
    padding: 0.55rem 0.85rem;
    width: auto;
}

.ras-module-options {
    clear: both;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    margin-bottom: 1rem;
    padding-top: 0.75rem;
}

.ras-module-option {
    cursor: pointer;
    display: block;
    position: relative;
}

.ras-module-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.ras-module-option span {
    align-items: center;
    background: #fff;
    border: 1px solid #cbdcf0;
    border-radius: 12px;
    color: #102746;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.ras-module-option input:checked + span {
    background: #e8f6ff;
    border-color: #1d9bd1;
    box-shadow: 0 0 0 2px rgba(29, 155, 209, 0.14);
    color: #006da5;
}

.ras-module-option input:focus-visible + span {
    outline: 3px solid rgba(29, 155, 209, 0.3);
    outline-offset: 2px;
}

.ras-module-option:hover span {
    border-color: #78bfe1;
}

@media (max-width: 540px) {
    .ras-module-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
