/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;

  /* Show focus ring on the label when a checkbox or radio is visually hidden */
  &[type="checkbox"]:focus-visible + label,
  &[type="radio"]:focus-visible + label {
    outline: 2px solid Highlight;
    outline: 2px solid -webkit-focus-ring-color;
  }
}

#ooo-wl-content *[hidden] {
  display: none !important;
}

/* Utilities */
.ooo-wl-text-start {
  text-align: start;
}

.ooo-wl-text-center {
  text-align: center;
}

.ooo-wl-text-end {
  text-align: end;
}

.ooo-wl-object-fit-cover {
  object-fit: cover;
}

.ooo-wl-object-fit-contains {
  object-fit: contain;
}

.ooo-wl-aspect-short {
  aspect-ratio: 4 / 3;
}

.ooo-wl-aspect-tall {
  aspect-ratio: 2 / 3;
}

.ooo-wl-aspect-square {
  aspect-ratio: 1 / 1;
}

.ooo-wl-w-full {
  width: 100%;
}

.ooo-wl-bold {
  font-weight: bold;
}

.ooo-wl-justify-start {
  justify-content: flex-start;
}

.ooo-wl-justify-center {
  justify-content: center;
}

.ooo-wl-justify-end {
  justify-content: flex-end;
}

.ooo-wl-justify-items-start {
  justify-items: flex-start;
}

.ooo-wl-justify-items-center {
  justify-items: center;
}

.ooo-wl-justify-items-end {
  justify-items: flex-end;
}

.ooo-wl-flex-row {
  flex-direction: row;
}

.ooo-wl-v-stack {
  display: grid;
}

.ooo-wl-line-through {
  text-decoration: line-through;
}

.ooo-wl-h-stack {
  display: flex;
}

.ooo-wl-align-baseline {
  align-items: baseline;
}

.ooo-wl-gap-1 {
  gap: 4px;
}

.ooo-wl-gap-2 {
  gap: 8px;
}

.ooo-wl-gap-3 {
  gap: 12px;
}

.ooo-wl-gap-4 {
  gap: 16px;
}

.ooo-wl-gap-6 {
  gap: 24px;
}

.ooo-wl-gap-12 {
  gap: 48px;
}

@media screen and (min-width: 1000px) {
  .md\:ooo-wl-gap-16 {
    gap: 64px;
  }
}

.ooo-wl-link {
  text-decoration: none;
  color: currentColor;
  background: linear-gradient(to right, currentColor, currentColor) left min(100%, 100%) / 100% 1px no-repeat;
  transition: background-size 0.3s ease-in-out;
}

.ooo-wl-link:hover {
  background-size: 0 1px;
}

/* Wishlist Content section */

.ooo-wl-content {
  display: grid;
  gap: var(--product-grid-gap);
  grid: auto / repeat(var(--item-per-row), minmax(0, 1fr));
  margin-block-start: var(--ooo-wl-content-margin-block);
}

.ooo-wl-content__wrapper p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.ooo-wl-content.ooo-wl-content--empty {
  grid: auto / auto;
}

.ooo-wl-content--bordered:not(.ooo-wl-content--empty) {
  border: 1px solid var(--product-grid-separation-color);
}

.ooo-wl-content--bordered .ooo-wl-product-card {
  position: relative;
}

.ooo-wl-content--bordered .ooo-wl-product-card__info {
  --product-card-info-padding: 16px;

  padding-inline-start: var(--product-card-info-padding);
  padding-inline-end: var(--product-card-info-padding);
  padding-block-end: var(--product-card-info-padding);
}

.ooo-wl-content--bordered .ooo-wl-product-card:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  box-shadow: /* Bottom */ 0 1px 0 0 var(--product-grid-separation-color), /* Top  0 -1px 0 0 var(--product-grid-separation-color), */ /* Left  -1px 0 0 0 var(--product-grid-separation-color) ,*/ /* Right */ 1px 0 0 0 var(--product-grid-separation-color);
  z-index: 2;
  pointer-events: none;
}

