@use '@vizality' as vz;

.vz-addons-list {
  $base: &;
  &[vz-display='compact'] {
    .vz-addon-card {
      padding: 16px;
      &-header {
        padding: 0;
      }
      &-metadata {
        width: 100%;
      }
      &-name-version {
        align-items: center;
      }
      &-author {
        margin: 0;
      }
      &-tags {
        flex: 1 0 100%;
        margin: 0;
        align-items: center;
      }
      &-icon {
        @include vz.size(40px);
      }
      &-details {
        display: flex;
        align-items: center;
        padding: 0 20px;
        flex: 1;
      }
      &-detail-wrapper {
        display: flex;
        align-items: center;
        flex-flow: column;
        margin-right: 30px;
        font-size: 12px;
        font-weight: 500;
      }
      &-content-wrapper {
        padding: 0;
      }
      &-detail-label {
        margin-bottom: 7px;
        text-transform: uppercase;
        font-weight: 600;
        color: var(--text-muted);
        white-space: nowrap;
      }
      &-detail-value-wrapper {
        display: flex;
        align-items: center;
      }
      &-detail-value-icon-wrapper {
        margin-right: 4px;
      }
      &-description {
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: .8;
      }
      &-uninstall-button {
        color: vz.color('danger');
      }
      &-actions {
        display: flex;
        align-items: center;
        > div {
          cursor: pointer;
          button {
            @include vz.size(34px);
          }
          + div {
            margin-left: 10px;
          }
          > div {
            display: flex;
          }
        }
      }
    }
  }
}
