$popover-item-padding-h: 0.75rem;
$popover-item-padding-v: 0.325rem;

.connection-popover {
    display: flex;
    flex-direction: column;

    min-width: 25rem;
    max-width: 70vw;

    &__content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;

        min-height: 27rem; // avoid jitter when only loading indicator is shown
        max-height: 70vh;

        .alert {
            word-break: break-word;
        }
    }

    &__node {
        border-bottom: solid 1px $color-border;
        &:last-child {
            border-bottom: none;
        }
        &-link {
            display: flex;
            align-items: center;
            padding: $popover-item-padding-v $popover-item-padding-h;

            &-icon {
                margin-left: 0.25rem;
            }
            &--active {
                font-weight: bold;
            }
        }
    }

    &__show-more {
        flex: 0 0;
        border: none;
        border-radius: 0;
        text-align: left;
        font-size: 12px;
        padding: $popover-item-padding-v $popover-item-padding-h;
    }
}

.theme-light {
    .connection-popover {
        &__node {
            border-color: $color-light-border;
        }

        .filtered-connection {
            &__summary {
                border-top-color: $color-light-border;
            }
        }
    }
}
