/* Shared zip pill styles — homepage hero + SRP filter bar */

.bst-zip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1a6f4a;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  padding: 5px 11px;
  white-space: nowrap;
  position: relative;
  border-radius: 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  outline: none;
}
.bst-zip-pill:hover .bst-zip-display,
.bst-zip-pill:hover .bst-zip-pin { opacity: 0.75; transition: opacity 0.15s; }
.bst-zip-pill:focus-visible { outline: 2px solid #1a6f4a; outline-offset: 2px; }
.bst-zip-pill svg.bst-zip-pin { width: 11px; height: 11px; flex-shrink: 0; }
.bst-zip-pill .bst-zip-display { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  #bst-srp-zip-pill-desktop { display: none !important; }
  #bst-srp-zip-pill-mobile { display: inline-flex; padding: 0; }
}
@media (min-width: 768px) {
  #bst-srp-zip-pill-mobile { display: none !important; }
}

.bst-zip-flyout {
  position: fixed;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 14px;
  min-width: 220px;
  z-index: 99999;
  display: none;
  cursor: default;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.bst-zip-flyout.bst-zip-flyout-open { display: block; }
.bst-zip-flyout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 8px;
}
.bst-zip-flyout input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s;
}
.bst-zip-flyout input[type="text"]:focus { border-color: #1a6f4a; }
.bst-zip-flyout input[type="text"].bst-zip-error { border-color: #c0392b; }
.bst-zip-flyout .bst-zip-error-msg {
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  min-height: 14px;
}
.bst-zip-save {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  background: #1a6f4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.bst-zip-save:hover { background: #155539; }
.bst-zip-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 8px;
  color: #aaa;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.bst-zip-divider::before,
.bst-zip-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #eee;
}
.bst-zip-divider span { padding: 0 10px; }
.bst-zip-detect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bst-zip-detect:hover { background: #f5f5f5; border-color: #c0c0c0; }
.bst-zip-detect:disabled { opacity: 0.6; cursor: not-allowed; }
.bst-zip-detect svg { width: 13px; height: 13px; flex-shrink: 0; }
.bst-zip-detect.bst-zip-detect-loading svg { animation: bst-zip-spin 0.8s linear infinite; }
@keyframes bst-zip-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
  .bst-zip-flyout {
    min-width: 240px;
    max-width: calc(100vw - 32px);
  }
}
