.admin-config.color-palettes {
  .color-palettes-list {
    ul {
      list-style: none;
      margin: 0;
    }

    li {
      border-bottom: 1px solid var(--content-border-color);

      &:first-of-type {
        border-top: 1px solid var(--content-border-color);
      }

      a {
        display: block;
        padding: 10px;
        color: var(--primary);

        &:hover {
          background-color: var(--primary-low);
          color: var(--primary);
        }

        &.active {
          font-weight: bold;
          color: var(--primary);
          background: var(--d-selected);
        }
      }
    }
  }

  .create-new-palette {
    margin-bottom: 1em;
  }

  .admin-config-color-palettes {
    &__name-control {
      display: flex;
      gap: var(--space-1);
      align-items: flex-start;

      h2 {
        margin-bottom: 0;
      }
    }

    &__header {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: var(--space-1);
    }

    &__theme-owner {
      font-size: var(--font-down-1);
      color: var(--primary-medium);
    }

    &__top-controls {
      display: flex;
      justify-content: space-between;
    }

    &__sections {
      display: flex;
      flex-direction: column;
      width: 100%;
      gap: var(--space-4);
    }

    &__logo-and-fonts-hint {
      display: flex;
      justify-content: space-between;
    }

    &__unsaved-changes {
      font-size: var(--font-down-1);
      color: var(--primary-medium);
      align-self: center;
    }

    &__save-card {
      margin-top: -0.5rem;
      display: flex;
      justify-content: flex-end;
      gap: 1em;
    }

    &__save-name,
    &__cancel-edit-name {
      // matches form kit height of inputs
      height: 2em;
      width: 2em;
    }
  }

  .alert {
    margin-bottom: 1em;
  }
}

.color-palette__warning {
  font-style: italic;
}
