/* Fox Wishlist. The themes style .fox-wl-btn-icon (box, border, hover) and the .fox-wl-list table; this file only
   gives the button a clean base, the heart shapes, the saved state, the list's basics and the message. */
.fox-wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.fox-wl-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fox-wl-heart {
  width: 1em;
  height: 1em;
  display: block;
}
.fox-wl-heart-full,
.fox-wl-btn.fox-wl-added .fox-wl-heart-empty {
  display: none;
}
.fox-wl-btn.fox-wl-added .fox-wl-heart-full {
  display: block;
}
/* Saved: the same filled red box customers already know. */
.fox-wl-btn.fox-wl-added .fox-wl-btn-icon {
  color: #fff;
  background: var(--color-accent, #c13124);
  border-color: var(--color-accent, #c13124);
}
.fox-wl-btn.fox-wl-adding .fox-wl-btn-icon {
  opacity: .6;
}
.fox-wl-btn:focus-visible .fox-wl-btn-icon,
.fox-wl-remove:focus-visible,
.fox-wl-copy:focus-visible {
  outline: 2px solid var(--color-accent, #c13124);
  outline-offset: 2px;
}

/* The list's name and the owner's rename button. */
.fox-wl-name-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.fox-wl-title {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.fox-wl-rename {
  /* The pencil looks as it did; its box is at least 24x24 everywhere and 44x44 on touch screens (the extra room is
     taken back with a negative margin, so the glyph and the title keep their places). */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
}
@media (pointer: coarse) {
  .fox-wl-rename {
    min-width: 44px;
    min-height: 44px;
    margin: -9px -6px;
  }
}
.fox-wl-rename:hover,
.fox-wl-rename:focus-visible {
  color: var(--color-accent, #c13124);
}
.fox-wl-rename-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
}
.fox-wl-rename-input {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 420px;
}
.fox-wl-rename-cancel {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* The list (the themes add borders, fonts and the phone layout). */
.fox-wl-list table.fox-wl-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.fox-wl-list table.fox-wl-table td {
  vertical-align: middle;
  padding: 10px;
}
.fox-wl-list table.fox-wl-table tbody tr:nth-child(2n) td {
  background-color: rgba(0, 0, 0, .03);
}
.fox-wl-list table.fox-wl-table .col-image img {
  width: 80px;
  height: auto;
  border-radius: 2px;
}
.fox-wl-list table.fox-wl-table .col-name a {
  font-weight: 700;
}
.fox-wl-list .fox-wl-atc p,
.fox-wl-list .fox-wl-atc .add_to_cart_inline {
  border: 0;
  padding: 0;
  margin: 0;
}
.fox-wl-remove {
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.fox-wl-remove:hover {
  color: var(--color-accent, #c13124);
}
.fox-wl-remove[disabled] {
  opacity: .4;
  cursor: wait;
}
.fox-wl-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
}
.fox-wl-copy {
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.fox-wl-share label {
  font-weight: 600;
}
.fox-wl-share-url {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 460px;
}
.fox-wl-loading,
.fox-wl-error {
  padding: 24px 0;
  text-align: center;
}

/* The "added to your wishlist" message. */
.fox-wl-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  background: #fff;
  color: #1c1c1c;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.fox-wl-toast-img {
  float: left;
  width: 48px;
  height: 48px;
  margin: 0 12px 0 0;
  object-fit: cover;
  border-radius: 4px;
}
.fox-wl-toast-text {
  display: block;
  overflow: hidden;
}
.fox-wl-toast.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fox-wl-toast a {
  color: var(--color-accent, #c13124);
  font-weight: 600;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .fox-wl-toast { transition: none; }
}

/* Phones: one card per product instead of a six-column table that runs off the screen. */
@media (max-width: 640px) {
  .fox-wl-list table.fox-wl-table,
  .fox-wl-list table.fox-wl-table tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: 0;
  }
  .fox-wl-list table.fox-wl-table thead {
    display: none;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td {
    display: block;
    padding: 0;
    border: 0;
    background: none !important;
    text-align: left;
    width: auto;
    min-width: 0;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-image {
    display: block !important;
    grid-column: 1;
    grid-row: 1 / span 3;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-image img {
    width: 72px;
    height: auto;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-name,
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-price,
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-stock {
    grid-column: 2;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-price *,
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-stock * {
    text-align: left !important;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-stock p {
    margin: 0;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-remove {
    grid-column: 3;
    grid-row: 1;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-action {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 4px;
  }
  .fox-wl-list table.fox-wl-table tr.fox-wl-item td.col-action .fox-wl-time {
    font-size: 13px;
    opacity: .75;
  }
  .fox-wl-share-url {
    flex-basis: 100%;
    max-width: none;
  }
}

/* Notify me when back in stock (the themes add fonts, colours and the phone layout). */
.fox-wl-notify {
  margin: 12px 0;
}
.fox-wl-notify .fox-wl-notify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fox-wl-notify [hidden] {
  display: none !important;
}
.fox-wl-notify-email {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 340px;
  min-height: 44px;
  box-sizing: border-box;
}
.fox-wl-notify-btn,
.fox-wl-notify-undo,
.fox-wl-notify-stop {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.fox-wl-notify-undo,
.fox-wl-notify-stop {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
}
.fox-wl-notify-btn[disabled] {
  cursor: default;
}
/* The email field is hidden by the script from the state answer (logged_in), never by a body class: a cached page can come from another visitor. */
/* Honeypot: off screen, not display:none, so a bot still fills it. */
.fox-wl-notify-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.fox-wl-notify-msg {
  margin: 6px 0 0;
  min-height: 1.4em;
}
.fox-wl-notify-msg.is-error {
  color: var(--color-accent, #c13124);
}
.fox-wl-notify.is-busy .fox-wl-notify-btn {
  opacity: 0.6;
}
.fox-wl-waiting {
  margin-top: 6px;
  font-weight: 600;
}
.fox-wl-waiting .fox-wl-notify-stop {
  font-weight: 400;
}

/* Some shop themes pin every .product-price to the bottom of its card (position: absolute); inside the list table the
   price must stay in its own cell, or on phones it floats out of the row over the share box. */
.fox-wl-table .col-price .product-price,
.fox-wl-table .col-price .price {
	position: static;
	inset: auto;
	width: auto;
}
