/*
 * Searchfast storefront styles.
 *
 * @author Tajriba
 * @copyright 2026 Tajriba
 * @license Proprietary - see LICENSE.md
 */

.searchfast-root {
  width: 100%;
}

.searchfast-native-form {
  display: flex;
  align-items: stretch;
  width: min(680px, 100%);
  margin: 0 auto;
}

.searchfast-native-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d8dde6;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: #1f2937;
}

.searchfast-native-input:focus {
  border-color: var(--searchfast-primary, #2fb5d2);
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--searchfast-primary, #2fb5d2);
}

.searchfast-native-submit {
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--searchfast-primary, #2fb5d2);
  border-radius: 0 6px 6px 0;
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff;
  cursor: pointer;
}

.searchfast-native-submit svg {
  display: block;
  width: 21px;
  height: 21px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.searchfast-native-submit:hover,
.searchfast-native-submit:focus {
  background: #259ab3;
  border-color: #259ab3;
}

.searchfast-shell {
  position: absolute;
  z-index: 9999;
  width: min(720px, calc(100vw - 24px));
  border: 1px solid rgba(18, 31, 48, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.searchfast-shell[hidden] {
  display: none;
}

.searchfast-correction,
.searchfast-banner {
  padding: 9px 12px;
  color: #374151;
  background: #f8fafc;
  border-bottom: 1px solid #edf0f3;
}

.searchfast-correction button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--searchfast-primary, #2fb5d2);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.searchfast-autocomplete-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  min-height: 220px;
}

.searchfast-autocomplete-layout--products-only {
  grid-template-columns: minmax(0, 1fr);
}

.searchfast-autocomplete-heading {
  display: block;
  padding: 13px 16px 10px;
  border-bottom: 1px solid #dfe4ea;
  color: #303844;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.searchfast-category-results {
  min-width: 0;
  border-right: 1px solid #edf0f3;
  background: #fbfcfd;
}

.searchfast-category-result-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0 12px;
}

.searchfast-category-results a {
  display: block;
  padding: 9px 16px;
  color: #111827;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.searchfast-category-results a:hover,
.searchfast-category-results a:focus {
  background: #f0f7f9;
  color: #111827;
  text-decoration: none;
}

.searchfast-product-suggestions {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.searchfast-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-height: 540px;
  overflow: auto;
}

.searchfast-more-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-top: 1px solid #edf0f3;
  background: #fff;
  color: #111827;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.searchfast-more-results:hover,
.searchfast-more-results:focus {
  background: #f0f7f9;
  color: #111827;
  text-decoration: none;
}

.searchfast-more-results svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.searchfast-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
}

.searchfast-item:not(:nth-child(3n)) {
  border-right: 1px solid #f0f2f5;
}

.searchfast-item:hover,
.searchfast-item:focus {
  background: #f7fbfc;
  text-decoration: none;
}

.searchfast-item-link,
.searchfast-item-image-link {
  color: inherit;
  text-decoration: none;
}

.searchfast-item-image-link,
.searchfast-item-image-placeholder,
.searchfast-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.searchfast-item img {
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.searchfast-image-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e1e6ee;
  background: linear-gradient(135deg, #f8fafc, #eef3f7);
}

.searchfast-image-fallback::before {
  content: "";
  display: block;
  width: 38%;
  aspect-ratio: 1 / 1;
  border: 2px solid #b6c2ce;
  border-radius: 5px;
  box-shadow: inset 0 -10px 0 rgba(182, 194, 206, 0.28);
}

.searchfast-image-fallback::after {
  content: "";
  position: absolute;
  width: 18%;
  height: 2px;
  background: #b6c2ce;
  transform: rotate(-35deg);
  opacity: 0.9;
}

.searchfast-item-content {
  display: block;
  min-width: 0;
  margin-top: 10px;
}

.searchfast-item-title {
  display: block;
  min-height: 2.7em;
  overflow: hidden;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.searchfast-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.searchfast-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7f6fb;
  color: #16677b;
}

.searchfast-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.searchfast-price small,
.searchfast-product-prices small {
  color: #6b7280;
  font-size: 0.72em;
  font-weight: 400;
}

.searchfast-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.searchfast-item-side,
.searchfast-item-actions {
  display: flex;
  align-items: flex-end;
}

.searchfast-item-side {
  width: 100%;
  margin-top: auto;
  padding-top: 9px;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.searchfast-price {
  align-items: flex-start;
  font-size: 13px;
}

.searchfast-item-actions {
  gap: 5px;
  min-width: 0;
  justify-content: flex-end;
}

.searchfast-item-action {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--searchfast-primary, #2fb5d2);
  border-radius: 5px;
  background: #fff;
  color: var(--searchfast-primary, #2fb5d2);
  font-size: 11px;
  cursor: pointer;
}

.searchfast-item-configure,
.searchfast-configure-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--searchfast-primary, #2fb5d2);
  border-radius: 5px;
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.searchfast-item-configure {
  max-width: 118px;
  min-height: 34px;
  padding: 6px 8px;
  gap: 5px;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.searchfast-item-configure span {
  min-width: 0;
  font-size: 10px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.searchfast-item-configure svg,
.searchfast-configure-product svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.searchfast-item-configure svg {
  width: 16px;
  height: 16px;
}

.searchfast-item-configure:hover,
.searchfast-item-configure:focus,
.searchfast-configure-product:hover,
.searchfast-configure-product:focus {
  color: #fff !important;
  filter: brightness(0.94);
}

.searchfast-item-cart {
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff;
}

.searchfast-cart-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.searchfast-item-reference {
  display: block;
  margin-top: 3px;
  color: #8a94a3;
  cursor: text;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  user-select: text;
  -webkit-user-select: text;
}

.searchfast-empty {
  padding: 18px 12px;
  color: #6b7280;
}

.searchfast-page {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 48px;
}

.searchfast-page-header {
  display: block;
  margin-bottom: 18px;
}

.searchfast-facets button,
.searchfast-add-cart {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--searchfast-primary, #2fb5d2);
  border-radius: 6px;
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.searchfast-page-note {
  margin: 8px 0 0;
  color: #5f6b7a;
}

.searchfast-page-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #bde7f1;
  border-radius: 6px;
  background: #effafd;
  color: #16677b;
}

.searchfast-discovery-section {
  margin-bottom: 18px;
}

.searchfast-discovery-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.searchfast-category-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.searchfast-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.searchfast-category-link,
.searchfast-page-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  border: 1px solid #e1e6ee;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.searchfast-category-link {
  width: 100%;
}

.searchfast-category-link--text {
  min-height: 42px;
  padding-left: 12px;
}

.searchfast-page-link {
  min-height: 38px;
  padding-left: 12px;
}

.searchfast-category-link:hover,
.searchfast-category-link:focus,
.searchfast-page-link:hover,
.searchfast-page-link:focus {
  border-color: var(--searchfast-primary, #2fb5d2);
  color: var(--searchfast-primary, #2fb5d2);
  text-decoration: none;
}

.searchfast-category-link img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #f3f4f6;
  object-fit: cover;
}

.searchfast-category-image-placeholder {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
}

.searchfast-category-link strong,
.searchfast-page-link strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.searchfast-discovery-arrow {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
}

.searchfast-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.searchfast-filter-toggle {
  display: none;
}

.searchfast-facets {
  position: sticky;
  top: 12px;
  padding: 14px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #fff;
}

.searchfast-facets h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.searchfast-facets label {
  display: block;
  margin-bottom: 12px;
  color: #374151;
  font-weight: 600;
}

.searchfast-facets label span {
  display: block;
  margin-bottom: 5px;
}

.searchfast-facets input[type="number"],
.searchfast-facets select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  background: #fff;
}

.searchfast-price-filter {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.searchfast-price-filter legend {
  margin-bottom: 10px;
  color: #232b35;
  font-size: 15px;
  font-weight: 700;
}

.searchfast-price-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.searchfast-price-values label {
  min-width: 0;
  margin-bottom: 0;
}

.searchfast-price-values label > span:first-child {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.searchfast-price-input {
  display: flex !important;
  align-items: center;
  min-height: 38px;
  margin: 0 !important;
  padding-left: 9px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: #fff;
  color: #667085;
}

.searchfast-price-input input {
  min-width: 0;
  width: 100%;
  min-height: 36px !important;
  padding: 0 5px;
  border: 0 !important;
  background: transparent !important;
  color: #232b35;
  font-weight: 600;
  appearance: textfield;
}

.searchfast-price-input input::-webkit-inner-spin-button,
.searchfast-price-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.searchfast-price-slider {
  --searchfast-range-start: 0%;
  --searchfast-range-end: 100%;
  position: relative;
  height: 34px;
  margin-top: 10px;
}

.searchfast-price-slider::before {
  position: absolute;
  top: 15px;
  right: 7px;
  left: 7px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #d9dee7 0,
    #d9dee7 var(--searchfast-range-start),
    var(--searchfast-primary, #2fb5d2) var(--searchfast-range-start),
    var(--searchfast-primary, #2fb5d2) var(--searchfast-range-end),
    #d9dee7 var(--searchfast-range-end),
    #d9dee7 100%
  );
  content: "";
}

.searchfast-price-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.searchfast-price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.searchfast-price-slider input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--searchfast-primary, #2fb5d2);
  box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.16), 0 2px 6px rgba(31, 41, 55, 0.2);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
}

.searchfast-price-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.searchfast-price-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--searchfast-primary, #2fb5d2);
  box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.16), 0 2px 6px rgba(31, 41, 55, 0.2);
  cursor: grab;
  pointer-events: auto;
}

.searchfast-checkbox {
  display: flex !important;
  gap: 8px;
  align-items: center;
}

.searchfast-checkbox span {
  margin-bottom: 0 !important;
}

.searchfast-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--searchfast-columns, 3), minmax(0, 1fr));
  gap: 16px;
}

.searchfast-product-results {
  min-width: 0;
}

.searchfast-results-toolbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 14px;
}

.searchfast-results-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  margin-right: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.searchfast-view-switch {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

.searchfast-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
}

.searchfast-view-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.searchfast-view-button:first-child svg rect {
  fill: currentColor;
  stroke: none;
}

.searchfast-view-button:hover,
.searchfast-view-button:focus {
  border-color: var(--searchfast-primary, #2fb5d2);
  color: var(--searchfast-primary, #2fb5d2);
}

.searchfast-view-button.is-active {
  border-color: var(--searchfast-primary, #2fb5d2);
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff;
}

.searchfast-sort-form {
  display: flex;
  flex: 0 1 auto;
  gap: 10px;
  align-items: center;
  margin-left: 12px;
}

.searchfast-sort-form label {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.searchfast-sort-form select {
  width: 210px;
  min-width: 180px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background-color: #fff;
  color: #232b35;
}

.searchfast-load-more {
  display: flex;
  justify-content: center;
  margin: 36px 0 24px;
}

.searchfast-page .searchfast-product-results > .searchfast-load-more {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 28px;
  padding-top: 8px;
}

.searchfast-load-more button {
  min-height: 50px;
  padding: 10px 32px;
  border: 1px solid var(--searchfast-primary, #2fb5d2);
  border-radius: 6px;
  background: var(--searchfast-primary, #2fb5d2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.searchfast-page .searchfast-load-more button {
  min-height: 54px;
  padding: 12px 40px;
}

.searchfast-load-more button:hover,
.searchfast-load-more button:focus {
  filter: brightness(0.94);
}

.searchfast-load-more button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.searchfast-button-loading::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  content: "";
  animation: searchfast-spin 0.7s linear infinite;
}

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


.searchfast-result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--searchfast-card-border, #e1e6ee);
  border-radius: 8px;
  background: var(--searchfast-card-background, #fff);
}

.searchfast-result-card a {
  color: inherit;
  text-decoration: none;
}

.searchfast-result-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f8fafc;
}

.searchfast-result-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.searchfast-result-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.searchfast-result-title {
  display: block;
  min-width: 0;
}

.searchfast-result-card h2 {
  min-height: 42px;
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: var(--searchfast-card-title, #232b35);
  font-weight: var(--searchfast-card-title-weight, 600);
}

.searchfast-result-content {
  min-width: 0;
}

.searchfast-result-purchase {
  margin-top: auto;
}

.searchfast-result-reference {
  display: block;
  margin: -2px 0 7px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

.searchfast-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
}

.searchfast-result-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.searchfast-result-card p {
  margin: 0 0 10px;
  color: #5f6b7a;
}

.searchfast-result-description {
  display: none;
}

.searchfast-add-cart {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.searchfast-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.searchfast-cart-error {
  position: relative;
  border-color: #c62828 !important;
  background: #c62828 !important;
}

.searchfast-cart-error::after {
  position: absolute;
  z-index: 2;
  width: min(260px, calc(100vw - 32px));
  margin-top: 48px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #7f1d1d;
  color: #fff;
  content: attr(data-searchfast-error);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.searchfast-product-grid--list {
  grid-template-columns: minmax(0, 1fr);
}

.searchfast-product-grid--list .searchfast-result-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(170px, auto);
  gap: 18px;
  align-items: start;
}

.searchfast-product-grid--list .searchfast-result-image {
  width: 100%;
  align-self: start;
}

.searchfast-product-grid--list .searchfast-result-card img {
  width: 100%;
  height: 100%;
}

.searchfast-product-grid--list .searchfast-result-card h2 {
  min-height: 0;
  margin-top: 0;
  font-size: 17px;
}

.searchfast-product-grid--list .searchfast-result-reference {
  margin-top: 0;
}

.searchfast-product-grid--list .searchfast-result-description {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.searchfast-product-grid--list .searchfast-result-meta {
  min-height: 0;
}

.searchfast-product-grid--list .searchfast-result-purchase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-top: 0;
  min-width: 0;
}

.searchfast-product-grid--list .searchfast-product-prices {
  align-items: flex-end;
  text-align: right;
}

.searchfast-product-grid--list .searchfast-result-actions {
  justify-content: flex-end;
}

.searchfast-quantity {
  width: 68px;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid #c7ced8;
  border-radius: 6px;
  background: #fff;
  color: #232b35;
  text-align: center;
}

.searchfast-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.searchfast-icon-button .material-icons {
  font-size: 20px;
  line-height: 1;
}

.searchfast-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: 641px) and (max-width: 900px) {
  .searchfast-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.searchfast-mobile-open {
    overflow: hidden;
  }

  .searchfast-shell {
    position: fixed;
    right: 8px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    left: 8px !important;
    width: auto !important;
    max-height: none;
    border-radius: 10px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .searchfast-autocomplete-layout {
    display: block;
    min-height: 0;
  }

  .searchfast-category-results {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
  }

  .searchfast-category-results--empty {
    display: none;
  }

  .searchfast-autocomplete-heading {
    padding: 15px 16px 10px;
  }

  .searchfast-category-result-links {
    flex-direction: row;
    gap: 10px;
    padding: 12px 16px 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
  }

  .searchfast-category-results a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
    line-height: 1.25;
    white-space: nowrap;
  }

  .searchfast-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .searchfast-item:not(:nth-child(3n)) {
    border-right: 0;
  }

  .searchfast-item:nth-child(odd) {
    border-right: 1px solid #f0f2f5;
  }

  .searchfast-item {
    display: flex;
    padding: 9px;
  }

  .searchfast-item-image-link,
  .searchfast-item-image-placeholder,
  .searchfast-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .searchfast-item img {
    object-fit: contain;
  }

  .searchfast-item-content {
    margin-top: 7px;
  }

  .searchfast-item-title {
    min-height: 2.7em;
    overflow: hidden;
  }

  .searchfast-price {
    white-space: normal;
  }

  .searchfast-item-side {
    width: 100%;
    margin-top: auto;
    padding-top: 7px;
    align-items: center;
  }

  .searchfast-page {
    width: calc(100% - 16px);
    margin-top: 16px;
  }

  .searchfast-page-header,
  .searchfast-page-layout {
    grid-template-columns: 1fr;
  }

  .searchfast-filter-toggle {
    display: flex;
    grid-column: 1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
    color: #232b35;
    font-weight: 700;
  }

  .searchfast-filter-toggle-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
  }

  .searchfast-filter-toggle[aria-expanded="true"] .searchfast-filter-toggle-icon {
    transform: rotate(225deg);
  }

  .searchfast-category-links,
  .searchfast-page-links {
    display: flex;
    flex-wrap: nowrap;
    margin-right: -8px;
    padding: 1px 8px 8px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .searchfast-category-link {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .searchfast-page-link {
    flex: 0 0 auto;
    max-width: min(78vw, 280px);
    scroll-snap-align: start;
  }

  .searchfast-facets {
    display: none;
    position: static;
  }

  .searchfast-facets--open {
    display: block;
  }

  .searchfast-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .searchfast-results-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 10px;
  }

  .searchfast-results-count {
    flex: 0 0 auto;
    margin-right: 2px;
  }

  .searchfast-sort-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .searchfast-sort-form select {
    width: min(64vw, 240px);
    min-width: 0;
  }

  .searchfast-sort-form {
    margin-left: 0;
  }

  .searchfast-product-grid--list {
    grid-template-columns: minmax(0, 1fr);
  }

  .searchfast-product-grid--list .searchfast-result-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .searchfast-product-grid--list .searchfast-result-image {
    width: 96px;
  }

  .searchfast-product-grid--list .searchfast-result-card img {
    width: 100%;
    height: 100%;
  }

  .searchfast-product-grid--list .searchfast-result-purchase {
    grid-column: 2;
    align-items: flex-start;
  }

  .searchfast-product-grid--list .searchfast-product-prices {
    align-items: flex-start;
    text-align: left;
  }

  .searchfast-product-grid--list .searchfast-result-actions {
    justify-content: flex-start;
  }
}
