.wishlist__body {
  width: 100%;
  position: relative;
  padding: 20px 0;
}

.wishlist__body.loading:after {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  background: #ffffff;
  opacity: 0.5;
  z-index: 5;
}

.wishlist__body.loading:before {
  display: block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -12px;
  margin-left: -12px;
  content: "";
  background-image: url('../images/wishlist-loading.svg');
  background-repeat: no-repeat;
  background-size: 100%;
  z-index: 6;
}

.wishlist__body.loading:before {
  animation: loading 500ms 0ms infinite normal linear;
  transform-origin: center;
  opacity: 1;
}

@keyframes loading {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* select2 */

.wishlist-page select {
  border: none
}

/* sort by select2 */
.wl-sort__btn .select2-container {
  min-width: auto;
}

.wl-sort__btn .select2-container .select2-selection--single {
  height: 24px;
  border: none;
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  transition: none;
}

.wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
  line-height: 24px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a2d28;
}

.wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: relative;
  height: 12px;
  width: 12px;
  margin-left: 6px;
  margin-top: -2px;
}

.wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none !important;
}

.wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__arrow {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b7a77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px auto;
  transition: transform .15s;
}

.wl-sort__btn .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
  transform: rotate(180deg);
}

.wl-sort__btn .wl-sort__dropdown .select2-container {
  top: 2px !important;
  left: 0 !important;
  right: 0 !important;
}

.wl-sort__btn .select2-container--default .select2-results>.select2-results__options .select2-results__option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-900);
}

/* card item select2 */
.wl-extras-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wl-extras .select2-selection .select2-selection__placeholder {
  color: var(--ink-900) !important;
}

.wl-extras .select2-container .select2-selection--single {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-900);
  font-weight: 500;
}

.wl-extras .select2-container .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
  line-height: 24px;
  padding: 0px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
}

/* .wl-extras .select2-selection .select2-selection__rendered {
width: 100%;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-900);
    font-weight: 500;
} */

.select2-dropdown.product-option-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  z-index: 30;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}

.select2-dropdown.product-option-dropdown ul li {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-900);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 400;
}

.select2-dropdown.product-option-dropdown ul li:hover {
  background: transparent;
  font-weight: 400;
  color: var(--ink-900);
}

.select2-dropdown.product-option-dropdown ul li.select2-results__option--highlighted {
  background: transparent;
  font-weight: 400;
  color: var(--ink-900);
}

.select2-dropdown.product-option-dropdown ul li.select2-results__option--selected {
  background: var(--ink-100, #f5f6f5);
  font-weight: 600;
  color: var(--ink-900);
}

.select2-dropdown.product-option-dropdown ul li.select2-results__option--selected .wl-extras__opt-check {
  display: inline-flex !important;
}

/* main */
.wishlist-page {
  background: #fff;
}

.wishlist-page__container {
  padding: 40px 24px 72px;
}

/* ──────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────── */
.wl-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

/* "Your collection" - mobile only (handoff wlm-eyebrow), desktop hero has none */
.wl-hero__eyebrow {
  display: none;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
  margin-bottom: 10px;
}

.wl-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink-900);
}

.wl-hero__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-secondary);
  max-width: 520px;
}

/* Two desc strings — long for desktop, short for mobile. */
.wl-hero__desc--mobile {
  display: none;
}

.wl-hero__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--fg-secondary);
}

/* Stats */
.wl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.wl-stat__label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
}

/* Desktop renders "TOTAL VALUE"; mobile keeps the short "Total"
   (matches the inline JSX format). */
.wl-stat:nth-of-type(2) .wl-stat__label::after {
  content: ' value';
}

.wl-stat__value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
}

.wl-stat__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ──────────────────────────────────────────────────────────
   Controls rail
   ────────────────────────────────────────────────────────── */
.wl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);

}

.wl-controls__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wl-controls__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Checkbox (used for select-all and row select) */
.wl-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-900);
}

.wl-checkbox__box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong, #c9c9c4);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all .15s;
}

.wl-checkbox__check {
  display: none;
}

.wl-checkbox__dash {
  display: none;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Remove-selected text link */
.wl-remove-selected {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--fg-secondary);
  font-size: 13px;
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
   Specs picker
   ────────────────────────────────────────────────────────── */
.wl-specs {
  position: relative;
}

.wl-specs__btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wl-specs__count {
  color: var(--fg-tertiary);
  font-weight: 400;
}

.wl-specs__chev svg {
  color: var(--fg-tertiary);
  transition: transform .15s;
}

.wl-specs__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 240px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  z-index: 50;
  padding: 6px 0;
}

