/* Petaro predictive search */

.petaro-predict {
  position: fixed;
  z-index: 200000;
  left: 0;
  top: 0;
  width: min(560px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.petaro-predict[hidden] {
  display: none !important;
}

.petaro-predict.is-open {
  pointer-events: auto;
}

.petaro-predict__panel {
  max-height: min(70vh, 560px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(20, 18, 16, 0.1);
  background: #f6efe4;
  box-shadow: 0 24px 60px rgba(20, 18, 16, 0.18);
  color: #141210;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

.petaro-predict__status {
  padding: 0.9rem 1.1rem;
  font-size: 14px !important;
  color: rgba(20, 18, 16, 0.62);
}

.petaro-predict__status:empty,
.petaro-predict__status[hidden] {
  display: none !important;
}

.petaro-predict__group {
  padding: 0.55rem 0 0.35rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
}

.petaro-predict__group:first-child {
  border-top: 0;
}

.petaro-predict__label {
  margin: 0;
  padding: 0.35rem 1.1rem 0.45rem;
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 18, 16, 0.5);
}

.petaro-predict__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.55rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit !important;
  text-decoration: none !important;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.petaro-predict__item:hover,
.petaro-predict__item.is-active {
  background: rgba(196, 93, 58, 0.08);
}

.petaro-predict__thumb,
.petaro-predict__ph {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0e8dc;
  border: 1px solid rgba(20, 18, 16, 0.08);
}

.petaro-predict__ph {
  display: grid;
  place-items: center;
  font-size: 13px !important;
  font-weight: 800;
  color: #c45d3a;
  letter-spacing: -0.02em;
}

.petaro-predict__copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.petaro-predict__title {
  font-size: 15px !important;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.petaro-predict__meta {
  font-size: 13px !important;
  color: rgba(20, 18, 16, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.petaro-predict__price {
  font-size: 13px !important;
  font-weight: 700;
  color: #c45d3a;
  white-space: nowrap;
}

.petaro-predict__all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0.35rem 0.85rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d06a45 0%, #c45d3a 100%);
  color: #fff8f2 !important;
  font-size: 14px !important;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(196, 93, 58, 0.25);
}

.petaro-predict__all[hidden] {
  display: none !important;
}

/* When anchored inside Lakit fullscreen popup */
.lakit-search__popup-content .petaro-predict,
.petaro-msheet__panel .petaro-predict {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  margin-top: 0.75rem;
  z-index: 2;
}

.lakit-search__popup-content .petaro-predict__panel,
.petaro-msheet__panel .petaro-predict__panel {
  max-height: min(50vh, 420px);
  box-shadow: none;
  border: 1px solid rgba(20, 18, 16, 0.1);
}

body.petaro-predict-open {
  /* keep page scroll unless fullscreen popup owns it */
}

@media (max-width: 720px) {
  .petaro-predict {
    width: calc(100vw - 1rem);
  }

  .petaro-predict__item {
    grid-template-columns: 48px 1fr;
  }

  .petaro-predict__price {
    grid-column: 2;
    justify-self: start;
  }
}
