﻿.appCalculator {
	margin: 20px 0;
}
.formrow {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	align-items: center;
	flex-direction: row;
	white-space: nowrap;
	min-height: 40px;
	background-position: right center;
	background-repeat: no-repeat;
	padding-right: 72px;
	gap: 10px;
}
.eng .formrow, .rus .formrow {
	background-position: left center;
	padding-right: 0;
	padding-left: 72px
}
.new-calc .formrow {
	padding-right: 40px;
	margin-right: 20px;
}
.eng .new-calc .formrow, .rus .new-calc .formrow {
	padding-right: 0;
	margin-right: 0;
	padding-left: 40px;
	margin-left: 20px;
}
.location-wrapper {
	max-width: 100%;
	display: flex;
	flex-direction: column;
}
.locRow { min-height: 40px; }
.type-selector {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	width: 100%;
}
	.type-selector button {
		display: flex;
		gap: 15px;
		padding: 5px 10px 5px 20px;
		border-radius: 4px;
		cursor: pointer;
		background: #FFF;
		color: var(--main-text-color);
		border: 1px solid #aaa;
		font-size: 16px;
		align-items: center;
		justify-content: center;
		font-family: inherit;
		transition: all ease-in 0.1s;
	}
		.type-selector button:hover {
			background: var(--secondary-color);
		}
	.type-selector button .button-icon {
		width: 24px;
		height: 20px;
		background-size: contain;
		background-position: center center;
		background-repeat: no-repeat;
	}

.select-train .button-icon {
	background-image: url(/img/trainIconBig.png);
}
.select-address .button-icon {
	background-image: url(../img/positionIconBig.png);
	border-bottom: none;
}
.train-selected .select-train {
	background-color: var(--secondary-color);
}
.address-selected .select-address {
	background-color: var(--secondary-color);
}
.he .active input, .he .active .custom-select, .ar .active input, .ar .active .custom-select {
	border-top-right-radius: 0 !important;
}
.en .active input, .en .active .custom-select, .ru .active input, .ru .active .custom-select {
	border-top-left-radius: 0 !important;
}
.active input, .active select {
	font-weight: 600;
}
.active .type-selector {
	gap: 6px;
}
.active .type-selector button {
	font-size: 13px;
	padding-top: 3px;
	padding-bottom: 3px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	padding-right: 6px;
	padding-left: 12px;
	gap: 8px;
}
	.active .type-selector button .button-icon {
		width: 18px;
		height: 18px;
	}

	.destination {
		background: url(/img/destination.png) no-repeat right 12px;
		min-height: 66px;
	}
