@import "variables";
.p-info-faq {
	h1 {
		margin-bottom: 32px;
		font-size: 56px;
		font-weight: bold;
		color: #333;
		text-align: center;
		@media(max-width: 991px){
			margin-bottom: 24px;
			font-size: 42px;
		}
		@media(max-width: 575px){
			margin-bottom: 16px;
			font-size: 32px;
			text-align: left;
		}
	}
	.faq-tabs {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		max-width: 680px;
		margin: 0 -4px 24px;
		padding: 0;
		list-style: none;
		@media(min-width: 992px){
			justify-content: center;
			margin: 0 auto 32px;
		}
		& > li {
			padding: 4px;
			&.active {
				.tab {
					background: $blue;
					color: $white;
				}
			}
		}
		a {
			border-bottom-color: transparent;
			font-size: 14px;
			font-weight: 500;
			white-space: nowrap;
			&:hover {
				border-bottom-color: $blue;
			}
		}
		.tab {
			background: #eaf3fb;
			border: 0;
			display: block;
			padding: 8px 20px;
			color: #333;
			@include border-radius(30px);
			@media(max-width: 991px){
				padding: 6px 16px;
			}
			@media(max-width: 575px){
				padding: 3px 12px;
			}
			&:hover {
				background: #d5e6f6;
			}
			&.active {
				background: $blue;
				color: $white;
			}
		}
	}
	.faq-content {
		max-width: 880px;
		margin-left: auto;
		margin-right: auto;
		//margin-bottom: 48px;
		&.in {
			.faq-item {
				opacity: .5;
			}
		}
	}
	.faq-section {
		.faq-section__head {
			margin-bottom: 8px;
			font-size: 22px;
			font-weight: bold;
			color: #333;
		}
		.faq-section__body {}
		& + .faq-section {
			margin-top: 32px;
		}
	}
	.faq-return {
		margin-top: 16px;
		font-weight: bold;
		display: none;
		a {
			border-bottom-color: transparent;
			&:hover {
				border-bottom-color: $blue;
			}
		}
		&.in {
			display: block;
		}
	}
	.faq-item {
		position: relative;
		.faq-item__head {
			font-size: 16px;
			.toggle {
				&:hover {
					color: $blue;
					cursor: pointer;
				}
			}
			.fa {
				margin-left: 4px;
			}
		}
		.faq-item__body {
			display: none;
			max-width: 660px;
			padding-top: 4px;
			padding-bottom: 8px;
			font-size: 14px;
		}
		.faq-item-copy {
			position: absolute; top: 8px; right: 12px;
			font-size: 18px;
			color: #7E93B2;
			@include transform(rotateX(180deg));
			@media(max-width: 575px){
				top: auto;
				bottom: 8px;
			}
			&:hover {
				cursor: pointer;
			}
		}
		.popover {
			.popover-content {
				font-size: 12px;
				white-space: nowrap;
			}
		}
		&.in {
			padding: 8px 12px;
			margin-left: -8px;
			margin-right: -8px;
			opacity: 1 !important;
			@include box-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
			@media(max-width: 575px){
				padding-bottom: 20px;
			}
			.faq-item__head {
				font-weight: bold;
				color: $blue;
				.fa {
					@include transform(rotate(180deg));
				}
			}
			.faq-item__body {
				display: block;
			}
		}
		& + .faq-item {
			margin-top: 8px;
		}
		&:hover {
			opacity: 1 !important;
		}
	}
}