canvas {
  border: 1px solid #ccc;
}

.container {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  overflow: hidden;
}
/* #canvas-rendered.loading div.svg-container {
        display: none;
      } */
.vwp-svg-container {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
}
.vwp-svg-container svg {
  display: block;
  left: 0;
  position: absolute;
  top: 0;
}
.vwp-svg-container svg g {
  cursor: pointer;
  pointer-events: all;
}
.vwp-svg-container svg g polygon,
.vwp-svg-container svg g path {
  fill: none;
  opacity: 0;
  /* stroke: transparent; */
  stroke: green;
  stroke-width: 4;
  stroke-dasharray: 4, 5;
  -webkit-transition: opacity 150ms ease-out 0s;
  transition: opacity 150ms ease-out 0s;
  animation: vwp-dash 50s linear;
}
@-webkit-keyframes vwp-dash {
  to {
    stroke-dashoffset: 960;
  }
}
@keyframes vwp-dash {
  to {
    stroke-dashoffset: 960;
  }
}
.vwp-svg-container svg g.hover polygon,
.vwp-svg-container svg g:hover polygon,
.vwp-svg-container svg g.hover path,
.vwp-svg-container svg g:hover path {
  opacity: 0.5;
}

@media only screen and (max-width: 40em) {
  /* max-width 640px, mobile-only styles */
  .vwp-svg-container svg g polygon,
  .vwp-svg-container svg g path {
    stroke: green;
    stroke-width: 10;
    stroke-dasharray: 5, 5;
  }
}
.vwp-canvas-wrapper {
  position: relative;
  width: fit-content;
  line-height: 1;
  margin: 0px;
  padding: 0px;
  font-size: 0px;
}
.vwp-canvas-wrapper .vwp-canvas-renderer {
  display: block;
  margin: 0 auto;
  min-width: 300px;
  -webkit-transition: opacity 0.5s linear;
  transition: opacity 0.5s linear;
  position: relative;
  width: 100%;
}

.vwp-areas-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0px;
}
.vwp-area-item {
  width: 200px;
  height: fit-content;
  background-color: #efefef;
  border-radius: 0px 4px;
  cursor: pointer;
}
.vwp-area-details {
  padding: 5px 7px;
}
.vwp-area-details .vwp-area-name {
  font-weight: bold;
  font-size: 1rem;
  text-align: left;
}
.vwp-area-details .vwp-area-category {
  font-size: 0.8rem;
  text-align: left;
}

.vwp-materials-grid {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 5px;
}

.vwp-materials-grid .vwp-material-item {
  width: fit-content;
  height: fit-content;
  line-height: 1;
  /* background-color: #efefef; */
  border-radius: 50%;
  border: 1px solid rgb(255 255 255);
  padding: 1.5px;
  cursor: pointer;
}
.vwp-materials-grid .vwp-material-item-active {
  border: 1px solid #757070;
}
.vwp-materials-grid .vwp-material-item-title {
  font-size: 0.8rem;
  text-align: center;
  padding-bottom: 5px;
}
#vwp-material-overlay-item-selected {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}

#vwp-material-overlay-item-selected .vwp-mat-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  line-height: 1;
  font-size: 1rem;
  font-weight: 500;
  background-color: #fff;
  padding: 5px;
}
.vwp-area-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* margin: 10px 0px; */
  /* border: 1px solid #e1e1e1; */
  /* background-color: #efefef; */
  /* padding: 5px 10px; */
}
.vwp-area-category-item {
  width: fit-content;
  height: fit-content;
  padding: 5px 10px;
}
.vwp-area-category-item-active {
  background-color: #efefef;
}

#vwp-designer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  background-color: #efefef;
  width: 100%;
}

#vwp-designer-toolbar .vwp-applied-materials-label {
  font-size: 0.8rem;
  color: #888;
}
#vwp-applied-materials {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3px;
  gap: 15px;
}
#vwp-applied-materials .vwp-applied-material {
  height: fit-content;
  width: fit-content;
  line-height: 1;
  font-size: 1px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#vwp-applied-materials .vwp-applied-material-label {
  font-size: 0.9rem;
  color: #000;
  text-align: center;
  width: 100%;
  background-color: transparent;
}

#vwp-designer-download-link {
  border: 1px solid #e1e1e1;
  background-color: orange;
  padding: 2px 5px;
  font-size: 0.8rem;
  text-decoration: none;
  height: fit-content;
  margin-right: 5px;
}

.vwp-area-item-hide {
  display: none;
}

#vwp-materials-overlay-container.vwp-overlay-open {
  -webkit-transform: translateY(0) !important;
  transform: translateY(0) !important;
}

#vwp-materials-overlay-container {
  background: rgb(255, 255, 255);
  height: fit-content;
  right: 40px;
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  bottom: 27px;
  width: 60%;
  -webkit-transition: transform 0.25s ease-out;
  transition: transform 0.25s ease-out;
  min-height: 300px;
  border: 1px solid #c1bebe;
  max-width: 500px;
}

@media only screen and (max-width: 40em) {
  #vwp-materials-overlay-container {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.vwp-materials-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #322f2f;
  padding: 5px;
}
.vwp-materials-overlay-head .vwp-materials-overlay-title {
  flex: 1;
  font-size: 1rem;
  color: #fff;
}
.vwp-materials-overlay-head .vwp-materials-overlay-close {
  cursor: pointer;
  color: #efefef;
  font-size: 1rem;
}

/* Full screen overlay */
.vwp-canvas-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9998;
}

/* Main ripple circle */
.vwp-canvas-loading::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #f1f1f1;
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 9999;

  box-shadow: 0 0 0 0 #0004;
  animation: ripple 1.5s infinite linear;
}

/* Second ripple circle using box-shadow trick */
.vwp-canvas-loading {
  position: relative;
}

/* Extra ripple using box-shadow animation via background */
@keyframes ripple {
  100% {
    box-shadow: 0 0 0 40px #0000;
  }
}

/* Full screen overlay */
.vwp-canvas-loading1::before {
  content: "";
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(5px);
  z-index: 9998;
}

/* Main ripple circle */
.vwp-canvas-loading1::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #f1f1f1;
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 9999;

  box-shadow: 0 0 0 0 #0004;
  animation: ripple 1.5s infinite linear;
}

/* Second ripple circle using box-shadow trick */
.vwp-canvas-loading1 {
  position: relative;
}

#vwp-areas-swiper {
  margin-bottom: 20px;
}
/* 1. Force the slides to have an auto height so they stretch to the tallest slide */
#vwp-areas-swiper .swiper-slide {
  height: auto !important;
  display: flex; /* Makes the slide a flex container */
}

/* 2. Force your item container to fill 100% of the stretched slide's height and width */
#vwp-areas-swiper .vwp-area-item-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and details vertically */
  background-color: #e1e1e1;
}

/* 3. Ensure the image container fills available space or has a fixed ratio */
#vwp-areas-swiper .vwp-area-preview-slide {
  flex-grow: 1; /* Makes the image area take up all remaining space */
  width: 100%;
}

#vwp-areas-swiper .vwp-area-item-slide-active {
  border: 1px dashed #757070;
  background-color: white !important;
}
