.notif {
	@extend %posRelative;
	.notif-count {
		@extend %posAbsolute;
		font-size: 11px;
		top: 2px;
		margin: 0;
		text-align: center;
		padding: 1px 4px;
		border-radius: 5px;
		color: var(--white);
		background-color: var(--red);
		font-family: var(--monospace);
		@include user-select(none);
		pointer-events: none;
		&.no-count {
			padding: 0;
			border-radius: 50%;
			min-width: inherit !important;
			width: 14px !important;
			height: 14px !important;
			left: calc(100% - 10px) !important;
			top: -5px !important;
			border-style: solid;
			border-width: 2px;
			border-color: var(--white);
		}
		&.left {
			left: 2px;
		}
		&.right {
			right: 2px;
		}
	}
}

.badge {
	padding: 3px 0;
	min-width: 10px;
	max-width: 130px;
	border-radius: 40px;
	height: 21px;
	display: inline-flex;
	align-items: center;
	@extend %fw-6;
	@extend %fs10;
	text-align: center;
	text-shadow: none;
	background: transparent;
	margin: 2px;
	background-color: var(--blue);
	color: var(--white);
	position: relative;
	&.chips {
		max-width: max-content;
	}
	span,
	p {
		padding: 0 6px;
		margin-left: 5px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	&:first-child {
		margin-right: 0;
	}
	.dismiss {
		width: 17px;
		color: var(--white);
		cursor: pointer;
		background-color: var(--black-alpha2);
		padding: 2px;
		margin-right: 2px;
		border-radius: 50%;
		@extend %transitionAll300;
		&:hover {
			background-color: var(--black-alpha5);
			transform: scale(1.5);
		}
	}
	&.badge-xs {
		padding: 4px;
		i,
		span {
			font-size: 10px;
		}
	}
	&.badge-sm {
		padding: 4px 5px;
		i,
		span {
			font-size: 13px;
		}
	}
	&.badge-md {
		padding: 5px 7px;
		i,
		span {
			font-size: 16px;
		}
	}
	&.badge-lg {
		padding: 6px 9px;
		i,
		span {
			font-size: 18px;
		}
	}
	&.badge-xl {
		padding: 7px 11px;
		i,
		span {
			font-size: 20px;
		}
	}
	&.notif {
		.notif-count {
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 0;
			top: -10px;
			left: calc(100% - 15px);
			z-index: 1;
			overflow: hidden;
			&[class*="icon"] {
				&:before {
					margin: 0;
				}
			}
		}
		&.rad-circle {
			> i {
				&:before {
					margin: 0 !important;
				}
			}
		}
		&.badge-xs {
			padding: 7px;
			.notif-count {
				// line-height: 20px;
				height: 21px;
				width: 21px;
			}
		}
		&.badge-sm {
			padding: 9px;
			.notif-count {
				// line-height: 23px;
				height: 24px;
				width: 24px;
			}
		}
		&.badge-md {
			padding: 11px;
			.notif-count {
				// line-height: 26px;
				height: 27px;
				width: 27px;
			}
		}
		&.badge-lg {
			padding: 13px;
			.notif-count {
				// line-height: 29px;
				height: 30px;
				width: 30px;
			}
			&.rad-circle {
				.no-count {
					top: -2px !important;
				}
			}
		}
		&.badge-xl {
			padding: 15px;
			.notif-count {
				// line-height: 31px;
				height: 33px;
				width: 33px;
			}
			&.rad-circle {
				.no-count {
					top: 0px !important;
				}
			}
		}
	}
}

.badge-image {
	border-radius: 4px;
	width: fit-content;
	display: inline-flex;
	border: 1px solid var(--gray);
	overflow: hidden;
	&.badge-xs {
		line-height: 20px;
		font-size: 10px;
		span {
			padding: 0 4px;
		}
		img {
			height: 20px;
		}
	}
	&.badge-sm {
		line-height: 25px;
		font-size: 12px;
		span {
			padding: 0 6px;
		}
		img {
			height: 25px;
		}
	}
	&.badge-md {
		line-height: 35px;
		font-size: 14px;
		span {
			padding: 0 8px;
		}
		img {
			height: 35px;
		}
	}
	&.badge-lg {
		line-height: 40px;
		font-size: 16px;
		span {
			padding: 0 9px;
		}
		img {
			height: 40px;
		}
	}
	&.badge-xl {
		line-height: 45px;
		font-size: 18px;
		img {
			height: 45px;
		}
		span {
			padding: 0 10px;
		}
	}
}

.input-badge {
	padding: 4px 10px;
	width: fit-content;
	border-radius: 4px;
	@extend %posRelative;
	font-size: 11px;
	&.top {
		margin: 15px 0;
		&:before {
			content: "";
			@extend %posAbsolute;
			left: 50%;
			top: -5px;
			height: 10px;
			width: 10px;
			background: var(--red);
			transform: translateX(-50%) rotate(43deg);
		}
		&:after {
			content: "";
			@extend %posAbsolute;
			left: 50%;
			top: -4px;
			height: 10px;
			width: 10px;
			background: var(--white);
			transform: translateX(-50%) rotate(43deg);
			z-index: 1;
		}
	}
	&.bottom {
		margin: 15px 0;
		&:before {
			content: "";
			@extend %posAbsolute;
			left: 50%;
			bottom: -5px;
			height: 10px;
			width: 10px;
			background: var(--red);
			transform: translateX(-50%) rotate(43deg);
		}
		&:after {
			content: "";
			@extend %posAbsolute;
			left: 50%;
			bottom: -4px;
			height: 10px;
			width: 10px;
			background: var(--white);
			transform: translateX(-50%) rotate(43deg);
			z-index: 1;
		}
	}
	&.left {
		margin: 15px 15px 15px 0;
		display: inline-block;
		&:before {
			content: "";
			@extend %posAbsolute;
			top: 50%;
			right: -5px;
			height: 10px;
			width: 10px;
			background: var(--red);
			transform: translateY(-50%) rotate(43deg);
		}
		&:after {
			content: "";
			@extend %posAbsolute;
			top: 50%;
			right: -4px;
			height: 10px;
			width: 10px;
			background: var(--white);
			transform: translateY(-50%) rotate(43deg);
			z-index: 1;
		}
	}
	&.right {
		margin: 15px 0 15px 15px;
		display: inline-block;
		&:before {
			content: "";
			@extend %posAbsolute;
			top: 50%;
			left: -5px;
			height: 10px;
			width: 10px;
			background: var(--red);
			transform: translateY(-50%) rotate(43deg);
		}
		&:after {
			content: "";
			@extend %posAbsolute;
			top: 50%;
			left: -4px;
			height: 10px;
			width: 10px;
			background: var(--white);
			transform: translateY(-50%) rotate(43deg);
			z-index: 1;
		}
	}
}

.corner-badge {
	margin-bottom: 20px;
	display: inline-block;
	@extend %posRelative;
	.icon {
		height: 20%;
		width: 20%;
		@extend %posAbsolute;
		top: 0px;
		clip-path: polygon(0 0, 0% 100%, 100% 0);
		i {
			@extend %posAbsolute;
			top: 10%;
			left: 10%;
		}
	}
	&.right .icon {
		clip-path: polygon(100% 100%, 100% 0, 0 0) !important;
		right: 0px;
		i {
			left: unset;
			right: 10%;
		}
	}
}
