/* --- base --- */

/* ArtlogicCMS fixes */

div.arprompt button {
	width: auto;
	margin-bottom: 4px;
}

/* page */

#h1_wrapper h1 {
	margin: 0 0 1.5em 0;
}

hr {
	border: 0;
	border-top: 4px solid black;
}

#calculator {
	width: 100%;
}

#calculator p {
    line-height: 1.4em;
    max-width: 800px;
}

/* Example tokeninput style #2: gcc style */
ul.token-input-list-gcc {
	box-sizing: border-box;
    overflow: hidden; 
    height: auto !important;
    /* height: 1%; */
    width: 300px;
    /*border: 2px solid #000;*/
    cursor: text;
    min-height: 1px;
    z-index: 999;
    margin: 0;
    padding: 0;
    background-color: #fff;
    list-style-type: none;
    clear: left;
}

ul.token-input-list-gcc li input {
	/* search input */
    border: 0;
    width: 60px;
    padding: 3px 8px;
    background-color: white;
    margin: 2px 0;
    -webkit-appearance: caret;
    font-size: 1.4rem;
}

li.token-input-token-gcc {
    overflow: hidden; 
    height: auto !important; 
    height: 15px;
    margin: 3px;
    padding: 0.2em 0.5em;
    background-color: #fff;
    color: #000;
    cursor: default;
    border: 2px solid #000;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    float: left;
    white-space: nowrap;
}

li.token-input-token-gcc p {
    display: inline;
    padding: 0;
    margin: 0;
}

li.token-input-token-gcc span {
    color: #171717;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
}

li.token-input-selected-token-gcc {
    background-color: #546485; /* fb #5670a6 */
    border: 2px solid #546485; /* fb #3b5998 */
    color: #fff;
}

li.token-input-input-token-gcc {
    float: left;
    margin: 0;
    padding: 0;
    list-style-type: none;
    line-height: 34px;
}

div.token-input-dropdown-gcc {
	/* dropdown */
	box-sizing: border-box;
    position: absolute;
    width: 300px;
	max-height: 400px;
    overflow: scroll;
    cursor: default;
    font-size: 1.35rem;
    line-height: 1.5rem;
    font-family: inherit;
	margin-top: 3px;
	box-shadow: .05em .2em .8em rgba(0,0,0,.7);
    z-index: 2; /* must be above tooltip, below */
}

div.token-input-dropdown-gcc p {
	/* search notes and feedback... */
	position: relative;
    margin: 0;
    top-margin: 5px;
	box-shadow: .05em .2em .8em rgba(0,0,0,.7);
	padding: 10px;
	border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    /*font-weight: bold;*/
    font-size: 1.2rem;
    line-height: 1.2rem;
    color: #000;
    background-color: #fff;
}
/* top arror - FIXME - this is not working! */
div.token-input-dropdown-gcc p:after {
	content: " ";
	position: absolute;
	bottom: 100%;  /* At the top of the tooltip */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #fff transparent;
}

div.token-input-dropdown-gcc ul {
    margin: 0;
    padding: 0;
}

div.token-input-dropdown-gcc ul li {
	/* search result rows */
    background-color: #fff;
    padding: 0.6em 0.5em;
    margin: 0;
    list-style-type: none;
}

div.token-input-dropdown-gcc ul li.token-input-dropdown-item-gcc {
    background-color: #fff;
}

div.token-input-dropdown-gcc ul li.token-input-dropdown-item2-gcc {
    background-color: #fff;
}

div.token-input-dropdown-gcc ul li em {
    font-weight: bold;
    font-style: normal;
}

div.token-input-dropdown-gcc ul li.token-input-selected-dropdown-item-gcc {
    background-color: #546485; /* fb #3b5998 */
    color: #fff;
}


/* 	---- page ---- */

.smaller {
	font-size: 1.3rem;
	overflow-x: scroll;
}

h2, h3 {
	margin: 1.5em 0 0.5em 0;
}

h2:first-child {
	margin-top: 45px;
}

.beta {
	font-style: italic;
	font-family: georgia, serif;
	font-weight: normal;
	font-size: 0.6em;
	color: #aaa;
	padding-left: 0.5em;
}

#calculator-powered-by {
	margin: 2.5em 0 2.5em 0;
}

#calculator-powered-by a, #calculator-powered-by a:visited {
	color: #888;
	text-decoration: none;
}
#calculator-powered-by-text {
	display: inline-block;
	font-size: 1.5rem;
	vertical-align:middle;
	line-height: 2rem;
}
#calculator-powered-by-logo {
	width: 65px;
	display: inline-block;
	vertical-align:middle;
	line-height: 2rem;
}
#calculator-powered-by-logo path {
	/*fill: #333;*/
	fill: var(--foreground-color);
}

