.aww-button,
.aww-remove {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box;
  box-shadow: none !important;
  font: inherit;
  letter-spacing: normal !important;
  text-transform: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.aww-button {
  --aww-heart-inactive: #696969;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 40px;
  margin: 0;
  padding: .48rem .9rem;
  border: 1px solid rgba(0, 0, 0, .13) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--aww-heart-inactive);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, opacity .16s ease, transform .16s ease;
}

.aww-button:hover,
.aww-button:focus-visible {
  border-color: rgba(0, 0, 0, .34) !important;
  color: #222;
}

.aww-button:focus-visible,
.aww-remove:focus-visible,
.aww-wishlist-link:focus-visible,
.aww-card a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.aww-button.is-active {
  border-color: rgba(215, 25, 32, .26) !important;
  background: rgba(215, 25, 32, .055) !important;
  color: var(--aww-heart-active, #d71920);
}

.aww-button.is-pending,
.aww-remove.is-pending {
  opacity: .55;
  cursor: progress;
  pointer-events: none;
}

.aww-button__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.aww-button__icon svg {
  display: block;
  width: var(--aww-icon-size, 17px);
  height: var(--aww-icon-size, 17px);
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.65;
  transition: fill .16s ease, transform .16s ease, stroke .16s ease;
}

.aww-button.is-active .aww-button__icon svg {
  fill: currentColor;
  stroke: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .aww-button:hover .aww-button__icon svg,
  .aww-button:focus-visible .aww-button__icon svg {
    transform: scale(1.06);
  }
}

.products .product,
.product-small {
  position: relative;
}

.aww-button--loop {
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 35;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: .94;
  overflow: visible;
}

.aww-button--loop::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.aww-button--loop:hover::before,
.aww-button--loop:focus-visible::before {
  border-color: rgba(0, 0, 0, .17);
  box-shadow: 0 3px 13px rgba(0, 0, 0, .12);
}

.aww-button--loop.is-active::before {
  border-color: rgba(215, 25, 32, .16);
  background: rgba(255, 255, 255, .98);
}

.aww-button--loop .aww-button__icon {
  position: relative;
  z-index: 1;
}

.aww-button--loop .aww-button__icon svg {
  width: var(--aww-icon-size, 18px);
  height: var(--aww-icon-size, 18px);
}

.aww-button--loop .aww-button__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aww-single-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100%;
  margin: .8rem 0 1.25rem;
  text-align: left !important;
}

.aww-single-actions .aww-button {
  margin: 0 !important;
}

.aww-button--single,
.aww-button--shortcode {
  min-height: 40px;
  padding: .5rem .95rem !important;
}


.aww-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.22rem;
  min-height: 1.22rem;
  padding: 0 .3rem;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
}

.aww-wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.aww-wishlist-link:hover,
.aww-wishlist-link:focus-visible {
  color: var(--aww-heart-active, #d71920);
}

.aww-wishlist-link__icon {
  display: inline-flex;
  color: var(--aww-heart-active, #d71920);
}

.aww-wishlist-link__icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
}

.aww-wishlist-link__count {
  background: rgba(215, 25, 32, .085);
  color: var(--aww-heart-active, #d71920);
}

.aww-account-wishlist,
.aww-wishlist,
.aww-card,
.aww-card__content {
  min-width: 0;
}

.aww-account-wishlist__title {
  margin: 0 0 .5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  font-size: 1.55rem;
  line-height: 1.2;
}

.aww-wishlist__grid {
  display: flex;
  flex-direction: column;
}

.aww-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 3.2rem 1.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .085);
  transition: opacity .16s ease, transform .16s ease;
}

.aww-card.is-optimistically-hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.aww-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f7f7;
}