.train {
	background: url(/img/train.png) no-repeat right top;
	min-height: 52px;
}
.train:after {
	content: '.';
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
.checkcontainer {
	width: auto !important;
	display: flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin-left: 14px;
}
.checkcontainer input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
/* Create a custom radio button */
.checkmark {
	height: 18px;
	width: 18px;
	background-color: var(--input-background);
	border-radius: 50%;
	margin-left: 7px;
	position: relative;
}
.eng .checkmark, .rus .checkmark {
	margin-left: 0;
	margin-right: 7px;
}
.checkcontainer:hover input ~ .checkmark {
	background-color: #999;
}
.checkcontainer input:checked ~ .checkmark {
	background-color: var(--input-background);
}
.checkmark:after {
	content: '';
	position: absolute;
	display: none;
}
.checkcontainer input:checked ~ .checkmark:after {
	display: block;
}
.checkcontainer .checkmark:after {
	top: 5px;
	left: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #641c98;
}
.custom-select {
	position: relative;
	background-color: var(--input-background);
	border-radius: 4px;
}
.custom-select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	font-family: inherit;
	padding-left: 34px;
	background-color: transparent;
	position: relative;
	z-index: 20;
}
.custom-select select::-ms-expand {
	display: none; /* Hide the default arrow in Internet Explorer 10 and Internet Explorer 11 */
}
.eng .custom-select select, .rus .custom-select select {
	padding-left: 15px;
	padding-right: 34px;
}
.custom-select::after {
	content: '';
	width: 34px;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background: url(../img/custom-select-arrow.png) no-repeat center center;
	z-index: 10;
}
.eng .custom-select::after, .rus .custom-select::after {
	left: auto;
	right: 0;
}
.simpleCalculator .destination {
	padding-left: 180px;
	position: relative;
}
.inputDiv {
	display: inline-block;
	vertical-align: top;
	width: 48.8%;
	position: relative;
	flex-shrink: 0;
}
.simpleCalculator .inputDiv {
	width: 100%;
	margin-left: 0;
}
.calcButton,
.ravkavResultsButton {
	font-weight: bold;
	font-size: 18px;
	text-align: center;
	border: none;
	border-radius: 10px;
	min-width: 160px;
	float: left;
	cursor: pointer;
	transition-duration: 0.2s;
	font-family: inherit;
	-webkit-appearance: none;
	background-color: #f2e33c;
	color: #641c98;
	padding: 6px 16px;
	height: 36px;
	line-height: 1;
	margin-right: auto;
}
.calcButton:hover,
.ravkavResultsButton:hover {
	background-color: #b4bc1c;
}
.simpleCalculator .calcButton {
	float: none;
	position: absolute;
	left: 0;
	bottom: 0;
}
.err1,
.err2,
.err3 {
	font-size: 14px;
	color: red;
	display: none;
}
.formrow .err2 { margin-right: auto; }
.err1 {
	left: 5px;
	top: 4px;
	position: absolute;
}
.smallajaxloader {
	background-image: url(/img/smallajaxloader.gif);
	background-repeat: no-repeat;
	background-position: 4px center;
	padding-left: 20px;
}
.preloader {
	text-align: center;
	font-size: 14px;
	display: none;
	min-height: 130px;
	padding-top: 40px;
}
.priceTitle {
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
}
.priceVal {
	font-size: 28px;
	font-weight: 700;
}
.maxDaily {
	margin: 0 1.5%;
}
.showPriceDetails {
	position: absolute;
	left: 0;
	bottom: 0;
	line-height: 26px;
	padding: 3px 11px 3px 25px;
	border-top-right-radius: 15px;
	border-bottom-left-radius: 10px;
	background: #641c98 url(/img/lightbulb.png) no-repeat 5px
		center;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
}
.priceDetails {
	position: absolute;
	display: none;
	left: 4px;
	top: 100%;
	margin-top: 10px;
	background: #fff;
	padding: 14px;
	text-align: right;
	width: calc(100% - 8px);
	font-size: 14px;
	border-radius: 10px;
	border: 1px solid #ccc;
	box-shadow: 1px 1px 6px #00000038;
	z-index: 500;
}
.priceDetails::after,
.priceDetails::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
}
.priceDetails::before {
	top: -20px;
	left: 18px;
	border: 10px solid #ccc;
	border-right-color: transparent;
	border-top-color: transparent;
}
.priceDetails::after {
	top: -18px;
	left: 19px;
	border: 10px solid #fff;
	border-right-color: transparent;
	border-top-color: transparent;
}
.priceDetails ul {
	padding-right: 20px;
}
.results {
	padding-top: 20px;
	display: none;
}
.remark {
	font-size: 14px;
}
	.remark a {
		color: #641c98;
		text-decoration: underline;
	}
	.remark a:hover {
		text-decoration: none;
	}
.train-remark {
	position:absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #00000065;
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	transition: all 0.2s ease-in-out;
}
	.train-remark .remark {
		margin: 10px 0;
		border: 1px solid #FFF;
		padding: 20px 10px 20px 30px;
		border-radius: 10px;
		font-size: 19px;
		gap: 10px;
		display: flex;
		align-items: center;
		background: #FFF;
		box-shadow: 1px 1px 42px #00000065;
		position: relative;
		max-width: 780px;
	}

.train-remark.active {
	visibility: visible;
	opacity: 1;
}
.train-remark img {
	height: 50px;
}
.close-train-remark {
	background: none;
	border: none;
	color: var(--main-text-color);
	font-weight: 700;
	font-size: 20px;
	cursor: pointer;
	position: absolute;
	left: 10px;
	top: 5px;
}
.discounts {
	display: none;
	margin-top: 10px;
	border-top: 1px dashed var(--sub-color2);
	padding-top: 10px;
}
.distance {
	margin-bottom: 12px;
	background: url(/img/distance.png) no-repeat right center;
	padding-right: 62px;
}
.eng .distance, .rus .distance {
	padding-right: 0;
	padding-left: 62px;
	background-position-x: left;
}
.ravkavResultsHolder {
	margin-top: 24px;
	padding: 24px 0;
	border-top: 1px dashed var(--sub-color2);
	overflow: auto;
}
.ravkavResultsButton {
	width: auto;
}
.autoComplete-input {
	position: relative;
	width: 100%;
}
.pac-container {
	position: absolute;
	display: none;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
	font-size: 14px;
	padding: 4px;
	direction: rtl;
	text-align: right;
	color: var(--main-text-color);
	z-index: 1000;
}
.eng .pac-container, .rus .pac-container {
	direction: ltr;
	text-align: left;
}
.pac-container ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
	.pac-container ul li {
		padding: 6px 4px;
		border-top: 1px solid var(--input-background);
		cursor: pointer;
		border-radius: 2px;
	}
	.pac-container ul li:hover {
		background-color: var(--input-background);
	}
