/* Shared Figma shell for Pro beta leaf widgets (rwa-pro-leaf). */

.rwa-pro-leaf {
  --rwa-leaf-ink: #121621;
  --rwa-leaf-muted: #6b7591;
  --rwa-leaf-line: #dee3ed;
  --rwa-leaf-fill: #f6f8fc;
  --rwa-leaf-accent: #6740ff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 20px;
  color: var(--rwa-leaf-ink);
  background: #fff;
  border: 1px solid var(--rwa-leaf-line);
  border-radius: 16px;
}

.rwa-pro-leaf__heading {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #111522;
}

.rwa-pro-leaf__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rwa-pro-leaf__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--rwa-leaf-ink);
  background: #fff;
  border: 1px solid var(--rwa-leaf-line);
  border-radius: 10px;
}

.rwa-pro-leaf__input:focus-visible {
  outline: 2px solid var(--rwa-leaf-accent);
  outline-offset: 2px;
}

.rwa-pro-leaf__empty,
.rwa-pro-leaf__notice {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--rwa-leaf-muted);
}

.rwa-pro-leaf__notice {
  padding: 12px 14px;
  background: var(--rwa-leaf-fill);
  border-radius: 12px;
}

.rwa-pro-leaf__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rwa-pro-leaf__chip {
  min-height: 36px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rwa-leaf-ink);
  background: #fff;
  border: 1px solid var(--rwa-leaf-line);
  border-radius: 999px;
  cursor: pointer;
}

.rwa-pro-leaf__chip.is-active {
  color: #fff;
  background: var(--rwa-leaf-accent);
  border-color: var(--rwa-leaf-accent);
}

.rwa-pro-leaf__chip.is-applied {
  color: #6740ff;
  background: #ebe3ff;
  border-color: transparent;
}

.rwa-pro-leaf__chip.is-clear,
.rwa-pro-leaf__chip.is-ghost {
  color: #6b7591;
  background: #fff;
  border-color: #dee3ed;
}

.rwa-pro-leaf__chip.is-ghost {
  background: #f6f8fc;
  border-color: transparent;
}

.rwa-pro-leaf__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rwa-pro-leaf__swatch {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #eee8ff 0%, #d9eeff 100%);
}

.rwa-pro-leaf__swatch.is-lg {
  width: 64px;
  height: 64px;
}

.rwa-pro-leaf__cta,
.rwa-pro-leaf__icon-btn {
  font: inherit;
  cursor: pointer;
}

.rwa-pro-leaf__cta {
  align-self: flex-start;
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: #6740ff;
  border: 1px solid #6740ff;
  border-radius: 10px;
}

.rwa-pro-leaf__icon-btn {
  min-width: 44px;
  min-height: 44px;
  color: #6b7591;
  background: transparent;
  border: 0;
  font-size: 20px;
}

.rwa-pro-leaf__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rwa-pro-leaf__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dee3ed;
  border-radius: 12px;
}

.rwa-smart-filters,
.rwa-live-search,
.rwa-ajax-product-search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f6f8fc;
  border: 0;
  border-radius: 14px;
  padding: 18px;
  overflow: visible;
  max-height: none;
}

.rwa-smart-filters__applied,
.rwa-smart-filters__layout,
.rwa-smart-filters__results,
.rwa-smart-filters__sidebar {
  display: flex;
  gap: 8px;
}

.rwa-smart-filters__applied {
  flex-wrap: wrap;
}

.rwa-smart-filters__layout {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.rwa-smart-filters__sidebar {
  flex-direction: column;
  flex: 0 0 11rem;
  width: 11rem;
  max-width: 100%;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.625rem;
}

.rwa-smart-filters__sidebar-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111522;
}

.rwa-smart-filters__option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #121621;
}

.rwa-smart-filters__results {
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: auto;
}

.rwa-smart-filters__count {
  margin: 0 0 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7591;
}

.rwa-smart-filters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #fff;
  border-radius: 0.5625rem;
}

.rwa-smart-filters__row h3,
.rwa-smart-filters__row-title {
  margin: 0;
  color: #111522;
}

.rwa-live-search__field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 28rem;
  padding: 0.75rem 0.8125rem;
  background: #fff;
  border: 2px solid #6740ff;
  border-radius: 0.75rem;
}

.rwa-live-search__icon {
  color: #6b7591;
  font-size: 16px;
}

.rwa-live-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #121621;
}

.rwa-live-search__input:focus {
  outline: none;
}

.rwa-live-search__input::-webkit-search-decoration,
.rwa-live-search__input::-webkit-search-cancel-button,
.rwa-live-search__input::-webkit-search-results-button,
.rwa-live-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.rwa-live-search,
.rwa-ajax-product-search {
  gap: 0.75rem;
}

.rwa-live-search__results,
.rwa-ajax-product-search__results {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  max-width: 28rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid #dee3ed;
  border-radius: 0.75rem;
}

.rwa-live-search__hit,
.rwa-ajax-product-search__hit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
}

.rwa-live-search__hit.is-active,
.rwa-ajax-product-search__hit.is-active {
  background: #ebe3ff;
}

.rwa-live-search__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rwa-live-search__copy strong {
  font-size: 12px;
  color: #111522;
}

