@mixin mw-mat-form-field-fill-override($theme) {
  mat-form-field.mat-form-field-appearance-fill:not(.mw-skip) {
    &.mat-form-field-type-mat-input,
    &.mat-form-field-type-mw-phone-input {
      .mat-form-field-subscript-wrapper {
        vertical-align: middle;
        mat-error,
        mat-error > mat-icon,
        mat-error > div {
          height: 16px;
          line-height: 16px;
          vertical-align: middle;
        }
        mat-error,
        mw-field-error {
          width: 100%;
          display: flex;
          align-items: center;
          mat-icon {
            cursor: pointer;
            display: inline-block;
            width: 16px;
            font-size: 16px;
          }
          & > mat-icon:first-child {
            margin-right: 4px;
          }
          & > mat-icon:last-child {
            margin-left: 4px;
          }
          & > div {
            display: inline-block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }

    // ---------------------------------------
    // Material Select component
    // ---------------------------------------
    .mat-select {
      &-arrow-wrapper {
        transform: none;
      }
    }

    // ---------------------------------------
    // Error
    // ---------------------------------------
    .mat-error {
      display: flex;
      align-items: center;

      .mat-icon {
        margin-right: 8px;
        font-size: 16px;
        width: 16px;
        height: 16px;
      }
    }
  }

  mat-label.mw-required {
    &::after {
      content: '*';
      color: var(--orange500);
      padding-left: 4px;
      vertical-align: middle;
    }
  }
}
