* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-weight: 500;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

a.link,
label.link,
button.link {
  cursor: pointer;
  text-decoration: underline;
  color: black;
}

nav button {
  transition: background-color 500ms ease;
}

nav > button:hover {
  background-color: rgba(236, 208, 204, 0.5);
}

.model-switch {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 80px;
  height: 1.5em;
}

select::-ms-expand {
  display: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.model-switch:hover label {
  color: #0d6efd;
}

label[for="modelSwitch"],
label[for="modelSwitchForSmallDevice"] {
  position: absolute;
  pointer-events: none;
  top: 0px;
  left: 0px;
  width: 100%;
}

#modelSwitch,
#modelSwitchForSmallDevice {
  width: 20px;
}

select.modelSwitch {
  color: black;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: transparent;
  position: absolute;
  top: 0px;
  left: 0px;
  padding-left: calc(100% - 30px);
}

a.link:hover,
label.link:hover,
button.btn-flat:hover {
  color: #0d6efd !important;
}

.logo {
  max-height: 30px;
}

.configurator-header {
  width: 100%;
  height: 50px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.app-page-content {
  height: calc(100vh - 50px);
}

.configurator-content {
  flex-grow: 1;
  display: flex;
  position: relative;
}

/* .model-header {
  padding-left: 36px;
} */

.model-title {
  font-size: 20px;
  font-weight: bold;
}

.configurator-container {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.img-container {
  width: 100%;
  height: 100%;
  position: relative;
  flex-grow: 1;
}

.img-container img,
.product-preview img,
.img-container canvas,
.product-preview canvas {
  max-height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.model-title,
.configurator-footer,
.configurator-summary {
  height: 35px;
}

.app-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#material-selector {
  overflow: auto;
}

.instruction {
  text-align: justify;
}

.navigation-attr-selector {
  margin: 5px;
  padding: 5px;
  text-align: center;
}

.navigation-attr-selector img {
  transition: 0.5s;
  cursor: pointer;
  max-width: 120px;
  margin: 0 auto 15px;
}

.navigation-attr-selector:hover img {
  transform: scale(1.2);
  transform-style: preserve-3d;
  cursor: pointer;
}

.navigation-attr-selector label {
  font-size: 14px;
  display: block;
  text-align: center;
  transition: 0.5s;
  white-space: nowrap;
  white-space: normal;
  text-overflow: visible;
}

.btn-flat {
  color: black;
  border: 0;
  background: none;
  box-shadow: none !important;
}

.modal:not(#alertModal) {
  background-color: rgba(236, 208, 204, 0.8);
}

.modal-content {
  border-radius: 0.5rem !important;
}

.details-modal .modal-body .content {
  display: flex;
  overflow: auto;
  justify-content: space-between;
}

.product-thumb {
  flex: 50%;
  height: 100%;
}

.product-preview-container {
  height: calc(100% - 35px);
}

.product-preview {
  position: relative;
}

.product-description {
  flex: 50%;
  height: 100%;
}

.table-responsive {
  height: 80%;
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: white;
  font-weight: bold;
}

button:focus {
  outline: 0;
}

.collapse-row + tr {
  display: none;
}

.fa-spinner {
  -webkit-animation: spin 1000ms linear none infinite;
  animation: spin 1000ms linear none infinite;
}

.alert {
  -webkit-animation: alert 100ms linear none infinite;
  animation: alert 100ms linear none infinite;
  animation-iteration-count: 6;
}

#wizardModal ol {
  text-align: left !important;
}

@media (max-width: 575.98px) {
  .app-page-content {
    height: 100vh;
  }

  .configurator-wrapper {
    height: 55%;
  }

  .app-sidebar {
    height: 45%;
  }

  #material-selector {
    overflow-y: hidden;
  }

  .product-thumb {
    flex: 70%;
    height: 70%;

    /* Overflow layout */
    /* height: 70%; */
  }

  .product-preview-container {
    /* height: calc(100% - 60px); */

    /* Overflow layout */
    height: calc(100% - 80px);
  }

  .product-description {
    flex: 30%;
    height: 30%;

    /* Overflow layout */
    height: auto;
  }

  .table-responsive {
    height: 70%;
  }

  .configurator-summary {
    height: auto;
  }

  .configurator-summary > * {
    /* flex-grow: 1; */
    width: 100%;
  }

  .customization-summary > * {
    flex: 1;
  }

  .app-sidebar {
    box-shadow: none;
  }
}
@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes alert {
  0% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(2px);
  }
}

@keyframes alert {
  0% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(2px);
  }
}
