.tags-item {
  --inner-padding-end: 8px;
  --padding-top: 4px;
  --padding-bottom: 4px;
}

.chip-section-label {
  flex-basis: 100%;
  font-size: 12px;
  padding-top: 8px;
  padding-bottom: 2px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0 0 6px;
  width: 100%;

  ion-chip {
    margin: 0;
    height: 30px;
    flex-shrink: 0;

    ion-label {
      font-size: 13px;
    }

    ion-icon {
      cursor: pointer;
      font-size: 18px;
    }
  }

  ion-input {
    min-width: 120px;
    flex: 1;
  }
}

.dropdown-container {
  position: relative;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--ion-color-light-shade);
  border-radius: 8px;
  background: var(--ion-background-color, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  ion-item {
    --min-height: 40px;
    font-size: 14px;
    cursor: pointer;

    &:hover {
      --background: var(--ion-color-light);
    }
  }
}

ion-item.ion-invalid.ion-touched {
  --border-color: var(--ion-color-danger);
  --highlight-color-invalid: var(--ion-color-danger);

  ion-label {
    color: var(--ion-color-danger) !important;
  }
}

.error-msg {
  display: block;
  font-size: 12px;
  color: var(--ion-color-danger);
  padding: 2px 16px 4px;
}

ion-chip[color="primary"] {
  --background: var(--ion-color-primary);
  --color: var(--ion-color-primary-contrast);
}

ion-chip[color="secondary"] {
  --background: var(--ion-color-secondary);
  --color: var(--ion-color-secondary-contrast);
}