select { 
	/* from https://stackoverflow.com/questions/7638677/how-can-i-remove-the-gloss-on-a-select-element-in-safari-on-mac */
	/* not tested on IE */
	background: var(--select-bg) no-repeat calc(100% - 4px) 50%;
	background-size: 18px;
	-moz-appearance: none; 
	-webkit-appearance: none; 
	appearance: none;
    /* and then whatever styles you want*/
	height: 30px; 
	width: 120px;
	padding: 5px 10px;
	border: 2px solid black;
	box-sizing: border-box;
	cursor: pointer;
}

input { 
	height: 30px; 
	padding: 5px 10px;
	border: 2px solid black;
	box-sizing: border-box;
}

.close {
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMTAgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+c28tY3Jvc3M8L3RpdGxlPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTYsMCBMNS45OTksNCBMMTAsNCBMMTAsNiBMNS45OTksNiBMNiwxMCBMNCwxMCBMMy45OTksNiBMMCw2IEwwLDQgTDMuOTk5LDQgTDQsMCBMNiwwIFoiIGlkPSJzby1jcm9zcyIgZmlsbD0iI0E5QTlBOSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNS4wMDAwMDAsIDUuMDAwMDAwKSByb3RhdGUoLTQ1LjAwMDAwMCkgdHJhbnNsYXRlKC01LjAwMDAwMCwgLTUuMDAwMDAwKSAiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+) no-repeat 75% 50%;
}

input.f, select.f, .token-input-list-gcc {
	border: 0;
	box-sizing: border-box;
}
.f-w-small input, .f-w-small select {
	width: 9rem;
}
.f-w-medium input, .f-w-medium select {
	width: 14rem;
}
.f-w-medium-x input, .f-w-medium-x select {
	width: 16rem;
}
.f-w-medium-x2 input, .f-w-medium-x2 select {
	width: 18rem;
}
.f-w-large input, .f-w-large select {
	width: 22rem;
}

.calculator-totals {
	font-weight: bold;
	/*font-size: 1.4rem;*/
}

.token-input-token .label {
	display: none;
}

.rct {
	/*border-collapse: collapse;*/
	margin-bottom: 3em;
}

.rch {
	line-height: 1.4rem;
}

.rcr {
	position: relative;
}

#calculator select, .rci, .rcs {
	box-sizing: border-box;
	font-size: 1.3rem;
	min-height: 2.4em;
}

.rcc {
	box-sizing: border-box;
	border: 2px solid #000;
	margin-right: 1px;
	margin-bottom: 1px;
	vertical-align: middle;
	white-space: nowrap;
}

.rcr .rcc:last-child {
	border: 0;
}

.rcc.controls {
	min-width: 3em;
	padding-left: 0.5rem;
}

ul.token-input-list-gcc {
}

.rcr .remove_row {
	font-size: 1.2rem;
	color: #aaa;
	font-weight: bold;
	line-height: 2.4rem;
	padding: 0 0.5em;
	cursor: pointer;
}

.rcr:last-child .remove_row {
	display: none;
}

td.row_number {
	min-width: 4em;
	vertical-align: middle;
	font-size: 1.3rem;
	color: #777;
	padding-left: 0.5em;
}

td.row_number:last-child {
	visibility: hidden;
}

.hide-while-loading {
	display: none;
}

#calculator-chart-outer-container .loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #000; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

#calculator-chart-outer-container {
	position: relative;
	box-sizing: border-box;
	float: right;
	width: 400px;
	height: 200px;
	padding: 0.5em;
	/*margin-top: -102px;*/
	margin-bottom: 2em;
	border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    z-index: 2;
}
#calculator-chart-outer-container.sticky {
	/* add a 'sticky' class to the chart to make it float as you scroll down the page */
	/*   Sticky   */
    background: rgba(255,255,255, 0.95);
    position: sticky;
    top: 140px; /*sticks this distance from the top*/
}
#calculator-chart-container, #calculator-chart-total, #calculator-chart-unit {
	position: absolute;
	width: 100%;
	height: 100%;
}
#calculator-chart-total {
	line-height: 190px;
	text-align: center;
	font-size: 2em;
}
#calculator-chart-unit {
	margin-top: 45px;
	line-height: 155px;
	text-align: center;
	font-size: 0.6em;
}

.calculator-simple-data-table td {
	border: 0;
	width: auto;
	padding-right: 0.5em;
	vertical-align: middle;
}

.calculator-simple-data-table td:first-child {
	padding-right: 1em;
}

.calculator-simple-data-table td input, .calculator-simple-data-table td select {
	border: 2px solid #000;
}

