/* Taller Flash search commerce layer. Loaded after the global redesign. */

.tf-search-commerce .tf-header-search {
  width: min(700px, 52vw);
}

.tf-search-commerce .tf-header-search .dgwt-wcas-search-wrapp {
  width: 100%;
  max-width: none;
  margin: 0;
}

.tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp {
  position: relative;
  padding: 0;
  border: 1px solid #3b3b40;
  border-radius: 7px;
  background: #151517;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.tf-search-commerce .tf-header-search .dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp,
.tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp:focus-within {
  border-color: #e30613;
  background: #1a1a1d;
  box-shadow: 0 0 0 3px rgba(227,6,19,.16), 0 14px 34px rgba(0,0,0,.25);
}

.tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp::before {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e30613;
  box-shadow: 0 0 0 5px rgba(227,6,19,.12);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 54px !important;
  padding: 0 66px 0 42px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #fff !important;
  font-family: "TF Archivo Expanded", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .012em;
  box-shadow: none !important;
}

.tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp input[type="search"]::placeholder {
  color: #9999a1 !important;
  opacity: 1;
}

.tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  left: auto !important;
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #e30613 !important;
  opacity: 1 !important;
}

.tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit::before { display: none !important; }
.tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit:hover { background: #ff1724 !important; }
.tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit svg { width: 19px !important; height: 19px !important; }
.tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit svg path { fill: #fff !important; }

.tf-search-commerce .tf-header-search .dgwt-wcas-preloader {
  right: 57px !important;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp {
  margin-top: 8px !important;
  border: 1px solid #d9d9de !important;
  border-top: 4px solid #e30613 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.26) !important;
  overflow: hidden;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
  min-height: 78px !important;
  padding: 9px 13px !important;
  border-bottom: 1px solid #ececef !important;
  background: #fff;
  transition: background-color .14s ease, box-shadow .14s ease;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product:hover,
body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected {
  background: #f7f7f8 !important;
  box-shadow: inset 4px 0 0 #e30613;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  padding: 4px;
  border: 1px solid #e3e3e6;
  border-radius: 4px;
  background: #f2f2f3;
  object-fit: contain;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
  gap: 14px;
  min-width: 0;
  padding-left: 13px;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
  min-width: 0;
  color: #151517;
  font-family: "TF Archivo Expanded", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.35 !important;
}

.tf-search-result-copy,
.tf-search-result-title {
  display: block !important;
}

.tf-search-result-title {
  margin-top: 5px;
}

.tf-search-brand {
  display: inline-flex !important;
  align-items: center;
  min-height: 19px;
  padding: 3px 6px;
  border: 1px solid #d9d9dd;
  border-radius: 3px;
  background: #f5f5f6;
  color: #55555c;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.tf-search-brand--maxton {
  border-color: rgba(227,6,19,.26);
  background: #fff0f1;
  color: #c8000b;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
  flex: 0 0 auto;
  color: #111;
  font-family: "TF Archivo Expanded", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 800;
  white-space: nowrap;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del {
  color: #8a8a90;
  font-size: 9px;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sku {
  display: inline-block !important;
  margin-top: 5px;
  color: #888890;
  font-size: 8px !important;
  font-weight: 600;
  letter-spacing: .05em;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
  min-height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  background: #0b0b0c !important;
  color: #fff !important;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more {
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover {
  background: #e30613 !important;
}

body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline,
body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline-v2 {
  padding: 9px 13px 6px !important;
  background: #f4f4f5 !important;
  color: #74747b !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Catalogue cards: the buyer can identify manufacturer and SKU at a glance. */
.tf-search-commerce .tf-product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 22px;
  margin: 0 0 8px;
}

.tf-search-commerce .tf-product-card-sku {
  overflow: hidden;
  color: #8b8b91;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-search-commerce .woocommerce ul.products li.product:has(.tf-search-brand--maxton) {
  position: relative;
}

.tf-search-commerce .woocommerce ul.products li.product:has(.tf-search-brand--maxton)::before {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 7px;
  background: #e30613;
  color: #fff;
  content: "RECOMENDADO";
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .09em;
  pointer-events: none;
}

@media (min-width: 922px) {
  .tf-search-commerce .site-header .ast-above-header-bar {
    padding-block: 11px;
  }
}

@media (max-width: 921px) {
  .tf-search-commerce .ast-mobile-header-wrap .tf-header-search {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 16px;
  }

  .tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    height: 50px !important;
    padding-right: 60px !important;
    font-size: 16px !important;
  }

  .tf-search-commerce .tf-header-search button.dgwt-wcas-search-submit {
    top: 5px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp {
    max-height: min(72vh, 680px) !important;
    margin-top: 4px !important;
    border-radius: 4px !important;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
    min-height: 74px !important;
    padding: 8px 10px !important;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si,
  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    width: 54px;
    height: 54px;
    max-width: 54px;
    max-height: 54px;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
    gap: 7px;
    padding-left: 10px;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
    font-size: 10px !important;
  }

  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
    max-width: 76px;
    padding-left: 4px;
    font-size: 10px !important;
  }
}

@media (max-width: 520px) {
  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { display: none; }
  .tf-search-commerce .tf-product-card-meta { align-items: flex-start; flex-direction: column; min-height: 38px; }
  .tf-search-commerce .tf-product-card-sku { max-width: 100%; }
  .tf-search-commerce .woocommerce ul.products li.product:has(.tf-search-brand--maxton)::before { top: 6px; left: 6px; padding: 4px 5px; font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-search-commerce .tf-header-search .dgwt-wcas-sf-wrapp,
  body.tf-search-commerce .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product { transition: none; }
}