.wl-specs__menu-master {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.wl-specs__menu-master-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

.wl-specs__menu-eyebrow {
  padding: 10px 14px 6px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 600;
}

.wl-specs__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-900);
}

.wl-specs__menu-item input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand-700, #17433d);
  cursor: pointer;
}

/* Toggle switch */
.wl-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--brand-700, #17433d);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}

.wl-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  /* on by default; woo-wishlist.js sets translateX(0) for off - a transform, not left (no layout per frame) */
  transform: translateX(16px);
  transition: transform .15s;
}

.wl-sort {
  position: relative;
}

.wl-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong, #c5ccca);
  color: var(--fg-tertiary);
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

/* SVG glyph instead of a "?" character - a font glyph never sits on the true center */
.wl-help svg {
  display: block;
  width: 12px;
  height: 12px;
}

/* Hero copy of Sort — desktop hides it, mobile shows it. */
.wl-sort--hero {
  display: none;
}

.wl-sort__btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.wl-sort__btn-prefix {
  color: var(--fg-tertiary);
  font-weight: 400;
  margin-right: 6px;
}

.wl-sort__menu {
  position: absolute;
  top: 20px;
  right: 0;
  left: unset !important;
  background: #fff;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  min-width: 220px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  z-index: 40;
  padding: 6px 0;
}

.wl-sort__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-900);
  font-weight: 400;
}

.wl-sort__opt.is-active {
  font-weight: 600;
}

.wl-sort__opt-check {
  float: right;
  color: var(--ok-600, #0b8e6a);
  margin-top: 3px;
}

.wl-sort__opt:not(.is-active) .wl-sort__opt-check {
  display: none;
}

/* ──────────────────────────────────────────────────────────
   List & rows
   ────────────────────────────────────────────────────────── */
.wl-list {
  margin-top: 10px;
}

.wl-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 280px minmax(0, 1fr) 240px;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.wl-row__check-wrap {
  padding-top: 4px;
}

.wl-row__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ink-100);
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

.wl-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wl-row__placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--fg-tertiary);
}

/* Row body */
.wl-row__body {
  min-width: 0;
}

.wl-row__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 6px;
}

.wl-row__name {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.25;
  display: block;
  text-decoration: none;
}

.wl-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-secondary);
}

.wl-row__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wl-row__rating-count {
  color: var(--fg-tertiary);
}

.wl-row__meta-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.wl-row__avail {
  color: var(--fg-secondary);
}

.wl-row__avail--ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok-600, #0b8e6a);
}

.wl-row__avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-600, #0b8e6a);
}

/* Two avail labels — desktop "Ready to ship", mobile "Ready". */
.wl-row__avail-label--mobile {
  display: none;
}

.wl-row__added {
  color: var(--fg-tertiary);
}

/* No stock status (no lead time) - drop it and the separator before it, so no orphan "|" is left */
.wl-row__status:empty,
.wl-row__meta-sep:has(+ .wl-row__status:empty) {
  display: none;
}

/* Specs table */
.wl-row__specs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 0;
}

.wl-row__spec {
  display: none;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  gap: 12px;
}

.wl-row__spec.is-on {
  display: flex;
}

/* Drop the dashed border on the last visible spec. JS also enforces this
   via applySpecBorders() to handle dynamic toggles. */
.wl-row__spec.is-on:not(:has(~ .wl-row__spec.is-on)) {
  border-bottom: none;
}

.wl-row__spec-key {
  color: var(--fg-tertiary);
  letter-spacing: .02em;
  flex: 0 0 auto;
}

.wl-row__spec-val {
  color: var(--ink-900);
  font-weight: 500;
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}

/* ──────────────────────────────────────────────────────────
   Right column — price / extras / actions
   ────────────────────────────────────────────────────────── */
.wl-row__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.wl-row__price-block {
  text-align: right;
}

.wl-row__price-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wl-row__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink-900);
  line-height: 1;
}

.wl-row__price.is-sale {
  color: var(--sale-500, #e11d1d);
}

.wl-row__strike {
  font-size: 13px;
  color: var(--fg-tertiary);
  text-decoration: line-through;
  line-height: 1;
}

.wl-row__save-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}

