.gm-form-field {
  &.mat-form-field-invalid.ng-dirty.ng-touched .mat-mdc-form-field-flex {
    border-color: var(--field-border-color--error) !important;
    outline-color: transparent !important;
    box-shadow: none !important;
  }
}

.mat-mdc-form-field-subscript-wrapper {
  display: none;

  &:has(> .mat-mdc-form-field-error-wrapper) {
    display: block;
  }
}

.mat-mdc-form-field-error-wrapper {
  padding: 0 !important;
}

.mat-mdc-form-field-error {
  --mat-form-field-error-text-color: var(--error-font-color);

	margin-top: 10px;
	margin-bottom: 0;
  font-weight: 500;
  &::before {
    display: none !important;
  }

	&, .gm-currency, .gm-amount {
		font-size: 14px !important;
		line-height: 17px !important;
		color: var(--error-font-color);
		--currency-amount-color: var(--error-font-color);
	}

	+ .mat-mdc-form-field-error {
		display: none;
	}
}
