/* Tag UI wrapper */
.tag-pills-wrapper {
  display: none;
  margin-top: 12px;
  position: relative;
}

.tag-pills-wrapper.is-active {
  display: block;
}

/* Selected pills row */
.tag-pills-wrapper .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.tag-pills-wrapper .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #222;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
}

.tag-pills-wrapper .pill-label {
  white-space: nowrap;
}

.tag-pills-wrapper .pill-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin: 0;
}

/* Trigger button */
.tag-trigger-like-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.tag-trigger-like-select .trigger-label {
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.tag-trigger-like-select .trigger-summary {
  color: #999;
  font-size: 14px;
  margin-left: 12px;
}

/* Dropdown menu */
.tag-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tag-filter {
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.tag-filter input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
}

/* Scrollable tag list */
.tag-items {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
}

.tag-items li {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}

.tag-items li:hover {
  background: #f6f6f6;
}

.tag-items li[data-selected="1"],
.tag-items li[aria-selected="true"] {
  background: #f2f2f2;
  font-weight: 600;
}

.tag-items li[data-disabled="1"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Optional limit state */
.tag-pills-wrapper.limit .tag-trigger-like-select {
  border-color: #999;
}

/* Make sure wrapper can host absolute dropdown */
.field,
.required-field {
  position: relative;
}


/* Default state */
.tag-trigger-like-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #e9e9e9; /* light grey */
  color: #000;         /* black text */
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Text inside */
.tag-trigger-like-select .trigger-label,
.tag-trigger-like-select .trigger-summary {
  color: inherit;
}

.tag-trigger-like-select {
  background: #e9e9e9 !important;
  color: #000 !important;
}

.tag-trigger-like-select:hover {
  background: #555 !important;
  color: #fff !important;
}
}