//   Copyright 2024 Cisco Systems, Inc.
//
//   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
//
//        http://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.
//
//   SPDX-License-Identifier: Apache-2.0

@use '../../base/typography';

button.ms-white-stroked-button {
	&.mat-mdc-outlined-button {
		@include typography.paragraph-monospace-p2-large;
		border-color: var(--icons-contrast);
		color: var(--icons-contrast);
	}
}

.mat-icon-button-contrast {
	mat-icon {
		color: var(--toolbar-icon-button);
	}
}

.mat-mdc-button.mat-unthemed {
	color: var(--foregrounds-700) !important;
	@include typography.paragraph-semibold-p3-small-emphasis;
}

.mat-mdc-outlined-button {
	border-radius: 6px;
	border-width: 1px !important;
	@include typography.paragraph-bold-p3-small-bold;

	&:not(:disabled) {
		&.mat-primary {
			border-color: var(--outlined-button-color);
		}

		&.mat-accent {
			border-color: var(--accent-400);
			font-weight: 700;
		}

		&.mat-warn {
			border-color: var(--error-500);
			font-weight: 700;
		}
	}
}

.mat-button-toggle-group .mat-button-toggle {
	margin: 0 5px;
	font-size: 0.875rem;
}
