/* The Modal (background) */
.ar-model-viewer-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.ar-model-viewer-modal .modal-pop-up {
  background-color: #fefefe;
  padding: 24px;
  min-width: 400px; 
  width: 75%;
  height: 75%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.34) 0px 3px 8px;
}

/* The Close Button */
 .ar-model-viewer-modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  position: absolute;
  right: 12px;
  top: 8px;
}

.ar-model-viewer-modal .ar-modal-content{
    min-height: 200px;
    padding: 8px 0px;
    font-size: 16px;
    color: #000;
    width: 100%;
    flex-grow: 1;
}

 .ar-model-viewer-modal .close:hover,
 .ar-model-viewer-modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.ar-model-viewer-modal .modal-body{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-viewer{
  width: 100%;
  height: 100%;
}
.ar-model-contents{
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%; 
  height: 100%;
}
.ar-model-contents model-viewer-preview{
  flex-grow: 1;
}

.product-three-model-button {
  display: none;
}

.ar-widget-description{
  font-size: 11px;
  color:#646970;
}


@media screen and (max-width: 768px) {
  #ar-product-modal .modal-pop-up{
    width: 95%;
    min-width: auto;
  }
  #ar-product-modal .model-viewer{
    min-width: auto !important;
    min-height: auto !important;
  }
}

.view-in-ar-desktop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 15%);
  border-radius: 100px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  transform: scale(var(--ar-button-scale, 1));
  transform-origin: bottom right;
}

.ar-modal-separator{
  background-color: #ccc !important;
  margin-bottom: 8px !important;
  margin-top: 0px !important;
}

.attachment-input{
  width: 100%;
  max-width: 500px;
}

.preview-container button.select-button{
  margin-bottom: 10px !important;
}

#ar-product-3d-model-button{
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 6px;
}