@font-face {
  font-family: Akkurat;
  src: url(../fonts/Akkurat.ttf);
}

body {
  background-color: #949494 !important;
  margin: 0;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #313031;
  overflow: hidden;
}

#application-splash-wrapper {
  background-color: #313031 !important;
}

#application-splash {
  text-align: center !important;
  top: calc(50% - 128px) !important;
}

#application-splash img {
  width: 196px !important;
}

#progress-bar-container {
  background-color: #3f3f3f !important;
}

#progress-bar {
  background-color: #0077d7 !important;
}

canvas {
  display: block;
  width: 100%;
  height: 100vh;
}

.btn {
  border-radius: 0px;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-weight: 600;
}

/* Loading Spin */
#loadingIcon {
  background-color: rgba(49, 48, 49, 0.4);
  backdrop-filter: blur(2px);
  position: absolute;
  color: #313031;
  display: none; /* Hide by default */
  z-index: 999;
  width: 100%;
  height: 100%;
}

#loadingIcon:after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  content: "";
  display: inline-block;
  width: 64px;
  height: 64px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #313031;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#application-canvas{
  margin-top: 0 !important;
  user-select:auto !important
}

.configurator-wrapper {
  position: absolute;
  display: flex;
  justify-content: end;
  gap: 5px;
  top: 0;
  right: 0;
  height: 100%;
  width: 30%;
  padding: 10px;
  z-index: 9;
}

@media screen and (max-width: 1440px) {
  .configurator-wrapper {
    width: 36%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
  .configurator-wrapper {
    width: 40%;
  }
}

.panel_controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#togglePanel {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0) inset;
  color: #313031;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0);
  padding: 12px;
  border: none;
  outline: none;
  align-items: center;
  justify-content: center;
  display: inline-flex;
}

#togglePanel:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0) inset;
  color: #000;
  background: rgba(49, 48, 49, 0.1);
}

.config_panel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* border: 1px solid #313031; */
}

.panelTitle_section {
  display: flex;
  position: sticky;
  top: 0;
  align-items: center;
  color: #313031;
  overflow: hidden;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 10px;
  min-height: 58px;
}

.panelTitle_section h2 {
  text-transform: uppercase;
  letter-spacing: normal;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  width: auto;
  margin-right: 8px;
  margin-bottom: 0;
}

.panelMain_section {
  max-height: calc(90% - 64px);
  overflow-y: auto;
  padding: 12px 10px;
}

.panelCta_section {
  background-color: #fff;
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  align-items: center;
  color: #313031;
  overflow: hidden;
  border-top: 1px solid #e0e0e0;
  padding: 12px 10px;
  z-index: 9;
}

@media screen and (max-width: 1024px) {
  .panel_controls-wrapper {
    display: inline-block;
  }

  .configurator-wrapper {
    flex-direction: column;
    width: 100%;
    max-height: 70%;
    top: unset;
    right: unset;
    bottom: 0;
  }

  .panelMain_section {
    max-height: calc(85% - 60px);
  }
}

#backToCategories {
  border: none;
  border-right: 1px solid #313031;
  padding-right: 10px;
  padding-left: 10px;
}

/* CATEGORIES */

.categoriesList li:has(.tree-nav-item) {
  border-bottom: 1px solid #e0e0e0;
}

.categoriesList .tree-nav-item {
  display: flex;
  position: relative;
  align-items: center;
  padding: 20px 20px;
  color: #313031;
  background: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: color 0.1s, background 0.1s;
  cursor: pointer;
}

