.embi-panel {
  --embi-accent: #a63700;
  position: fixed;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #e5e1dc;
  border-radius: 12px;
  background: #fff;
  color: #212326;
  box-shadow: 0 10px 32px rgb(28 19 14 / 18%);
  text-align: left;
}

.embi-panel [hidden],
.embi-panel[hidden] {
  display: none;
}

.embi-panel .embi-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 4px 9px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.embi-panel .embi-result + .embi-result {
  border-top: 1px solid #efebe7;
}

.embi-panel .embi-item {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 11px;
  padding: 7px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.embi-panel .embi-item:hover,
.embi-panel [aria-selected="true"] .embi-item {
  background: #fff3eb;
  color: #202124;
}

.embi-panel .embi-thumb {
  display: grid;
  flex: 0 0 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f3f0;
}

.embi-panel .embi-thumb-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
}

.embi-panel .embi-placeholder {
  padding: 2px;
  color: #625b54;
  font-size: 9px;
  text-align: center;
}

.embi-panel .embi-content {
  flex: 1 1 auto;
  min-width: 0;
}

.embi-panel .embi-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.embi-panel .embi-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 4px;
  font-size: 0.78rem;
}

.embi-panel .embi-price {
  color: #222;
  font-size: 0.9rem;
}

.embi-panel .embi-stock {
  padding: 2px 6px;
  border-radius: 4px;
}

.embi-panel .embi-in-stock {
  background: #e8f5ec;
  color: #205735;
}

.embi-panel .embi-other-stock {
  background: #f4f1ed;
  color: #594c41;
}

.embi-panel .embi-status {
  margin: 0;
  padding: 13px 14px;
  color: #514d49;
  font-size: 0.875rem;
}

.embi-panel .embi-footer {
  flex: 0 0 auto;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid #efe5dc;
  background: #fff7f1;
  color: var(--embi-accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.embi-panel .embi-footer:hover {
  background: #ffeadb;
}

.embi-panel .embi-footer:focus-visible {
  outline: 2px solid var(--embi-accent);
  outline-offset: -3px;
}

.embi-panel .embi-alternative .embi-item {
  min-height: 42px;
  color: var(--embi-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.embi-empty-results {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e1dc;
  border-radius: 0.5rem;
  background: #fff;
  color: #212326;
}

.embi-empty-results h2 {
  font-size: 1rem;
  font-weight: 700;
}

.embi-empty-results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.embi-empty-results a {
  display: inline-block;
  padding: 0.35rem 0;
  color: #a63700;
  text-decoration: underline;
}

.embi-empty-results .embi-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.embi-nearby-grid li {
  display: flex;
}

.embi-empty-results .embi-nearby-grid a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem;
  border: 1px solid #e5e1dc;
  border-radius: 0.5rem;
  color: #212326;
  text-decoration: none;
}

.embi-empty-results .embi-nearby-grid a:hover,
.embi-empty-results .embi-nearby-grid a:focus-visible {
  border-color: #a63700;
  background: #fff7f0;
}

.embi-nearby-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
}

.embi-nearby-thumb img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.embi-nearby-thumb [hidden] {
  display: none;
}

.embi-nearby-name {
  font-weight: 600;
  line-height: 1.25;
}

.embi-nearby-grid small {
  color: #5c5d60;
}
