#color-changer3 {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer3::-webkit-color-swatch {
  border-radius: 50%;
}

.db-none {
  display: none;
}

#color-changer4 {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer4::-webkit-color-swatch {
  border-radius: 50%;
}



#color-changer {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer::-webkit-color-swatch {
  border-radius: 50%;
}



#color-changer1 {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer1::-webkit-color-swatch {
  border-radius: 50%;
}



/* Here you can change the root styles to suit your own brand */
:root {
  --tooltip-height: 32px;
  --tooltip-color: #000;
  --tooltip-bg-color: #fbfcfe;
  --tooltip-border-color: #e4e6f1;
  --tooltip-corner-radius: 8px;
  --tooltip-box-shadow: 0px 8px 20px rgba(141, 155, 190, 0.16);
  --handle-height: 24px;
  --handle-width: 24px;
  --handle-box-shadow: 0px 8px 20px rgba(141, 155, 190, 0.16);
  --handle-color: #fff;
  --range-bar-height: 18px;
  --range-bar-corner-radius: 20px;
  --range-bar-color: #642eff;
  --range-box-shadow: 0px 8px 20px rgba(141, 155, 190, 0.16);
}

/* -150% will show tool-tips at the bottom, you can swap these to top via the % amount. */
.noUi-tooltip.bottom {
  bottom: -150%;
}

/* These are some styles for the range bar, for example the 2px inner-shadow. Or the corner ends */
.noUi-target {
  background: #e4e6f1;
  border-radius: 32px;
  border: 0;
  box-shadow: 0px 3px 2px -2px #1b114a14 inset;
}

.noUi-connects {
  overflow: initial;
}

.noUi-connect {
  background: var(--range-bar-color);
  box-shadow: var(--range-box-shadow);
}

.noUi-handle {
  width: var(--handle-width) !important;
  height: var(--handle-height) !important;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  box-shadow: var(--handle-box-shadow);
  cursor: pointer;
  top: -3px !important;
  background: var(--handle-color);
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-horizontal {
  height: var(--range-bar-height);
}

.noUi-tooltip {
  height: var(--tooltip-height);
  background: var(--tooltip-bg-color);
  border: 1px solid var(--tooltip-border-color);
  box-sizing: border-box;
  box-shadow: var(--tooltip-box-shadow);
  border-radius: var(--tooltip-corner-radius);
}

.canvas.automatic {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0%;
  overflow: hidden;
}

.canvas.portrait {
  aspect-ratio: 9/16;
  width: auto;
  height: 100%;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

/* Chat button */
.chat-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #4d97e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .chat-button {
   display: none;
  }
}

.chat-button:hover {
  transform: scale(1.05);
}

.chat-icon {
  width: 30px;
  height: 30px;
}

.chat-popup {
  position: fixed;
  left: 20px;
  bottom: 90px;
  width: 390px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  padding: 15px;
  background: #4d97e7;
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-weight: 600;
  font-size: 16px;
}

.close-chat {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}

.send-button {
  padding: 10px 20px;
  background: #4d97e7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.send-button:hover {
  background: #3d7bc8;
}

.upload-image-button {
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4d97e7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-image-button:hover {
  color: #3d7bc8;
}

.upload-image-button img {
  width: 24px;
  height: 24px;
}

.message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  max-width: 80%;
}

.message.received {
  background: #f0f0f0;
  margin-right: auto;
}

.message.sent {
  background: #4d97e7;
  color: white;
  margin-left: auto;
}

.message img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 5px;
}

.message.sent img {
  border: 2px solid white;
}

.message.received img {
  border: 2px solid #e0e0e0;
}

/* Typing animation styles */
.typing-indicator {
  display: inline-block;
}

.typing-indicator span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #666;
  border-radius: 50%;
  margin: 0 1px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-4px);
  }
}

#image-upload {
  display: none;
}

.image-preview {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.image-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #eee;
  display: none;
}

/* Color warning popup styles */
.color-warning-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  max-width: 300px;
  text-align: center;
}

.color-warning-popup.active {
  display: block;
}

.color-warning-popup .warning-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.color-warning-popup .warning-text {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.4;
}

.color-warning-popup .warning-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.color-warning-popup button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.color-warning-popup .confirm-btn {
  background: #4D97E7;
  color: white;
}

.color-warning-popup .cancel-btn {
  background: #f0f0f0;
  color: #333;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.popup-overlay.active {
  display: block;
}

/* Cart button styles */
.cart-button {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cart-button:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.cart-button:active {
  transform: translateY(0);
}

.cart-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}



.ms-toggle-checkbox:checked~.ms-toggle-bg {
  background-color: #4e4ebd;
}

.ms-toggle-checkbox:checked~.ms-toggle-dot {
  left: 19px;
}



#color-changer6 {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer6::-webkit-color-swatch {
  border-radius: 50%;
}


#color-changer5 {
  -webkit-appearance: square-button;
  padding: 0 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  margin-left: 0px;
  margin-top: 0px;
}

#color-changer5::-webkit-color-swatch {
  border-radius: 50%;
}

#exportvideo,
#exportmodel {
  opacity: 0.5;
  pointer-events: none;
}