#calculator-footer {
	position: -webkit-sticky;
	position: sticky;
	bottom: 0px;
	box-sizing: border-box;
	width: 100%;
	height: 5em;
	background: #fff;
	/*font-size: 2.0rem;*/
	border-top: 4px solid black;
	padding: 1.0em 0 1em 0;
	display: block;
	vertical-align: middle;
	line-height: 2.2em;
	z-index: 3;
	display: flex;
    align-items: center;
}

.calculator-about-contents p {
	max-width: 800px;
	font-weight: lighter;
	font-size: 0.85em;
	margin: 1em 0;
}

.calculator-about-contents li {
	max-width: 800px;
	font-weight: lighter;
	font-size: 0.85em;
}

.calculator-about-contents p:first-child {
	font-weight: inherit;
	font-size: inherit;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 800px), (pointer:coarse) and (max-width: 940px) {
	.calculator-hide-on-mobile {
		display: none;
	}
	
	h2 {
		/* font-size: 3.0rem; */
		/* line-height: 4rem; */
	}
	h3 {
		/* font-size: 2.4rem; */
		/* line-height: 2.8rem; */
	}
	#calculator-chart-container {
		margin-top: 0;
		float: none;
		width: 100%;
	}
	
	.flabel + .inline_note {
		padding-left: 0;
	}
	.rct {
		width: 100%;
	}
	.f-w-small input, .f-w-small select,
	.f-w-medium input, .f-w-medium select,
	.f-w-medium-x input, .f-w-medium-x select,
	.f-w-medium-x2 input, .f-w-medium-x2 select,
	.f-w-large input, .f-w-large select {
		width: 100%;
	}
	.rch {
		display: none;
	}
	.rcc {
		border-bottom: 0;
		margin-right: 0;
		margin-bottom: 0;
	}
	.rcc:nth-last-child(2) { /* https://css-tricks.com/useful-nth-child-recipies/ */
		border-bottom: 2px solid black;
	}
	*:not(.f-responsive-inline) > .f-rowscols .rcc {
		display: inline-block;
		display: table-row;
	}
	.rct .td-bool .aui-custom-checkbox {
		text-align: left;
		float: right;
		margin-top: -25px;
	}
	.rcc {
		display: block;
		width: 100%;
		white-space: nowrap;
	}
	.rcc:before {
		content: attr(data-column-label);
		display: block;
		/*color: #417598;*/
		/*font-style: italic;*/
		margin-right: 8px;
		white-space: normal;
		display: table-cell;
		padding-left: 10px;
		padding-right: 12px;
		text-align: left;
		font-size: 1.3rem;
		font-weight:bold;
	}
	.rcc.hidden {
		display: none;
	}
	.rcc.costs_conv_rate_small_screen:before {
		content: attr(data-column-label) " (" attr(data-global_currency)"1 = "attr(data-retail_currency) ")";
	}
	.rci, .rcs, ul.token-input-list-gcc,
	#calculator-flights input[data-fieldname="qty"] {
		width: 100%;
		margin: 0 0 4px 0;
		min-height: 40px !important;
	}
	div.token-input-dropdown-gcc {
		width: calc(100% - 22px); /* remove page margins... */
	}
	.fr-main-field:not(.f-responsive-inline) .rcm {
		display: block;
	}
	.rcr {
		width: 100%;
		display: block;
		/*border-bottom: 4px solid #000;*/
		padding: 2em 0;
	}
	.rcr:last-child {
		border: none;
	}
	.fr-main-field:not(.f-responsive-inline) .rcr + .rcr:before {
		content: "";
		display: block;
		width: 100%;
		height: 1px;
		margin: 6px 0 20px;
		background: #e4e4e4;
	}
	.rc-container {
		padding: 0;
	}
	td.row_number {
		font-size: 16px;
		font-weight: bold;
	}
	td.row_number:before {
		content: "Row ";
	}
	td .rcc.controls span.remove_row {
		font-size: 16px;
		font-weight: bold;
	}

	.calculator-simple-data-table td {
		padding-right: 0;
	}
	
	.calculator-simple-data-table td:first-child {
		padding-right: 0;
	}
	
	.calculator-simple-data-table td input, .calculator-simple-data-table td select {
		border: 2px solid #000;
	}
	
	.calculator-simple-data-table .rcr {
		padding: 0.5em 0;
	}
	
	.calculator-simple-data-table .rcc:nth-last-child(2) { /* https://css-tricks.com/useful-nth-child-recipies/ */
		border-bottom: 0;
	}
	
	.calculator-simple-data-table 
	.rcc:before {
		padding-left: 0;
	}

	#calculator-footer {
		height: 7em;
	}
	
	#calculator-chart-outer-container {
		display: none; /* FIXME: fix chart on mobile! */
	}
	
}