.pac-item-error {
	font-size: 13px;
	color: red;
	cursor: auto !important;
	text-align: center;
}
.pac-item-error:hover {
	background-color: #fff !important;
}
.currernt-location-button {
	height: 38px;
	padding-right: 5px;
	text-align: right;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	position: relative;
	background: #FFF;
	width: 100%;
	border-radius: 2px;
	z-index: 1001;
}
	.currernt-location-button:hover {
		background-color: var(--input-background);
	}
.eng .currernt-location-button, .rus .currernt-location-button {
	padding-right: 0;
	padding-left: 5px;
	text-align: left;
}
.currernt-location-button span {
	background: url(../img/currentLocation.png) no-repeat right center;
	padding-right: 22px;
}
.eng .currernt-location-button span, .rus .currernt-location-button span {
	background-position-x: left;
	padding-right: 15px;
	padding-left: 22px;
}
.current-loc {
	font-weight: 600;
}
.input-wrapper .clear-value {
	position: absolute;
	display: none;
	width: 26px;
	height: 35px;
	top: 0;
	left: 0;
	background: url(../img/clearX.png) no-repeat center center;
	cursor: pointer;
}
.eng .input-wrapper .clear-value, .rus .input-wrapper .clear-value {
	left: auto;
	right: 0;
}
.input-wrapper.active-value .location-search {
	padding-left: 26px;
}
.eng .input-wrapper.active-value .location-search, .rus .input-wrapper.active-value .location-search {
	padding-left: 15px;
	padding-right: 26px;
}
.input-wrapper.active-value .clear-value {
	display: block;
}

.formrow.location-row {
	background-image: url(../img/positionIconBig.png);
	margin-right: 20px;
}
.formrow.mid-location-row {
	background: url(../img/vdash.png) repeat-y right top;
	padding-top: 10px;
}
.formrow.train-row {
	background-image: url(../img/trainIconBig.png);
	margin-top: 24px;
}
.formrow.profile-row {
	background-image: url(../img/profileIconBig.png);
	margin-top: 24px;
	position: relative;
	background-position-y: 5px;
}
#addStopRow {
	background: url(../img/vdash.png) repeat-y right top;
	margin-bottom: 6px;
}
#addStopRow::after {
	content: '';
	position: absolute;
	right: 7px;
	bottom: -2px;
	width: 11px;
	height: 6px;
	background: url(../img/small-chevron-down.png) no-repeat center center;
}
.eng .formrow.mid-location-row, .eng #addStopRow, .rus .formrow.mid-location-row, .rus #addStopRow {
	background-position-x: left !important;
}
	.eng #addStopRow::after, .rus #addStopRow::after {
		right: auto;
		left: 7px;
	}
.add-stop {
	border: none;
	background: #FFFFFF;
	text-align: center;
	font-size: 13px;
	width: 100%;
	cursor: pointer;
	position: relative;
	color: #641c98;
	font-family: inherit;
}

	.add-stop .button-text {
		padding: 0 10px;
		background: #FFFFFF;
		position: relative;
		z-index: 10;
	}

	.add-stop .button-hr {
		width: 100%;
		height: 1px;
		background: #717480;
		position: absolute;
		top: 50%;
		left: 0;
		z-index: 5;
	}

	.add-stop:hover .button-text {
		font-weight: 600;
	}

	.add-stop:hover .button-hr {
		background: #641c98;
	}