.rwa-live-search__copy small {
  font-size: 9px;
  color: #6b7591;
}

.rwa-ajax-product-search__hit {
  align-items: center;
}

.rwa-shipping-progress__track {
  height: 14px;
  overflow: hidden;
  background: #eee8ff;
  border-radius: 999px;
}

.rwa-shipping-progress__fill {
  display: block;
  height: 100%;
  background: #6740ff;
  border-radius: 999px;
}

.rwa-shipping-progress__complete {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111522;
}

.rwa-variation-swatches__label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111522;
}

.rwa-variation-swatches__colours {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rwa-variation-swatches__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  font: inherit;
  font-size: 10px;
  color: #6b7591;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.rwa-variation-swatches__swatch::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rwa-swatch, #6740ff);
  border: 2px solid transparent;
}

.rwa-variation-swatches__swatch.is-selected::before {
  border-color: #111522;
}

.rwa-sticky-add-to-cart__page {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
}

.rwa-sticky-add-to-cart__line {
  display: block;
  height: 9px;
  width: 94%;
  background: #dee3ed;
  border-radius: 999px;
}

.rwa-sticky-add-to-cart__line.is-mid {
  width: 86%;
}

.rwa-sticky-add-to-cart__line.is-short {
  width: 78%;
}

.rwa-sticky-add-to-cart__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dee3ed;
  border-radius: 16px;
}

.rwa-product-compare__table {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

.rwa-product-compare__head,
.rwa-product-compare__row {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(128px, 1fr));
  min-width: 520px;
}

.rwa-product-compare__cell {
  padding: 8px;
  font-size: 13px;
  color: #121621;
}

.rwa-product-compare__cell.is-label {
  font-weight: 600;
  color: #6b7591;
}

.rwa-product-compare__cell.is-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rwa-bought-together__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rwa-bought-together__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
}

.rwa-bought-together__plus {
  font-size: 20px;
  color: #6b7591;
}

.rwa-bought-together__total {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.rwa-data-template {
  --rwa-dt-ink: #121621;
  --rwa-dt-title: #111522;
  --rwa-dt-muted: #6b7591;
  --rwa-dt-line: #dee3ed;
  --rwa-dt-fill: #f6f8fc;
  --rwa-dt-accent: #6740ff;
}

.rwa-data-template__fallback {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.375rem, 1fr));
  gap: 0.75rem;
  overflow: visible;
}

.rwa-data-template--carousel .rwa-data-template__fallback,
.rwa-data-template--gallery .rwa-data-template__fallback,
.rwa-data-template--table .rwa-data-template__fallback {
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow: visible;
}

.rwa-data-template__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  height: auto;
  padding: 0.625rem;
  background: #fff;
  border: 1px solid var(--rwa-dt-line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.rwa-data-template__thumb {
  display: block;
  width: 100%;
  height: 4.75rem;
  max-height: 4.75rem;
  object-fit: cover;
  overflow: hidden;
  border-radius: 0.625rem;
  background: var(--rwa-dt-fill);
}

.rwa-data-template__thumb--placeholder {
  background: linear-gradient(90deg, #eee8ff 0%, #d9eeff 100%);
}

:where(.rwa-data-template__card):nth-child(2) .rwa-data-template__thumb--placeholder {
  background: linear-gradient(90deg, #e0f7e8 0%, #e7f0ff 100%);
}

:where(.rwa-data-template__card):nth-child(3) .rwa-data-template__thumb--placeholder {
  background: linear-gradient(90deg, #fff4e0 0%, #eee8ff 100%);
}

.rwa-data-template__category {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rwa-dt-muted);
}

.rwa-data-template__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--rwa-dt-title);
}

.rwa-data-template__title a {
  color: inherit;
  text-decoration: none;
}

.rwa-data-template__price {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--rwa-dt-title);
}

.rwa-data-template__price del {
  font-size: 13px;
  font-weight: 400;
  color: var(--rwa-dt-muted);
}

.rwa-data-template__price ins {
  text-decoration: none;
}

.rwa-data-template__excerpt {
  display: none;
}

.rwa-data-template__notice,
.rwa-data-template__empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--rwa-dt-muted);
  background: var(--rwa-dt-fill);
  border-radius: 12px;
}

@media (max-width: 767px) {
  .rwa-smart-filters__layout {
    flex-direction: column;
  }

  .rwa-smart-filters__sidebar {
    width: 100%;
  }
}

/* V4 priority: normal declarations of capped selectors, re-emitted in original specificity order. */
:where(.rwa-data-template__card):nth-child(2) .rwa-data-template__thumb--placeholder {
	background: linear-gradient(90deg, #e0f7e8 0%, #e7f0ff 100%);
}
:where(.rwa-data-template__card):nth-child(3) .rwa-data-template__thumb--placeholder {
	background: linear-gradient(90deg, #fff4e0 0%, #eee8ff 100%);
}


/* V4 priority: former !important declarations at V4 specificity (0,2,0), in original specificity order.
   Elementor V4 classes and local styles print after this file, so they override these defaults. */
.rwa-smart-filters__row-title.rwa-smart-filters__row-title {
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
}
.rwa-smart-filters__row :where(h3):not(.rwa-v4-0) {
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
}
