/* GENERAL */

.field-title {
  font-family: "Cabin", sans-serif;
  font-weight: 400;
}

.material-selector-row {
  display: flex;
  flex-direction: row;

  width: 100%;
  justify-content: space-around;
  gap: 10px;
}

/*  MATERIAL SELECTOR CELL */

.material-selector-cell-wrapper {
  display: flex;
  flex-direction: column;

  aspect-ratio: 4/5;
  flex: 1;
  max-width: 100px;
}

.material-selector-cell-wrapper > .material-selector-cell-image {
  width: 100%;
  flex: 4;

  display: flex;
  justify-content: center;
  align-items: center;
}

.material-selector-cell-wrapper > .material-selector-cell-image > img {
  width: 90%;
  height: 90%;

  border-radius: 120px;
  border: 3px solid black;
}

.material-selector-cell-wrapper
  > .material-selector-cell-image
  > .material-selector-cell-image-placeholder {
  width: 90%;
  height: 90%;

  border-radius: 120px;
  border: 3px solid black;
}

.material-selector-cell-wrapper > .material-selector-cell-text {
  width: 100%;
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 20px;
  font-family: "Cabin", sans-serif;
  font-weight: 400;
}

/* MATERIAL SELECTOR POPUP */

.material-selector-popup-wrapper {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 15%;
  width: 30%;
  border: 1px solid gray;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  background-color: white;

  border-radius: 20px;

  overflow-y: auto;

  z-index: 50;
}

.material-selector-popup-wrapper > .material-selector-popup {
  padding: 20px;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;

  gap: 10px;
}

@media screen and (max-width: 992px) {
  .material-selector-popup-wrapper {
    position: fixed;
    top: 20vh;
    bottom: 5vh;
    left: 5vw;
    right: 5vw;
    width: auto;
  }
}

/* MATERIAL SELECTOR POPUP CELL */

.material-selector-popup-cell-wrapper {
  display: flex;
  flex-direction: column;

  width: 30%;
  aspect-ratio: 4/5;
}

.material-selector-popup-cell-wrapper > .material-selector-popup-cell-image {
  width: 100%;
  flex: 4;

  display: flex;
  justify-content: center;
  align-items: center;
}

.material-selector-popup-cell-wrapper
  > .material-selector-popup-cell-image
  > img {
  width: 90%;
  height: 90%;

  border-radius: 120px;
}

.material-selector-popup-cell-wrapper > .material-selector-popup-cell-text {
  width: 100%;
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 18px;
  font-family: "Cabin", sans-serif;
  font-weight: 400;
}

/* IF THE CELL IS SELECTED */

.material-selector-popup-cell-wrapper.selected
  > .material-selector-popup-cell-image
  > img {
  border: 3px solid red;
}

.material-selector-popup-cell-wrapper.selected
  > .material-selector-popup-cell-text {
  font-weight: 700;
  color: red;
}

/* SELECTOR SLIDER */

.slider-input-container {
  position: relative;
  display: flex;
  background: white;
  width: 100%;
  padding: 0;
}
.slider-fake-input-track {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 2px / 2);
  right: 0;
  width: 100%;
  height: 2px;
  background: black;
  pointer-events: none;
}
.slider-input-container input[type="range"] {
  appearance: none;
  background-color: white;
  width: 100%;
  height: 20px;
  padding: 0;
  outline: 0;
  cursor: pointer;
}
.slider-input-container input[type="range"]::-webkit-slider-thumb {
  -moz-appearance: none !important;
  appearance: none !important;
  position: relative;
  height: 20px;
  width: 100px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.slider-input-container input[type="range"]::-moz-range-thumb {
  -moz-appearance: none !important;
  appearance: none !important;
  position: relative;
  height: 20px;
  width: 100px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.slider-range-text {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border: black solid 2px;
  border-radius: 20px;
  text-align: center;
  line-height: 1;
  height: 20px;
  padding: 0px 16px;
  z-index: 1;
  text-wrap: nowrap;
}
.slider-step-bullet {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border: black solid 2px;
  border-radius: 20px;
  text-align: center;
  line-height: 1;
  height: 20px;
  width: 20px;
  z-index: 0;
  pointer-events: none;
}

/* RADIO */

.material-radio-wrapper {
  width: 120px;
  height: 30px;

  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 10px;

  border-radius: 30px;
  background-color: #d9d9d9;
  box-sizing: border-box;
}

.material-radio-wrapper > span {
  display: block;
  width: 100%;
  color: #656464;
  font-family: "Cabin", sans-serif;
  width: min-content;
  flex: 1;
  text-align: center;
}

.material-radio-slider {
  position: absolute;
  margin-top: 1px;
  margin-bottom: 1px;
  top: 0;
  bottom: 0;
  margin-top: 3px;
  margin-bottom: 3px;

  background-color: white;
  border: 3px solid black;
  border-radius: 20px;

  transition: left 0.5s, right 0.5s, margin-left 0.5s, margin-right 0.5s;
}

.material-radio-slider:after {
  color: black;
  font-family: "Cabin", sans-serif;
  text-align: center;
  width: 100%;
  display: block;
}

.material-radio-slider.active {
  left: 0px;
  right: 60px;
  margin-left: 5px;
  margin-right: 0px;
}

.material-radio-slider.active:after {
  content: "ON";
}

.material-radio-slider.inactive {
  left: 60px;
  right: 0px;
  margin-left: 0px;
  margin-right: 5px;
}

.material-radio-slider.inactive:after {
  content: "OFF";
}

/* COLOR PICKER */

.color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.color-selector > .color-item-wrapper {
  width: 14px;
  height: 14px;
  border-radius: 15px;
  border: 3px solid #000;
  background-color: white;
  padding: 3px;
  position: relative;
}

.color-selector > .color-item-wrapper > .color-item-inner {
  border-radius: 13px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid gray;
}

.color-selector .checkmark {
  color: white;
  font-size: 24px;
}