.wl-row__price-note {
  font-size: 11px;
  color: var(--fg-tertiary);
  margin-top: 4px;
}

/* Extras dropdown */
.wl-extras {
  position: relative;
}

/* Help tooltip — mirrors .pdp-tooltip pattern from product.css. */

.wl-extras__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  z-index: 30;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}

.wl-extras__opt-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  line-height: 20px;
}

.select-option-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.select-option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-option-error {
  color: #ff0000;
  display: none;
  font-size: 12px;
  font-weight: 500;
  margin: 0px 0px 0px 5px;
}

.wl-extras__opt-right {
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.wl-extras__opt-price {
  color: var(--cta, #f03d0d);
  font-weight: 600;
}

.wl-extras__opt-check {
  color: var(--brand-700, #17433d);
  display: inline-flex;
}

/* Cart CTA + Remove */
.wl-row__cta {
  width: 100%;
  height: 44px;
  background: var(--accent-500, #dc3809);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
}

/* Two CTA labels — only one renders per breakpoint. */

.wl-row__remove {
  width: 100%;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}

/* Mobile-only close X — hidden on desktop, positioned absolutely on mobile. */
.wl-row__close {
  display: none;
}

.wl-row__close:hover {
  color: var(--ink-900);
}

/* ──────────────────────────────────────────────────────────
   Bulk action bar
   ────────────────────────────────────────────────────────── */
.wl-bulkbar {
  position: sticky;
  bottom: 16px;
  margin-top: 24px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  z-index: 20;
}

/* `display: flex` above outranks the UA `[hidden] { display: none }`,
   so we re-assert the hidden state explicitly. */
.wl-bulkbar[hidden] {
  display: none;
}

.wl-bulkbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.wl-bulkbar__count {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cta, #f03d0d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.wl-bulkbar__label {
  font-weight: 500;
}

.wl-bulkbar__sep {
  color: rgba(255, 255, 255, .6);
}

.wl-bulkbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wl-bulkbar__clear {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
}

.wl-bulkbar__cta {
  background: var(--cta, #f03d0d);
  border: none;
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wl-bulkbar__total-value {
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────
   Share row
   ────────────────────────────────────────────────────────── */
/* Share / save aside (WLShareBlock — two groups) */
.wl-share {
  margin-top: 32px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 6px 18px -14px rgba(0, 0, 0, .12);
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.wl-share-col {
  flex: 1 1 0;
  min-width: 0;
}

.wl-share-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.wl-share-head .ic {
  color: var(--brand-700);
}

.wl-share-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  letter-spacing: -.005em;
}

.wl-share-sub {
  margin: 2px 0 16px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--fg-secondary);
}

.wl-share-sub strong {
  color: var(--brand-700);
  font-weight: 700;
}

.wl-share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 6px 0 12px;
  height: 42px;
}

.wl-share-link>.ic {
  color: var(--fg-tertiary);
  flex: 0 0 auto;
}

.wl-share-url {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--fg-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-share-copy {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--ink-100);
  color: var(--ink-900);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}

.wl-share-copy.is-copied {
  background: var(--brand-700);
  color: #fff;
}

.wl-share-div {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex: 0 0 auto;
}

.wl-share-signin {
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-900);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wl-share-signin:hover {
  background: var(--ink-900);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────
   Hover states
   ────────────────────────────────────────────────────────── */
.wl-row__cta:hover {
  color: #fff;
  background: var(--accent-600, #c73100);
}

.wl-row__remove:hover {
  color: var(--sale-500, #e11d1d);
  border-color: var(--sale-500, #e11d1d);
}

.wl-row__name:hover {
  color: var(--brand-700, #17433d);
}

.wl-remove-selected:hover {
  color: var(--sale-500, #e11d1d);
}

.wl-specs__menu-item:hover {
  background: var(--ink-100, #f5f6f5);
}

.wl-sort__opt:hover {
  background: var(--ink-100, #f5f6f5);
}

.wl-bulkbar__clear:hover {
  border-color: rgba(255, 255, 255, .6);
}

.wl-bulkbar__cta:hover {
  background: var(--cta-hover, #e03800);
}

/* ──────────────────────────────────────────────────────────
   Open-state ticks (chevrons rotate when dropdown open)
   ────────────────────────────────────────────────────────── */
.wl-specs.is-open .wl-specs__chev svg {
  transform: rotate(180deg);
}

/* When master "Show specs" is OFF, dim the column list. */
.wishlist-page:not(.is-specs-on) .wl-specs__menu-list {
  opacity: .5;
  pointer-events: none;
}

/* Selected row checkbox fill. */
.wl-row.is-selected .wl-checkbox--row .wl-checkbox__box {
  background: var(--brand-700, #17433d);
  border-color: var(--brand-700, #17433d);
}

.wl-row.is-selected .wl-checkbox--row .wl-checkbox__check {
  display: inline-flex;
}

/* Master select-all checkbox tri-state. */
.js-wl-select-all.is-on .wl-checkbox__box,
.js-wl-select-all.is-some .wl-checkbox__box {
  background: var(--brand-700, #17433d);
  border-color: var(--brand-700, #17433d);
}

.js-wl-select-all.is-on .wl-checkbox__check {
  display: inline-flex;
}

.js-wl-select-all.is-some:not(.is-on) .wl-checkbox__dash {
  display: inline-block;
}

/* Row removing animation. */
.wl-row.is-removing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}

/* ──────────────────────────────────────────────────────────
   Responsive — !important keeps these overrides safe against
   inline styles JS occasionally writes (e.g. show/hide specs).
   ────────────────────────────────────────────────────────── */

/* ≤ 1100px : tighten hero stats. */
@media (max-width: 1100px) {
  .wl-hero__title {
    font-size: 40px;
  }

  .wl-hero__stats {
    gap: 16px;
  }

  .wl-stat__divider {
    height: 24px;
  }

  .wl-row {
    grid-template-columns: 24px 220px minmax(0, 1fr) 200px;
    gap: 22px;
  }
}

/* ≤ 900px : Mobile layout — mirrors WishlistMobile.jsx (390px design).
   Hero compresses, rows become single-column cards with X-close at top-right,
   bulk bar switches to a white sticky bottom rail, share section stacks. */
@media (max-width: 900px) {
  .wishlist-page__container {
    padding: 0;
  }

  /* Hero — 20px gutters, smaller display title, inline stats rail. */
  .wl-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px 16px;
    margin-bottom: 0;
  }

  .wl-hero__eyebrow {
    display: block;
    font-size: 10px;
    margin-bottom: 6px;
  }

  .wl-hero__title {
    font-size: 30px;
    letter-spacing: -.015em;
    line-height: 1.05;
  }

  /* Swap to the shorter mobile description string. */
  .wl-hero__desc--desktop {
    display: none;
  }

  .wl-hero__desc--mobile {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 19px;
    color: var(--fg-secondary);
  }

  .wl-hero__stats {
    margin-top: 14px;
    gap: 14px;
    align-items: baseline;
    font-size: 12px;
    flex-wrap: nowrap;
  }

  /* Reformat stat blocks → inline. JSX renders stat 1 as `<value> items`
     and stat 2 as `Total <value>`, so we flip stat 1's flex direction. */
  .wl-stat {
    flex-direction: row;
    gap: 4px;
    align-items: baseline;
  }

  .wl-stat:nth-of-type(1) {
    flex-direction: row-reverse;
  }

  .wl-stat:nth-of-type(1) .wl-stat__label {
    text-transform: lowercase;
  }

  /* Drop the desktop " value" suffix on mobile. */
  .wl-stat:nth-of-type(2) .wl-stat__label::after {
    content: none;
  }

  .wl-stat__label {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg-secondary);
    font-weight: 400;
  }

  .wl-stat__value {
    font-size: 14px;
    font-weight: 600;
  }

  .wl-stat__divider {
    height: 12px;
  }

  /* Drop the 3rd stat block ("Last added") and the divider that precedes it. */
  .wl-hero__stats>.wl-stat:nth-of-type(3),
  .wl-hero__stats>.wl-stat__divider:nth-of-type(2) {
    display: none;
  }

  /* Show the hero copy of Sort and push it to the right edge.
     `margin-left: auto` consumes the leftover flex space. */
  .wl-sort--hero {
    display: block;
    margin-left: auto;
  }

  /* Sort in the hero - 13px like the handoff wlm-dd-btn, muted "Sort:" prefix */
  .wl-sort--hero .wl-sort__btn,
  .wl-sort--hero .wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 13px;
  }

  .wl-sort--hero .wl-sort__btn-prefix {
    margin-right: 4px;
  }

  .wl-sort--hero .wl-sort__btn .select2-container .select2-selection--single {
    height: 20px;
    background: transparent;
  }

  .wl-sort--hero .wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px;
  }

  .wl-sort--hero .wl-sort__btn .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 11px;
    height: 11px;
    margin-left: 4px;
    background-size: 11px auto;
  }

  .wl-sort--hero .wl-sort__menu {
    /* Anchor menu to the right of the trigger, matching JSX `right: 0`. */
    right: 0;
    left: auto;
  }

  /* Specs opens to the right of its trigger: on phones the controls wrap and Specs starts the line,
     where the desktop `right: 0` pushed the menu off the left edge of the screen */
  .wl-specs__menu {
    left: 0;
    right: auto;
    max-width: calc(100vw - 40px);
  }

  /* Controls — single padded row, no top border. */
  .wl-controls {
    padding: 12px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .wl-controls__right {
    gap: 16px;
  }

  /* Toolbar - handoff wlm-selall / wlm-dd-btn: 13px medium, tighter gaps */
  .wl-controls .wl-checkbox {
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
  }

  .wl-specs__btn {
    gap: 4px;
    font-size: 13px;
  }

  .wl-specs__btn>.ic {
    width: 13px;
    height: 13px;
    margin-right: 2px;
  }

  /* Toolbar Sort moves into the hero on mobile (see .wl-sort--hero). */
  .wl-controls__right>.wl-sort:not(.wl-sort--hero) {
    display: none;
  }

  /* Bulk bar handles "Remove selected" on mobile. */
  .wl-remove-selected {
    display: none;
  }

  /* List — no extra top border (controls already provides one). */
  .wl-list {
    border-top: none;
    margin-top: 0;
  }

  /* Row — checkbox + 96px image + body grid; close X is positioned
     absolutely to top-right. */
  .wl-row {
    grid-template-columns: 20px 96px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 20px;
    align-items: start;
  }

  .wl-row__check-wrap {
    padding-top: 4px;
  }

  .wl-row__media {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
  }

  /* Close X — visible at the top-right of the row, replaces the
     bottom Remove button on mobile. Aligned with article padding (16/20). */
  .wl-row__close {
    position: absolute;
    top: 12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fg-tertiary);
    z-index: 2;
  }

  /* Body — reserve space at top-right for the absolutely-positioned X.
     Only brand+name are at risk of overlap; meta/specs/extras are
     vertically below the X but the padding is harmless there. */
  .wl-row__body {
    padding-right: 36px;
  }

  .wl-row__brand {
    font-size: 10px;
    letter-spacing: .12em;
    margin-bottom: 4px;
  }

  .wl-row__name {
    font-size: 14.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wl-row__meta {
    gap: 8px;
    margin-top: 6px;
    font-size: 11.5px;
  }

  .wl-row__avail-dot {
    width: 5px;
    height: 5px;
  }

  .wl-row__avail-label--desktop {
    display: none;
  }

  .wl-row__avail-label--mobile {
    display: inline;
  }

  .wl-row__meta-sep {
    height: 10px;
  }

  .wl-row__added {
    display: none;
  }

  /* Drop the trailing separator that precedes the (now-hidden) "Added" line. */
  .wl-row__meta-sep:has(+ .wl-row__added) {
    display: none;
  }

  /* Specs collapse to a single dot-separated line. */
  .wl-row__specs {
    display: block !important;
    margin-top: 8px;
    column-gap: 0;
    font-size: 11.5px;
    line-height: 16px;
    color: var(--fg-secondary);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wl-row__spec {
    display: none !important;
    border: none;
    padding: 0;
  }

  .wl-row__spec.is-on {
    display: inline !important;
  }

  .wl-row__spec.is-on::after {
    content: ' · ';
    color: var(--ink-300);
  }

  .wl-row__spec.is-on:last-of-type::after {
    content: '';
  }

  .wl-row__spec-key {
    display: none;
  }

  .wl-row__spec-val {
    color: var(--fg-secondary);
    font-weight: 400;
    margin-left: 0;
    text-align: left;
    flex: initial;
  }

  /* Right column folds into the body's column (col 3), not full row width.
     This mirrors JSX where extras/price/Add all sit inside the 1fr body. */
  .wl-row {
    grid-template-areas:
      "check media body"
      ".     .     right";
    row-gap: 10px;
  }

  .wl-row__check-wrap {
    grid-area: check;
  }

  .wl-row__media {
    grid-area: media;
  }

  .wl-row__body {
    grid-area: body;
  }

  .wl-row__right {
    grid-area: right;
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "extras  extras"
      "price   cta";
    gap: 10px;
    margin-top: 0;
    align-items: center;
  }

  .wl-extras {
    grid-area: extras;
    margin-top: 0;
  }

  .wl-row__price-block {
    grid-area: price;
    text-align: left;
  }

  .wl-row__price-line {
    justify-content: flex-start;
    gap: 6px;
  }

  .wl-row__price {
    font-size: 16px;
    font-weight: 600;
  }

  .wl-row__strike {
    font-size: 12px;
  }

  .wl-row__cta {
    grid-area: cta;
    width: auto;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 4px;
  }

  /* Bottom Remove button is replaced by the top-right X on mobile. */
  .wl-row__remove {
    display: none;
  }

  /* Bulk bar — switches to a white sticky bottom rail. */
  /* Bulk bar - handoff wlm-bulk: dark rail stuck to the bottom edge,
     badge + "N items selected" + total on top, Clear + full-width Move to cart below. */
  .wl-bulkbar {
    bottom: 0;
    margin-top: 0;
    padding: 14px 16px 16px;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .2);
    z-index: 30;
  }

  .wl-bulkbar__left {
    gap: 12px;
  }

  .wl-bulkbar__count {
    flex: 0 0 auto;
  }

  .wl-bulkbar__sep {
    display: none;
  }

  .wl-bulkbar__total {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
  }

  .wl-bulkbar__total-value {
    color: #fff;
  }

  .wl-bulkbar__right {
    gap: 10px;
  }

  .wl-bulkbar__clear {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
  }

  /* "Clear selection" -> "Clear" */
  .wl-bulkbar__clear-more {
    display: none;
  }

  .wl-bulkbar__cta {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    justify-content: center;
  }

  .wl-bulkbar__cta svg {
    width: 16px;
    height: 16px;
  }

  /* Share section — ink-50 panel, stacked rows, divider before sign-in. */
  .wl-share {
    margin-top: 0;
    padding: 20px;
    background: var(--ink-50, #fafaf8);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 12.5px;
  }

}

/* ──────────────────────────────────────────────────────────
   Design feedback (Oct 2026)
   ────────────────────────────────────────────────────────── */

/* Option selector (handoff product page option): the option's name + '?' tooltip above,
   the selected option's name wraps instead of being cut, its price sits right with room */
.wl-extras-label {
  font-size: 11px;
  letter-spacing: .1em;
}

.wl-extras .select2-container .select2-selection--single {
  height: auto;
  min-height: 40px;
  padding: 8px 10px 8px 12px;
  gap: 8px;
}

.wl-extras .select2-container .select2-selection--single .select2-selection__rendered {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 16px;
  white-space: normal;
  line-height: 18px;
}

.wl-extras .select2-selection__rendered .select-option-text {
  white-space: normal;
  overflow: visible;
}

.wl-extras .select2-selection__rendered .wl-extras__opt-right {
  line-height: 18px;
}

/* in the flex row after the price (select2 pins it absolutely) - relative, so its triangle centres in it */
.wl-extras .select2-container .select2-selection--single .select2-selection__arrow {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  width: 16px;
  height: 18px;
}

.wl-help:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
}

/* Rating in the meta row (Img 20) */
.wl-row__rating .stars {
  display: inline-flex;
  gap: 2px;
}

.wl-row__rating b {
  color: var(--ink-900);
  font-weight: 500;
}

.wl-row__avail--oos {
  color: var(--fg-secondary);
}

/* Out of stock option picked: Notify me (dark green) takes Move to Cart's place */
.wl-row__cta[hidden] {
  display: none;
}

.wl-row__notify {
  background: var(--brand-900, #01231f);
  text-decoration: none;
}

.wl-row__notify:hover {
  background: var(--brand-800, #0d332e);
}

/* Share / Save this list (hidden for now): fonts and icons 10% bigger for when it comes back */
.wl-share-head .ic {
  width: 16.5px;
  height: 16.5px;
}

.wl-share-head h3 {
  font-size: 17.6px;
}

.wl-share-sub,
.wl-share-copy,
.wl-share-signin {
  font-size: 13.75px;
}

.wl-share-url {
  font-size: 14.3px;
}

.wl-share-link>.ic {
  width: 15.4px;
  height: 15.4px;
}

.wl-share-copy .ic {
  width: 14.3px;
  height: 14.3px;
}
