@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.custom-variant-picker--modal {
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  transform: translate(-10px, -10px);
  background: rgba(255,255,255,0.5);
  pointer-events: auto;
}
.custom-variant-picker--modal-loading {
  backdrop-filter: blur(5px);
  transform: translate(-10px, -10px);
  background: rgba(255, 255, 255, 0.5);
  pointer-events: auto;
}

.custom-variant-picker--modal-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top: 2px solid #777;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 800ms linear infinite;
}

.custom-variant-picker--modal-error {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  color: red;
  text-align: center;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: 5px;
  white-space: pre-line;
  box-shadow: 
    rgba(0, 0, 0, 0.25) 0px 54px 55px, 
    rgba(0, 0, 0, 0.12) 0px -12px 30px, 
    rgba(0, 0, 0, 0.12) 0px 4px 6px, 
    rgba(0, 0, 0, 0.17) 0px 12px 13px, 
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.custom-variant-picker--modal-close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
  border: 0;
  color: #000;
  background: transparent;
  font-family: Verdana;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}