.bitbybit-product {
    display: flex;
}

.bitbybit-canvas {
    flex: 0.8;
}

.bitbybit-canvas-listen {
    height: 80%;
}

.bitbybit-canvas-base-listen {
    position: relative;
}

.bitbybit-debug-window {
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 10px;
}

.bitbybit-app-zone {
    width: 100%;
    min-height: 600px;
    position: relative;
}
.bitbybit-app-zone button {
    z-index: 1;
}
.bitbybit-app-zone iframe {
    position: absolute;
    width: 100%;
    min-height: 600px;
    height: 100%;
    border: none;
    outline: none;
    overflow: hidden;
}

.bitbybit-app-zone #root-3d-bits {
    position: absolute;
    width: 100%;
    min-height: 600px;
    height: 100%;
    border: none;
    outline: none;
    overflow: hidden;
}

canvas::selection {
    background-color: none;
}

canvas {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    min-height: 60vh;
    outline: none !important;
}

canvas:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.preview-iframe::selection {
    background-color: none;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    min-height: 60vh;
    border: none;
    outline: none !important;
}

.preview-iframe:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.bitbybit-config {
    padding: 30px;
    flex: 0.2;
    backdrop-filter: blur(3px);
}

@media(max-width:1400px) {
    .bitbybit-canvas {
        flex: 0.7;
    }

    .bitbybit-config {
        padding-left: 20px;
        padding-right: 20px;
        flex: 0.3;
    }
}

@media(max-width:769px) {
    .bitbybit-product {
        display: block;
    }

    .bitbybit-canvas {
        position: inherit;
        height: 600px;
    }

    .bitbybit-config {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .bitbybit-canvas-full-screen {
        display: none;
    }
}

.bitbybit-product-images img {
    width: 100%;
}

.bitbybit-product select {
    width: 100%;
    height: 35px;
    font-size: 18px;
    border-radius: 5px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    color: black;
    outline: none;
}

.bitbybit-options {
    margin-top: 10px;
}

.bitbybit-options label {
    font-size: 20px;
}

.hidden-variant {
    display: none;
}

.bitbybit-canvas-full-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    outline: none;
    color: white;
    border: none;
    width: 30px;
    height: 28px;
}

.bitbybit-canvas-full-screen svg {
    margin-top: 2px;
}

.loader {
    z-index: 1;
    position: absolute;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
    width: 100px;
    height: 100px;
    display: inline-block;
  }
  .loader::after,
  .loader::before {
    content: '';  
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid #FFF;
    position: absolute;
    opacity: 0;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
  }
  .loader::after {
    animation-delay: 1s;
  }
  
  @keyframes animloader {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0;
    }
  }

  div.bitbybit-hidden {
    display: none !important;
  }