.remove-stop {
	color: #ffffff;
	font-size: 13px;
	padding: 0 10px;
	border-radius: 4px;
	line-height: 32px;
	background: #641c98;
	cursor: pointer;
}
.active .remove-stop {
	align-self: end;
	margin-bottom: 1px;
}
.new-calc {
	margin-top: 20px;
}
.new-calc .formrow label {
	width: 125px;
}
.arab .new-calc .formrow label {
	width: 119px;
}
.eng .new-calc .formrow label, .rus .new-calc .formrow label {
	width: 154px;
}
.input-wrapper {
	flex: 1 1;
	width: 100%;
	max-width: 490px;
	position: relative;
}
	.input-wrapper input[type='text'], .input-wrapper select {
		width: 490px;
		max-width: 100%;
	}
.new-calc .results {
	transition: height 0.5s ease-out;
	height: 0;
	display: block;
	overflow: hidden;
	padding-top: 40px;
	margin-bottom: 20px;
}
.calculator-sub-title {
	margin-bottom: 20px;
}
.results-title {
	border-bottom: 1px solid var(--light-border);
	color: #641c98;
	font-weight: 600;
	font-size: 20px;
	text-align: center;
	margin-bottom: 40px;
}
	.results-title .results-title-text {
		display: inline-block;
		margin: auto;
		padding: 0 15px;
		background: #fff;
		position: relative;
		bottom: -13px;
	}
.ticketHolder {
	width: 100%;
}
.ticketData {
	background: #f2e33c;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	padding: 81px 15px 15px 15px;
	margin-top: -74px;
	position: relative;
	text-align: center;
	height: 100%;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ticketData a {
	text-decoration: underline;
}
.ticketData a:hover {
	color: inherit;
	text-decoration: none;
}
.showPriceComp {
	background: #641c98;
	color: #FFF;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 22px;
	line-height: 22px;
	font-size: 14px;
	position: relative;
	bottom: 5px;
	cursor: pointer;
	display: none;
}
.priceComp {
	position: absolute;
	padding: 6px;
	background: #fff;
	top: 30px;
	visibility: hidden;
	opacity: 0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--main-text-color);
	transform: translateX(-50%);
	left: 50%;
	box-shadow: 1px 1px 2px 0px rgb(0 0 0 / 35%);
	transition: all ease-in-out 0.2s;
}
.priceComp.active {
	opacity: 1;
	visibility: visible;
	top: 35px;
}
.priceComp::before {
	content: '';
	position: absolute;
	display: block;
	width: 0;
	z-index: 1;
	border-style: solid;
	border-color: #ffffff transparent;
	border-width: 0 10px 10px;
	top: -10px;
	left: 50%;
	margin-left: -10px;
}
.priceCompPart {
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 16px;
	white-space: nowrap;
}
.activeDays {
	text-decoration: underline;
	cursor: pointer;
}
.activeDays:hover {
	color: #641c98;
}
.new-calc .discounts {
	padding: 5px 0 0 0;
	margin: 5px 0 0 0;
	display: block;
/*	border-top: 1px solid #FFF;*/
	font-weight: 700;
}
.red-strike-out {
	position: relative;
	display: inline-block;
	vertical-align: baseline;
	font-weight: 700;
}
.red-strike-out::after {
	position: absolute;
	content: "";
	left: 0;
	top: 50%;
	right: 0;
	border-top: 1px solid #ff0000;
	-webkit-transform:rotate(-5deg);
	-moz-transform:rotate(-5deg);
	-ms-transform:rotate(-5deg);
	-o-transform:rotate(-5deg);
	transform:rotate(-5deg);
}
.betterOffer {
	display: block;
	font-weight: 700;
	color: #641c98;
	margin-top: 5px;
}
#profileDisclaimer {
	text-align: center;
	margin-bottom: 30px;
	margin-top: -24px;
	display: none;
	font-size: 18px;
}
.autocomplete-suggestions {
	cursor: default;
	background: #fff;
	box-shadow: 1px 1px 10px rgba(0,0,0,.4);
	position: absolute;
	display: none;
	z-index: 9999;
	max-height: 240px;
	overflow: hidden;
	overflow-y: auto;
	font-family: inherit;
	border-radius: 6px;
	text-align: right;
	width: 100%;
}
.en .autocomplete-suggestions, .ru .autocomplete-suggestions {
	text-align: left;
}

.autocomplete-suggestion {
	position: relative;
	padding: 2px 10px;
	line-height: 23px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #000;
}
	.autocomplete-suggestion b {
		color: #694a97;
	}
	.autocomplete-suggestion.selected {
		background: #e7e7e7;
	}
