/* Conjurly Dokan Enhancements: marketplace widgets (navigation bar,
   products page, intro, category tiles, product rows, featured stores).
   Product cards, category buttons and page numbers reuse store.css; card
   shells, buttons and the image frame come from Conjurly UI Core.
   Loaded only on pages that use these widgets. */

/* ── Elementor wrappers (see store.css: definite width for container queries) */
.elementor-widget-cnjrly-mkt-nav,
.elementor-widget-cnjrly-mkt-products,
.elementor-widget-cnjrly-mkt-intro,
.elementor-widget-cnjrly-mkt-tiles,
.elementor-widget-cnjrly-mkt-row,
.elementor-widget-cnjrly-mkt-stores,
.elementor-widget-cnjrly-mkt-card {
  width: 100%;
}

/* Recently viewed starts hidden; its Elementor wrapper takes no space (or
   flex gap) until the visitor's browser fills it in. */
.elementor-widget-cnjrly-mkt-row:has(> .elementor-widget-container > [data-cnjrly-recent][hidden]),
.elementor-widget-cnjrly-mkt-row:has(> [data-cnjrly-recent][hidden]) {
  display: none;
}

.cnjrly-recent[hidden] {
  display: none;
}

/* Under the details on a product page. */
.single-product .cnjrly-recent {
  clear: both;
  margin: 32px 0;
}

/* ── Card shell: the store page card spacing ───────────────────────────── */
.cnjrly-mcard {
  background: transparent;
}

.cnjrly-mcard > .cnjrly-section-card__header {
  display: flex;
  align-items: center;
  padding: 14px var(--cj-space-card, 24px) 15px;
}

.cnjrly-mcard > .cnjrly-section-card__header > .cnjrly-section-card__title {
  margin: 0;
  padding: 0;
}

.cnjrly-mcard__body {
  container-type: inline-size;
  padding: var(--cj-space-card, 24px);
  border: 1px solid var(--cj-border-card, rgba(0,0,0,0.08));
  border-top: 0;
}

@media (max-width: 599px) {
  .cnjrly-mcard > .cnjrly-section-card__header { padding: 12px 16px 13px; }
  .cnjrly-mcard__body { padding: 16px; }
}

/* ── Navigation bar ────────────────────────────────────────────────────── */
.cnjrly-mnav {
  position: relative;
  z-index: 50;
  font-family: var(--cj-font-sans);
}