@media (hover:none) {
	/* prevent fields from zooming in on mobile (set font to min 16px) */
	select, textarea, input[type="text"], input[type="password"],
	input[type="datetime"], input[type="datetime-local"],
	input[type="date"], input[type="month"], input[type="time"],
	input[type="week"], input[type="number"], input[type="email"],
	input[type="url"]{
		font-size: var(--step-0) !important; 
	}
}

			
	
/* temp */

div.calculator-debug {
	display: none;
	margin-top: 3em;
}

.input-output {
	box-sizing: border-box;
	width: 100%;
	min-height: 200px;
}


.calculator-info-below {
	font-size: 1.4rem;
	margin-bottom: 3em;
	font-weight: normal;
}

.calculator-notes-below, .calculator-notes-above {
	font-size: 1.4rem;
	color: #888;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	font-weight: normal;
}

/* tooltips */
/* https://www.w3schools.com/css/css_tooltip.asp */
/* Tooltip container */
.tooltip {
  position: relative;
  /*border-bottom: 1px dotted black;*/ /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 96%;
	top: 100%;
	left: 50%;
	margin-top: 5px;
	margin-left: -48%; /* Use half of the width (120/2 = 60), to center the tooltip */
	background-color: #fff;
	box-shadow: .05em .2em .8em rgba(0,0,0,.7);
	color: #000;
	text-align: center;
	padding: 8px 5px;
	border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
	box-sizing: border-box;
	/* Position the tooltip text - see examples below! */
	position: absolute;
	z-index: 1;
	font-size: 1.2rem;
	line-height: 1.4rem;
	white-space: normal;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
	visibility: visible;
}
/* top arror */
.tooltip .tooltiptext:after {
	content: " ";
	position: absolute;
	bottom: 100%;  /* At the top of the tooltip */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #fff transparent;
	/*box-shadow: .05em .2em .8em rgba(0,0,0,.7);*/
}

.calculator-high-importance {
	display: inline-block;
	background: url(/calculator/images/high-importance.svg) no-repeat 100% 50%;
	padding-right: 30px;
}

.calculator-simple-data-table td input.calculator-field-disabled, .calculator-simple-data-table td select.calculator-field-disabled {
	border-style: dotted;
}

.calculator-about {
  margin-bottom: 2em;
}

#calculator-save-btn {
	font-size: var(--step-0);
}

.calculator-footer-float-left {
	float: left;
	padding: 0 1.5em 0 0;
}

.calculator-not-logged-in #calculator-save-btn {
	/*border: 2px solid #ccc;*/
	/*background: #ccc;*/
}

.calculator-hide-if-logged-in {
	display: none;
}

.calculator-not-logged-in .calculator-hide-if-logged-in {
	display: block;
}

.calculator-show-if-logged-in {
	display: block;
}

.calculator-not-logged-in .calculator-show-if-logged-in {
	display: none;
}

.calculator-message {
	display: none;
	color: #888;
}

.calculator-member-benefits p {
	margin: 1.5em 0;
}

.calculator-member-benefits p, .calculator-member-benefits li {
	font-size: 1.6rem;
	line-height: 1.8rem;
}

.calculator-float-left {
	display: inline-block;
	padding: 0 1.0em 0 0;
}

.calculator-link-btn, .calculator-tiny-btn {
	/* a button that looks like a link */
	font-weight: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.calculator-tiny-btn {
	font-size: 1.3rem;
}

.no-wrap, .nowrap {
	white-space: nowrap !important;
}

.calculator-show-if-unsaved-changes, .calculator-show-if-unsaved-changes {
	display: none;
}

.calculator-unsaved-changes div.calculator-show-if-unsaved-changes {
	display: block;
}

.calculator-unsaved-changes span.calculator-show-if-unsaved-changes {
	display: inline;
}

.calculator-download-btn {
	text-decoration: underline;
	cursor: pointer;
}

#calculator-footer .calculator-clear-data-btn,
#calculator-footer .calculator-show-member-benefits-btn {
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    background: none;
    color: inherit;
    border: none;
    font: inherit;
}

#calculator-footer a {
	text-decoration: underline;
}
.calculator-info-btn {
	background: #151515 !important;
    border-radius: 0;
    border: 0 !important;
    text-decoration: none !important;
    font-size: 1.6rem;
    line-height: 20px;
    transition: background 0.35s ease-in-out;
    -webkit-transition: background 0.35s ease-in-out;
    height: auto;
    position: relative;
    color: #FFFFFF !important;
    padding: 16px 37px 15px !important;
    margin-right: 10px;
}

@media only screen and (max-width: 800px) {
  .calculator-info-btn {
    background-color: black !important;
    display: block !important;
    margin-top: 10px !important;
    text-align: center !important;
  }
}
.calculator-intro-container .arrow_btn {
	margin-bottom: 5px;
}