src/components/Model3DModal/Model3DModal.scss
@import '../../constants/styles';
@import '../../constants/modal';

.Model3DModal {
  @extend %modal;

  .container {
    @extend %modal-shared-container-style;
    @extend %modal-shared-container-style-mobile;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 500px;
    border-radius: 4px;
    box-shadow: 0px 0px 3px 0px var(--document-box-shadow);
    padding: 8px;
    box-shadow: 0 0 3px 0 var(--document-box-shadow);
    background: var(--component-background);

    @include mobile {
      padding-top: 24px;
      padding-bottom: 16px;
      padding-inline-start: 24px;
      padding-inline-end: 24px;
    }

    .inputWrapper > label {
      width: 100%;
    }

    .divider {
      height: 1px;
      width: 100%;
      background: var(--divider);
      margin: 16px 0;
    }

    input {
      margin-top: 8px;
      width: 100%;
      height: 30px;
      padding-inline-start: 8px;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text-color);
      padding-bottom: 6px;
      padding-inline-end: 42px;
      padding-top: 4px;

      &:focus {
        outline: none;
        border: 1px solid var(--focus-border);
      }

      &::placeholder {
        color: var(--placeholder-text);
      }
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type='number'] {
      -moz-appearance: textfield;
    }

    form {
      width: 100%;
    }

    .error {
      width: 100%;
      color: red;
      margin: 5px 0;
    }

    .Button {
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--primary-button-text);
      font-weight: 600;
      padding: 6px 18px;
      margin-top: 8px;
      margin-inline-start: 5px;
      width: auto;
      width: fit-content;
      background: var(--primary-button);
      border-radius: 4px;
      height: 30px;
      cursor: pointer;

      &:hover {
        background: var(--primary-button-hover);
      }

      &.disabled {
        background: var(--gray-6);
        border-color: var(--gray-6);
        cursor: not-allowed;
      }
    }
  }
}

.model-3D-btn {
  @include button-reset;
  border: 1px solid var(--icon-color);
  width: 162px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-inline-end: 8px;

  img {
    max-width: 100%;
    max-height: 100%;
  }

  &.interactable {
    &:hover {
      background: var(--tools-overlay-button-hover);
    }
    &.active {
      background: var(--tools-overlay-button-active);
    }
  }

  &.active {
    background: var(--tools-overlay-button-active);
  }

  &.add-btn {
    @include mobile {
      width: auto;
      padding-inline-start: 0px;
      width: 190px;
      height: 30px;
    }
  }
}
