.overlay
	background-color rgba(#212d3b, 0.53)
	position fixed
	top 0
	left 0
	right 0
	bottom 0
	z-index 3
	visibility hidden
	opacity 0
	@extend .transition
	&_active
		visibility visible
		opacity 1

.modal
	position fixed
	z-index 3
	top 0
	left 0
	bottom 0
	right 0
	padding 30px 15px
	text-align center
	overflow auto
	-webkit-overflow-scrolling touch
	-ms-overflow-style -ms-autohiding-scrollbar
	backface-visibility hidden
	visibility hidden
	opacity 0
	@extend .transition
	+below(xs)
		padding-bottom 0
	&::before
		content ''
		display inline-block
		vertical-align middle
		height 100%
		margin-right -0.25em
	&_active
		visibility visible
		opacity 1
	&_extra-large
		.modal__content
			max-width 1100px
	&_large
		.modal__content
			max-width 1030px
	&_medium
		.modal__content
			max-width 535px
			padding 70px 55px
			+below(xs)
				padding 45px 20px
	&_small
		.modal__content
			max-width 495px
			padding 70px 55px
			+below(xs)
				padding 45px 20px
	&__content
		display inline-block
		vertical-align middle
		position relative
		text-align left
		border-radius 5px
		background-color #fff
		width 100%
	&__close
		@extend .btn-reset
		position absolute
		top 0
		right 0
		padding 15px
		border-radius 0 5px 0 0
		&:hover
			.svg
				stroke #8c9695
	&__head
		margin-bottom 15px
	&__footer
		margin-top 40px
		.btn
			padding-top 17px
			padding-bottom 17px
			min-height 0
			+below(xs)
				padding-top 10px
				padding-bottom 10px
				font-size 14px
	&__img
		display block
		margin 0 auto 40px
	&__title
		font-size 22px
		font-family Circe-Bold
		letter-spacing 0.6px
		line-height 1.55
		text-align center
		+below(xs)
			font-size 16px
			line-height 1.31
			letter-spacing 0.2px
	&__text
		font-family Circe-Light
		line-height 1.75
		letter-spacing 0.4px
		text-align center
		color #3e4141
		+below(xs)
			font-size 15px
			line-height 1.47
			letter-spacing 0.2px

.event-modal
	&__left
		width 360px
		display table-cell
		vertical-align middle
		+below(1100px)
			display none
	&__img
		height 460px
		background-position center
		background-size cover
		border-radius 5px 0 0 5px
	&__right
		padding 0 50px
		display table-cell
		vertical-align middle
		+below(1100px)
			width 100%
			padding 50px
		+below(xs)
			padding 45px 20px
	&__title
		font-family Circe-Bold
		font-size 30px
		letter-spacing 0.8px
		color #212d3b
		+below(xs)
			font-size 22px
			.svg
				position relative
				top 2px
	&__date-time
		margin-top 20px
		+below(xs)
			margin-top 10px
	&__date
	&__time
		display inline-block
		vertical-align middle
		font-family Circe-Light
		font-size 20px
		letter-spacing 0.1px
		color #839494
		+below(xs)
			font-size 16px
		+below(450px)
			display block
	&__date
		.svg
			position relative
			top 1px
			+below(xs)
				top 2px
	&__time
		margin-left 30px
		+below(450px)
			margin-left 0
		.svg
			position relative
			top 2px
			+below(xs)
				top 3px
	&__description
		margin-top 35px
		font-size 20px
		letter-spacing 0.2px
		color #656b6b
		line-height 1.5
		+above(1100px)
			padding-right 15px
			max-height 232px
			overflow-y auto
			@extend .scrollbar-gray
		+below(xs)
			margin-top 20px
			font-size 15px
			font-family Circe-Light

.reserve
	display flex
	flex-wrap wrap
	&__left
		display flex
		flex-direction column
		width 57.5%
		border-right 1px solid #eff2f2
		+below(1150px)
			width 100%
			border-right none
	&__legend
		display flex
		flex-wrap wrap
		align-items content
		justify-content center
		border-bottom 1px solid #eff2f2
		text-align center
		padding 30px 15px
		&-item
			margin 0 25px
			+below(xs)
				margin 10px 10px 0
		&-color
			float left
			margin-right 10px
			width 14px
			height 14px
			border-radius 50%
			border 1px solid #000
			position relative
			top 1px
			+below(xs)
				width 8px
				height 8px
				top 3px
				margin-right 5px
			&_white
				background-color #fff
			&_blue
				background-color #9de0eb
			&_green
				background-color #99cf6b
			&_gray
				background-color #a9bbba
		&-name
			float left
			font-size 16px
			font-family Circe-Light
			letter-spacing 0.4px
			color #3e4141
			+below(xs)
				font-size 14px
	&__calendar
		padding 30px 50px
		height calc(100% - 81px)
		display flex
		flex-direction column
		+below(xs)
			padding 30px 0
		&-body
			margin-top 20px
			height 100%
			position relative
			.reserve__row
				&:last-child
					&_available
						&:hover
							border-bottom-color #f3f5f5
					&_your
						&:hover
							border-bottom-color #9cdfeb
						&.reserve__day_disabled
							border-bottom-color #d3eff5
					&_waitlist
						&:hover
							border-bottom-color #98d07d
						&.reserve__day_disabled
							border-bottom-color #d5f4c2
					&_off
						&:hover
							border-bottom-color #a9bbba
						&.reserve__day_disabled
							border-bottom-color #a9bcbb
	&__blocked
		text-align center
		font-size 30px
		font-family Circe-Bold
		letter-spacing .6px
		+above(1150px)
			position absolute
			top 50%
			left 50%
			transform translate(-50%, -50%)
			width 100%
			margin-top -50px
		+below(xs)
			padding 0 15px
			font-size 27px
			letter-spacing 0.4px
	&__month
		display flex
		align-items center
		justify-content center
		&-prev
		&-next
			@extend .btn-reset
			position relative
			top -1px
			padding 10px
		&-prev
			transform rotate(90deg)
			margin-right 2px
		&-next
			margin-left 2px
			transform rotate(-90deg)
		&-title
			font-size 24px
			font-family Circe-Bold
			letter-spacing 0.6px
			text-align center
	&__year
		font-size 14px
		font-family Circe-Light
		letter-spacing 0.7px
		text-align center
		color #a0a0a0
		margin-top 12px
		margin-bottom 30px
	&__row
		display flex
	&__day
		width calc(100% / 7)
		height 63px
		position relative
		background-color #fff
		border 1px solid transparent
		border-bottom-color #fff
		border-right-color #fff
		@extend .transition
		+above(lg)
			&:hover
				.reserve__check
					opacity 1
		+below(xs)
			height 50px
		&-number
			position absolute
			top 10px
			left 10px
			font-family Circe-Light
			letter-spacing 0.4px
			color #222e3c
			+below(xs)
				top 7px
				left 7px
				font-size 12px
		&-name
			font-size 14px
			letter-spacing 0.4px
			text-align center
			color #a0a0a0
			text-transform uppercase
			float left
			width 14.28571428571429%
			+below(xs)
				font-size 12.5px
		&_available
			&:hover
				background-color rgba(#083a3a, 0.05)
				&:last-child
					border-right-color #f3f5f5
			&.reserve__day_disabled
				.reserve__check
					opacity 0
					cursor default
				&:hover
					background-color #fff
		&_booked
			background-color rgba(#57c9dd, 0.3)
			&:last-child
				border-right-color #cbeff5
			//&:hover
			//	background-color rgba(#57c9dd, 0.58)
			//	&:last-child
			//		border-right-color #9cdfeb
			//&.reserve__day_disabled
			//	&:hover
			//		background-color rgba(#57c9dd, 0.3)
		&_busy
			background-color rgba(#5fd916, 0.3)
			&:last-child
				border-right-color #cef4c1
			//&:hover
			//	background-color rgba(#50ad00, 0.58)
			//	&:last-child
			//		border-right-color #98d07d
			//&.reserve__day_disabled
			//	&:hover
			//		background-color rgba(#5fd916, 0.3)
		&_off
			background-color #a9bbba
			&:last-child
				border-right-color #a9bbba
		&_disabled
			opacity 0.2
	&__check
		position absolute
		top 0
		left 0
		bottom 0
		right 0
		cursor pointer
		opacity 0
		@extend .transition
		.svg
			display block
			position absolute
			top 50%
			left 50%
			transform translate(-50%, -3px)
			stroke #b1bebd
			pointer-events none
			+below(xs)
				width 15px
				height 12px
				top auto
				left auto
				transform translate(0, 0)
				bottom 7px
				right 7px
		&_checked
			opacity 1
			.svg
				stroke #51ad01
	&__right
		width 42.5%
		border-left 1px solid #eff2f2
		margin-left -1px
		+below(1150px)
			width 100%
			border-left none
			margin-left 0
		&-content
			padding 30px 50px
			+below(xs)
				padding 30px 15px
		&-head
		&-body
			border-bottom 1px solid #eff2f2
	&__description
		font-size 14px
		font-family Circe-Light
		letter-spacing 0.1px
		color #6b7272
	.tags
		margin-top 20px
	.btns
		margin-top 15px
		display flex
		justify-content space-between
		.btn
			min-width 126px
			+below(xs)
				min-width 112px
				font-size 14px
				min-height 0

.modal_cancel-stall
.modal_cancel-stall2
	.modal__body
		font-family Circe-Bold
		font-size 22px
		line-height 1.55
		letter-spacing 0.6px
		text-align center
		+below(xs)
			font-size 16px
			line-height 1.33
	.modal__footer
		display flex
		justify-content center
		+below(xs)
			margin-top 20px
		.btn
			margin 0 10px
			padding 16px 40px 15px
			+below(xs)
				padding 9px 30px 8px
