.crm-klaviyo-segment-field {
  position: relative;
  min-width: 260px;
}

.crm-klaviyo-segment-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.crm-klaviyo-segment-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  border-color: #2563eb;
}

.crm-klaviyo-segment-toggle:disabled {
  color: #64748b;
  cursor: wait;
}

.crm-klaviyo-segment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.crm-klaviyo-segment-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.crm-klaviyo-segment-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% - 18px);
  left: 0;
  width: min(420px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}

.crm-klaviyo-segment-menu.hidden,
.crm-klaviyo-segment-native {
  display: none;
}

.crm-klaviyo-segment-options {
  display: grid;
  gap: 3px;
  max-height: 310px;
  margin-top: 8px;
  overflow: auto;
}

.crm-klaviyo-segment-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 6px;
  color: #1e293b;
  cursor: pointer;
}

.crm-klaviyo-segment-option:hover,
.crm-klaviyo-segment-option:focus-within {
  background: #f1f5f9;
}

.crm-klaviyo-segment-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.crm-klaviyo-segment-option-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.crm-klaviyo-segment-option-count {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.crm-klaviyo-segment-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.crm-pipeline-limit-field {
  min-width: 112px;
}

.crm-pipeline-limit-field select {
  min-height: 34px;
}

@media (max-width: 720px) {
  .crm-pipeline-board-head,
  .crm-pipeline-board-head > .row {
    align-items: stretch !important;
    flex-direction: column;
  }

  .crm-pipeline-limit-field {
    width: 100%;
  }
}
