@charset "UTF-8";
/**
 * WooCommerce Search widget styles.
 *
 * Edit this .scss only — the watcher compiles the .css / .css.map companions.
 */
/* ---------------------------------------------------------------------------
 * Root / trigger
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-wrap {
  position: relative;
}

/* Inline mode: the search field (the in-field icon acts as submit) */
.trx-wcext-woocommerce-search-inline {
  display: flex;
  align-items: stretch;
}

/* Popup trigger — a plain link, not a button (no background/border by default) */
.trx-wcext-woocommerce-search-trigger {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 8px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}
.trx-wcext-woocommerce-search-trigger:hover, .trx-wcext-woocommerce-search-trigger:focus {
  text-decoration: none;
}
.trx-wcext-woocommerce-search-trigger .trx-wcext-icon {
  position: relative;
}
.trx-wcext-woocommerce-search-trigger .trx-wcext-icon svg {
  fill: currentColor;
}

.trx-wcext-woocommerce-search-btnicon-end .trx-wcext-woocommerce-search-trigger {
  flex-direction: row-reverse;
}

/* ---------------------------------------------------------------------------
 * Search field + icon / spinner
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.trx-wcext-woocommerce-search-input {
  width: 100%;
}

.trx-wcext-woocommerce-search-field-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.trx-wcext-woocommerce-search-fieldicon-start .trx-wcext-woocommerce-search-field-icon {
  left: 12px;
}
.trx-wcext-woocommerce-search-fieldicon-start .trx-wcext-woocommerce-search-input {
  padding-left: 40px;
}

.trx-wcext-woocommerce-search-fieldicon-end .trx-wcext-woocommerce-search-field-icon {
  right: 12px;
}
.trx-wcext-woocommerce-search-fieldicon-end .trx-wcext-woocommerce-search-input {
  padding-right: 40px;
}

/* "Clear" button: pinned to the field's right edge, revealed only while the field holds text */
.trx-wcext-woocommerce-search-clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  z-index: 2;
}

.is-filled .trx-wcext-woocommerce-search-clear {
  display: inline-flex;
}

.trx-wcext-woocommerce-search-clear-text {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Half the size of the popup's close icon */
.trx-wcext-woocommerce-search-clear-icon {
  font-size: 9px;
}

/* Keep the typed text from running under the clear button */
.trx-wcext-woocommerce-search-field-has-clear .trx-wcext-woocommerce-search-input {
  padding-right: 30px;
  /* WebKit draws its own clear control for type="search" — ours replaces it */
}
.trx-wcext-woocommerce-search-field-has-clear .trx-wcext-woocommerce-search-input::-webkit-search-cancel-button {
  display: none;
}

/* Field icon parked at the end: move the clear button in front of it */
.trx-wcext-woocommerce-search-fieldicon-end .trx-wcext-woocommerce-search-field-has-clear .trx-wcext-woocommerce-search-clear {
  right: 40px;
}
.trx-wcext-woocommerce-search-fieldicon-end .trx-wcext-woocommerce-search-field-has-clear .trx-wcext-woocommerce-search-input {
  padding-right: 68px;
}

.trx-wcext-woocommerce-search-icon-spinner {
  display: none;
}

.is-loading .trx-wcext-woocommerce-search-icon-search {
  display: none;
}
.is-loading .trx-wcext-woocommerce-search-icon-spinner {
  display: inline-flex;
  animation: trx-wcext-wcs-spin 0.8s linear infinite;
}

@keyframes trx-wcext-wcs-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Used by the add-to-cart "adding" state in the actions wrapper (same name/def as Product Grid). */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ---------------------------------------------------------------------------
 * Popup: inline dropdown vs modal
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-popup {
  --trx-wcext-wcs-anchor-top: 6vh;
  --trx-wcext-wcs-offset: 8px;
  --trx-wcext-wcs-max-width: 900px;
  --trx-wcext-wcs-margin-top: 0px;
  --trx-wcext-wcs-margin-bottom: 24px;
  --trx-wcext-wcs-margin-left: 0px;
  --trx-wcext-wcs-margin-right: 0px;
}
.trx-wcext-woocommerce-search-popup[hidden] {
  display: none;
}

.trx-wcext-woocommerce-search-popup-inline {
  --trx-wcext-wcs-max-width: 100%;
  display: none;
  position: absolute;
  top: calc(100% + var(--trx-wcext-wcs-offset));
  left: 0;
  right: 0;
  z-index: 1000;
}
.trx-wcext-woocommerce-search-popup-inline:not([hidden]) {
  display: block;
}

.trx-wcext-woocommerce-search-popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 7000;
}
.trx-wcext-woocommerce-search-popup-modal:not([hidden]) {
  display: block;
}

