/* Arthopia favorite dropdown next to the cart. */
.ax-header-util--wishlist {
  position: relative;
}

.ax-header-util--wishlist > [data-arthopia-wishlist-toggle] {
  position: relative;
}

.ax-header-wishlist-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #315d25;
  color: #fffdf8;
  font: 800 10px/17px var(--arthopia-sans, Manrope, sans-serif);
  text-align: center;
}

.ax-header-wishlist-drop {
  position: absolute;
  top: calc(100% + 9px);
  right: -8px;
  z-index: 150;
  box-sizing: border-box;
  width: min(94vw, 420px);
  max-height: min(76vh, 620px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(41, 73, 26, .14);
  border-radius: 20px;
  background: #fffdf8;
  color: #24492f;
  box-shadow: 0 20px 48px rgba(32, 54, 19, .22);
}

.ax-header-wishlist-drop[hidden] {
  display: none;
}

.ax-header-wishlist-drop::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(41, 73, 26, .14);
  border-left: 1px solid rgba(41, 73, 26, .14);
  background: #fffdf8;
  transform: rotate(45deg);
}

.ax-header-wishlist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5eadf;
}

.ax-header-wishlist-eyebrow {
  margin: 0 0 4px;
  color: #7d8c73;
  font: 800 9px/1.2 var(--arthopia-sans, Manrope, sans-serif);
  letter-spacing: .16em;
}

.ax-header-wishlist-head h2 {
  margin: 0;
  color: #24492f;
  font: 600 24px/1.05 var(--arthopia-serif, 'EB Garamond', Georgia, serif);
}

.ax-header-wishlist-close,
.ax-header-wishlist-remove {
  border: 0;
  background: transparent;
  color: #315d25;
  cursor: pointer;
}

.ax-header-wishlist-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #d5dfce;
  border-radius: 50%;
  font: 400 23px/27px var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-status {
  padding: 12px 0 5px;
  color: #788474;
  font: 600 11px/1.4 var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-status:empty {
  display: none;
}

.ax-header-wishlist-status.is-error {
  color: #a4452c;
}

.ax-header-wishlist-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-header-wishlist-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 7px 4px 7px 0;
  border-bottom: 1px solid #eef1e9;
}

.ax-header-wishlist-product {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.ax-header-wishlist-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid #e2e8dc;
  border-radius: 11px;
  background: #f4f5ef;
  color: #8b9b7a;
  font: 400 26px/1 var(--arthopia-serif, 'EB Garamond', Georgia, serif);
}

.ax-header-wishlist-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ax-header-wishlist-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ax-header-wishlist-name {
  overflow-wrap: anywhere;
  color: #24492f;
  font: 700 12px/1.25 var(--arthopia-sans, Manrope, sans-serif);
  white-space: normal;
}

.ax-header-wishlist-meta {
  color: #879181;
  font: 500 10px/1.2 var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-price {
  color: #315d25;
  font: 800 12px/1.2 var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-remove {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid #d5dfce;
  border-radius: 50%;
  font: 400 19px/22px var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-remove:hover,
.ax-header-wishlist-remove:focus-visible,
.ax-header-wishlist-close:hover,
.ax-header-wishlist-close:focus-visible {
  background: #eef4e8;
}

.ax-header-wishlist-empty {
  padding: 20px 4px;
  color: #788474;
  font: 600 12px/1.4 var(--arthopia-sans, Manrope, sans-serif);
}

.ax-header-wishlist-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #315d25;
  color: #fffdf8;
  font: 800 12px/1.2 var(--arthopia-sans, Manrope, sans-serif);
  text-decoration: none;
}

.ax-header-wishlist-all:hover,
.ax-header-wishlist-all:focus-visible {
  background: #24492f;
  color: #fffdf8;
}

@media (max-width: 767px) {
  .ax-header-wishlist-drop {
    position: fixed;
    top: calc(var(--arthopia-header-h, 96px) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - var(--arthopia-header-h, 96px) - 24px);
    border-radius: 17px;
    overflow-x: hidden;
  }

  .ax-header-wishlist-product {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .ax-header-wishlist-thumb {
    width: 56px;
    height: 56px;
  }

  .ax-header-wishlist-drop::before {
    right: 69px;
  }
}

/* The mobile masthead must keep account, wishlist, search and cart together. */
@media (max-width: 1023px) {
  .ax-utils {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .ax-cell--end {
    gap: 0;
  }

  .ax-logo--mob img {
    width: clamp(104px, 34vw, 168px);
  }
}

@media (max-width: 360px) {
  .ax-masthead__row {
    gap: 0;
  }

  .ax-cell--start {
    flex-basis: 36px;
  }

  .ax-icon,
  .ax-search,
  .ax-search .ax-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .ax-logo--mob img {
    width: 96px;
  }

  .ax-header-wishlist-drop {
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    padding: 13px;
  }

  .ax-header-wishlist-head h2 {
    font-size: 22px;
  }
}
