.tilgjengelighet-kort {
    max-width: 680px;
}

.tilgjengelighet-seksjon {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tilgjengelighet-gruppe-tittel {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.tilgjengelighet-grid {
    display: grid;
    gap: 10px;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(2, 1fr);
}

.tilgjengelighet-rad {
    min-height: 92px;
    position: relative;
    align-items: center;
    background: #0f1729;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px;
    text-align: left;
    transition: border-color 0.2s ease;
}

    .tilgjengelighet-rad:hover {
        border-color: #10b981;
    }

a.tilgjengelighet-rad {
    text-decoration: none;
}

.innstillinger-detaljer {
    background: #0f1729;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: grid;
    gap: 14px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 14px 16px;
    text-align: left;
}

.innstillinger-detaljer dt {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.innstillinger-detaljer dt i {
    color: #6ee7b7;
    margin-right: 6px;
    text-align: center;
    width: 14px;
}

.innstillinger-detaljer dd {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.tilgjengelighet-rad .tilgjengelighet-ikon--fare {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.tilgjengelighet-pil {
    color: #cbd5e1;
    flex-shrink: 0;
}

.tilgjengelighet-ikon {
    align-items: center;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 10px;
    color: #6ee7b7;
    display: flex;
    flex-shrink: 0;
    font-size: 15px;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.tilgjengelighet-tekst {
    flex: 1;
    min-width: 0;
}

.tilgjengelighet-tekst strong {
    color: #f8fafc;
    font-size: 14px;
}

.tilgjengelighet-forklaring {
    color: #cbd5e1;
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.tilgjengelighet-tekst p {
    color: #cbd5e1;
    font-size: 13px;
    margin: 3px 0 0;
}

.bryter-input {
    height: 1px;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.bryter-input:focus-visible + .bryter {
    outline: 3px solid #f8fafc;
    outline-offset: 2px;
}

.bryter {
    background: #334155;
    border-radius: 999px;
    flex-shrink: 0;
    height: 24px;
    position: relative;
    transition: background 0.2s ease;
    width: 42px;
}

.bryter::before {
    background: #f8fafc;
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.2s ease;
    width: 18px;
}

.bryter-input:checked + .bryter {
    background: #10b981;
}

.bryter-input:checked + .bryter::before {
    transform: translateX(18px);
}

@media (max-width: 700px) {
    .tilgjengelighet-grid,
    .innstillinger-detaljer {
        grid-template-columns: 1fr;
    }
}

.portal .tilgjengelighet-rad:hover {
    border-color: #00B1E2;
}

.portal .innstillinger-detaljer dt i {
    color: #A5E5F7;
}

.portal .tilgjengelighet-ikon:not(.tilgjengelighet-ikon--fare) {
    background: rgba(0, 177, 226, 0.14);
    color: #A5E5F7;
}

.portal .bryter-input:checked + .bryter {
    background: #00B1E2;
}
