/* it-1110 (BPDGo#374): a Location field's parts — State, County, City, ZIP — each its own cell. */

/* The part's input and its suggestion list (the chip picker's list styles, anchored under the field). */
.location-part__box {
  position: relative;
}
.location-part__box md-outlined-text-field {
  width: 100%;
}

/* A value that couldn't be placed: what came in, with the warning (the reason is the hover). */
.location-part__unplaced {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--md-sys-color-error);
}
.location-part__warn {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-1);
  color: var(--md-sys-color-error);
}

/* An inline edit's answer redraws a secret Location field's other parts masked, each wrapped for its out-of-band swap:
   the wrapper takes no box, so the cell stays a cell of the grid. */
.location-oob {
  display: contents;
}

/* A Location filter row (it-1110): the test, the miles (within), and the place picker with its suggestions. */
.location-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}
.location-filter__miles {
  min-width: 150px;
}
.location-filter__place {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.location-filter__place md-outlined-text-field {
  width: 100%;
}

/* "Fill from existing fields" (it-1110 D14): the builder's dialog. */
.location-fill {
  max-width: 640px;
}
.location-fill__parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.location-fill__part {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.location-fill__select {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small, 4px);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
}
.location-fill__preview {
  padding: var(--space-3);
  border-radius: var(--md-sys-shape-corner-small, 8px);
  background: var(--md-sys-color-surface-container);
}