.err-window {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #FFFFFF64;
	align-items: center;
	justify-content: center;
	display: none;
	z-index: 100;
}
	.err-window .err-window-wrapper {
		background: #FFF;
		border: 1px solid #641c98;
		text-align: center;
		padding: 30px;
		position: relative;
		border-radius: 8px;
		box-shadow: 3px 3px 10px #00000036;
	}
	.err-window .close-err-window {
		position: absolute;
		top: -4px;
		left: 4px;
		font-weight: 700;
		font-size: 20px;
		cursor: pointer;
		padding: 5px;
		display: block;
		color: #641c98;
	}
.err-window.active {
	display: flex;
}
@media all and (max-width: 800px) {
	.ticketsRow, .ticket {
		flex-direction: column;
		width: 100%;
	}
	.ticket {
		margin-bottom: 14px;
	}
}

@media all and (max-width: 600px) {
	.calculator {
		padding: 15px;
	}

	.formrow,
	.distance {
		padding-right: 0;
		padding-left: 0;
		background: none !important;
	}

	.formrow.location-row { margin-right: 0; margin-left: 0;}

	.new-calc .formrow, .eng .new-calc .formrow, .rus .new-calc .formrow {
		padding-right: 0;
		margin-right: 0;
		padding-left: 0;
		margin-left: 0;
		gap: 0;
	}

		.new-calc .formrow label {
			width: 100% !important;
			font-size: 14px;
			margin-bottom: 5px;
		}

		.new-calc .formrow .err2 {
			font-size: 13px;
			position: absolute;
			top: 4px;
			left: 0;
		}
		.eng .new-calc .formrow .err2, .rus .new-calc .formrow .err2 {
			position: absolute;
			left: auto;
			right: 0;
		}

		#addStopRow {
			min-height: 30px;
			margin-top: 8px;
			margin-bottom: 0;
		}

		#addStopRow::after {
			display: none;
		}

	.formrow.train-row, .formrow.profile-row {
		margin-top: 10px;
	}

	.inputDiv {
		display: block;
		width: 100%;
		margin-top: 15px;
	}

	.destination label {
		padding-right: 22px;
		background: url(/img/location.png) no-repeat right center;
		margin-top: 10px;
	}

	.checkcontainer {
		margin-top: 5px;
	}

	.err1 {
		top: 0;
	}

	.train-remark .remark {
		font-size: 16px;
		padding-right: 10px;
		align-items: start;
	}

	.results {
		padding-top: 32px;
	}

	.formrow.train {
		padding-bottom: 50px;
	}

	.simpleCalculator .results {
		padding-top: 1px;
	}

	.simpleCalculator .destination {
		padding-left: 0;
		padding-bottom: 45px;
	}

	.simpleCalculator .calcButton {
		position: static;
		float: left;
		margin-top: 10px;
	}

	.calcButton {
		position: absolute;
		left: 0;
		top: 50px;
		width: 100%;
	}
	.new-calc .calcButton, #newCalculator .calcButton {
		top: 76px;
	}
	.new-calc .results {
		padding-top: 75px;
	}

	.distance { margin-bottom: 0;}

	.remove-stop {
		margin-right: 10px;
	}

	.preloader {
		padding-top: 80px;
	}

	#profileDisclaimer {
		font-size: 16px;
		margin-top: -20px;
	}
}

@media all and (max-width: 440px) {
	.new-calc {
		font-size: 16px;
	}
	.train-remark {
		padding: 16px;
	}
		.train-remark .remark {
			font-size: 14px;
			padding-right: 16px 10px 16px 26px;
			align-items: start;
		}

	.new-calc .formrow, .eng .new-calc .formrow, .rus .new-calc .formrow {
		flex-direction: column;
	}
	.he .active input, .he .active .custom-select, .ar .active input, .ar .active .custom-select ,
	.en .active input, .en .active .custom-select, .ru .active input, .ru .active .custom-select {
		border-top-right-radius: 0 !important;
	}
	.location-wrapper {
		width: 100%;
	}
	.remove-stop {
		margin-right: 0;
		margin-top: 6px;
		align-self: end;
	}

	.type-selector button {
		gap: 5px;
		padding: 5px 7px 5px 10px;
		width: 100%;
	}
}