.ooo-wl-content__wrapper {
  display: grid;
  gap: 32px;
}

.ooo-wl-product-card {
  display: grid;
  align-content: start;
  gap: 16px;
  background-color: var(--product-card-background-color, transparent);
  border-radius: var(--product-card-border-radius);
}

.ooo-wl-product-card:hover .ooo-wl-product-card__image--hover {
  opacity: 1;
  visibility: visible;
}

.ooo-wl-product-card:hover .ooo-wl-product-card__image-has-hover {
  opacity: 0;
  visibility: hidden;
}

.ooo-wl-product-card--background .ooo-wl-product-card__info {
  --product-card-info-padding: 16px;

  padding-inline-start: var(--product-card-info-padding);
  padding-inline-end: var(--product-card-info-padding);
  padding-block-end: var(--product-card-info-padding);
}

.ooo-wl-product-card__image-container {
  position: relative;
}

.ooo-wl-product-card__image {
  height: auto;
  width: 100%;
  border-top-left-radius: var(--product-card-border-radius);
  border-top-right-radius: var(--product-card-border-radius);
}

.ooo-wl-product-card__image--hover {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  border-top-left-radius: var(--product-card-border-radius);
  border-top-right-radius: var(--product-card-border-radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/*.ooo-wl-product-card__image--hover[hidden] {
  display: none;
}*/

.ooo-wl-product-card .placeholder {
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: lightgray;
  border-top-left-radius: var(--product-card-border-radius);
  border-top-right-radius: var(--product-card-border-radius);
}

.ooo-wl-product-card__button-remove button {
  --button-size: 32px;
  --button-position: 8px;

  display: grid;
  position: absolute;
  /*
  inset-block-start: var(--button-position);
  inset-inline-end: var(--button-position);
  */
  align-items: center;
  justify-content: center;
  width: var(--button-size);
  height: var(--button-size);
  background-color: var(--product-card-delete-button-background);
  color: var(--ooo-wl-close-button-color, #000000);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}

.ooo-wl-product-card__info {
  display: grid;
  gap: 2px;
  align-items: start;
}

.ooo-wl-product-card__title {
  font-size: 13px;
  text-decoration: none;
}

.ooo-wl-product-card__vendor {
  font-size: 10px;
  color: rgb(var(--product-vendor-color));
}

.ooo-wl-product-card__price-container {
  display: flex;
  align-items: baseline;
  color: rgb(var(--product-price-color));
  font-size: 15px;
}

.ooo-wl-product-card__compare-at-price {
  margin-inline-start: 8px;
  opacity: 0.7;
  text-decoration: line-through;
  font-size: 12px;
}

.ooo-wl-product-card__quick-buy-button {
  margin-top: 10px;
}

.ooo-wl-button-container[available-for-sale]:not([add-by-quantity-increment]) .ooo-wl-button__label--add-to-cart {
  display: inline-block;
  cursor: pointer;
}

.ooo-wl-button-container[available-for-sale][add-by-quantity-increment] .ooo-wl-button__label--add-to-cart-with-increment {
  display: inline-block;
  cursor: pointer;
}

.ooo-wl-button-container[out-of-stock] .ooo-wl-button__label--out-of-stock {
  display: inline-block;
  cursor: default;
}

.ooo-wl-button-container[unavailable] .ooo-wl-button__label--unavailable {
  display: inline-block;
  cursor: default;
}

.ooo-wl-pagination:not([hidden]) {
  display: grid;
  grid: auto / auto-flow max-content;
  justify-content: center;
  align-items: center;
  gap: 19px;
  font-size: 16px;
}

.ooo-wl-select-container {
  display: none;
  gap: 4px;
}

.ooo-wl-select-container:has(option) {
  display: grid;
  width: 100%;
}

/* Wishlist product card selector custom */
.ooo-wl-select-container__select {
  position: relative;
  display: grid;
  align-items: center;
  border: 1px solid rgba(37, 38, 39, 0.15);
  border-radius: var(--ooo-wl-select-radius);
}

.ooo-wl-select-container__select label {
  position: absolute;
  top: 4px;
  left: 12px;
  max-width: 90%;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ooo-wl-select-container__select select {
  position: relative;
  appearance: none;
  display: block;
  width: 100%;
  padding-block: 22px 7px;
  padding-inline: 12px 32px;
  border: none;
  border-radius: var(--ooo-wl-select-radius);
  margin: 0;
  font-family: inherit;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
}

.ooo-wl-select-container__select svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

@media screen and (min-width: 700px) {
  .ooo-wl-select-container__select label {
    top: 11px;
    left: 20px;
  }

  .ooo-wl-select-container__select select {
    padding-block: 32px 15px;
    padding-inline: 20px;
  }
}

.ooo-wl-pagination__content {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

.ooo-wl-pagination__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.ooo-wl-pagination__button[data-direction="previous"] {
  transform: rotate(180deg);
}

.ooo-wl-pagination__button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media screen and (min-width: 700px) {
  .ooo-wl-product-card {
    gap: 20px;
  }

  .ooo-wl-product-card__button-remove button{
    --button-size: 40px;
    --button-position: 16px;
  }

  .ooo-wl-product-card--background .ooo-wl-product-card__info {
    --product-card-info-padding: 20px;
  }

  .ooo-wl-content__wrapper {
    display: grid;
    gap: 48px;
  }

  .ooo-wl-product-card__title {
    font-size: 14px;
    text-decoration: none;
  }

  .ooo-wl-product-card__vendor {
    font-size: 12px;
    color: rgb(var(--product-vendor-color));
  }
}

/* Wishlist button */
.ooo-wl-button-container {
  position: relative;
  display: block;
  /*overflow: hidden;*/
}

.ooo-wl-button-icon {
  transition: fill 0.3s ease;
}

.ooo-wl-button__loader {
  position: absolute;
  display: flex;
  gap: 6px;
  inset: 0;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.ooo-wl-button__loader > * {
  --span-size: 6px;

  width: var(--span-size);
  height: var(--span-size);
  background: currentColor;
  border-radius: 3px;
}

.ooo-wl-button__loader--product-card {
  gap: 2px;
}

.ooo-wl-button__loader--product-card > * {
  --span-size: 4px;

  background: var(--ooo-wl-button-icon-color);
}

.ooo-wl-card-button[added] .ooo-wl-button-icon,
.ooo-wl-button-container[added] .ooo-wl-button-icon {
  fill: var(--ooo-wl-button-icon-color, currentColor);
}

.ooo-wl-button-container[added] .ooo-wl-button__label--remove {
  display: inline-block;
}

.ooo-wl-button-container:not([added]) .ooo-wl-button__label--add {
  display: inline-block;
}

.ooo-wl-button {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-block-start: var(--ooo-wl-button-margin-block);
  margin-block-end: var(--ooo-wl-button-margin-block);
  color: rgb(var(--ooo-wl-button-text-color));
  border: none;
  background: rgb(var(--ooo-wl-button-background-color));
}

.ooo-wl-button:before,
.ooo-wl-button:after {
  display: none;
}

.ooo-wl-button.link {
  text-decoration: none;
  background: none;
}

.ooo-wl-link--custom .ooo-wl-button__label-container,
.ooo-wl-button.link .ooo-wl-button__label-container {
  background: linear-gradient(to right, currentColor, currentColor) left min(100%, 100%) / 100% 1px no-repeat;
  transition: background-size 0.3s ease-in-out;
}

.ooo-wl-link--custom:hover .ooo-wl-button__label-container,
.ooo-wl-button.link:hover .ooo-wl-button__label-container {
  background-size: 0 1px;
}

.ooo-wl-button--custom {
  padding: 10px 24px;
  border: none;
  min-height: var(--ooo-wl-button-height);
  border-radius: var(--ooo-wl-button-border-radius);
}

.ooo-wl-button--outline {
  background: transparent;
  border: 1px solid rgb(var(--ooo-wl-button-background-color));
}

.ooo-wl-link--custom {
  color: rgb(var(--ooo-wl-button-text-color));
}

.ooo-wl-button__label-container {
  display: grid;
}

.ooo-wl-button__label {
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Wishlist product card button */
.ooo-wl-card-button {
  z-index: var(--ooo-product-card-z-index, auto);
  position: absolute;
  inset-block-start: var(--wl-button-block-start, auto);
  inset-inline-end: var(--wl-button-inline-end, auto);
  inset-block-end: var(--wl-button-block-end, auto);
  inset-inline-start: var(--wl-button-inline-start, auto);
}

.ooo-wl-card-button button {
  display: grid;
  align-items: center;
  justify-content: center;
  padding: var(--ooo-wl-button-card-padding, 0);
  background-color: var(--ooo-wl-button-card-background-color, transparent);
  border: none;
  border-radius: var(--ooo-wl-button-border-radius);
  cursor: pointer;
}

.ooo-wl-empty__title {
  font-size: 22px;
}

@media screen and (min-width: 700px) {
  .ooo-wl-empty__title {
    font-size: 26px;
  }
}

@media screen and (min-width: 1400px) {
  .ooo-wl-empty__title {
    font-size: 32px;
  }
}

/* Wishlist share button */
.ooo-wl-share-button {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 17px 20px;
  border: 1px solid rgba(37, 38, 39, 0.15);
  border-radius: 0;
  background: white;
  color: initial;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.ooo-wl-share-button:disabled {
  color: initial;
}

.ooo-wl-share-button__message {
  z-index: 1;
  position: absolute;
  inset: auto auto 50% 50%;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  background: black;
  color: white;
  transform: translateX(-50%);
}

.ooo-wl-share-button__customer-name {
  margin: 0;
}

@media screen and (min-width: 1000px) {
  .ooo-wl-share-button {
    padding: 12px 20px;
  }
}

/*
  NEW WISHLIST PAGE PLACEHOLDERS
*/
.ooo-wl-page-placeholder__container {
  display: grid;
  grid-template-columns: repeat(var(--ooo-wl-page-item-per-row), minmax(0, 1fr));
  row-gap: var(--ooo-wl-page-product-card-container-row-gap, 12px);
  column-gap: var(--ooo-wl-page-product-card-container-column-gap, 12px);
}
.ooo-wl-page-placeholder__card {
  display: grid;
  grid-auto-flow: row;
  gap: 16px;
}

.ooo-wl-page-placeholder__item {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: rgba(241, 241, 241, 1);
}

.ooo-wl-page-placeholder__image {
  height: 270px;
}

.ooo-wl-page-placeholder__text {
  height: 20px;
}

.ooo-wl-page-placeholder__button {
  height: 45px;
}

/*
  NEW WISHLIST PRODUCT CARD / PRODUCT BUTTON PLACEHOLDER
*/
ooo-wl-product-page-button[loading] {
  display: grid;
  justify-self: var(--ooo-wl-product-page-button-justify-self);
  border: none;
  border-radius: var(--ooo-wl-product-page-button-border-radius, 2px);
  width: var(--ooo-wl-product-page-button-placeholder-width, 100%);
  max-width: var(--ooo-wl-product-page-button-placeholder-max-width);
  height: var(--ooo-wl-product-page-button-placeholder-height);
  background: var(--ooo-wl-product-page-button-placeholder-background-color, #ebebeb);
  cursor: not-allowed;
  animation: loadingPlaceholder 4s ease infinite;
  animation-delay: -.170s;
}

@keyframes loadingPlaceholder {
  50% { opacity: 1 }
  75% { opacity: .5 }
  to { opacity: 1 }
}