.cie-live-search[hidden] {
  display: none !important;
}

.cie-live-search {
  position: fixed;
  z-index: 100010;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 4px solid #a6ce39;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(24, 42, 50, 0.2);
  color: #292929;
  font-family: "Source Sans Pro", Arial, sans-serif;
}

.cie-live-search * {
  box-sizing: border-box;
}

.cie-live-search__inner {
  padding: clamp(18px, 2vw, 28px);
}

.cie-live-search__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(70, 89, 97, 0.14);
}

.cie-live-search__eyebrow,
.cie-live-search__hint,
.cie-live-search__status {
  margin: 0;
}

.cie-live-search__eyebrow {
  color: #465961;
  font: 700 12px/1.2 "Source Sans Pro", Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cie-live-search__hint {
  color: #7c868c;
  font: 400 12px/1.3 "Source Sans Pro", Arial, sans-serif;
}

.cie-live-search__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: clamp(20px, 2.2vw, 34px);
  padding-top: 20px;
}

.cie-live-search__layout.is-single {
  grid-template-columns: 1fr;
}

.cie-live-search__layout.is-single .cie-live-search__brands {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cie-live-search__section {
  min-width: 0;
}

.cie-live-search__section-title {
  margin: 0 0 12px;
  color: #465961;
  font: 700 15px/1.25 "Quenda", Arial, sans-serif;
  letter-spacing: 0.01em;
}

.cie-live-search__products,
.cie-live-search__brands {
  display: grid;
  gap: 7px;
}

.cie-live-search__option {
  display: flex;
  min-width: 0;
  color: #292929;
  text-decoration: none !important;
  outline: 0;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cie-live-search__option:hover,
.cie-live-search__option:focus-visible,
.cie-live-search__option.is-active {
  background: #f2f7e8;
  box-shadow: inset 3px 0 0 #a6ce39;
  transform: translateX(2px);
}

.cie-live-search__product {
  align-items: center;
  gap: 13px;
  padding: 8px;
  border-radius: 12px;
}

.cie-live-search__product-image {
  display: block;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: #f5f5f5;
  object-fit: contain;
}

.cie-live-search__product-copy,
.cie-live-search__brand-copy {
  min-width: 0;
}

.cie-live-search__meta,
.cie-live-search__name,
.cie-live-search__description,
.cie-live-search__brand-name,
.cie-live-search__brand-count {
  display: block;
}

.cie-live-search__meta {
  margin-bottom: 3px;
  overflow: hidden;
  color: #7c868c;
  font: 600 11px/1.2 "Source Sans Pro", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cie-live-search__name {
  overflow: hidden;
  color: #465961;
  font: 700 15px/1.25 "Quenda", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cie-live-search__description {
  margin-top: 3px;
  overflow: hidden;
  color: #5f6c72;
  font: 400 12px/1.35 "Source Sans Pro", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cie-live-search__brand {
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7f8f8;
}

.cie-live-search__brand-image,
.cie-live-search__brand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.cie-live-search__brand-fallback {
  color: #465961;
  font: 700 14px/1 "Quenda", Arial, sans-serif;
}

.cie-live-search__brand-name {
  overflow: hidden;
  color: #465961;
  font: 700 14px/1.25 "Quenda", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cie-live-search__brand-count {
  margin-top: 2px;
  color: #7c868c;
  font: 400 11px/1.2 "Source Sans Pro", Arial, sans-serif;
}

.cie-live-search__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 89, 97, 0.14);
}

.cie-live-search__status {
  color: #66747a;
  font: 400 13px/1.35 "Source Sans Pro", Arial, sans-serif;
}

.cie-live-search__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #a6ce39;
  color: #111 !important;
  font: 700 13px/1 "Source Sans Pro", Arial, sans-serif;
  text-decoration: none !important;
}

.cie-live-search__all::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}

.cie-live-search__all:hover,
.cie-live-search__all:focus-visible,
.cie-live-search__all.is-active {
  background: #465961;
  box-shadow: none;
  color: #fff !important;
  outline: 0;
  transform: none;
}

.cie-live-search__message {
  padding: 30px 8px 14px;
  text-align: center;
}

.cie-live-search__message-title {
  margin: 0;
  color: #465961;
  font: 700 clamp(20px, 2vw, 26px)/1.2 "Quenda", Arial, sans-serif;
}

.cie-live-search__message-copy {
  margin: 8px 0 0;
  color: #66747a;
  font: 400 14px/1.5 "Source Sans Pro", Arial, sans-serif;
}

.cie-live-search__loading {
  display: grid;
  gap: 10px;
  padding: 22px 0 6px;
}

.cie-live-search__skeleton {
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f4f4 25%, #fafafa 50%, #f3f4f4 75%);
  background-size: 220% 100%;
  animation: cie-live-search-loading 1.2s ease-in-out infinite;
}

@keyframes cie-live-search-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 767px) {
  .cie-live-search { border-radius: 0 0 16px 16px; }
  .cie-live-search__inner { padding: 16px; }
  .cie-live-search__topline { padding-bottom: 12px; }
  .cie-live-search__hint { display: none; }
  .cie-live-search__layout { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .cie-live-search__product-image { flex-basis: 54px; width: 54px; height: 54px; }
  .cie-live-search__brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cie-live-search__brand { display: block; min-height: 72px; text-align: center; }
  .cie-live-search__brand-image,
  .cie-live-search__brand-fallback { margin: 0 auto 7px; }
  .cie-live-search__footer { align-items: flex-start; flex-direction: column; }
  .cie-live-search__all { width: 100%; }
}

@media (max-width: 420px) {
  .cie-live-search__brands,
  .cie-live-search__layout.is-single .cie-live-search__brands { grid-template-columns: 1fr; }
  .cie-live-search__brand { display: flex; min-height: 54px; text-align: left; }
  .cie-live-search__brand-image,
  .cie-live-search__brand-fallback { margin: 0; }
  .cie-live-search__description { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cie-live-search__option { transition: none; }
  .cie-live-search__skeleton { animation: none; }
}