.aww-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.aww-card__title {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.aww-card__title a {
  color: inherit;
  text-decoration: none;
}

.aww-card__title a:hover {
  color: var(--aww-heart-active, #d71920);
}

.aww-card__price {
  margin-bottom: .35rem;
  font-size: .98rem;
  font-weight: 600;
}

.aww-card__stock {
  font-size: .82rem;
  line-height: 1.35;
  opacity: .76;
}

.aww-card__stock p {
  margin: 0;
}

.aww-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.aww-card__cart.button {
  min-height: 40px;
  margin: 0 !important;
  padding: .72rem 1rem !important;
  border: 1px solid #222 !important;
  border-radius: 4px !important;
  background: #222 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: .76rem;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.aww-card__cart.button:hover,
.aww-card__cart.button:focus-visible {
  border-color: #000 !important;
  background: #000 !important;
  color: #fff !important;
}

.aww-remove {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #858585;
  transform: translateY(-50%);
  transition: color .16s ease, background-color .16s ease, opacity .16s ease;
}

.aww-remove:hover,
.aww-remove:focus-visible {
  background: rgba(215, 25, 32, .07) !important;
  color: var(--aww-heart-active, #d71920);
}

.aww-remove svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.aww-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin-top: 1rem;
  padding: 2.5rem 1rem;
  border-radius: 14px;
  background: #f7f7f7;
  text-align: center;
}

.aww-empty[hidden] {
  display: none !important;
}

.aww-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--aww-heart-active, #d71920);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.aww-empty__icon svg {
  width: 26px;
  height: 26px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.45;
}

.aww-empty h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.aww-empty__button.button {
  margin: 0 !important;
  border-radius: 4px !important;
}

.aww-toast {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: min(390px, calc(100vw - 2rem));
  padding: .82rem 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(25, 25, 25, .96);
  color: #fff;
  font-size: .86rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.aww-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aww-toast a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 849px) {
  .aww-account-wishlist-page .woocommerce-MyAccount-navigation,
  .aww-account-wishlist-page .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation {
    margin: 0 0 1.25rem !important;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    gap: .45rem;
    margin: 0 -15px !important;
    padding: 0 15px .35rem !important;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: .58rem .82rem !important;
    border: 1px solid rgba(0, 0, 0, .11);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-size: .79rem;
    line-height: 1;
    white-space: nowrap;
  }

  .aww-account-wishlist-page .woocommerce-MyAccount-navigation li.is-active a {
    border-color: #222;
    background: #222;
    color: #fff;
  }
}

@media (max-width: 549px) {
  .aww-single-actions {
    margin-top: .65rem;
    margin-bottom: 1.15rem;
  }

  .aww-button--single {
    min-height: 42px;
    padding: .55rem 1rem !important;
    font-size: .81rem;
  }

  .aww-button--loop {
    top: .35rem;
    right: .35rem;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .aww-button--loop::before {
    inset: 4px;
  }

  .aww-account-wishlist__title {
    margin-bottom: .25rem;
    padding-bottom: .8rem;
    font-size: 1.3rem;
  }

  .aww-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: .8rem;
    padding: .9rem 2.35rem .9rem 0;
    align-items: start;
  }

  .aww-card__image {
    width: 86px;
    height: 86px;
    border-radius: 8px;
  }

  .aww-card__title {
    margin-bottom: .3rem;
    padding-right: .2rem;
    font-size: .9rem;
    line-height: 1.3;
  }

  .aww-card__price {
    margin-bottom: .2rem;
    font-size: .88rem;
  }

  .aww-card__stock {
    font-size: .75rem;
  }

  .aww-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-top: .05rem;
  }

  .aww-card__cart.button {
    width: 100%;
    min-height: 40px;
    padding: .7rem .75rem !important;
    font-size: .75rem;
    white-space: normal;
  }

  .aww-remove {
    top: .72rem;
    right: -.25rem;
    width: 34px;
    height: 34px;
    transform: none;
  }

  .aww-empty {
    min-height: 235px;
    margin-top: .75rem;
    padding: 2rem 1rem;
  }

  .aww-empty__icon {
    width: 56px;
    height: 56px;
  }

  .aww-toast {
    right: .65rem;
    bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
    left: .65rem;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    padding: .75rem .85rem;
    font-size: .8rem;
  }
}

@media (max-width: 359px) {
  .aww-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: .65rem;
    padding-right: 2.1rem;
  }

  .aww-card__image {
    width: 74px;
    height: 74px;
  }

  .aww-card__title {
    font-size: .84rem;
  }
}

