#product-quickview-modal {
  display: none;
}

#product-quickview-modal[open] {
  --color-foreground: 0,0,0;
  --color-background: 255,255,255;
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  width: calc(100% - 48px);
  max-width: 900px;
  min-height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  color: #000;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.75);
  animation: quickviewInDesktop .24s cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform, opacity;
}

#product-quickview-modal.is-closing {
  animation: quickviewOutDesktop .18s ease-in both;
}

#product-quickview-modal.is-loading {
  width: min(420px, calc(100% - 48px));
  max-width: 420px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-quickview-modal.is-loading .product-quickview-modal__body {
  display: none !important;
}

#product-quickview-modal.is-loading .loading-overlay {
  position: static;
  transform: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#product-quickview-modal[open] + .product-quickview-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 30, 0.52);
  z-index: 2001;
  display: block;
  opacity: 1;
  animation: quickviewBackdropIn .2s ease-out both;
}

#product-quickview-modal.is-closing + .product-quickview-modal-backdrop {
  animation: quickviewBackdropOut .18s ease-in both;
}

#product-quickview-modal[open] + .product-quickview-modal-backdrop::after {
  content: ' ';
  display: block;
}

.product-quickview {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: transparent;
  overflow: visible;
}

.product-quickview .product-quickview__img-wrapper {
  width: 100%;
  max-width: 460px;
  min-height: 460px;
  padding: 18px;
  background: linear-gradient(135deg, #e8fbff 0%, #f7efff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
  flex: 0 0 460px;
}

.product-quickview .product-quickview__img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 424px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #fff;
}

.product-quickview .product-quickview__content-wrapper {
  flex: 1 1 auto;
  max-width: 440px;
  max-height: none;
  padding: 42px 64px 36px 40px;
  overflow: visible;
  background: rgba(255,255,255,.72);
  border-radius: 0 28px 28px 0;
}

.product-quickview-modal-wrapper .product-quickview-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10020;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.product-quickview-modal-wrapper .product-quickview-modal__close svg {
  pointer-events: none;
}

.quickview-sticky-actions {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: 10;
}

.quickview-sticky-actions .button {
  position: relative;
  width: 100%;
  height: 54px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a1a, #ff4f7b) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 10px 25px rgba(255, 79, 123, .28);
}

.product-quickview h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .02em;
}

.product-quickview .quickview-title:not(:hover) {
  text-decoration: none;
}

.product-quickview #price {
  margin-bottom: 22px;
  font-size: 23px;
  font-weight: 800;
}

.product-quickview .product-form {
  margin-top: 18px;
  overflow: visible;
}

.product-quickview .button,
.product-quickview button {
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-quickview .quantity {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.product-quickview fieldset input[type="radio"],
.product-quickview fieldset input[type="radio"] + label {
  display: none !important;
}

.product-quickview .quickview-option-fieldset-converted {
  position: relative;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  overflow: visible;
  z-index: 30;
}

.product-quickview .quickview-custom-select {
  position: relative;
  width: 100%;
  margin-top: 8px;
  z-index: 50;
}

.product-quickview .quickview-custom-select__button {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 16px rgba(0,0,0,.06);
}

.product-quickview .quickview-custom-select__button::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.product-quickview .quickview-custom-select__list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10050;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.product-quickview .quickview-custom-select.is-open .quickview-custom-select__list {
  display: block;
}

.product-quickview .quickview-custom-select__item {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.product-quickview .quickview-custom-select__item:hover {
  background: #f2f2f2;
  color: #111;
}

.product-quickview .quickview-custom-select__item.is-active {
  background: #111;
  color: #fff;
}

.product-quickview-modal-wrapper .loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10030;
  transform: translate(-50%, -50%);
}

.product-quickview-modal-wrapper .loading-overlay__spinner {
  width: 4rem;
}

.quickview_promo-tag-wrapper,
#quickview_promo-tag-label,
.quickview_promo-tag-container,
.quickview_promo-promo-label,
.product-quickview .product-form__promo {
  display: none !important;
}

@keyframes quickviewInDesktop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes quickviewOutDesktop {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -46%) scale(.96);
  }
}

@keyframes quickviewBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes quickviewBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media screen and (max-width: 998px) {
  #product-quickview-modal[open] {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    max-height: 88dvh;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
    animation: quickviewInMobile .26s cubic-bezier(.22, 1, .36, 1) both;
  }

  #product-quickview-modal.is-closing {
    animation: quickviewOutMobile .18s ease-in both;
  }

  #product-quickview-modal.is-loading {
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    max-height: 220px;
    height: 220px;
    border-radius: 26px 26px 0 0;
  }

  .product-quickview {
    height: 88dvh;
    max-width: 100%;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .product-quickview .product-quickview__img-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    height: auto;
    padding: 14px;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
  }

  .product-quickview .product-quickview__img-wrapper img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 320px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .product-quickview .product-quickview__content-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: none;
    padding: 26px 22px 24px;
    overflow: visible;
    border-radius: 0;
  }

  .product-quickview h2 {
    font-size: 20px;
  }

  .product-quickview .quickview-custom-select__button {
    height: 48px;
    font-size: 15px;
  }

  .product-quickview .quickview-custom-select__list {
    max-height: 220px;
  }

  .product-quickview-modal-wrapper .product-quickview-modal__close {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 14px;
    z-index: 2002;
    width: 44px;
    height: 44px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .product-quickview-modal-wrapper .product-quickview-modal__close svg {
    pointer-events: none;
  }

  @keyframes quickviewInMobile {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes quickviewOutMobile {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(32px);
    }
  }
}