.cnjrly-mnav__bar {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  min-height: 56px;
  padding: 6px 8px 6px 4px;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-card, rgba(0,0,0,0.08));
  border-radius: var(--cj-radius-card, 14px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.cnjrly-mnav__list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cnjrly-mnav__item {
  flex: 0 0 auto;
  margin: 0;
}

.cnjrly-mnav .cnjrly-mnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  font-family: var(--cj-font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: #2f3033;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

.cnjrly-mnav .cnjrly-mnav__link:hover,
.cnjrly-mnav .cnjrly-mnav__link[aria-expanded="true"] {
  color: var(--cj-indigo, #4c187e);
  background: var(--cj-indigo-50, #f4f1f7);
}

.cnjrly-mnav .cnjrly-mnav__link.is-current {
  color: var(--cj-indigo, #4c187e);
}

.cnjrly-mnav .cnjrly-mnav__link.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--cj-indigo, #4c187e);
  border-radius: 2px;
}

.cnjrly-mnav .cnjrly-mnav__link:focus-visible {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: 1px;
}

.cnjrly-mnav__item--sale .cnjrly-mnav__link {
  color: var(--cj-ember, #cd7925);
}

.cnjrly-mnav__chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

[aria-expanded="true"] > .cnjrly-mnav__chev {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Search */
.cnjrly-mnav__search {
  order: 2;
  display: flex;
  align-items: center;
  flex: 0 1 260px;
  min-width: 180px;
  margin: 0;
  position: relative;
}

.cnjrly-mnav__search input[type="search"] {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 42px 0 14px;
  font-family: var(--cj-font-sans);
  font-size: 0.95rem;
  color: #222;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid #d5d2dc;
  border-radius: 10px;
  box-shadow: none;
  background-image: none;
}

.cnjrly-mnav__search input[type="search"]:focus-visible {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: 1px;
}

.cnjrly-mnav .cnjrly-mnav__search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  color: var(--cj-indigo, #4c187e);
  background: none;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.cnjrly-mnav .cnjrly-mnav__search-btn:hover {
  background: var(--cj-indigo-50, #f4f1f7);
}

/* The bar printed above store pages and product pages (Cnjrly_Dokan_Mkt_Nav_Auto). */
.cnjrly-auto-mnav {
  width: 100%;
  margin: 0 0 24px;
}

@media (max-width: 767px) {
  .cnjrly-auto-mnav { margin-bottom: 16px; }
}

/* Wishlist heart and count (MoreConvert's [wlfmc_wishlist_counter]) */
.cnjrly-mnav__wish {
  order: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 0 0 4px;
}

.cnjrly-mnav__wish a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: var(--cj-btn-radius, 10px);
  color: var(--cj-indigo, #4c187e);
  text-decoration: none;
}

.cnjrly-mnav__wish a:hover,
.cnjrly-mnav__wish a:focus-visible {
  background: var(--cj-indigo-50, #f4f1f7);
}

/* Shop Magic menu */
.cnjrly-mnav__mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 18px 24px 24px;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-card, rgba(0,0,0,0.08));
  border-radius: var(--cj-radius-card, 14px);
  box-shadow: 0 10px 30px rgba(36, 12, 60, 0.16);
}

.cnjrly-mnav__mega[hidden] {
  display: none;
}

.cnjrly-mnav__mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.cnjrly-mnav .cnjrly-mnav__mega-title {
  margin: 0;
  font-family: var(--cj-font-headline);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cj-indigo, #4c187e);
}

.cnjrly-mnav .cnjrly-mnav__close {
  margin: 0;
  padding: 6px 4px;
  font-family: var(--cj-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cj-indigo, #4c187e);
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.cnjrly-mnav__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 28px;
}

.cnjrly-mnav .cnjrly-mnav__col-title {
  margin: 0 0 6px;
  padding: 0 0 8px;
  font-family: var(--cj-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cj-ember, #cd7925);
  border-bottom: 1px solid var(--cj-border-light, #e6e7eb);
}

.cnjrly-mnav__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cnjrly-mnav__col li {
  margin: 0;
}

.cnjrly-mnav__col a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #2f3033;
  text-decoration: none;
}

.cnjrly-mnav__col a:hover,
.cnjrly-mnav__col a:focus-visible {
  color: var(--cj-indigo, #4c187e);
  text-decoration: underline;
}

.cnjrly-mnav__empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--cj-meta-color, #666);
}

/* Phones: search on top, one sideways-scrolling row, full-screen menu. */
@media (max-width: 767px) {
  .cnjrly-mnav__bar {
    flex-wrap: wrap;
    padding: 8px;
  }

  .cnjrly-mnav__search {
    order: 0;
    flex: 1 1 0;
  }

  .cnjrly-mnav__wish {
    order: 0;
  }

  .cnjrly-mnav__list {
    order: 1;
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .cnjrly-mnav__list::-webkit-scrollbar {
    display: none;
  }

  .cnjrly-mnav .cnjrly-mnav__link {
    height: 40px;
    padding: 0 10px;
    scroll-snap-align: start;
  }

  .cnjrly-mnav__mega {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 16px 20px 32px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }

  .cnjrly-mnav__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cnjrly-mnav__col a {
    padding: 9px 0;
    font-size: 1rem;
  }

  html.cnjrly-mnav-open,
  html.cnjrly-mnav-open body {
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cnjrly-mnav__bar { flex-wrap: wrap; }
  .cnjrly-mnav__search { order: 0; flex: 1 1 0; }
  .cnjrly-mnav__wish { order: 0; }
  .cnjrly-mnav__list { order: 1; flex: 1 1 100%; flex-wrap: wrap; }
  .cnjrly-mnav__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Products page: search and filters (Magicians for Hire pattern) ─────── */
.cnjrly-mfilter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
}

.cnjrly-mfilter__search {
  position: relative;
  display: flex;
  align-items: center;
}

.cnjrly-mfilter__search svg {
  position: absolute;
  left: 14px;
  color: #888;
  pointer-events: none;
}

.cnjrly-mfilter input[type="search"],
.cnjrly-mfilter .cnjrly-mfilter__select {
  width: 100%;
  height: 44px;
  margin: 0;
  font-family: var(--cj-font-sans);
  font-size: 1rem;
  color: #454056;
  background-color: var(--cj-surface-primary, #fff);
  border: 1px solid #d5d2dc;
  border-radius: 8px;
  box-shadow: none;
}

.cnjrly-mfilter input[type="search"] {
  padding: 0 14px 0 40px;
  background-image: none; /* the theme adds its own search icon */
}

.cnjrly-mfilter .cnjrly-mfilter__select {
  padding: 0 36px 0 16px;
}

.cnjrly-mfilter input[type="search"]:focus-visible,
.cnjrly-mfilter .cnjrly-mfilter__select:focus-visible,
.cnjrly-mfilter input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: 1px;
}

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

.cnjrly-mfilter__actions .cj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

.cnjrly-mfilter__toggle[aria-expanded="true"] {
  background: var(--cj-indigo-50, #f4f1f7);
}

.cnjrly-mfilter__count {
  font-weight: 600;
}

.cnjrly-mfilter__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: #f7f7f8;
  border: 1px solid var(--cj-border-light, #e6e7eb);
  border-radius: 8px;
}

.cnjrly-mfilter__panel[hidden] {
  display: none;
}

.cnjrly-mfilter__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cnjrly-mfilter .cnjrly-mfilter__panel-title {
  margin: 0;
  font-family: var(--cj-font-headline);
  font-size: 1.05rem;
  font-weight: 500;
  color: #2f3033;
}

.cnjrly-mfilter .cnjrly-mfilter__close {
  margin: 0;
  padding: 4px;
  font-family: var(--cj-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cj-indigo, #4c187e);
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.cnjrly-mfilter__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@container (min-width: 640px) {
  .cnjrly-mfilter__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cnjrly-mfilter__actions--top,
  .cnjrly-mfilter__panel .cnjrly-mfilter__actions {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: end;
  }
}

.cnjrly-mfilter__checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 2px 0;
}

.cnjrly-mfilter__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--cj-font-sans);
  font-size: 0.95rem;
  color: #444;
  cursor: pointer;
}

.cnjrly-mfilter__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cj-indigo, #4c187e);
}

.cnjrly-mprod__showing {
  margin: 0 0 16px;
}

/* Category buttons: one row. Phones scroll it sideways; wider screens put
   the ones that don't fit under More (marketplace.js). */
.cnjrly-mprod__pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.cnjrly-mprod__pill-row {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cnjrly-mprod__pill-row::-webkit-scrollbar {
  display: none;
}

.cnjrly-mprod__pills .cnjrly-pshow__pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cnjrly-mprod__pills.is-measured .cnjrly-mprod__pill-row {
  overflow: hidden;
}

.cnjrly-mprod__more {
  position: relative;
  flex: 0 0 auto;
}

.cnjrly-mprod__more[hidden] {
  display: none;
}

.cnjrly-mprod__pills .cnjrly-mprod__more-btn {
  gap: 8px;
  margin: 0;
  font-family: var(--cj-font-sans);
  cursor: pointer;
  box-shadow: none;
}

.cnjrly-mprod__more-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-height: 60vh;
  padding: 6px;
  overflow-y: auto;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-light, #e6e7eb);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(36, 12, 60, 0.16);
}

.cnjrly-mprod__more-list[hidden] {
  display: none;
}

.cnjrly-mprod__more-list .cnjrly-pshow__pill {
  justify-content: flex-start;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
}

.cnjrly-mprod__more-list .cnjrly-pshow__pill:hover {
  background: var(--cj-indigo-50, #f4f1f7);
}

/* ── Product card: "Sold by" ───────────────────────────────────────────── */
.cnjrly-pcard .cnjrly-pcard__seller {
  position: relative;
  z-index: 3;
  margin: 0;
  font-family: var(--cj-font-sans);
  font-size: 0.85rem;
  color: var(--cj-meta-color, #666);
}

.cnjrly-pcard__seller a {
  color: var(--cj-indigo, #4c187e);
  text-decoration: none;
}

.cnjrly-pcard__seller a:hover,
.cnjrly-pcard__seller a:focus-visible {
  text-decoration: underline;
}

/* ── Intro ─────────────────────────────────────────────────────────────── */
.cnjrly-mintro .cnjrly-mintro__headline {
  margin: 0 0 12px;
  font-family: var(--cj-font-headline);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cj-indigo, #4c187e);
}

.cnjrly-mintro__text {
  max-width: 72ch;
  font-family: var(--cj-font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.cnjrly-mintro__text p {
  margin: 0 0 12px;
}

.cnjrly-mintro__text ol,
.cnjrly-mintro__text ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.cnjrly-mintro__text li {
  margin: 0 0 6px;
  padding-left: 0.2em;
}

.cnjrly-mintro__text li::marker {
  color: var(--cj-indigo, #24135f);
  font-weight: 600;
}

.cnjrly-mintro__text--phone {
  display: none;
}

@media (max-width: 599px) {
  .cnjrly-mintro__text--wide { display: none; }
  .cnjrly-mintro__text--phone { display: block; }
}

.cnjrly-mintro .cnjrly-mintro__sell {
  margin: 16px 0 0;
  font-family: var(--cj-font-sans);
  font-size: 0.98rem;
  color: #555;
}

.cnjrly-mintro__sell a {
  font-weight: 600;
  color: var(--cj-indigo, #24135f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cnjrly-mintro .cnjrly-mintro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

@media (max-width: 599px) {
  .cnjrly-mintro .cnjrly-mintro__headline { font-size: 1.35rem; }
  .cnjrly-mintro__text { font-size: 1rem; }
  .cnjrly-mintro__actions .cj-btn { flex: 1 1 100%; justify-content: center; }
}

/* ── Marketplace Card (Sell on Conjurly, store application) ─────────────── */
.cnjrly-mtext__embed {
  max-width: 760px;
  margin-top: 20px;
}

.cnjrly-mtext__embed--full {
  max-width: none;
}

/* MoreConvert Wishlist: button colours and sizes come from MC Wishlist →
   Wishlist → Wishlist Page Appearance (set to Conjurly's). That setting also
   paints the Actions menu like a button; keep it a Conjurly form field. */
.cnjrly-mtext__embed .wlfmc-default-table.wlfmc-wishlist-table .wlfmc-wishlist-footer select,
.cnjrly-mtext__embed .wlfmc-wishlist-table.wlfmc-wishlist-table select {
  background-color: #fff !important;
  color: #333 !important;
  border: 1px solid var(--cj-border, #d9d2e3) !important;
  border-radius: var(--cj-radius-input, 10px) !important;
  font-weight: 400 !important;
}

.cnjrly-mtext__embed .wlfmc-default-table.wlfmc-wishlist-table .wlfmc-wishlist-footer select:hover,
.cnjrly-mtext__embed .wlfmc-default-table.wlfmc-wishlist-table .wlfmc-wishlist-footer select:focus {
  background-color: #fff !important;
  color: #333 !important;
  border-color: var(--cj-indigo, #4c187e) !important;
}

.cnjrly-mtext__embed .wlfmc-wishlist-table select option {
  background-color: #fff;
  color: #333;
}

/* Open dropdown lists in Conjurly colours (filters and wishlist). Browsers
   that support customizable selects (Chrome, Edge) draw the list with these
   rules; others keep their own native list, whose highlight colour CSS
   can't change. */
@supports (appearance: base-select) {
  .cnjrly-mfilter .cnjrly-mfilter__select,
  .cnjrly-mfilter .cnjrly-mfilter__select::picker(select),
  .cnjrly-mtext__embed .wlfmc-wishlist-table select,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select::picker(select) {
    appearance: base-select;
  }

  /* One arrow: the picker's own, not a theme or plugin background arrow. */
  .cnjrly-mfilter .cnjrly-mfilter__select,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select {
    background-image: none !important;
    display: flex;
    align-items: center;
    padding-right: 14px !important;
  }

  .cnjrly-mfilter .cnjrly-mfilter__select::picker(select),
  .cnjrly-mtext__embed .wlfmc-wishlist-table select::picker(select) {
    margin-top: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--cj-border, #d9d2e3);
    border-radius: var(--cj-radius-input, 10px);
    box-shadow: 0 8px 24px rgba(36, 12, 60, 0.14);
  }

  .cnjrly-mfilter .cnjrly-mfilter__select option,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select option {
    padding: 8px 12px;
    border-radius: 8px;
    color: #333;
    background: transparent;
    font-family: var(--cj-font-sans);
  }

  .cnjrly-mfilter .cnjrly-mfilter__select option:hover,
  .cnjrly-mfilter .cnjrly-mfilter__select option:focus-visible,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select option:hover,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select option:focus-visible {
    background: var(--cj-indigo-50, #f4effa);
    color: var(--cj-indigo, #4c187e);
    outline: none;
  }

  .cnjrly-mfilter .cnjrly-mfilter__select option:checked,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select option:checked {
    background: var(--cj-indigo, #4c187e);
    color: #fff;
    font-weight: 600;
  }

  .cnjrly-mfilter .cnjrly-mfilter__select option::checkmark,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select option::checkmark {
    display: none;
  }

  .cnjrly-mfilter .cnjrly-mfilter__select::picker-icon,
  .cnjrly-mtext__embed .wlfmc-wishlist-table select::picker-icon {
    color: var(--cj-indigo, #4c187e);
  }
}

/* MoreConvert pop-up (Added to wishlist) and login notice: the second
   button (Close, Join Conjurly) is a Conjurly secondary button, outlined, so
   it reads as a button before hover. Colours come from MoreConvert's
   settings; this adds the outline and keeps both buttons the same height. */
.wlfmc-wishlist-popup .wlfmc-popup-footer a.wlfmc-btn.wlfmc_btn_0,
.wlfmc-guest-notice-wrapper .wlfmc-notice-buttons a.wlfmc_btn_0 {
  border: 1px solid var(--cj-indigo, #4c187e);
}

.wlfmc-wishlist-popup .wlfmc-popup-footer a.wlfmc-btn.wlfmc_btn_1,
.wlfmc-guest-notice-wrapper .wlfmc-notice-buttons a.wlfmc_btn_1 {
  border: 1px solid var(--cj-indigo, #4c187e);
}

.wlfmc-wishlist-popup .wlfmc-popup-footer a.wlfmc-btn.wlfmc_btn_0:hover,
.wlfmc-wishlist-popup .wlfmc-popup-footer a.wlfmc-btn.wlfmc_btn_1:hover,
.wlfmc-guest-notice-wrapper .wlfmc-notice-buttons a.wlfmc_btn_0:hover,
.wlfmc-guest-notice-wrapper .wlfmc-notice-buttons a.wlfmc_btn_1:hover {
  border-color: var(--cj-indigo-hover, #6f4697);
}

/* MoreConvert Wishlist inside a Marketplace Card: Conjurly corners. */
.cnjrly-mtext__embed .wlfmc-wishlist-table,
.cnjrly-mtext__embed .wlfmc-wishlist-table tr.wlfmc-table-item,
.cnjrly-mtext__embed .wlfmc-wishlist-table tr.actions {
  border-radius: var(--cj-radius-card, 14px) !important;
}

.cnjrly-mtext__embed .wlfmc-wishlist-table tr > td:first-child {
  border-top-left-radius: var(--cj-radius-card, 14px) !important;
  border-bottom-left-radius: var(--cj-radius-card, 14px) !important;
}

.cnjrly-mtext__embed .wlfmc-wishlist-table tr > td:last-child {
  border-top-right-radius: var(--cj-radius-card, 14px) !important;
  border-bottom-right-radius: var(--cj-radius-card, 14px) !important;
}

.cnjrly-mtext__embed .wlfmc-wishlist-table td.with-border-top {
  border-bottom-left-radius: var(--cj-radius-card, 14px) !important;
  border-bottom-right-radius: var(--cj-radius-card, 14px) !important;
}


.cnjrly-mtext .cnjrly-mtext__embed:first-child {
  margin-top: 0;
}

.cnjrly-mtext .cnjrly-mintro__text + .cnjrly-mtext__embed {
  padding-top: 20px;
  border-top: 1px solid var(--cj-border, #e6e1ee);
}

.cnjrly-apply-note p {
  max-width: 72ch;
  margin: 0 0 12px;
  font-family: var(--cj-font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.cnjrly-apply-note .cnjrly-apply-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

@media (max-width: 599px) {
  .cnjrly-apply-note__actions .cj-btn { flex: 1 1 100%; justify-content: center; }
}

/* ── Category tiles (text only) ────────────────────────────────────────── */
.cnjrly-mtiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (min-width: 700px) {
  .cnjrly-mtiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cnjrly-mtile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-light, #e6e7eb);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cnjrly-mtile:hover {
  background: var(--cj-indigo-50, #f4f1f7);
  border-color: var(--cj-indigo-200, #d2c5df);
}

.cnjrly-mtile:has(a:focus-visible) {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: 2px;
}

.cnjrly-mtile .cnjrly-mtile__name {
  margin: 0;
  font-family: var(--cj-font-headline);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.cnjrly-mtile__name a {
  color: var(--cj-indigo, #4c187e);
  text-decoration: none;
}

/* The whole tile is clickable. */
.cnjrly-mtile__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cnjrly-mtile__name a:focus-visible {
  outline: none;
}

.cnjrly-mtile .cnjrly-mtile__desc {
  margin: 0;
  font-family: var(--cj-font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
}

@media (max-width: 599px) {
  .cnjrly-mtile { padding: 12px; }
  .cnjrly-mtile .cnjrly-mtile__name { font-size: 0.98rem; }
}

/* ── Product rows and Featured Stores: "See all" ───────────────────────── */
.cnjrly-mrow__all {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.cnjrly-mrow__all .cj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Featured Stores use the Stores page cards (store-list.css). */
.cnjrly-mstores__wrap {
  container-type: inline-size;
}

.cnjrly-mstores__wrap .cnjrly-slist__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cj-gap-card, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (min-width: 560px) {
  .cnjrly-mstores__wrap .cnjrly-slist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (min-width: 900px) {
  .cnjrly-mstores__wrap .cnjrly-slist__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Compact strip (Recently viewed, Compact product rows) ──────────────── */
.cnjrly-pstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 12px;
  margin: 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.cnjrly-pstrip__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px;
  background: var(--cj-surface-primary, #fff);
  border: 1px solid var(--cj-border-light, #e6e7eb);
  border-radius: 10px;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cnjrly-pstrip__item:hover {
  background: var(--cj-indigo-50, #f4f1f7);
  border-color: var(--cj-indigo-200, #d2c5df);
}

.cnjrly-pstrip__media {
  width: 72px;
  border-radius: 8px;
  overflow: hidden;
}

.cnjrly-pstrip__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-family: var(--cj-font-sans);
}

.cnjrly-pstrip__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cj-indigo, #4c187e);
  text-decoration: none;
}

/* The whole item is clickable. */
.cnjrly-pstrip__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cnjrly-pstrip__title:focus-visible {
  outline: none;
}

.cnjrly-pstrip__item:has(.cnjrly-pstrip__title:focus-visible) {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: 2px;
}

.cnjrly-pstrip__seller {
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--cj-meta-color, #666);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cnjrly-pstrip__price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
}

.cnjrly-pstrip__price del {
  font-weight: 400;
  color: var(--cj-meta-color, #666);
}

.cnjrly-pstrip__price ins {
  text-decoration: none;
}

@media (max-width: 599px) {
  .cnjrly-pstrip { grid-auto-columns: minmax(200px, 78%); }
}

/* ── Hero slider ───────────────────────────────────────────────────────── */
.elementor-widget-cnjrly-mkt-hero {
  width: 100%;
}

.cnjrly-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--cj-radius-card, 14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: var(--cj-indigo-deep, #24135f);
}

.cnjrly-hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.cnjrly-hero__track::-webkit-scrollbar {
  display: none;
}

.cnjrly-hero__track:focus-visible {
  outline: 2px solid var(--cj-indigo-500, #6f4697);
  outline-offset: -2px;
}

.cnjrly-hero__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: var(--cnjrly-hero-ratio, 3/1);
  scroll-snap-align: start;
  overflow: hidden;
}

/* Text slide: Conjurly purple with a faint sparkle. */
.cnjrly-hero__slide--text {
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 30%, rgba(205, 121, 37, 0.22) 0, rgba(205, 121, 37, 0) 28%),
    radial-gradient(circle at 70% 85%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, #24135f 0%, #4c187e 62%, #5d2a91 100%);
}

.cnjrly-hero__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  padding: 40px 64px;
  font-family: var(--cj-font-sans);
  color: #fff;
}

.cnjrly-hero .cnjrly-hero__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0b36d;
}

.cnjrly-hero .cnjrly-hero__heading {
  margin: 0;
  font-family: var(--cj-font-headline);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: #fff;
}

.cnjrly-hero .cnjrly-hero__text {
  margin: 0;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.cnjrly-hero .cnjrly-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

.cnjrly-hero .cnjrly-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cj-indigo, #4c187e);
  background: #fff;
  border: 1px solid #fff;
  text-decoration: none;
}

.cnjrly-hero .cnjrly-hero__btn:hover {
  color: var(--cj-indigo, #4c187e);
  background: var(--cj-indigo-50, #f4f1f7);
}

.cnjrly-hero .cnjrly-hero__btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.cnjrly-hero .cnjrly-hero__btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Image slide: the image is the slide. */
.cnjrly-hero__link,
.cnjrly-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.cnjrly-hero__picture img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows (desktop) and dots. */
.cnjrly-hero .cnjrly-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 0 3px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cj-indigo, #4c187e);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cnjrly-hero:hover .cnjrly-hero__arrow,
.cnjrly-hero .cnjrly-hero__arrow:focus-visible {
  opacity: 1;
}

.cnjrly-hero__arrow--prev { left: 12px; }
.cnjrly-hero__arrow--next { right: 12px; }

.cnjrly-hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.cnjrly-hero .cnjrly-hero__dot {
  width: 9px;
  height: 9px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.cnjrly-hero .cnjrly-hero__dot.is-current {
  background: #fff;
}

.cnjrly-hero .cnjrly-hero__arrow:focus-visible,
.cnjrly-hero .cnjrly-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .cnjrly-hero__slide {
    aspect-ratio: 4 / 5;
  }

  .cnjrly-hero__content {
    padding: 24px 22px 40px;
  }

  .cnjrly-hero .cnjrly-hero__text {
    font-size: 1rem;
  }

  .cnjrly-hero__actions .cj-btn {
    flex: 1 1 100%;
  }

  .cnjrly-hero .cnjrly-hero__arrow {
    display: none;
  }

  /* No phone image: show the desktop image whole over a blurred copy. */
  .cnjrly-hero__picture:not(.has-phone)::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--cnjrly-hero-bg) center / cover no-repeat;
    filter: blur(18px);
    transform: scale(1.1);
  }

  .cnjrly-hero__picture:not(.has-phone) img {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cnjrly-hero__track { scroll-behavior: auto; }
}
