/* Prevent Header Overlap */
.internal-estimates {
	margin-top: 30px;
}

.internal-estimates-fields-container select {
	min-height: 39px;
	line-height: 25px;
	-webkit-appearance: none;
	position: relative;
	border-radius: 3px;
	background: #fff;
}

.online-quote-form-field-select-container {
	position: relative;
}

.online-quote-form-field-select-container .fas {
	position: absolute;
	top: 15px;
	right: 12px;
}

.quote-error, .internal-estimates-quote_details-error,
.internal-estimates-quote_details-notice {
	display: none;
	font-weight: bold;
	color: #E53935;
}


.internal-estimates-fields-container .autocomplete_results {
	background: #efefef;
	margin: 0;
	z-index: 1;
	position: absolute;
	/*top: 97px;*/
	width: 100%;
	list-style: none;
}

.internal-estimates-fields-container .autocomplete_results li:first-of-type {
	padding-top: 6px;
}

.internal-estimates-fields-container .autocomplete_results li:last-of-type {
	padding-bottom: 6px;
}

.internal-estimates-fields-container .autocomplete_results li {
	padding: 0 12px;
}

.autocomplete_results li:hover, .autocomplete_results li:focus {
	background: #e4e1e1;
}

.results-overflow {
	overflow-y: scroll;
	max-height: 143px;
}

/* Overflow styling for search-results and mobile menu */
/* required for FireFox custom scrollbar styling */
.results-overflow {
	scrollbar-width: auto;
	scrollbar-color: #fff #e4e4e4;
}

/* Overflow scrollbar styling */
.results-overflow::-webkit-scrollbar {
	width: 15px;
}

.results-overflow::-webkit-scrollbar-track {
	background: #e4e4e4;
}

.results-overflow::-webkit-scrollbar-thumb {
	background: #3b86bd;
}

.results-overflow::-webkit-scrollbar-thumb:hover {
	background: #fff;
}


/* Spacing below comparison if estimate is ticked */
.multipage-airline-comparison ~ .multipage-estimate-step {
	margin-top: 45px
}

.multipage-row .row .row {
	background: #fff;
}

.multipage-estimate-step {
	margin: 0 auto;
	float: none !important;
}

/* Estimates itinerary and table */
.internal-estimates .col-md-9 {
	float: right;
}

.multipage-firm-urgent h4, .multipage-airline-comparison h4,
.internal-estimates-itinerary h4, .internal-estimates-table th,
.multipage-quote-directions h4 {
	font-weight: 900;
	letter-spacing: 1px;
	width: 100%;
	text-align: center;
	background-color: #3b86bd;
	color: #fff;
	padding: 7.5px;
	margin: 0;
}

.internal-estimates-fields-container {
	background: #fff;
	padding: 7.5px 10px;
}

.internal-estimates-fields-container input, .internal-estimates-fields-container select, #quote-estimates_fields-notes {
	margin: 0;
	padding: 0;
	border-radius: 3px;
	font-size: 14px;
	text-indent: 11px;
	font-weight: normal;
	box-shadow: none;
	display: block;
	padding: 6px !important;
}

.internal-estimates-fields-container .internal-estimates-fields-container-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 7.5px 0;
	flex-wrap: wrap;
}

.internal-estimates-fields-container label {
	max-width: 30%;
}

.internal-estimates-fields-container input, .internal-estimates-fields-container .online-quote-form-field-select-container {
	width: 70%;
}

.internal-estimates-fields-container select {
	width: 100%
}

.internal-estimates-quote_details, .multipage-estimate-new_estimate {
	display: none;
}

.internal-estimates-add_destination {
	display: none;
}

.internal-estimates-additional_destinations .internal-estimates-additional_destinations-remove {
	opacity: 0;
	transition: opacity 400ms ease-in-out;
	cursor: pointer;
}

.internal-estimates-additional_destinations .internal-estimates-fields-container-field:hover .internal-estimates-additional_destinations-remove {
	opacity: 1;
}

