@import "../../../../themes/themes.style.scss";

$background: #f2f2f2;

.mb[search] {
	position: relative;
	width: 100%;
	max-width: 512px;
	z-index: 900;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;

	> .mb-ts-autocomplete {
		position: absolute;
		top: 20px;
		width: 100%;
		height: auto;
		background-color: $background;
		z-index: 500;
		border-bottom-right-radius: 10px;
		border-bottom-left-radius: 10px;
		overflow: hidden;
		will-change: transform, opacity;
		transform: translate3d(0%, -20px, 0%);
		opacity: 0;
		transition: transform 500ms ease, opacity 200ms linear;
		padding: 30px 0px 10px 0px;
		box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1), 0px 0px 70px rgba(0, 0, 0, 0.25);

		&.mb-tsa-active {
			transform: translate3d(0%, 0%, 0%);
			opacity: 1;
		}

		.mb-ts-autocomplete-title {
			width: 100%;
			height: 40px;
			position: relative;
			padding-right: 15px;
			padding-left: 15px;
			text-align: left;

			> .mb-ts-autocomplete-title-text {
				height: 40px;
				line-height: 40px;
				color: #333;

				@include themify(color, color1);

				background-color: $background;
				display: inline-block;
				padding-right: 20px;
				padding-left: 10px;
				z-index: 501;
				position: relative;
				font-weight: 700;
				font-size: 14px;
				user-select: none;
			}

			> .mb-ts-autocomplete-title-line {
				width: calc(100% - 45px);
				height: 1px;
				background-color: #333;

				@include themify(background-color, color1);

				position: absolute;
				top: 50%;
				left: 15px;
				right: 25px;
				transform: translateY(-50%);
				z-index: 500;
				user-select: none;
			}
		}

		> .mb-ts-autocomplete-notfound {
			width: 100%;
			padding: 15px;
			font-weight: 400;
			font-size: 14px;
			color: #ccc;
			@include themify(color, neutral2);

			> .mb-ts-autocomplete-notfound-search {
				font-weight: 700;
				word-wrap: break-word;
				color: #333;

				@include themify(color, color1);
			}
		}
	}
}


.alert-message-box {
    text-align: left;

  .alert-message {
    background: #dc3545;
    width: 60%;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: .25rem;
    text-align: center;
    border: .1rem solid darken($color:#dc3545, $amount: 10);;
  }
}

