
html {
	height: 100%;
}

body.popupActive {
}

.popupWindow {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	background-color: #aaa;
	background-color: rgba(0, 0, 0, 0.7);
}

.popupWindowContent {
	position: absolute;
	background-color: #f2f2f2;
	width: 720px;
	height: 500px;
	top: 50%;
	left: 50%;
	margin-left: -360px;
	margin-top: -250px;
	padding: 20px;
	border-radius: 8px;
}

.periodsContainer {
	overflow-y: auto;
	padding-left: 20px;
	padding-top: 11px;
	margin-top: -11px;
	margin-left: -20px;
}

.periodItem {
	margin-top: 50px;
}

.periodItem:first-child {
	margin-top: 0;
}

.periodGroup {
	clear: both;
	margin-bottom: 10px;
}
	.periodGroup .period {
		float: left;
		padding: 10px;
		background-color: #5c3995;
		color: #fff;
		margin-right: 10px;
		position: relative;
		cursor: default;
		width: 45px;
	}

	.periodGroup .period.quarter-year {
		width: 155px;
	}

	.periodGroup .period.half-year {
		width: 155px;
	}

	.periodGroup .period.year {
		width: 155px;
	}

	.period .period-counter {
		position: absolute;
		width: 22px;
		height: 22px;
		background-color: #f47466;
		top: -11px;
		left: -11px;
		display: none;
		border-radius: 11px;
		z-index: 1;
		text-align: center;
		line-height: 1.9;
		font-size: 12px;
	}

	.period-controls {
		position: absolute;
		display: none;
		right: 0;
		top: 0;
		width: 24px;
		height: 36px;
		background-color: #ccc;
		-moz-user-select: -moz-none;
		-khtml-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}

	.periodGroup .period:hover .period-counter,
	.periodGroup .period:hover .period-controls {
		display: block;
	}

	.periodGroup .period .period-counter.nonZero {
		display: block;
	}

		.period-controls .period-add,
		.period-controls .period-sub {
			position: absolute;
			cursor: pointer;
			display: block;
			width: 20px;
			height: 15px;
			top: 2px;
			right: 2px;
			background-color: #8ebbe6;
			color: #fff;
			line-height: 1;
			font-size: 14px;
			text-align: center;
		}

		.period-controls .period-sub {
			top: 19px;
		}

		.period-controls .period-add:hover,
		.period-controls .period-sub:hover {
			background-color: #7daad5;
		}

		.period-controls .period-add:active,
		.period-controls .period-sub:active {
			background-color: #6c99c4;
		}

		.period-controls .period-add.disabled,
		.period-controls .period-sub.disabled {
			opacity: 0.3;
			background-color: #8ebbe6;
		}

.poupTitle {
	color: #5c3995;
	font-size: 22px;
	line-height: 1.1;
	margin-bottom: 20px;
}

.popupButtons {
	float: right;
	margin-top: 20px;
}

	.popupButton {
		border-radius: 8px;
		float: left;
		margin-left: 10px;
		cursor: pointer;
		color: #fff;
		padding: 10px 20px;
	}

	.popupCancelButton {
		background-color: #5c3995;
	}

	.popupAcceptButton {
		background-color: #f47466;
	}

	.popupAcceptButton.disabled {
		opacity: 0.3;
		cursor: default;
	}

.periodsContainer .periodLabel {
	display: none;
	padding-bottom: 13px;
	padding-left: 35px;
	font-size: 18px;
	padding-top: 15px;
	border-top: 2px solid #fff;
	margin-bottom: 0;
}

	.periodsContainer .periodLabel.available {
		display: block;
	}

.periodsContainer.periodsContainerMultiple .periodLabel.available ~ .periodLabel.available,
.periodsContainer.periodsContainerMultiple .periodLabel {
    display: block;
    padding-top: 0;
  }

	.periodsContainer .available {
		padding-top: 0;
		border-top: 0 solid #fff;
	}

	.periodsContainer .periodLabel.available ~ .periodLabel.available {
		padding-top: 15px;
		border-top: 2px solid #fff;
	}

	.periodsContainer .periodLabel input {
		margin: 0;
		margin-right: -18px;
		position: relative;
		left: -25px;
	}

	.periodsContainer .period {
		border: 2px solid #ccc;
		padding: 8px 8px;
		margin-right: 1px;
		font-size: 15px;
		display: inline-block;
		margin-top: 5px;
		min-width: 48px;
		text-align: center;
	}

	.periodsContainer .period:hover {
		background-color: #5c3995;
		cursor: pointer;
		color: #fff;
	}

	.periodsContainer .period:active,
	.periodsContainer .period.active {
		background-color: #5c3995;
		border: 2px solid #5c3995;
		color: #fff;
	}

	.periodLabelCotent {
		display: inline-block;
		vertical-align: top;
	}

	.periodLabelPrice {
		color: #f37465;
	}

	.periodLabelInfo {
		min-width: 200px;
		display: inline-block;
	}

	.periodDiscountIcon {
		width: 35px;
		height: 35px;
		/* border-radius: 18px; */
		display: block;
		float: right;
		/* background-color: #f37465; */
		margin-top: -6px;
		color: #fff;
		font-size: 12px;
		line-height: 35px;
		text-align: center;
		background: url(../images/icon-off.png) no-repeat 0 0 transparent;
	}

	.periodGiftIcon {
		width: 35px;
		height: 35px;
		display: block;
		float: right;
		margin-top: -6px;
		color: #fff;
		background: url(../images/icon-gift.png) no-repeat 0 0 transparent;
		position: relative;
	}

		.periodGiftIcon .giftTip {
			display: none;
			position: absolute;
			background-color:  #5c3995;
			right: 35px;
			border-radius:  18px;
			padding: 10px 10px;
			font-size: 12px;
			white-space: nowrap;
			bottom: 0;
		}

		.giftTip a {
			color: #fff;
			text-decoration: underline;
			display: block;
			line-height: 2;
		}

		.giftTip a:hover {
			color: #fff;
			text-decoration: none;
		}

		.periodGiftIcon:hover .giftTip {
			display: block;
		}

		.periodGiftIcon .emptyTip {
			display: none!important;
		}

		.giftLink {
			cursor: pointer;
		}

	.gifts-wrapper-title {
		color: #5c3995;
		font-size: 18px;
		margin-bottom: 10px;
	}

	.oldPrice {
		text-decoration: line-through;
		color: #231f20;
		font-size: 14px;
	}
