/* At 380px the live Address Element renders all seven fields full width, one per row —
   its `p-GridCell--sm6` on State and ZIP does not engage that narrow — so there is no
   row layout here. The suggestion dropdown is ours; no Stripe node to measure against. */

@import './field.css';

/* Positioned against `.sce-input-wrap`, which field.css makes relative. */
.sce-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 268px;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--sce-border);
  border-radius: var(--sce-radius);
  box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 1px 0px, rgba(0, 0, 0, 0.08) 0px 6px 16px 0px;
  font-size: 16px;
  line-height: 1.15;
  color: var(--sce-text);
}
.sce-suggestions[hidden] { display: none; }

.sce-suggestion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px;
  border-radius: calc(var(--sce-radius) - 4px);
  cursor: pointer;
}

.sce-suggestion--active,
.sce-suggestion:hover { background: #f6f8fa; }

.sce-suggestion-more {
  flex: 0 0 auto;
  font-size: 14.88px;
  color: var(--sce-placeholder);
}
