.rs-search:not(.rs-search--pro):not(.rs-search--shortcode) {
  border-color: var(--rs-search-border, var(--rs-color-border, #e5e7eb));
  border-width: var(--rs-search-border-width, 1px);
  font-size: var(--rs-search-font-size, 14px);
  height: var(--rs-search-height, 44px);
  min-height: var(--rs-search-height, 44px);
}

.rs-search--pro {
  font-size: var(--rs-search-font-size, 14px);
}

form.rs-search[data-rs-search] input.rs-search__input[type="search"],
form.rs-search[data-rs-search] input.rs-search__input[type="text"],
.site-search form.rs-search[data-rs-search] input.rs-search__input[type="search"] {
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  height: var(--rs-search-height, 44px) !important;
  min-height: var(--rs-search-height, 44px) !important;
  max-height: var(--rs-search-height, 44px) !important;
  margin: 0 !important;
  padding: 0 1.1rem !important;
  font-family: inherit !important;
  font-size: var(--rs-search-font-size, 14px) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--rs-color-text, #111827) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

form.rs-search.rs-search--shortcode[data-rs-search] input.rs-search__input[type="search"] {
  background: #fff !important;
  background-color: #fff !important;
  border: var(--rs-search-border-width, 1px) solid var(--rs-search-border, #e5e7eb) !important;
  border-right-width: 0 !important;
  border-radius: 13px 0 0 13px !important;
}

@media (min-width: 768px) {
  .rs-header-pro__search form.rs-search.rs-search--pro[data-rs-search] input.rs-search__input[type="search"] {
    padding: 0 1.25rem !important;
    background: #fff !important;
    background-color: #fff !important;
    border: var(--rs-search-border-width, 1px) solid var(--rs-search-border, #e5e7eb) !important;
    border-right-width: 0 !important;
    border-radius: 13px 0 0 13px !important;
  }
}

.rs-search .rs-search__submit,
.rs-search button.rs-search__submit,
form.rs-search[data-rs-search] button.rs-search__submit {
  position: relative;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--rs-search-height, 44px);
  min-width: 52px;
  height: var(--rs-search-height, 44px) !important;
  min-height: var(--rs-search-height, 44px) !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: none;
  border: 0 !important;
  border-radius: 0.25rem;
  box-shadow: none !important;
  background: var(--rs-search-button, var(--rs-color-primary, #e30613)) !important;
  color: var(--rs-search-icon, #fff) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  cursor: pointer;
}

.rs-search .rs-search__submit:hover,
.rs-search button.rs-search__submit:hover,
form.rs-search[data-rs-search] button.rs-search__submit:hover {
  border: 0 !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--rs-search-button, var(--rs-color-primary, #e30613)) 85%, #000) !important;
  color: var(--rs-search-icon, #fff) !important;
}

.rs-search__leading,
.rs-search__leading .rs-icon {
  color: var(--rs-search-icon, var(--rs-color-text-muted, #6b7280));
}

.rs-search__submit .rs-icon,
.rs-search__submit svg,
.rs-search__leading svg {
  color: inherit;
}

.rs-search__submit img,
.rs-search__leading img,
.rs-search__icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

form.rs-search.rs-search--loading[data-rs-search] button.rs-search__submit .rs-icon,
form.rs-search.rs-search--loading[data-rs-search] button.rs-search__submit svg,
form.rs-search.rs-search--loading[data-rs-search] button.rs-search__submit img {
  visibility: hidden;
}

form.rs-search.rs-search--loading[data-rs-search] button.rs-search__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid color-mix(in srgb, var(--rs-search-icon, #fff) 35%, transparent);
  border-top-color: var(--rs-search-icon, #fff);
  border-radius: 50%;
  animation: rs-search-spin 0.65s linear infinite;
}

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

.rs-search--shortcode {
  position: relative;
  display: flex;
  align-items: stretch;
  width: var(--rs-search-width, 100%);
  max-width: var(--rs-search-max-width, 40rem);
  height: var(--rs-search-height, 44px);
  min-height: var(--rs-search-height, 44px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.rs-search--shortcode .rs-search__leading {
  display: none;
}

.rs-search--shortcode .rs-search__submit,
form.rs-search.rs-search--shortcode[data-rs-search] button.rs-search__submit {
  width: 52px;
  min-width: 52px;
  height: var(--rs-search-height, 44px) !important;
  min-height: var(--rs-search-height, 44px) !important;
  border-radius: 0 13px 13px 0 !important;
}

.rs-search .rs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .rs-header-pro__search {
    width: var(--rs-search-width, auto);
    max-width: var(--rs-search-max-width, 535px);
  }

  .rs-header-pro__search .rs-search--pro {
    height: var(--rs-search-height, 44px);
    min-height: var(--rs-search-height, 44px);
  }

  .rs-header-pro__search form.rs-search.rs-search--pro[data-rs-search] button.rs-search__submit {
    width: 52px;
    min-width: 52px;
    height: var(--rs-search-height, 44px) !important;
    min-height: var(--rs-search-height, 44px) !important;
    border-radius: 0 13px 13px 0 !important;
  }
}

.rs-catalog-mega__mobile-search {
  border-color: var(--rs-search-border, var(--rs-color-border, #e5e7eb));
  border-width: var(--rs-search-border-width, 1px);
}

[data-rs-search-dropdown] {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 60;
  padding: 0.35rem 0;
  background: var(--rs-search-dropdown-bg, #fff);
  border: var(--rs-search-border-width, 1px) solid var(--rs-search-border, var(--rs-color-border, #e5e7eb));
  border-radius: 0.75rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  max-height: min(28rem, 70vh);
  overflow: auto;
  font-size: var(--rs-search-font-size, 14px);
}

.rs-search-drop__empty {
  padding: 0.95rem 1rem;
  color: var(--rs-color-text-muted, #6b7280);
  font-size: 0.9rem;
}

.rs-search-drop__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.1rem 1rem;
  color: var(--rs-color-text-muted, #6b7280);
  font-size: 0.9rem;
}

.rs-search-drop__spinner {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 2px solid #e5e7eb;
  border-top-color: var(--rs-search-button, var(--rs-color-primary, #e30613));
  border-radius: 50%;
  animation: rs-search-spin 0.65s linear infinite;
}

.rs-search-drop__sep {
  height: 1px;
  margin: 0.35rem 0.85rem;
  background: #eef0f3;
}

.rs-search-drop__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
}

.rs-search-drop__row--term:hover,
.rs-search-drop__row--product:hover {
  background: color-mix(in srgb, var(--rs-search-dropdown-bg, #fff) 88%, #000);
}

.rs-search-drop__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 0.45rem;
  background: #f3f4f6;
  color: #9ca3af;
}

.rs-search-drop__thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid #eef0f3;
}

.rs-search-drop__thumb--product {
  width: 56px;
  height: 56px;
}

.rs-search-drop__body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.rs-search-drop__title {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.35;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-search-drop__mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.rs-search-drop__subtitle {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #9ca3af;
}

.rs-search-drop__product-link,
.rs-search-drop__product-link:hover,
.rs-search-drop__product-link:focus {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.rs-search-drop__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rs-search-drop__price,
.rs-search-drop__price .woocommerce-Price-amount,
.rs-search-drop__price .amount,
.rs-search-drop__price span.woocommerce-Price-amount.amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.rs-search-drop__price del,
.rs-search-drop__price .rs-price__old {
  margin-left: 0.15rem;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.85em;
}

.rs-search-drop__sale {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #22a33a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.rs-search-drop__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.rs-search-drop__atc,
button.rs-search-drop__atc,
[data-rs-search-dropdown] button.rs-search-drop__atc {
  appearance: none;
  border: 0 !important;
  border-radius: 0.4rem;
  background: var(--rs-search-atc-button, var(--rs-search-button, var(--rs-color-primary, #e30613))) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0.5rem 0.75rem !important;
  cursor: pointer;
  white-space: nowrap;
}

.rs-search-drop__atc:hover,
button.rs-search-drop__atc:hover,
[data-rs-search-dropdown] button.rs-search-drop__atc:hover {
  background: color-mix(in srgb, var(--rs-search-atc-button, var(--rs-search-button, var(--rs-color-primary, #e30613))) 85%, #000) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.rs-search-drop__atc:disabled {
  opacity: 0.65;
  cursor: wait;
}
