#modalZoomItem .portal-item-zoom-segments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 16px;
}

#modalZoomItem .portal-item-zoom-segments > span {
    margin-right: 6px;
    font-size: .8rem;
    font-weight: 600;
}

#modalZoomItem .portal-item-zoom-segments button {
    padding: 7px 10px;
    border: 1px solid #c6d4e1;
    border-radius: 10px;
    background: #fff;
    color: #15304d;
    font-size: .8rem;
    font-weight: 600;
}

#modalZoomItem .portal-item-zoom-segments button[aria-pressed="true"] {
    background: #214a73;
    border-color: #214a73;
    color: #fff;
}

#modalZoomItem .portal-item-zoom-sort {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

#modalZoomItem .portal-item-zoom-sort-icon {
    color: #4b6b8a;
    font-size: .85em;
}

#modalZoomItem .portal-item-zoom-sort:focus-visible,
#modalZoomItem .portal-item-zoom-segments button:focus-visible {
    outline: 2px solid #4383b4;
    outline-offset: 3px;
}

#modalZoomItem .portal-item-zoom-summary {
    margin-bottom: 8px;
    color: #4b607a;
    font-size: .8rem;
}

#modalZoomItem .modal-content {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
}

#modalZoomItem .modal-body {
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
}

@media (max-width: 575px) {
    #modalZoomItem .modal-content {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    #modalZoomItem .portal-item-zoom-segments > span {
        width: 100%;
    }
}
