:root {
    --modal-content-height: 600px;
    --modal-content-padding: 20px;
}

.zg-quick-look-modal,
zg-quick-look-modal[data-theme-modal] > details[open]::before  {
    z-index: 10000;
}
.zg-quick-look-modal__content {
    width: 860px;
    height: 586px;
    overflow-y: hidden;
    box-sizing: border-box;
    padding: 20px;
}

.zg-quick-look-modal__content.error {
    height: 300px;
}

.zg-quick-look-modal__content .zg-quick-look-modal__popup-content {
    display: block;
}
.zg-quick-look-modal__content.error .zg-quick-look-modal__popup-content,
.zg-quick-look-modal__content.loading .zg-quick-look-modal__popup-content {
    display: none;
}

.zg-quick-look-modal__loading {
    display: none;
}
.zg-quick-look-modal__error {
    display: none;
}
.zg-quick-look-modal__content.error .zg-quick-look-modal__error {
    display: flex;
}

.zg-quick-look-modal__content.loading .zg-quick-look-modal__loading {
    display: flex;
}
.zg-quick-look-modal__error button[name="close"] {
    height: 40px;
    background: #000;
    color: #fff;
    line-height: 40px;
    width: 100px;
}

.zg-quick-look-modal__content.error .zg-quick-look-modal__close {
    display: none;
}

.zg-quick-look-modal__loading {
    width: 100%;
    min-height: var(--modal-content-height);
    justify-content: center;
    align-items: center;
}
.zg-quick-look-modal .icon-loading {
    height: fit-content;
    width: fit-content;
    flex: none;
    animation: animation-circling linear 1.5s infinite;
    width: 40px;
    height: 40px;
    color: #999;
}
.zg-quick-look-modal .loading--rotator {
    display: block;
}

.zg-quick-look-modal__close.modal__close-control svg{
    width: 15px;
    height: 15px;
    color: #999;
}

.zg-quick-look__submit-button {
    border-radius: 0;
    font-weight: 500;
    background: #000;
    color: #fff;
    width: 165px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 6px auto;
}

@media (max-width: 959px) {
  .zg-quick-look-modal__content {
    width: 100%;
    height: 90vh;
    overflow-y: scroll;
  }

  .zg-quick-look-detail .product-detail__media-gallery .media-gallery__arrows {
    display: none!important;
  }
  .zg-quick-look-detail .product-detail__media-gallery .media-gallery__thumbnails {
    display: block!important;
  }
}
