/* Shared inline address entry: one stylesheet owns spacing on every form/shell. */
.tps-address {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  color: var(--ink);
  font: inherit;
}
.tps-address-field { display: grid; gap: 14px; min-width: 0; }
.tps-address--mounted { margin-top: 0; }
.tps-address[hidden] { display: none; }
.tps-address__panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface, var(--card));
  box-shadow: var(--shadow-sm);
}
.tps-address__status { min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; color: var(--steel); }
.tps-address__list { display: grid; gap: 10px; min-width: 0; max-width: 100%; }
.tps-address__list:empty, .tps-address__attribution:empty { display: none; }
.tps-address__option {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--surface, var(--card));
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.tps-address__option:hover, .tps-address__option[aria-selected="true"] { border-color: var(--accent); background: var(--accent-tint); }
.tps-address__option:focus-visible, [role="combobox"][aria-controls^="tps-address-"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tps-address__attribution { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.tps-address__logo { display: block; width: 100px; height: auto; flex: 0 0 100px; max-width: 100%; object-fit: contain; }
.tps-address__provider { min-width: 0; max-width: 100%; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
a.tps-address__provider { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; }
@media (max-width: 899px), (pointer: coarse) {
  .tps-address__option, a.tps-address__provider { min-height: 48px; }
}

/* Explicit field adapters preserve the existing form cell and shared inline gap. */
.tps-address-field{min-width:0;width:100%}
.tps-address-field.span-2{grid-column:1 / -1}
.tps-address-field > label{width:100%}

/* Address forms use the existing field grid gap for the inline match status. */
.tps-address__match { font-size: 13px; line-height: 1.5; color: var(--steel); }
.tps-address__match[hidden] { display: none; }