.categoriesList .tree-nav-item_label {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.categoriesList .tree-nav-item:hover {
  color: #313031;
  background: rgba(49, 48, 49, 0.07);
}

.categoriesList .tree-nav-item i {
  font-size: 13px;
}

.categoriesList .tree-nav-info {
  padding-left: 50px;
  list-style-type: disc;
  font-size: 14px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.categoriesList .tree-nav-info li {
  margin-bottom: 8px;
  color: #313031;
}

.categoriesList .tree-nav-info li i {
  color: grey;
}

/* PRODUCTS */

.productsList {
  display: grid;
  position: relative;
  flex-wrap: wrap;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

@media screen and (max-width: 1024px) {
  .productsList {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 550px) {
  .productsList {
    grid-template-columns: 1fr 1fr;
  }
}

.productsList .grid_item {
  padding: 5px;
  margin: 0;
  min-height: 1px;
  color: #313031;
  text-align: center;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.grid_item .image-select {
  position: relative;
  border-radius: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.grid_item img {
  width: 100%;
  /* display: block; */
}

.grid_item img.hoverImg {
  display: none;
}

.grid_item img.mainImg {
  display: block;
}

.grid_item:has(.hoverImg):hover img.mainImg {
  display: none;
}

.grid_item:has(.hoverImg):hover img.hoverImg {
  display: block;
}

.grid_item input {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
}

.image-select_label {
  margin-top: 8px;
  font-family: "Akkurat", Ubuntu, sans-serif;
  color: #313031;
  font-weight: 500;
}

.tree-nav-item:hover {
  cursor: pointer;
}

.image-select.selected .image-select_image {
  border: 2px solid #313031; /* Highlight border */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Optional shadow effect */
}

/* ATTRIBUTES */

.spectsList li.grid_item {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 6px;
}

@media screen and (max-width: 1024px) {
  .spectsList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media screen and (max-width: 550px) {
  .spectsList {
    display: block;
  }
}

.input-container[data-stacked] {
  flex-direction: column;
}

.input-container {
  display: flex;
  text-align: inherit;
}

.input-container_content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.input-container_content_inner {
  width: 100%;
}

.field-widget-container_label {
  margin-bottom: 3px;
}

.label {
  text-transform: uppercase;
  line-height: 135%;
  letter-spacing: 0.02em;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-right: 5px;
  margin-bottom: 10px;
  color: #313031;
}

.field-widget-container_input:not(:first-child) {
  margin-top: 10px;
}

.grid[data-spacing="small"] {
  margin: -5px;
  width: calc(100% + 10px);
}

.grid[data-spacing="small"] .grid_item {
  padding: 5px;
}

.compact-card-select[data-color="secondary"] {
  box-shadow: 0 0 0 1px #bdbdbd inset;
  background: #fff;
}

.compact-card-select {
  display: flex;
  position: relative;
  padding: 10px 10px;
  border-radius: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: color 0.1s, background 0.1s, box-shadow 0.2s, border 0.2s;
  cursor: pointer;
}

.compact-card-select_image {
  position: relative;
  flex: 0 0 55px;
  margin-right: 20px;
  height: 55px;
  border-radius: 0;
  background-position: center;
  background-size: cover;
}

.compact-card-select_labels {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  height: 55px;
  max-width: 100%;
  text-align: left;
  overflow-x: hidden;
}

.compact-card-select[data-color="secondary"][data-checked="true"] {
  box-shadow: 0 0 0 1px #313031 inset;
  background: #fff;
}

.compact-card-select[data-color="secondary"][data-checked="true"]::after {
  color: #fff;
  background: #313031;
}
.compact-card-select[data-checked]::after {
  transform: scale3d(1, 1, 1);
}

.compact-card-select::after {
  font-size: 12px;
  position: absolute;
  top: -9px;
  right: -9px;
  height: 18px;
  width: 18px;
  color: transparent;
  text-align: center;
  content: "\2714";
  border-radius: 50%;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.compact-card-select[data-color="secondary"] .compact-card-select_labels_main {
  color: #313031;
}
.compact-card-select_labels_main {
  text-transform: capitalize;
  letter-spacing: normal;
  font-family: "Akkurat", Ubuntu, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.globalOptions .field-widget-container_input .grid {
  display: flex !important;
  width: 100%;
  justify-content: center !important;
}

.globalOptions .field-widget-container_input .grid .grid_item {
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.globalOptions .field-widget-container_input .grid .grid_item label {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.globalOptions
  .field-widget-container_input
  .grid
  .grid_item
  label
  .compact-card-select_image {
  margin-right: 0;
  width: 55px;
  flex: auto !important;
}

.globalOptions
  .field-widget-container_input
  .grid
  .grid_item
  label
  .compact-card-select_labels {
  margin-top: 8px;
  height: auto !important;
}

.globalOptions
  .field-widget-container_input
  .grid
  .grid_item [data-checked="true"]{
    opacity: .8;
    filter: grayscale(0) !important;
  }
  .mainActionBtn{
    font-weight: 500 !important;
  }

  .modal h4{
    text-transform: uppercase;
    font-weight: 600;
    max-width: 70%;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .cartPrice:hover img{
    filter: invert();
  }

  img.category_icon{
    height: 32px;
    margin-right: 12px;
  }