.trx-wcext-woocommerce-search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.trx-wcext-woocommerce-search-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 36px;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-color-bd_color, #e5e5e5) var(--theme-color-bg_color, #f3f5f7);
}
.trx-wcext-woocommerce-search-dialog::-webkit-scrollbar {
  width: 8px;
}
.trx-wcext-woocommerce-search-dialog::-webkit-scrollbar-track {
  background: var(--theme-color-bg_color, #f3f5f7);
}
.trx-wcext-woocommerce-search-dialog::-webkit-scrollbar-thumb {
  background-color: var(--theme-color-bd_color, #e5e5e5);
  border: 1px solid var(--theme-color-bg_color, #f3f5f7);
  border-radius: 6px;
}

.trx-wcext-woocommerce-search-popup-inline .trx-wcext-woocommerce-search-dialog {
  width: 100%;
  max-width: Min(var(--trx-wcext-wcs-max-width), calc( 100vw - var(--trx-wcext-wcs-margin-left) - var(--trx-wcext-wcs-margin-right) ));
  margin: var(--trx-wcext-wcs-margin-top) auto var(--trx-wcext-wcs-margin-bottom);
  max-height: 80vh;
}

.trx-wcext-woocommerce-search-popup-modal .trx-wcext-woocommerce-search-dialog {
  width: 100%;
  max-width: Min(var(--trx-wcext-wcs-max-width), calc( 100vw - var(--trx-wcext-wcs-margin-left) - var(--trx-wcext-wcs-margin-right) ));
  margin: calc(var(--trx-wcext-wcs-anchor-top) + var(--trx-wcext-wcs-offset)) auto var(--trx-wcext-wcs-margin-bottom);
  max-height: calc(100vh - var(--trx-wcext-wcs-anchor-top) - var(--trx-wcext-wcs-offset) - var(--trx-wcext-wcs-margin-bottom));
}

body.trx-wcext-woocommerce-search-open {
  overflow: hidden;
}

/* Close button (optional text + optional icon) */
.trx-wcext-woocommerce-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  z-index: 2;
}

.trx-wcext-woocommerce-search-close-text {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Default placement: pinned to the dialog corner */
.trx-wcext-woocommerce-search-close-corner {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* "After field": part of the field row, so no absolute positioning / offsets */
.trx-wcext-woocommerce-search-close-after-field {
  position: static;
  flex: 0 0 auto;
  white-space: nowrap;
}

.trx-wcext-woocommerce-search-close-icon {
  font-size: 14px;
}

/* Field + "After field" close button in one row */
.trx-wcext-woocommerce-search-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Field (or the row hosting it) inside the dialog gets bottom spacing before the body */
.trx-wcext-woocommerce-search-dialog > .trx-wcext-woocommerce-search-field,
.trx-wcext-woocommerce-search-dialog > .trx-wcext-woocommerce-search-field-row {
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------
 * Body layout (vertical / horizontal)
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-body {
  --trx-wcext-wcs-suggestions-gap: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--trx-wcext-wcs-suggestions-gap);
}

.trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body {
  flex-direction: row;
  align-items: stretch;
}
.trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body .trx-wcext-woocommerce-search-suggestions {
  padding-right: var(--trx-wcext-wcs-suggestions-gap);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* Only the suggestions column is left in the row: the product column collapsed for the current
 * state (e.g. Most Popular off before typing, or a query that returned nothing). Let the remaining
 * column span the whole width and drop the right padding / divider it carries as the left of two
 * columns. JS toggles the `-one-column` body class from the columns' actual visibility (see
 * updateColumns()). `flex` / `max-width` need `!important` to outweigh the Suggestions Width control,
 * whose selector carries the popup id (higher specificity than this class-only rule). */
.trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body-one-column {
  flex-wrap: wrap;
  /* A results block sitting directly in the body is the stripped "View All"/Empty stand-in emitted
   * when Search Results is off (Most Popular still on). It is not a real column — drop it onto its
   * own full-width row under the suggestions instead of letting it hold a narrow second column. */
}
.trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body-one-column .trx-wcext-woocommerce-search-suggestions {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  padding-right: 0;
  border-right: none;
}
.trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body-one-column > .trx-wcext-woocommerce-search-block-results {
  flex: 1 1 100%;
}

@media (max-width: 1279px) {
  .trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body {
    flex-direction: column;
  }
  .trx-wcext-woocommerce-search-layout-horizontal .trx-wcext-woocommerce-search-body .trx-wcext-woocommerce-search-suggestions {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
    padding-bottom: var(--trx-wcext-wcs-suggestions-gap);
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
}
.trx-wcext-woocommerce-search-suggestions {
  --trx-wcext-wcs-suggestion-block-gap: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--trx-wcext-wcs-suggestion-block-gap);
  min-width: 0;
}

.trx-wcext-woocommerce-search-products-col {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------------------------------------------------------------------------
 * Pre / typed visibility
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-typed {
  display: none;
}

/* State lives on the popup (it may be portaled to <body> in button mode) */
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-typed {
  display: block;
}
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-pre {
  display: none;
}
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-typed.is-empty {
  display: none;
}

/* Empty Results: when the Search Results block has no matches AND its Empty message is enabled,
 * keep the block visible but swap the "0 results" header/body for the configured message + link.
 * The extra `-has-empty` class outweighs the generic `-typed.is-empty { display:none }` rule above. */
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-block-results.trx-wcext-woocommerce-search-has-empty.is-empty {
  display: block;
}
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-block-results.trx-wcext-woocommerce-search-has-empty.is-empty .trx-wcext-woocommerce-search-block-header,
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-block-results.trx-wcext-woocommerce-search-has-empty.is-empty .trx-wcext-woocommerce-search-results-body,
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-block-results.trx-wcext-woocommerce-search-has-empty.is-empty .trx-wcext-woocommerce-search-view-all-below {
  display: none;
}
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-block-results.trx-wcext-woocommerce-search-has-empty.is-empty .trx-wcext-woocommerce-search-empty-results {
  display: block;
}

/* A column with every block inside it hidden must go too, or it keeps holding open its flex slot
 * (and, for the suggestions one, its divider) around a gap. Which blocks can show depends on the
 * state: before typing only the `-pre` ones (Recent needs entries), while typing only the `-typed`
 * ones — an empty one of those still counts when it carries the Empty Results message.
 * Left unnested on purpose: the .scss compiler drops the `:has()` while resolving a nested
 * selector, which would collapse these into "always hide the column". */
.trx-wcext-woocommerce-search-popup:not(.is-typing) .trx-wcext-woocommerce-search-suggestions:not(:has(> .trx-wcext-woocommerce-search-pre:not(.trx-wcext-woocommerce-search-block-recent), > .trx-wcext-woocommerce-search-block-recent.is-populated)),
.trx-wcext-woocommerce-search-popup:not(.is-typing) .trx-wcext-woocommerce-search-products-col:not(:has(> .trx-wcext-woocommerce-search-pre)),
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-suggestions:not(:has(> .trx-wcext-woocommerce-search-typed:not(.is-empty))),
.trx-wcext-woocommerce-search-popup.is-typing .trx-wcext-woocommerce-search-products-col:not(:has(> .trx-wcext-woocommerce-search-typed:not(.is-empty), > .trx-wcext-woocommerce-search-typed.trx-wcext-woocommerce-search-has-empty)) {
  display: none;
}

/* ---------------------------------------------------------------------------
 * Blocks / titles / suggestion items
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-block-recent:not(.is-populated) {
  display: none;
}

.trx-wcext-woocommerce-search-block-title {
  font-weight: 600;
  margin-bottom: 10px;
  flex-grow: 1;
}

.trx-wcext-woocommerce-search-block-header {
  margin-bottom: 10px;
}
.trx-wcext-woocommerce-search-block-header .trx-wcext-woocommerce-search-block-title {
  margin-bottom: 0;
}

.trx-wcext-woocommerce-search-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.trx-wcext-woocommerce-search-suggestion-items {
  --trx-wcext-wcs-suggestion-items-gap-column: 8px;
  --trx-wcext-wcs-suggestion-items-gap-row: 6px;
  --trx-wcext-wcs-suggestion-item-gap: 8px;
}
.trx-wcext-woocommerce-search-suggestion-items.trx-wcext-woocommerce-search-view-list {
  display: flex;
  flex-direction: column;
  gap: var(--trx-wcext-wcs-suggestion-items-gap-row) var(--trx-wcext-wcs-suggestion-items-gap-column);
}
.trx-wcext-woocommerce-search-suggestion-items.trx-wcext-woocommerce-search-view-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--trx-wcext-wcs-suggestion-items-gap-row) var(--trx-wcext-wcs-suggestion-items-gap-column);
}

.trx-wcext-woocommerce-search-suggestion-item {
  display: inline-block;
  vertical-align: middle;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.trx-wcext-woocommerce-search-suggestion-item mark {
  background: transparent;
  font-weight: 700;
  color: inherit;
}
.trx-wcext-woocommerce-search-suggestion-item .trx-wcext-woocommerce-search-trending-image {
  width: 1.5em;
  height: 1.5em;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  margin-right: var(--trx-wcext-wcs-suggestion-item-gap);
}

.trx-wcext-woocommerce-search-view-inline .trx-wcext-woocommerce-search-suggestion-item {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 4px 12px;
}

.trx-wcext-woocommerce-search-item-count {
  opacity: 0.6;
  font-size: 0.85em;
  margin-left: var(--trx-wcext-wcs-suggestion-item-gap);
}

/* ---------------------------------------------------------------------------
 * Recent Searches — item row with a "Remove" button
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-recent-row {
  display: flex;
  align-items: center;
  gap: var(--trx-wcext-wcs-suggestion-item-gap);
}
.trx-wcext-woocommerce-search-recent-row .trx-wcext-woocommerce-search-recent-item {
  flex: 1 1 auto;
  min-width: 0;
}

.trx-wcext-woocommerce-search-view-inline .trx-wcext-woocommerce-search-recent-row {
  display: inline-flex;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 4px 12px;
  gap: var(--trx-wcext-wcs-suggestion-item-gap);
}
.trx-wcext-woocommerce-search-view-inline .trx-wcext-woocommerce-search-recent-row .trx-wcext-woocommerce-search-recent-item {
  border: 0;
  padding: 0;
}

.trx-wcext-woocommerce-search-recent-remove {
  --trx-wcext-wcs-recent-remove-size: 1em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: inherit;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  font-size: var(--trx-wcext-wcs-recent-remove-size);
}
.trx-wcext-woocommerce-search-recent-remove svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.trx-wcext-woocommerce-search-recent-remove:hover, .trx-wcext-woocommerce-search-recent-remove:focus {
  color: #000;
}

/* ---------------------------------------------------------------------------
 * Product cards (grid / list)
 * ------------------------------------------------------------------------- */
ul.products.trx-wcext-woocommerce-search-products, .woocommerce ul.products.trx-wcext-woocommerce-search-products, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--trx-wcext-wcs-columns, 3), minmax(0, 1fr));
}
ul.products.trx-wcext-woocommerce-search-products:before, ul.products.trx-wcext-woocommerce-search-products:after, .woocommerce ul.products.trx-wcext-woocommerce-search-products:before, .woocommerce ul.products.trx-wcext-woocommerce-search-products:after, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products:before, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products:after {
  display: none;
}
ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product, .woocommerce ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap, .woocommerce ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap {
  display: inline-block;
  vertical-align: top;
}
ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap .button, .woocommerce ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap .button, .woocommerce-page ul.products.trx-wcext-woocommerce-search-products li.trx-wcext-woocommerce-search-product .trx-wcext-woocommerce-search-product-atc .add_to_cart_wrap .button {
  margin: 0;
}

.trx-wcext-woocommerce-search-product-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trx-wcext-woocommerce-search-view-list .trx-wcext-woocommerce-search-product-wrapper {
  flex-direction: row;
  gap: 16px;
}

.trx-wcext-woocommerce-search-view-list .trx-wcext-woocommerce-search-product-thumbnail {
  flex: 0 0 96px;
  max-width: 96px;
}

.trx-wcext-woocommerce-search-product-thumbnail {
  position: relative;
}
.trx-wcext-woocommerce-search-product-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}
.trx-wcext-woocommerce-search-products[class*="trx-wcext-woocommerce-search-image-aspect-"] .trx-wcext-woocommerce-search-product-thumbnail .trx-wcext-woocommerce-search-product-image-link {
  display: block;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-1_1 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 1 / 1;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-1_1 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-4_3 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 4 / 3;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-4_3 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-3_4 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 3 / 4;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-3_4 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-6_5 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 6 / 5;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-6_5 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-5_6 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 5 / 6;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-5_6 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-7_6 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 7 / 6;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-7_6 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-6_7 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 6 / 7;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-6_7 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-16_9 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 16 / 9;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-16_9 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-9_16 .trx-wcext-woocommerce-search-product-thumbnail {
  aspect-ratio: 9 / 16;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-image-aspect-9_16 .trx-wcext-woocommerce-search-product-thumbnail img {
  object-fit: cover;
  height: 100%;
}

.trx-wcext-woocommerce-search-product-details {
  padding-top: 8px;
}
.trx-wcext-woocommerce-search-products.trx-wcext-woocommerce-search-view-list .trx-wcext-woocommerce-search-product-details {
  padding-top: 0;
}

.trx-wcext-woocommerce-search-product-category {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}
.trx-wcext-woocommerce-search-product-category a {
  color: inherit;
  text-decoration: none;
}

.trx-wcext-woocommerce-search-product-title {
  font-size: 15px;
  margin: 4px 0;
}
.trx-wcext-woocommerce-search-product-title a {
  text-decoration: none;
  color: inherit;
}

.trx-wcext-woocommerce-search-product-price {
  display: block;
  margin-top: 4px;
}

.trx-wcext-woocommerce-search-product-rating {
  margin: 4px 0;
}
.trx-wcext-woocommerce-search-product-rating .star-rating {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1em;
  width: 5.4em;
  margin: 0;
  font-family: "star";
  font-size: 14px;
  line-height: 1;
}
.trx-wcext-woocommerce-search-product-rating .star-rating::before {
  content: "sssss";
  position: absolute;
  top: 0;
  left: 0;
  float: left;
  color: #54595f;
}
.trx-wcext-woocommerce-search-product-rating .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  float: left;
  overflow: hidden;
  padding-top: 1.5em;
}
.trx-wcext-woocommerce-search-product-rating .star-rating span::before {
  content: "SSSSS";
  position: absolute;
  top: 0;
  left: 0;
  color: inherit;
}

.trx-wcext-woocommerce-search-product-atc {
  margin-top: 8px;
}

/* "Buy Now" button add-to-cart states. The WooCommerce loop button carries only text (no icon
 * element like the cart-btn), so the spinner / checkmark are rendered with an :after pseudo —
 * mirroring the Product Grid Quick View CTA. */
.trx-wcext-woocommerce-search-product-atc .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.trx-wcext-woocommerce-search-product-atc .button.adding {
  pointer-events: none;
}
.trx-wcext-woocommerce-search-product-atc .button.adding:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.5em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.trx-wcext-woocommerce-search-product-atc .button.added:after {
  content: "\2713";
  /* ✓ */
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5em;
  line-height: 1;
}

/* Actions over the image (grid view) — default styling matches the Product Grid widget. */
.trx-wcext-woocommerce-search-product-actions-wrapper {
  --trx-wcext-wcs-actions-offset: 0.7em;
  position: absolute;
  z-index: 9;
  top: var(--trx-wcext-wcs-actions-offset);
  right: var(--trx-wcext-wcs-actions-offset);
  opacity: 0;
  transform: translate3d(15px, 0, 0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 3px;
}
.trx-wcext-woocommerce-search-product-actions-wrapper .trx-wcext-product-grid-wl-btn,
.trx-wcext-woocommerce-search-product-actions-wrapper .trx-wcext-product-grid-cmp-btn,
.trx-wcext-woocommerce-search-product-actions-wrapper .trx-wcext-woocommerce-search-cart-btn {
  position: relative;
  display: block;
  margin: 0;
  background: #fff;
  text-align: center;
  outline: 0;
  border: none;
  transition: all 0.3s ease-in-out;
}
.trx-wcext-woocommerce-search-product-actions-wrapper .trx-wcext-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #54595f;
  width: 30px;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.trx-wcext-woocommerce-search-product:hover .trx-wcext-woocommerce-search-product-actions-wrapper {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Product Actions: "Bottom" position — per-block modifier emitted on the block container
   (each block's "Actions Position" control), so Most Popular and Search Results can differ. */
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper {
  top: auto;
  right: auto;
  bottom: var(--trx-wcext-wcs-actions-offset);
  left: 0;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transform: translate3d(0, 15px, 0);
}
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product:hover .trx-wcext-woocommerce-search-product-actions-wrapper {
  transform: translate3d(0, 0, 0);
}

/*
 * Product Actions: "Always" visible is driven per block by each block's "Show Actions"
 * switch (Content tab), which emits a block-scoped selector forcing the wrapper visible.
 * Touch devices (no hover capability) always reveal the actions regardless of that switch.
 */
@media (hover: none) {
  .trx-wcext-woocommerce-search-product-actions-wrapper,
  .trx-wcext-woocommerce-search-product:hover .trx-wcext-woocommerce-search-product-actions-wrapper {
    opacity: 1;
    transform: none;
  }
}
/* Add to cart button processing / added states (WooCommerce ajax) */
.trx-wcext-woocommerce-search-cart-btn.adding:not(.added) .trx-wcext-icon, .trx-wcext-woocommerce-search-cart-btn.adding:not(.added).trx-wcext-icon {
  animation: spin 2s linear infinite;
}
.trx-wcext-woocommerce-search-cart-btn.adding:not(.added) .trx-wcext-icon svg, .trx-wcext-woocommerce-search-cart-btn.adding:not(.added).trx-wcext-icon svg {
  display: none;
}
.trx-wcext-woocommerce-search-cart-btn.adding:not(.added) .trx-wcext-icon:before, .trx-wcext-woocommerce-search-cart-btn.adding:not(.added).trx-wcext-icon:before {
  content: "\e8fb";
  font-family: "eicons";
}
.trx-wcext-woocommerce-search-cart-btn.added:after {
  margin: 0;
  display: none;
}
.trx-wcext-woocommerce-search-cart-btn.added .trx-wcext-icon:before, .trx-wcext-woocommerce-search-cart-btn.added.trx-wcext-icon:before {
  content: "\e90e";
  font-family: "eicons";
}
.trx-wcext-woocommerce-search-cart-btn.added .trx-wcext-icon svg, .trx-wcext-woocommerce-search-cart-btn.added.trx-wcext-icon svg {
  display: none;
}
.trx-wcext-woocommerce-search-cart-btn.loading:after {
  display: none;
}

/*
* Product Actions: hover tooltip.
* Shows the button's aria-label in a black box with an arrow on the right,
* sitting to the left of the hovered button (copied from the Product Grid widget).
*/
.trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::before, .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::after {
  position: absolute;
  top: 50%;
  right: 100%;
  z-index: 10;
  background: var(--trx-wcext-wcs-tooltip-bg, #000);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::before {
  content: attr(aria-label);
  margin-right: 11px;
  padding: 5px 10px;
  transform: translateX(8px) translateY(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: 3px;
}
.trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  transform: translateX(8px) translateY(-50%) rotate(45deg);
  border-radius: 1px;
}
.trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):hover::before, .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(-50%);
}
.trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):hover::after, .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(-50%) rotate(45deg);
}

/* Keep the tooltip hidden while the add-to-cart button is processing or added */
.trx-wcext-woocommerce-search-cart-btn.adding::before, .trx-wcext-woocommerce-search-cart-btn.adding::after,
.trx-wcext-woocommerce-search-cart-btn.added::before,
.trx-wcext-woocommerce-search-cart-btn.added::after,
.trx-wcext-woocommerce-search-cart-btn.loading::before,
.trx-wcext-woocommerce-search-cart-btn.loading::after {
  display: none;
}

/*
* Tooltip for the "Bottom" actions position: the box sits above the button and the
* arrow points down from its bottom-center.
*/
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::before, .trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::after {
  top: auto;
  right: auto;
  bottom: 100%;
  left: 50%;
}
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::before {
  margin-right: 0;
  margin-bottom: 11px;
  transform: translateX(-50%) translateY(8px);
}
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""])::after {
  margin-right: 0;
  margin-bottom: 7px;
  transform: translateX(-50%) translateY(8px) rotate(45deg);
}
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):hover::before, .trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):focus-visible::before {
  transform: translateX(-50%) translateY(0);
}
.trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):hover::after, .trx-wcext-woocommerce-search-actions-pos-bottom .trx-wcext-woocommerce-search-product-actions-wrapper > [aria-label]:not([aria-label=""]):focus-visible::after {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

/* Wishlist toggle icon state (markup injected by the wishlist module) */
.trx-wcext-product-grid-wl-btn .trx-wcext-product-grid-wl-icon-in {
  display: none;
}
.trx-wcext-product-grid-wl-btn[data-state="in"] .trx-wcext-product-grid-wl-icon-in {
  display: inline-flex;
}
.trx-wcext-product-grid-wl-btn[data-state="in"] .trx-wcext-product-grid-wl-icon-out {
  display: none;
}

/* Compare toggle icon state (markup injected by the compare module) */
.trx-wcext-product-grid-cmp-btn .trx-wcext-product-grid-cmp-icon-in {
  display: none;
}
.trx-wcext-product-grid-cmp-btn[data-state="in"] .trx-wcext-product-grid-cmp-icon-in {
  display: inline-flex;
}
.trx-wcext-product-grid-cmp-btn[data-state="in"] .trx-wcext-product-grid-cmp-icon-out {
  display: none;
}

/* Wishlist + compare actions row (list view): icon + label on one line, both toggles inline. */
.trx-wcext-woocommerce-search-product-actions-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.trx-wcext-woocommerce-search-product-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.trx-wcext-woocommerce-search-product-action .trx-wcext-product-grid-wl-btn,
.trx-wcext-woocommerce-search-product-action .trx-wcext-product-grid-cmp-btn {
  display: inline-flex;
  align-items: center;
}
.trx-wcext-woocommerce-search-product-action .trx-wcext-icon {
  color: #54595f;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}
.trx-wcext-woocommerce-search-product-action .trx-wcext-icon svg {
  width: 1em;
  height: 1em;
}

.trx-wcext-woocommerce-search-product-action-label {
  font-size: 13px;
  line-height: 1.2;
}

/* Attribute swatches — markup + appearance come from the shared Swatches module
   (.trx-wcext-loop-swatches). Here we only space it within the search product card. */
.trx-wcext-woocommerce-search-product-details .trx-wcext-loop-swatches {
  --trx-wcext-swatch-list-hidden-padding-left: 0px;
  --trx-wcext-swatch-list-hidden-padding-right: 0px;
  --trx-wcext-swatch-list-hidden-padding-top: 0px;
  --trx-wcext-swatch-list-hidden-padding-bottom: 0px;
  margin: 6px 0;
}

/* View all link */
.trx-wcext-woocommerce-search-view-all-below {
  display: inline-block;
}
.trx-wcext-woocommerce-search-results-body + .trx-wcext-woocommerce-search-view-all-below {
  margin-top: 12px;
}

.trx-wcext-woocommerce-search-empty {
  opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * Empty Results (nothing-found message + "Go to Shop" link)
 * ------------------------------------------------------------------------- */
.trx-wcext-woocommerce-search-empty-results {
  display: none;
}

.trx-wcext-woocommerce-search-empty-message {
  margin: 0 0 16px;
}

.trx-wcext-woocommerce-search-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.trx-wcext-woocommerce-search-empty-link:hover, .trx-wcext-woocommerce-search-empty-link:focus {
  text-decoration: none;
}

.trx-wcext-woocommerce-search-empty-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.trx-wcext-woocommerce-search-empty-link-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------------------------------------------------------------------------
 * Mobile: full-width popup
 * ------------------------------------------------------------------------- */
@media (max-width: 782px) {
  .trx-wcext-woocommerce-search-popup-modal .trx-wcext-woocommerce-search-dialog {
    max-width: Min(100vw, var(--trx-wcext-wcs-max-width));
    width: 100vw;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0 auto;
    border-radius: 0;
  }
}

/*# sourceMappingURL=woocommerce-search-elementor.css.map */
