@mixin bb-rl-base-heading {
	font-size: var(--bb-rl-font-size-base);
	font-weight: 500;
	line-height: var(--bb-rl-base-line);
}

@mixin bb-rl-base-heading-bolder {
	font-size: var(--bb-rl-font-size-base);
	font-weight: 600;
	line-height: var(--bb-rl-base-line);
}

@mixin bb-rl-label-heading {
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 400;
	line-height: var(--bb-rl-base-line-small);
}

@mixin bb-rl-label-heading-bolder {
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 500;
	line-height: var(--bb-rl-base-line-small);
}

@mixin bb-rl-label-heading-md-bold {
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}

@mixin bb-rl-label-heading-md {
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

@mixin bb-rl-label-heading-xs {
	font-size: var(--bb-rl-font-size-xs);
	font-weight: 500;
	line-height: var(--bb-rl-base-line-xs);
}

@mixin bb-rl-label-heading-md-thin {
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
}

@mixin bb-rl-base-heading-xl {
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
}

@mixin bb-rl-base-heading-2xl {
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
}

@mixin bb-rl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	border-radius: var(--bb-rl-radius-md);
	padding: var(--bb-rl-space-100) var(--bb-rl-space-200);
	transition: background-color 0.2s ease, bordfont/size/smer-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

@mixin bb-rl-button--small {
	padding: 6px var(--bb-rl-space-200);
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 400;
}

@mixin bb-rl-button--small-xs {
	padding: 2px var(--bb-rl-space-100);
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 400;
}

@mixin bb-rl-button--disabled {
	background-color: var(--bb-rl-background-tertiary-color);
	color: var(--bb-rl-text-disabled-color);
	cursor: not-allowed;
}

@mixin bb-button-secondary-hover {
	background-color: var(--bb-secondary-button-background-hover);
	color: var(--bb-secondary-button-text-hover);
	border: 1px solid var(--bb-secondary-button-border-hover);
}

@mixin bb-rl-button--brand-fill {
	background-color: var(--bb-rl-background-brand-primary-color);
	color: var(--bb-rl-text-white-color);
	border: 1px solid var(--bb-rl-background-brand-primary-color);

	&:hover {
		background-color: var(--bb-rl-background-brand-primary-hover-color);
	}

	&:focus-within {
		outline: 2px solid var(--bb-rl-border-brand-primary-color);
	}

	&:disabled {
		background-color: var(--bb-rl-background-brand-disabled-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button--brand-outline {
	background-color: transparent;
	color: var(--bb-rl-text-brand-primary-color);
	border: 1px solid var(--bb-rl-text-brand-primary-color);

	&:hover {
		border-color: var(--bb-rl-background-brand-primary-color);
	}

	&:focus {
		outline: 2px solid var(--bb-rl-border-brand-primary-color);
	}

	&:disabled {
		border-color: var(--bb-rl-background-brand-disabled-color);
		color: var(--bb-rl-background-brand-disabled-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button-secondary-fill {
	background-color: var(--bb-rl-background-tertiary-color);
	color: var(--bb-rl-text-color);
	border: 1px solid transparent;

	&:hover {
		background-color: var(--bb-rl-background-tertiary-hover-color);
	}

	&:focus {
		outline: 2px solid var(--bb-rl-border-quinery-color);
	}

	&:disabled {
		background-color: var(--bb-rl-background-tertiary-color);
		color: var(--bb-rl-text-disabled-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button--secondary-outline {
	background-color: transparent;
	color: var(--bb-rl-text-color);
	border: 1px solid var(--bb-rl-border-tertiary-color);

	&:hover {
		background-color: var(--bb-rl-background-secondary-color);
	}

	&:focus {
		outline: 2px solid var(--bb-rl-border-quinery-color);
	}

	&:disabled {
		border-color: var(--bb-rl-border-tertiary-color);
		color: var(--bb-rl-text-disabled-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button--danger-fill {
	background-color: var(--bb-rl-background-danger-primary-color);
	color: var(--bb-rl-text-white-color);
	border: 1px solid transparent;

	&:hover {
		background-color: var(--bb-rl-background-danger-primary-hover-color);
	}

	&:focus {
		outline: 2px solid var(--bb-rl-border-danger-primary-color);
	}

	&:disabled {
		background-color: var(--bb-rl-background-danger-secondary-hover-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button--tertiary-text {
	background-color: transparent;
	color: var(--bb-rl-text-color);
	border: none;

	&:hover {
		background-color: var(--bb-rl-background-secondary-hover-color);
	}

	&:focus {
		outline: 2px solid var(--bb-rl-border-quinery-color);
	}

	&:disabled {
		color: var(--bb-rl-text-disabled-color);
		cursor: not-allowed;
	}
}

@mixin bb-rl-button--tertiary-link {
	background-color: transparent;
	color: var(--bb-rl-text-brand-primary-color);
	border: none;
	border-radius: 0;
	border-bottom: 1px solid transparent;

	&:hover {
		border-bottom-color: var(--bb-rl-link-primary-hover-color);
	}

	&:disabled {
		color: var(--bb-rl-background-brand-disabled-color);
		border-bottom-color: transparent;
		cursor: not-allowed;
	}
}

@mixin bb-rl-notice {
	display: flex;
	align-items: center;
	padding: var(--bb-rl-space-100);
	border: 1px solid transparent;
	border-radius: var(--bb-rl-radius-md);
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 500;
	background-color: var(--bb-rl-background-secondary-color);

	> [class*="bb-icons"] {
		margin-right: var(--bb-rl-space-100);
		font-size: 20px;
		font-family: bb-icons-rl;
	}
}

@mixin bb-rl-notice__title {
	color: var(--bb-rl-text-color);
	font-weight: 500;
	margin-bottom: var(--bb-rl-space-100);
}

@mixin bb-rl-notice__close {
	font-size: 14px;
	color: var(--bb-rl-icon-tertiary-color);
	position: absolute;
	right: var(--bb-rl-space-100);
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background-color: transparent;
	padding: 0;
	cursor: pointer;
}

@mixin bb-rl-notice--info {
	background-color: var(--bb-rl-background-brand-secondary-color);
	border-color: var(--bb-rl-border-brand-primary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-icon-primary-color);

		&:before {
			content: "\e4e2";
		}
	}
}

@mixin bb-rl-notice--success {
	background-color: var(--bb-rl-background-positive-secondary-color);
	border-color: var(--bb-rl-border-positive-primary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-icon-positive-primary-color);

		&:before {
			content: "\e184";
		}
	}
}

@mixin bb-rl-notice--warning {
	background-color: var(--bb-rl-background-warning-secondary-color);
	border-color: var(--bb-rl-border-warning-primary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-icon-warning-primary-color);

		&:before {
			content: "\e4e0";
		}
	}
}

@mixin bb-rl-notice--error {
	background-color: var(--bb-rl-background-danger-secondary-color);
	border-color: var(--bb-rl-border-danger-primary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-text-danger-primary-color);

		&:before {
			content: "\e4e2";
		}
	}
}

@mixin bb-rl-notice--alt {
	padding: var(--bb-rl-space-50) var(--bb-rl-space-100);
	font-weight: 400;
}

@mixin bb-rl-notice--alt-info {
	background-color: var(--bb-rl-background-brand-secondary-color);
	border-color: var(--bb-rl-border-brand-secondary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-border-brand-secondary-color);
	}
}

@mixin bb-rl-notice--alt-success {
	background-color: var(--bb-rl-background-positive-secondary-color);
	border-color: var(--bb-rl-border-positive-secondary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-border-positive-secondary-color);
	}
}

@mixin bb-rl-notice--alt-warning {
	background-color: var(--bb-rl-background-warning-secondary-color);
	border-color: var(--bb-rl-border-warning-secondary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-border-warning-secondary-color);
	}
}

@mixin bb-rl-notice--alt-error {
	background-color: var(--bb-rl-background-danger-secondary-color);
	border-color: var(--bb-rl-border-danger-secondary-color);

	> [class*="bb-icons"] {
		color: var(--bb-rl-border-danger-secondary-color);
	}
}

@mixin bb-rl-notice--plain {
	display: block;
	border-width: 0;
	border-left-width: 2px;
	border-style: solid;
	border-radius: 0;
	padding: var(--bb-rl-space-100) var(--bb-rl-space-200);
	color: var(--bb-rl-text-color);

	@include bb-rl-label-heading-bolder;
}

@mixin bb-rl-notice--plain-info {
	background-color: var(--bb-rl-background-brand-secondary-color);
	border-color: var(--bb-rl-border-brand-secondary-color);
}

@mixin bb-rl-notice--plain-success {
	background-color: var(--bb-rl-background-positive-secondary-color);
	border-color: var(--bb-rl-border-positive-secondary-color);
}

@mixin bb-rl-notice--plain-warning {
	background-color: var(--bb-rl-background-warning-secondary-color);
	border-color: var(--bb-rl-border-warning-secondary-color);
}

@mixin bb-rl-notice--plain-error {
	background-color: var(--bb-rl-background-danger-secondary-color);
	border-color: var(--bb-rl-border-danger-secondary-color);
}

@mixin bb-rl-feedback {
	display: flex;
	align-items: center;
	padding: var(--bb-rl-space-100);
	border: 1px solid transparent;
	border-radius: var(--bb-rl-radius-md);
	font-size: var(--bb-rl-font-size-sm);
	font-weight: 500;
	background-color: var(--bb-rl-background-secondary-color);

	> [class*="bb-icons"] {
		margin-right: var(--bb-rl-space-100);
		font-size: 20px;
	}

	> p {
		margin: 0;

		+ p {
			margin-top: var(--bb-rl-space-100);
		}
	}
}

@mixin bb-rl-spinner {
	content: "";
	display: inline-block;
	height: 20px;
	width: 20px;
	border: 2px solid var(--bb-rl-border-quaternary-color);
	border-top-color: var(--bb-rl-border-tertiary-color);
	border-radius: var(--bb-rl-radius-full);
	animation: spin 3s infinite linear;
}

@mixin bb-rl-spinner--lg {
	height: 24px;
	width: 24px;
	border-width: 3px;
}

@mixin bb-rl-spinner--sm {
	height: 16px;
	width: 16px;
	border-width: 2px;
}
