/*
 * field-enhance.css - styles for themes/shared/js/field-enhance.js (tags and
 * US phone). Colours from the theme variables, with fallbacks; 14px minimum.
 */
.fe-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 44px; padding: 5px 8px; box-sizing: border-box;
  border: 1px solid var(--fe-line, #d0d5dd); border-radius: 8px; background: #fff; cursor: text;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.fe-tags.fe-focus {
  border-color: var(--site_color_g, #20aceb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--site_color_g, #20aceb) 18%, transparent);
}
.fe-tags.fe-invalid, input.fe-invalid { border-color: #d92d20 !important; }
.fe-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  height: 30px; padding: 0 4px 0 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--site_color_g, #20aceb) 12%, #fff);
  color: var(--site_font_color_g, #1f2937); font-size: 14px; font-weight: 500; line-height: 1;
}
.fe-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-chip-x {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; padding: 0;
  color: inherit; font-size: 17px; line-height: 22px; text-align: center; cursor: pointer; opacity: .7;
}
.fe-chip-x:hover { opacity: 1; background: rgba(16, 24, 40, .08); }
.fe-tags-entry {
  flex: 1 1 120px; min-width: 120px; height: 30px; border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--site_font_color_g, #1f2937); padding: 0 4px;
}
.fe-tags-entry::placeholder { color: #98a2b3; }
.fe-error { color: #b42318; font-size: 14px; font-weight: 500; margin-top: 6px; }
.fe-pw { position: relative; display: block; }
.fe-pw > input { padding-right: 92px !important; }
.fe-pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--fe-muted, #667085);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.fe-pw-toggle:hover { color: var(--site_color_g, #20aceb); }
.fe-pw-toggle:focus-visible { outline: 2px solid var(--site_color_g, #20aceb); outline-offset: -2px; }
.fe-pw-toggle .fe-pw-off, .fe-pw-toggle[aria-pressed="true"] .fe-pw-on { display: none; }
.fe-pw-toggle[aria-pressed="true"] .fe-pw-off { display: inline-flex; }
.fe-pw-toggle .fe-pw-on { display: inline-flex; }
