.search-totumo-wc {
  --search-totumo-wc-accent: #EE2737;
  position: relative;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: -5px;
  padding-top: 10px;
  padding-bottom: 0;
  font-family: inherit;
}

.search-totumo-wc *,
.search-totumo-wc *::before,
.search-totumo-wc *::after {
  box-sizing: border-box;
}

.search-totumo-wc__field-wrap {
  position: relative;
}

.search-totumo-wc__field {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-bottom: 0 !important;
  border: 1px solid var(--search-totumo-wc-accent);
  border-radius: 999px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 40px;
  padding: 0 46px 0 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.search-totumo-wc__field:focus {
  border-color: var(--search-totumo-wc-accent);
  box-shadow: 0 0 0 2px rgba(238, 39, 55, 0.08);
  outline: none;
}

.search-totumo-wc__field::placeholder {
  color: #202124;
  opacity: 1;
  font-weight: 600;
}

.search-totumo-wc__spinner {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
  border: 2px solid #d4d6d8;
  border-top-color: var(--search-totumo-wc-accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.search-totumo-wc .search-totumo-wc__icon {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: -11px 0 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #3f454b !important;
  cursor: pointer;
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  transform: none !important;
  z-index: 2;
}

.search-totumo-wc__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.search-totumo-wc__icon-clear {
  display: none;
  color: #3f454b;
  font-size: 22px;
  font-weight: 500;
  line-height: 20px;
}

.search-totumo-wc.has-query .search-totumo-wc__icon-search {
  display: none;
}

.search-totumo-wc.has-query .search-totumo-wc__icon-clear {
  display: block;
}

.search-totumo-wc .search-totumo-wc__icon:hover,
.search-totumo-wc .search-totumo-wc__icon:focus {
  background: transparent !important;
  color: #3f454b !important;
  outline: none !important;
}

.search-totumo-wc.is-loading .search-totumo-wc__icon {
  opacity: 0;
  pointer-events: none;
}

.search-totumo-wc.is-loading .search-totumo-wc__spinner {
  opacity: 1;
  animation: search-totumo-wc-spin 700ms linear infinite;
}

.search-totumo-wc__results {
  display: none;
  width: 100%;
  margin-top: 8px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #d8e0e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(9, 28, 33, 0.1);
}

.search-totumo-wc.has-results .search-totumo-wc__results {
  display: block;
}

.search-totumo-wc__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  min-height: 104px;
  padding: 14px;
  color: #182a2e;
  font-family: "Denim INK", inherit;
  text-decoration: none;
  border-bottom: 1px solid #edf1f2;
}

.search-totumo-wc__item:last-child {
  border-bottom: 0;
}

.search-totumo-wc__item:hover,
.search-totumo-wc__item:focus {
  background: #f7faf9;
  color: #0c4648;
  outline: none;
}

.search-totumo-wc__thumb {
  width: 88px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  background: #e9eff0;
}

.search-totumo-wc__thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--search-totumo-wc-accent);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.search-totumo-wc__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.search-totumo-wc__title {
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.search-totumo-wc__excerpt {
  margin-top: 5px;
  color: #415357;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.search-totumo-wc__message {
  padding: 14px;
  color: #415357;
  font-size: 14px;
}

.search-totumo-wc-error {
  color: #b42318;
}

@keyframes search-totumo-wc-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .search-totumo-wc__field {
    padding: 0 46px 0 16px;
  }

  .search-totumo-wc__item {
    grid-template-columns: 70px 1fr;
  }

  .search-totumo-wc__thumb {
    width: 70px;
    height: 64px;
  }
}
