body {
  padding: 0;
  margin: 0;
}
#unity-canvas {
  width: 100%;
  max-height: 100%;
  background: #ffffff;
  cursor: pointer !important;
}
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
#unity-logo {
  width: 152px;
  height: 152px;
  background: url("metzler-pwa-192.png") no-repeat center;
  background-size: 7rem;
}
#unity-progress-bar-empty {
  margin-left: auto;
  margin-right: auto;
  width: 141px;
  height: 18px;
  margin-top: -15px;
  background: url("progress-bar-empty-light.png") no-repeat center;
}
#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url("progress-bar-full-light.png") no-repeat center;
}
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}
#unity-container {
  display: none;
  width: 100%;
  background-color: white;
}

#mpc3d-tab-row {
  margin: 10px 0 15px -15px;
}

.mpc3d-tab > a:not(.active) {
  color: #004142;
}
#x-plugin-wrapper-close-modal{
  display: none;
}
@media screen and (max-width: 767px) {
  #unity-container {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    top:0;
  }
  .configurator-3d-open .info-essential,
  .configurator-3d-open .sale-wp,
  .configurator-3d-open .parent-product-variation,
  .configurator-3d-open .no-lightbox,
  .configurator-3d-open #mpc3d-tab-row,
  .configurator-3d-open .product-headline,
  .configurator-3d-open header,
  .configurator-3d-open #bc-w,
  body.configurator-3d-open #top-bar-wrapper,
  body.configurator-3d-open #maintenance-mode,
  body.configurator-3d-open div.x-plugin-target-3d-animation,
  body.configurator-3d-open #top-bar-wrapper-2,
  body.configurator-3d-open .special-offer-ticket,
  body.configurator-3d-open .xplugin-target-3d-animation{
    display: none !important;
  }

  .configurator-3d-open .group.panel-body.collapse.show#cfg-grp-cllps-all {
    margin-top: 14rem;
  }
  div#x-plugin-mb-close-config {
    padding: 1rem 0;
    font-weight: 600;
  }
  #mpc3d-tab-row {
    display: none;
    visibility: hidden;
  }
  #unity-container.modal-active,
  #unity-container.modal-mode {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: white;
  }
  #unity-container.modal-active #x-plugin-mb-close-config {
    display: none;
  }
  #unity-container.modal-active #x-plugin-wrapper-close-modal {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    position: absolute;
    top: auto;
    width: 100%;
    left: 0;
    right: 0;
    background: #fff;
    top:0;
  }
  #unity-container.modal-active #x-plugin-wrapper-close-modal .close-btn{
    padding:1.5rem 1rem;
    width: 3rem;
    min-width: 3rem;
    background: #fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNjEuMiA1MC41bDMyLjEgMzIuMWMzIDMgMyA3LjcgMCAxMC43LTMgMy03LjcgMy0xMC43IDBMNTAuNSA2MS4yIDE4LjQgOTMuM2MtMyAzLTcuNyAzLTEwLjcgMC0zLTMtMy03LjcgMC0xMC43bDMyLjEtMzIuMUw3LjcgMTguNGMtMy0zLTMtNy43IDAtMTAuN3M3LjctMyAxMC43IDBsMzIuMSAzMi4xTDgyLjYgNy43YzMtMyA3LjctMyAxMC43IDAgMyAzIDMgNy43IDAgMTAuN0w2MS4yIDUwLjV6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==) no-repeat center center / 34%;
  }
  #unity-canvas {
    aspect-ratio: 1 / 1;
    height: 10rem;
   
  }
   #unity-container.modal-active #unity-canvas{
    height: 33rem;
    transform: translate(0px, 22%);

  } 
  #unity-container.external-3d-open #unity-canvas{
    height: 28rem;
    transform: translate(0px, 22%);
  }
  #unity-container.modal-active,#unity-container.external-3d-open {
    height:100%;
    padding: 0 0.5rem;
  }

  #x-plugin-modal-edit-sizes {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    pointer-events: all;
    padding: 0 0.5rem;
    display: flex;
    gap: 0.5em;
    align-items: center;
    float: inline-end;
    background:rgba(1, 82, 83, 0.8);
    border-radius: 2px !important;
  }
  #x-plugin-modal-edit-sizes:focus {
  background:rgba(1, 82, 83, 1);
  }

  .external-3d-header {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    height: 4.5rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:1.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-bottom:1px solid #ddd;
    z-index: 9999999;
    top:0;
  }
  .external-3d-header .close-btn{
    width: 3rem;
    min-width: 3rem;
    padding: 1.5rem 1rem;
    top:auto;
    background: #fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNjEuMiA1MC41bDMyLjEgMzIuMWMzIDMgMyA3LjcgMCAxMC43LTMgMy03LjcgMy0xMC43IDBMNTAuNSA2MS4yIDE4LjQgOTMuM2MtMyAzLTcuNyAzLTEwLjcgMC0zLTMtMy03LjcgMC0xMC43bDMyLjEtMzIuMUw3LjcgMTguNGMtMy0zLTMtNy43IDAtMTAuN3M3LjctMyAxMC43IDBsMzIuMSAzMi4xTDgyLjYgNy43YzMtMyA3LjctMyAxMC43IDAgMyAzIDMgNy43IDAgMTAuN0w2MS4yIDUwLjV6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==) no-repeat center center / 34%;
  }

  #unity-container.external-3d-open #x-plugin-modal-edit-sizes,
  #unity-container.external-3d-open #x-plugin-mb-close-config {
    display: none;
  }
  #unity-container.external-3d-open {
    top: auto;
    bottom: 0;
  }
  body.no-scroll {
    overflow: hidden;
  }
  #x-plugin-overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100vw; */
    right:0;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  #x-plugin-mb-close-config .ar {
    border-color: #005253 !important;
  }
  .icon-3d{
    fill: #005253 !important;
  }
  #mpc3d-app-row li#x-plugin-overlay-bg{
    display: block;
  }
 
}
#mpc3d-app-row li#x-plugin-overlay-bg{
  display: none;
}

@media screen and (min-width: 1024px) and (max-width: 1370px) {
  #unity-canvas {
    height: 25rem;
  }
}

#unity-canvas-click-layer {
  position: fixed;
  top: 3rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: transparent;
  height: 11rem;
}
 .modal-active #unity-canvas-click-layer,.external-3d-open #unity-canvas-click-layer{
  display: none;
 }
 #x-plugin-modal-edit-sizes span.img-ct.icon.ic-md{
  width: 2.5rem;
 }
a#tab-link-configurator,a#tab-link-gallery{
  display: flex !important;
  align-items: center;
  gap:0.5rem
}