/* 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-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-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;
}

/* 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. */
