.overlay-container {
    background-color: #fcf9ee;
    border: 1px solid #cccccc;
    overflow-y: auto;
    overflow-x: auto;
    position: absolute;
    z-index: 2001;
    min-height: 207px;
  }
  .overlay-background {
    background-color: black;
    filter: alpha(opacity=50);
    left: 0;
    opacity: 0.5;
    position: absolute;
    top: 0;
    z-index: 2000;
  }
  .overlay-container .close-container {
    margin: 5px 0;
    float: right;
    position: absolute;
    top: 0;
    right: 0;
    height: 11px;
    width: 11px;
  }
  .overlay-container a.close-link {
    background: none;
    color: #000000;
    display: block;
    overflow: hidden;
    position: absolute;
    text-indent: -9999px;
    margin: 20px;
    right: 0;
    top: 0;
    z-index: 1000;
  }
  .overlay-container a.close-link .icon {
    height: 32px;
    width: 32px;
  }
  .overlay-container section.panel {
   border:none;
  }
  select.overlay-hidden {
    display: none;
  }

@media only screen and (max-width: 768px) {
  #shipping .overlay-container { 
    max-height: 356px !important;
    position: fixed !important;
    top: 24% !important;
    left: 3% !important;
    width: 94% !important;
  }
   div.cboxIframe {
    height: 450px !important;
    max-height: 450px !important;
    position: fixed !important;
    top: 20% !important;
    left: 3% !important;
    width: 94% !important;
  }
  #review  div.cboxIframe {
     height: 450px !important;
  }
.engraving-container h2:first-child
{
  font-weight: 700;
  margin-bottom: 10px;
}
.overlay-container .loyalty_terms_conditions_container h2 {
  font-weight: normal;
}
}
@media (min-width: 375px) and (max-width: 667px) {
  div.cboxIframe  iframe{
    min-width: 93%;
    width: 100% !important;
  }
  div.cboxIframe {
    overflow: auto;
    -webkit-overflow-scrolling:touch; 
    min-width: 94%;
    min-height: 400px;
  }
}

#foreground-node {
  max-height: 100%;
  max-width: 100%;
  padding: 40px;
  position: fixed;
}

#foreground-node.overlay-absolute-center {
  top: 50%;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

#foreground-node.loading {
  height: unset;
  opacity: 1;
}

#new-canvas {
  top: 146px;
}

#overlay-background {
  background-color: #00000080;
  display: block;
  height: 100vh;
  opacity: 1;
  position: fixed;
  width: 100vw;
}

@media screen and (min-width: 768px) {
  #foreground-node {
    min-height: 450px;
    width: 90%;
    max-width: 1000px;
  }
  #new-canvas {
    width: 460px;
    height: 166px;
    top: 214px;
  }
  #new-canvas.bottle-modification .engrave-placement-target {
    margin-top: unset;
  }
}
