@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/Manrope-VariableFont_wght__IU4aRvL8fl2U9f7biXxv.ttf") format("truetype");
}

:root {
  font-family: "Manrope", Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.configurator-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.viewer-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 70%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.verge3d-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.module-menu {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.module-grid {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 32px;
  width: min(394px, 100%);
  padding: 13px;
  border: 1px solid #000;
  background: #fff;
}

.module-button {
  display: flex;
  flex: 0 0 92px;
  flex-direction: column;
  gap: 0;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 160ms ease, filter 160ms ease;
}

.module-button img {
  width: 150px;
  height: auto;
}

.module-button span {
  font-size: 0.7rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.round-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  color: #000;
  background: rgb(0 0 0 / 3%);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.round-control:hover {
  box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
}

.round-control img {
  width: 30px;
  height: 30px;
}

.fullscreen-control {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 8px;
}

.fullscreen-control svg {
  width: 100%;
  height: 100%;
}

.scene-controls {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 10px;
  display: flex;
  gap: 12px;
}

.ar-control {
  justify-content: space-around;
  padding: 4px 9px;
}

.ar-control span {
  font-size: 16px;
  font-weight: 500;
}

.service-highlights {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 60px;
  color: rgb(0 0 0 / 70%);
  transform: translateX(-50%);
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.service-item svg {
  width: 28px;
  height: 28px;
  margin-right: 9px;
}

.service-item:first-child svg {
  width: 33px;
}

.service-item span {
  font-size: 14px;
  font-weight: 300;
}

.configuration-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 30%;
  min-width: 0;
  height: 100%;
  padding: 10px 20px;
  border-left: 1.5px solid #000;
  background: #fff;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px;
  width: 100%;
  padding: 0;
}

.custom-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 60px;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.color-circle {
  width: 100%;
  min-width: 60px;
  max-width: 70px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.18s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .custom-button:not(.active):hover .color-circle {
    outline-color: rgb(0 0 0 / 25%);
  }
}

.custom-button.active .color-circle {
  outline-color: #000;
  outline-offset: 3px;
}

.custom-button span {
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: center;
}

.selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
}

.outlined-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 45px;
  margin: 0 4px;
  padding: 11px 6px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.outlined-action.square-action,
#info.outlined-action {
  flex: 0 0 45px;
  width: 45px;
  min-width: 45px;
  max-width: 45px;
  height: 45px;
  padding: 0;
}

#order-samples {
  flex: 1.5 1 0;
}

.outlined-action:hover {
  background: #f2f2f2;
}

.fabric-info {
  display: none;
  width: 100%;
  margin-top: 10px;
  overflow-y: auto;
}

.fabric-info.is-visible,
.fabric-info.is-modal-content {
  display: block;
}

.fabric-info h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.fabric-info p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.fabric-info a {
  display: inline-block;
  padding-top: 1rem;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
}

.payment-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: auto;
  padding: 10px 0;
  background: #fff;
}

.price-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  padding: 9px;
  border-bottom: 1px solid #000;
  font-size: 14px;
  text-transform: uppercase;
}

.price-row strong {
  font-weight: 800;
  letter-spacing: -0.1px;
}

.purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.payment-methods {
  display: flex;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.payment-methods > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 0;
  height: 25px;
  flex: 1 1 44px;
  padding: 6px;
  border: 1px solid rgb(0 0 0 / 25%);
  border-radius: 3px;
}

.payment-methods img {
  width: 100%;
  max-height: 100%;
}

.payment-methods .payment-dark {
  background: #666;
}

.payment-methods .payment-muted {
  background: #c4c4c4;
}

.cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35%;
  min-width: 125px;
  flex: 0 1 35%;
  height: 45px;
  margin: 0 6px;
  padding: 11px 0;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-button:hover {
  color: #000;
  background: #f2f2f2;
  font-weight: 800;
}

.settings-button {
  display: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.settings-button svg {
  width: 24px;
  height: 24px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.75rem;
}

.text-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.text-action svg {
  width: 12px;
  height: 12px;
}

.material-disclaimer {
  max-width: 34rem;
  margin: 2px 0 0;
  color: #666;
  font-size: 9px;
  line-height: 1.4;
}

.share-feedback {
  margin: 0;
  color: #555;
  font-size: 11px;
  line-height: 1.4;
}

.is-preview .price-row {
  min-height: 0;
  padding: 0;
}

.is-preview .price-row > *,
.is-preview .purchase-row,
.is-preview #send-request,
.is-preview [id="3D-download"] {
  display: none;
}

.is-preview .export-options {
  display: flex;
  margin-top: 0;
}

.modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0 0 0 / 50%);
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 40px 25px 25px;
  overflow-y: auto;
  border: 1px solid #000;
  background: #fff;
}

.modal-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  padding: 2px;
  border: 0;
  color: #666;
  background: transparent;
  cursor: pointer;
}

