*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --padding-body: 20px;
  --modal-width: 450px;
  --border: 1px solid #ccc;
  --border-radius: 1.2rem;
  --color-brand: #585B69;
  --color-plain: #D5C3A9;
  --color-moss: #8B8A7B;
  --color-blue: #758391;
  --color-border: #C5C6CB;
  --color-background: rgb(250, 250, 250);
  --fontSize-UI: 0.7rem;
  --fontSize-dim: 0.7rem;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-smooth: auto;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06rem;
  color: var(--color-brand);
  width: 100%;
  padding: var(--padding-body);
}

body * {
  -webkit-font-smoothing: antialiased;
}

button {
  padding: 0;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  background: none;
}

.title {
  font-size: 1rem;
}

.wrapper-viewer {
  margin: 30px 0 0 15px;
  width: var(--modal-width);
  height: auto;
  aspect-ratio: 1/1.1;
  border: var(--border);
  overflow: hidden;
}
@media (max-width: 500px) {
  .wrapper-viewer {
    margin: 30px 0 0 0;
    width: 100%;
    height: auto;
  }
}

#modelViewer {
  width: 100%;
  height: 100%;
  vertical-align: bottom;
}

#controls {
  position: absolute;
  z-index: 100;
  bottom: 10px;
  right: 10px;
  max-width: unset;
  transform: unset;
  pointer-events: auto;
  font-size: 0.8rem;
  color: currentColor;
}
#controls select {
  outline: none;
  font-size: 0.8rem;
  color: currentColor;
  border-radius: 0.5rem;
  padding: 0.1rem 0.3rem;
  border: 0.5px solid var(--color-border);
}

.dot {
  display: block;
  display: none;
  width: 5px;
  height: auto;
  aspect-ratio: 1;
  background-color: blue;
}
.dot::after {
  content: attr(data-num);
  font-size: 0.5rem;
  line-height: 100%;
  color: white;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glass {
  backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
  -webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
  padding: 0.8rem;
  border-radius: 0.5rem;
}

.dim {
  position: absolute;
  border: none;
  max-width: 128px;
  width: -moz-max-content;
  width: max-content;
  height: -moz-max-content;
  height: max-content;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: var(--fontSize-dim);
  color: var(--color-brand);
  letter-spacing: 0.6px;
  background-color: transparent;
  overflow-wrap: break-word;
  padding: 0.2rem 0.2rem;
  transform: translate3d(-50%, -50%, 0);
  --min-hotspot-opacity: 0;
}
@media (max-width: 800px) {
  .dim {
    font-size: 0.6rem;
  }
}

.dimensionLineContainer {
  display: none;
}

.dimensionLine {
  stroke: var(--color-brand);
  stroke-width: 0.5;
  stroke-dasharray: 1.5;
}

.dimensionLineT {
  stroke: var(--color-brand);
  stroke-width: 0.5;
  stroke-dasharray: 0;
}

.hide {
  transition: all 1.2s ease;
  opacity: 0;
}

/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
  display: none;
}

.product-name {
  display: none;
  position: absolute;
  z-index: 100;
  top: 2rem;
  left: 2rem;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-size: 2rem;
  line-height: 100%;
  letter-spacing: 0.06em;
}
.product-name.active {
  display: block;
}

.wrapper-button {
  position: absolute;
  z-index: 900;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: -moz-max-content;
  width: max-content;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: bottom 1s ease-out;
}
.wrapper-button.active {
  bottom: 2rem;
  transition: bottom 1s ease-out;
}

.viewer-ui {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: rgba(250, 250, 250, 0.8);
  border-radius: var(--border-radius);
  padding-right: 0.4rem;
  font-size: var(--fontSize-UI);
  transition: all 0.3s ease-out;
}
.viewer-ui .ui-circle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.15);
  width: 2rem;
  height: 2rem;
}
.viewer-ui .ui-circle.active {
  border: 1px dotted var(--color-brand);
}
.viewer-ui .ui-circle .selectColor {
  width: 60%;
  height: auto;
  aspect-ratio: 1;
}
.viewer-ui .ui-circle .selectColor[data-color=plain] {
  background-color: var(--color-plain);
}
.viewer-ui .ui-circle .selectColor[data-color=green] {
  background-color: var(--color-moss);
}
.viewer-ui .ui-circle .selectColor[data-color=blue] {
  background-color: var(--color-blue);
}
.viewer-ui img,
.viewer-ui span {
  display: inline-block;
  padding: 0.3em;
}
@media (hover: hover) {
  .viewer-ui:hover {
    opacity: 0.5;
    transition: all 0.3s ease-out;
  }
}

.parts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: var(--padding-body);
  border: var(--border);
  height: auto;
  font-size: 0.7rem;
}
.parts .parts-desktop,
.parts .parts-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.viewer-ui-close {
  position: absolute;
  top: 20px;
  right: 20px;
}
.viewer-ui-close svg {
  transition: all 0.3s ease-out;
}
@media (hover: hover) {
  .viewer-ui-close svg:hover {
    opacity: 0.5;
    transition: all 0.3s ease-out;
  }
}

.progress-bar {
  position: absolute;
  z-index: 101;
  width: 0%;
  height: 8px;
  background-color: var(--color-brand);
  padding: auto 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 1s ease;
  opacity: 1;
}
.progress-bar.hide {
  opacity: 0;
  transition: opacity 1s ease;
}

.overlay {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(50% + 4px);
  height: 12px;
  border: 1px solid var(--color-border);
}
.overlay.hide {
  opacity: 0;
  transition: opacity 1s ease;
}

@media (min-width: 500px) {
  .viewer-ui-ar {
    display: none;
  }
}
@media (max-width: 500px) {
  .viewer-ui-fullscreen {
    display: none;
  }
}
.button {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 0 0.5rem;
}

.annotationData {
  display: none;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: var(--fontSize-UI);
}

.dot,
.dim,
.progress-bar,
.overlay::after,
.selectColor,
.parts,
.wrapper-viewer,
.button {
  border-radius: var(--border-radius);
}

.dot,
.dim,
.progress-bar,
.overlay,
.dimensionLineContainer {
  pointer-events: none;
}

button,
.viewer-ui-close {
  cursor: pointer;
}

body,
.overlay,
.ui-circle {
  background-color: white;
}

#modelViewer,
.parts {
  background-color: var(--color-background);
}

.viewer-ui-color1,
.viewer-ui-color2,
.viewer-ui-color3,
#controls,
.parts {
  display: none;
}/*# sourceMappingURL=style.css.map */