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

.CalibrationModal {
  @extend %modal;

  .container {
    @extend %modal-shared-container-style;
    @extend %modal-shared-container-style-mobile;
    display: flex;
    flex-direction: column;
    min-width: 400px;
    box-shadow: 0px 0px 3px 0px var(--document-box-shadow);
    padding: 8px 8px;
    background: var(--component-background);

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

    .calibration__header {
      font-size: 16px;
      margin-top: 8px;
      margin-bottom: 8px;
    }

    .calibration__body {
      padding-top: 8px;

      .calibration__input {
        margin-top: 8px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
      }

      input {
        width: 100%;
        height: 30px;
        font-size: 13px;
        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;
        margin-inline-end: 8px;

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

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

      .error {
        border: 1px solid var(--error-border-color);
      }

      .unitToInput {
        height: 29px;
        width: 45px;
        border-radius: 5px;
        border: 1px solid var(--border);
        font-size: 13px;

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

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

      .errorMeasurement {
        font-size: 13px;
        margin-top: 8px;
        margin-bottom: 8px;
        color: var(--error-text-color);
        max-width: 400px;
      }
    }

    .calibration__footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 8px;

      .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);
        }
      }
    }
  }
}