.modal-close svg {
  width: 100%;
  height: 100%;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.modal-content .export-options {
  display: flex;
  width: 100%;
  margin: 0;
}

.modal-content .text-action {
  min-height: 32px;
}

@media (max-width: 1000px) {
  .configurator-shell {
    flex-direction: column;
  }

  .viewer-panel {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .configuration-panel {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 10px 20px;
    border: 0;
  }

  .color-grid {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    margin: 0;
    padding: 7px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }

  .color-grid::-webkit-scrollbar {
    display: none;
  }

  .custom-button {
    flex: 0 0 60px;
  }

  .selection-actions {
    width: 100vw;
    margin-top: 10px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px;
  }

  .outlined-action {
    min-width: 20px;
  }

  .fabric-info {
    margin-right: 20px;
    margin-left: 20px;
  }

  .payment-panel {
    position: static;
    padding: 10px 0;
  }

  .cart-button {
    min-width: 20px;
  }

  .settings-button {
    display: flex;
  }

  .export-options {
    display: none;
    width: 100%;
  }

  .service-highlights {
    display: none;
  }
}

@media (max-width: 767px) {
  .viewer-panel {
    z-index: 1;
    overflow: visible;
  }

  .module-menu {
    overflow: hidden;
    padding: 8px 0 44px;
  }

  .module-grid {
    gap: 8px clamp(10px, 4vw, 20px);
    width: min(394px, calc(100% - 16px));
    padding: 8px;
  }

  .module-button {
    flex-basis: clamp(68px, 22vw, 86px);
    width: clamp(68px, 22vw, 86px);
  }

  .module-button img {
    width: 100%;
  }

  .scene-controls {
    z-index: 6;
    bottom: -18px;
  }

  .configuration-panel {
    z-index: 0;
    padding-top: 20px;
  }

  .color-grid {
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .custom-button {
    flex-basis: 48px;
    min-width: 48px;
  }

  .color-circle {
    min-width: 48px;
    max-width: 50px;
  }

  .custom-button span {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.15;
  }

  .selection-actions {
    margin-top: 6px;
  }

  .payment-panel {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .payment-methods {
    display: none;
  }

  .cart-button {
    width: 80%;
  }
}

@media (max-width: 767px) and (max-height: 500px) and (orientation: landscape) {
  .module-menu {
    padding-bottom: 0;
  }

  .module-grid {
    flex-wrap: nowrap;
    gap: 8px;
    width: min(520px, calc(100% - 16px));
    padding: 4px;
  }

  .module-button {
    flex-basis: clamp(48px, 9vw, 56px);
    width: clamp(48px, 9vw, 56px);
  }

  .module-button span {
    font-size: 0.6rem;
    line-height: 1.05;
  }

  .scene-controls {
    bottom: -30px;
  }

  .configuration-panel {
    padding-top: 34px;
  }
}

@media (max-width: 479px) {
  .configuration-panel,
  .selection-actions {
    padding-right: 10px;
    padding-left: 10px;
  }

  .selection-actions {
    margin-right: -10px;
    margin-left: -10px;
  }

  .selection-actions .outlined-action {
    margin: 0 2px;
    padding: 11px 4px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 1000px) {
  :fullscreen #payment,
  :-webkit-full-screen #payment {
    display: none !important;
  }

  :fullscreen.is-preview #payment,
  :-webkit-full-screen.is-preview #payment {
    display: flex !important;
  }

  :fullscreen .custom-button,
  :-webkit-full-screen .custom-button {
    flex-basis: 42px;
    width: 70%;
    min-width: 42px;
  }

  :fullscreen .color-circle,
  :-webkit-full-screen .color-circle {
    min-width: 42px;
    max-width: 49px;
  }

  :fullscreen .selection-actions .outlined-action,
  :-webkit-full-screen .selection-actions .outlined-action {
    height: 28px;
    border-width: 2px;
    font-weight: 700;
    font-size: 10px;
  }

  :fullscreen #info,
  :-webkit-full-screen #info {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    font-size: 9px;
    letter-spacing: 0;
  }

  :fullscreen #select-all,
  :fullscreen #order-samples,
  :-webkit-full-screen #select-all,
  :-webkit-full-screen #order-samples {
    padding: 0 6px;
  }

  :fullscreen #info-select,
  :-webkit-full-screen #info-select {
    order: 1;
    margin: 0 0 10px;
  }

  :fullscreen #colors-buttons-container,
  :-webkit-full-screen #colors-buttons-container {
    order: 2;
    padding-top: 0;
  }

  :fullscreen #panel,
  :-webkit-full-screen #panel {
    padding-top: 0;
  }
}

@media (min-width: 1001px) and (max-height: 750px) {
  .modal-card {
    width: min(450px, 90vw);
    padding: 40px 30px 30px;
    border-radius: 16px;
  }
}

@media (min-width: 1001px) and (max-width: 1250px) {
  .selection-actions .outlined-action {
    margin: 0 2px;
    padding: 11px 4px;
    font-size: 10px;
    letter-spacing: 0.4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
