@import "variables";

.b-annr-backdrop {
	background: rgba(0,0,0,.75);
	position: fixed; top: 0; right: 0; bottom: 0; left: 0;
	z-index: 9998;
	visibility: hidden;
	opacity: 0;
	@include transition();
}
.b-annr-menu {
	background: $blue_lighter;
	position: fixed;
	top: 0;
	left: -100%;
	//right: 40px;
	z-index: 9999;
	display: block;
	width: 100%;
	max-width: 1200px;
	height: 100%;
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	@include transition();
	.b-annr-menu__head {
		padding: 8px 16px;
		font-size: 32px;
		font-weight: bold;
		@media( max-width: 767px){
			font-size: 24px;
		}
	}
	.b-annr-menu__body {
		padding: 16px;
	}
	.b-annr-menu__list {
		margin: 0 -8px;
		padding: 0;
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		& > li {
			width: 33.3333%;
			margin-bottom: 24px;
			padding: 0 8px;
			@media (max-width: 991px) {
				width: 50%;
			}
			@media (max-width: 575px) {
				width: 100%;
			}
			a {
				.img-block {
					border: 1px solid $color_gray_20;
					@include box-shadow(0 0 8px rgba(0,0,0,.25));
				}
				&:hover {
					.img-block {
						border: 1px solid $blue;
						@include box-shadow(13 97 171px rgba(0,0,0,.25));
					}
				}
			}
			&.active {
				a {
					border: 0;
					color: $color_red;
					.img-block {
						border: 1px solid $color_red;
						@include box-shadow(0 0 8px rgba(215,10,10,.5));
					}
				}
			}
		}
	}
}

.bannrMenuIsOpen {
	overflow: hidden;
	.b-annr-backdrop {
		visibility: visible;
		opacity: 1;
	}
	.b-annr-menu {
		visibility: visible;
		opacity: 1;
		left: 0;
	}
}

.b-annr-options {
	background: $blue_lighter;
	border: 1px solid $blue_lighter;
	display: flex;
	margin-bottom: 24px;
	padding: 16px;
	@include border-radius();
	.b-annr-options__menu {
		a {
			border: 0;
			display: block;
			line-height: 52px;
			font-size: 36px;
			&:hover {
				color: $color_gray_80;
			}
		}
	}
	.b-annr-options__lang {
		border-left: 1px solid $color_gray_20;
		margin-left: 16px;
		padding-left: 16px;
	}
	.b-annr-options__settings {
		border-left: 1px solid $color_gray_20;
		margin-left: 16px;
		padding-left: 16px;
	}
}

//
.b-options {
	.b-options__shadow {
		background: $color_black;
		position: fixed; top: 0; bottom: 0; left: 0; right: 0;
		z-index: 998;
		visibility: hidden;
		opacity: 0;
		@include transition();
	}
	.b-options__toggle {
		background: $blue;
		position: absolute; top: 50%; right: -56px;
		display: block; width: 48px; height: 48px;
		margin-top: -24px;
		font-size: 24px;
		line-height: 48px;
		text-align: center;
		color: $white;
		@include border-radius(0 6px 6px 0);
		&:hover {
			background: darken($blue, 10%);
			cursor: pointer;
		}
	}
	.b-options__box {
		border-top: 8px solid $blue;
		border-right: 8px solid $blue;
		border-bottom: 8px solid $blue;
		position: fixed; top: 50px; left: -330px;
		z-index: 999;
		width: 330px;
		@include transition();
		@include border-radius(0 6px 6px 0);
		.b-options__head {
			background: $color_blue;
			position: relative; z-index: 5;
			padding: 0 24px;
			color: $color_white;
			.title {
				padding: 8px 0 16px;
				font-size: 18px;
				font-weight: bold;
			}
		}
		.b-options__body {
			background: $color_gray_05;
			border: 1px solid $color_gray_20;
			border-top: none;
			position: relative; z-index: 1;
			max-height: 500px;
			overflow-y: auto;
			padding: 24px;
			@include border-radius(0 0 6px 0);
		}
	}

	&.active {
		.b-options__shadow {
			visibility: visible;
			opacity: 0.75;
		}
		.b-options__box {
			left: 0;
		}
	}
}

.b-options-banners {
	margin: 0; padding: 0; list-style: none;
	& > li {
		border-top: 1px solid $color_gray_10;
		padding: 24px 0;
		&:first-child { padding-top: 0; border: none; }
		&:last-child { padding-bottom: 0; }
	}

	.banner {
		position: relative;
		/*.form-check {
			margin-bottom: 8px;
			label { font-weight: bold; }
		}*/
		.icobox {
			//margin-bottom: 8px;
			.ico {
				top: -3px;
				border: none;
				color: $color_gray_50;
			}
			.banner-link {
				border-bottom-color: transparent;
				font-weight: bold;
				&:hover {
					border-bottom-color: $blue;
				}
			}
		}
		.list-inline {
			margin-top: 8px;
			margin-bottom: 0;
		}

		&.active {
			.icobox {
				.ico { color: $color_blue; }
			}
		}
	}
}

.b-annr-container {
	display: none;
	.b-annr-type {
		display: none;
		&.active {
			display: block;
		}
	}
	&.active {
		display: block;
	}
}