/*
 * Copyright 2022-2023 Bloomreach. All rights reserved. (https://www.bloomreach.com/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.mat-mdc-form-field {
  --mat-form-field-container-text-line-height: 1.7;

  .mat-mdc-form-field-infix {
    align-content: center;

    &[readonly] {
      cursor: auto;
    }
  }

  .mat-mdc-form-field-icon-suffix {
    top: 0.1em;
  }

  .mat-mdc-form-field-subscript-wrapper {
    top: auto;
    margin-top: 0.375em;
  }

  .mat-mdc-select-arrow-wrapper {
    vertical-align: bottom;
  }

  &.mat-mdc-form-field-has-label .mdc-floating-label--float-above {
    transform: translateY(-0.95em) scale(0.75);
  }

  .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece {
    border-color: var(--brie-input-border-default);
  }

  .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece {
    border-color: var(--brie-input-border-hover);
  }

  .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input {
    color: #002840;
  }

}