.internal-estimates-additional_destinations div:first-of-type .internal-estimates-additional_destinations-remove  {
	display: none;
}

.multipage-estimate-cta.multipage-estimate-estimates_itinerary, .multipage-estimate-new_estimate {
	width: 100%;
	margin: 0 !important;
}

.online-quote-form input[type=submit].multipage-estimate-quick_quote, .multipage-estimate-cta {
	margin-top: 15px !important;
	height: 38px;
	background-color: #3c87be;
	color: #fff;
	width: 100%;
	border: none;
	background-color: #3c87be;
	color: #fff;
	box-sizing: border-box;
	text-indent: 0 !important;
}

.multipage-estimate-cta:hover, .multipage-estimate-cta:active, .multipage-estimate-cta[disabled] {
		background-color: #444;
}

#itinerary_map {
	height: 250px;
	margin-top: 25px;
}

@media (max-width: 750px) {
	#itinerary_map {
		display: none;
	}
}

/* Position field autocomplete results list */
.internal-estimates-fields-container .internal-estimates-fields-container-field {
	position: relative;
}
.internal-estimates-fields-container .autocomplete_results {
	top: 35px;
}

/* Additional destinations */
.internal-estimates-destination_template {
	display: none;
}

/* Estimates Table */
.internal-estimates-table {
	background: #fff;
	width: 100%;
}

.internal-estimates-table thead {
	background-color: #3b86bd;
}

.internal-estimates-table th {
	width: auto;
}

/* Prevent jump by setting sizes for icons */
.internal-estimates-table thead .fas,
.internal-estimates-table thead .fa {
	width: 9.75px;
}

/* Hide .fa and .fas if no icon is set */
.internal-estimates-table thead .fa:not(.fa-sort),
.internal-estimates-table thead .fas:not(.fa-sort-up):not(.fa-sort-down) {
	display: none;
}

.internal-estimates-table th, .internal-estimates-table td {
	border-top: none;
}

.internal-estimates-table th, .internal-estimates-table td:not(.internal-estimates-table-image-cell) {
	padding: 0 5px;
}

.internal-estimates-table td {
	border: 1px solid #7C8293;
}

/* these have divs for styling reasons */
.internal-estimates-table th.internal-estimates-table-price div {
	width: 88px;

}
.internal-estimates-table th.internal-estimates-table-price_per_person div {
	width: 92px;
}

.internal-estimates-table th.internal-estimates-table-price div,
.internal-estimates-table th.internal-estimates-table-price_per_person div,
.internal-estimates-table th.internal-estimates-table-flight_time div,
.internal-estimates-table th.internal-estimates-table-pax div {
	display: flex;
	align-items: center;
	justify-content: center;
}


.internal-estimates-table th:first-of-type, .internal-estimates-table tr > td:first-of-type {
	border-left: none;
}

.internal-estimates-table th:last-of-type, .internal-estimates-table tr > td:last-of-type {
	border-right: none;
}

.internal-estimates-table .internal-estimates-table-quote {
	text-align: center;
	width: 75px;
	line-height: 1em;
}

.internal-estimates-table .internal-estimates-table-image {
	font-size: 30px;
	text-align: center;
}

.internal-estimates-table  td.internal-estimates-table-image-cell {
	max-width: 95px;
}

.internal-estimates-table .internal-estimates-table-image-cell img {
	width: 100%;
	height: 71px;
}

.internal-estimates-table input[type=checkbox] {
	margin: 0 auto;
	display: block;
	transform: scale(1.5);
}

.internal-estimates-table tbody td {
	text-align: right;
	font-size: 18px;
}

.internal-estimates-table tbody td.internal-estimates-table-pax,
.internal-estimates-table tbody td.internal-estimates-table-flight_time {
	text-align: center;
}