/* v1.4.1: keep loop hearts attached to the actual Flatsome product image. */
.products .product .box-image.aww-image-host,
.product-small .box-image.aww-image-host,
li.product .box-image.aww-image-host {
  position: relative !important;
  isolation: isolate;
}

.aww-image-host > .aww-button--loop,
.aww-button--loop.is-mounted {
  top: .5rem !important;
  right: .5rem !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 60 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.aww-image-host > .aww-button--loop::before,
.aww-button--loop.is-mounted::before {
  inset: 4px !important;
  border-color: rgba(0, 0, 0, .09) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .10) !important;
}

.aww-image-host > .aww-button--loop .aww-button__label,
.aww-button--loop.is-mounted .aww-button__label {
  display: none !important;
}

.aww-image-host > .aww-button--loop .aww-button__icon,
.aww-button--loop.is-mounted .aww-button__icon {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.aww-image-host > .aww-button--loop .aww-button__icon svg,
.aww-button--loop.is-mounted .aww-button__icon svg {
  width: var(--aww-icon-size, 18px) !important;
  height: var(--aww-icon-size, 18px) !important;
}

.aww-button--loop.is-pending {
  opacity: .78;
}

.aww-toast {
  transition-duration: .12s;
}

@media (max-width: 549px) {
  .aww-image-host > .aww-button--loop,
  .aww-button--loop.is-mounted {
    top: .38rem !important;
    right: .38rem !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .aww-image-host > .aww-button--loop::before,
  .aww-button--loop.is-mounted::before {
    inset: 3px !important;
    border-color: rgba(0, 0, 0, .08) !important;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .09) !important;
  }

  .aww-image-host > .aww-button--loop .aww-button__icon svg,
  .aww-button--loop.is-mounted .aww-button__icon svg {
    width: var(--aww-icon-size, 17px) !important;
    height: var(--aww-icon-size, 17px) !important;
  }
}

/* v1.5.1: guests use the real My Account endpoint and the same native account shell. */
.aww-guest-account-user .user-id {
  display: block;
  font-style: normal;
}


/* v1.5.2: identical product controls for cached guests and logged-in customers. */
.products li.product,
.products .product,
.product-small,
.ux-products-list .product {
  position: relative !important;
}

.products li.product > .aww-button--loop,
.products .product > .aww-button--loop,
.product-small > .aww-button--loop,
.aww-button--loop,
.aww-button--loop.is-mounted {
  position: absolute !important;
  top: .5rem !important;
  right: .5rem !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 70 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}

.aww-button--loop .aww-button__icon {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.aww-button--loop .aww-button__label {
  display: none !important;
}

.aww-single-actions,
body.logged-in .aww-single-actions,
body:not(.logged-in) .aww-single-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: .8rem 0 1.25rem !important;
  text-align: left !important;
}

body.logged-in .aww-button--single,
body:not(.logged-in) .aww-button--single {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: .5rem .95rem !important;
}

@media (max-width: 549px) {
  .products li.product > .aww-button--loop,
  .products .product > .aww-button--loop,
  .product-small > .aww-button--loop,
  .aww-button--loop,
  .aww-button--loop.is-mounted {
    top: .38rem !important;
    right: .38rem !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  body.logged-in .aww-button--single,
  body:not(.logged-in) .aww-button--single {
    min-height: 42px !important;
    padding: .55rem 1rem !important;
    font-size: .81rem !important;
  }
}


/* Flatsome places this hook inside the image tools layer. Keep it permanently visible. */
.box-image .image-tools:has(.aww-button--loop) {
  top: .5rem !important;
  right: .5rem !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 70 !important;
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transform: none !important;
}

.box-image .image-tools:has(.aww-button--loop) .aww-button--loop {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 42px !important;
  height: 42px !important;
  pointer-events: auto !important;
}

@media (max-width: 549px) {
  .box-image .image-tools:has(.aww-button--loop) {
    top: .38rem !important;
    right: .38rem !important;
    width: 40px !important;
    height: 40px !important;
  }

  .box-image .image-tools:has(.aww-button--loop) .aww-button--loop {
    width: 40px !important;
    height: 40px !important;
  }
}