@media (max-width: 550px) {
	.multipage-estimate-cta {
		width: 100%;
	}

	.internal-estimates-table th, .internal-estimates-table td {
		font-size: 12px;
	}

	.internal-estimates-filters li {
		float: none;
		border: 1px solid #000 !important;
		margin: 2px 0;
	}
}

/* https://loading.io/css */
.estimate-ring {
	display: inline-block;
	position: relative;
	width: 60px;
	height: 60px;
}
.estimate-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 50px;
	height: 50px;
	margin: 6px;
	border: 6px solid #fff;
	border-radius: 50%;
	animation: estimate-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: #3b86bd transparent transparent transparent;
}
.estimate-ring div:nth-child(1) {
	animation-delay: -0.45s;
}
.estimate-ring div:nth-child(2) {
	animation-delay: -0.3s;
}
.estimate-ring div:nth-child(3) {
	animation-delay: -0.15s;
}
@keyframes estimate-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media (max-width: 650px) {
	.internal-estimates-table {
		background: transparent;
	}

	.internal-estimates-table thead {
		display: none;
	}

	.internal-estimates-table tbody {
		display: block;
	}

	.internal-estimates-table tr {
		display: flex;
		flex-direction: column;
		margin: 15px 0;
		background: #fff;
		padding: 15px;	
	}

	.internal-estimates-table tbody td {
		border: none;
		text-align: center;
		font-size: 1.2em;
		margin: 5px 0;
	}

	.internal-estimates.multipage-estimate-type-estimate .internal-estimates-table tr > td:first-of-type:before,
	.internal-estimates.multipage-estimate-type-quote .internal-estimates-table tr > td:first-of-type:before,
	.internal-estimates-table .internal-estimates-table-type:before,
	.internal-estimates-table .internal-estimates-table-price:before,
	.internal-estimates-table .internal-estimates-table-price_per_person:before,
	.internal-estimates-table .internal-estimates-table-pax:before,
	.internal-estimates-table .internal-estimates-table-flight_time:before {
		display: block;
		font-weight: bold;
	}


	.internal-estimates.multipage-estimate-type-estimate .internal-estimates-table tr > td:first-of-type:before {
		content: 'Select for Estimate:'
	}

	.internal-estimates.multipage-estimate-type-quote .internal-estimates-table tr > td:first-of-type:before {
		content: 'Select for Estimate:'
	}

	.internal-estimates-table tr > td:first-of-type {
		order: 7
	}

	.internal-estimates-table td.internal-estimates-table-image-cell {
		order: 1;
		max-width: none;
	}

	.internal-estimates-table td.internal-estimates-table-image-cell img {
		height: auto;
	}

	.internal-estimates-table .internal-estimates-table-type:before {
		content: 'Aircraft Type:';
	}
	
	.internal-estimates-table .internal-estimates-table-type {
		order: 2;
	}

	.internal-estimates-table .internal-estimates-table-price:before {
		content: 'Estimated Price (ex GST): $';
	}

	.internal-estimates-table .internal-estimates-table-price {
		order: 3;
	}
	.internal-estimates-table .internal-estimates-table-price_per_person:before {
		content: 'Price Per Person (ex GST): $';
	}

	.internal-estimates-table .internal-estimates-table-price_per_person {
		order: 4;
	}
	.internal-estimates-table .internal-estimates-table-pax:before {
		content: 'Max Passengers:';
	}

	.internal-estimates-table .internal-estimates-table-pax {
		order: 5;
	}

	.internal-estimates-table .internal-estimates-table-flight_time:before {
		content: 'Flight Time:';
	}

	.internal-estimates-table .internal-estimates-table-flight_time {
		order: 6;
	}
	.internal-estimates-table .internal-estimates-table-flight_time:after {
		content: ' hours';
		display: inline-block;
	}
}

/* Lity (lightbox) specific CSS */
.lity.lity-opened {
	z-index: 10000;
}

.lity.lity-opened .lity-close {
	font-size: 58px;
	position: absolute;
	background: rgba(59, 134, 189, 0.5);
}
