.roicalc {
  font-weight: 400;
  color: var(--e-global-color-text);
}

.roicalc {
	h2, h3, h4, h5, h6 {
	  font-family: "Bebas Neue", Sans-serif;
	  font-weight: 400;
	  margin-bottom: 20px;
	  line-height: 1;
	}
}

.roicalc h2 {
    font-size: 24px;
    text-align: center;
	margin-bottom: 0;
} 

.roicalc h2 br {
	display: none;
}

.roicalc p {
    font-size: 16px !important;
	margin-bottom: 38px !important;
}

.roicalc-inputs > h2 {
	text-align: left;
    margin-bottom: 22px;
}

.roicalc-inputs h2:after {
    content: "";
    width: 50px;
    height: 4px;
    background: #0085ff;
    display: block;
}

.roicalc-output h2:after {
    content: "";
    width: 50px;
    height: 4px;
    background: #0085ff;
	display: block;
	margin: auto;
}

.roicalc-output.mobile.collapsed {
	height: 53px !important;
}

.roicalc-output.mobile.expanded {
}

.roicalc-output.mobile.collapsed .expand-handle {
	width: 75px;
    height: 50px;
    background: url(https://www.oncallair.com/wp-content/themes/ayro-child/arrow-handle.svg) no-repeat;
    background-size: contain;
    background-position: center;
	margin: -40px auto -13px;
    transform: scaleY(0.4);
}

.roicalc-output.mobile.expanded .expand-handle {
	width: 75px;
    height: 50px;
    background: url(https://www.oncallair.com/wp-content/themes/ayro-child/arrow-handle.svg) no-repeat;
    background-size: contain;
    background-position: center;
	margin: -40px auto -13px;
    transform: scaleY(-0.4);
}

.roicalc .spacer {
    height: 25px;
}

.roicalc .divider {
    width: 1px;
    border-right: 1px solid #d7dade;
    padding: 0;
}

.roicalc .inputFieldGroup {
    display: grid;
	position: relative;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid #d7dade;
    border-radius: 15px;
}

.inputFieldGroup .groupLabel {
    position: absolute;
    top: -15px;
    left: 40px;
    background: #fff;
    font-family: "Bebas Neue", Sans-serif;
    font-size: 20px;
    padding: 0 5px;
}

.inputFieldGroup .fieldNote {
    grid-column: 1 / -1;
    color: #4d4d4d;
    font-size: 13px;
    line-height: 1.4;
    border-left: 5px solid #0085FF;
	display: none;
	padding: 10px;
}

.fieldNote .noteEmph {
    font-weight: 600;
}

.inputFieldGroup .fieldNote.showNote {
	display: initial;
    /*max-height: 100px;
    padding: 10px 20px;
    display: block;
    position: initial;
    visibility: visible;
    height: auto;*/
}

.roicalc-input {
    display: flex;
    flex-direction: column;
	justify-content: flex-start;
    margin-bottom: 10px;
}

.roicalc .input {
    border: 1px solid #d7dade;
    border-radius: 5px;
    line-height: 34px;
    padding: 0 10px;
	width: 100%;
}

.roicalc .input[disabled] {
    background: #fafafa;
}

.roicalc .input::placeholder {
    color: #bababa;
}

.roicalc-input label {
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    margin-bottom: 7px;
}

.roicalc-input .input-wrap {
    position: relative;
}

.roicalc-input .sFieldNote {
    color: #fff;
    font-size: 14px;
	font-weight: 600;
    line-height: 1;
    padding: 12px 10px 8px;
	border-radius: 0 0 5px 5px;
    margin-top: -5px;
    grid-template-columns: 1fr;
    background: var(--e-global-color-accent);
	display: none;
}

.roicalc-input .sFieldNote:before {
    content: "";
    background: url(/wp-content/themes/ayro-child//arrowup.svg);
    background-size: contain;
    width: 25px;
    height: 25px;
    display: none;
}

.roicalc-input .sFieldNoteInline {
	display: none !important;
	position: absolute;
    line-height: 36px;
    top: 0;
    color: var(--e-global-color-accent);
	font-size: 13.3333px;
    font-family: Arial;
}

.sFieldNoteInline .up {
   display: inline-block; 
   margin-left: 1px;
   width: 12px;  
   height: 12px; 
   background-image: url('/wp-content/themes/ayro-child/uparrow.svg');
   background-size: contain; 
   background-repeat: no-repeat; 
   line-height: 34px;
}

.sFieldNoteInline .down {
   display: inline-block; 
   margin-left: 1px;
   width: 12px;  
   height: 12px; 
   background-image: url('/wp-content/themes/ayro-child/uparrow.svg'); 
   background-size: contain; 
   background-repeat: no-repeat; 
   transform: rotate(180deg); 
   transform-origin: center 56%;
   line-height: 34px;
}

.roicalc .percentageInput {
    position: relative;
}

.percentageInput .input {
    padding-right: 40px;
}

.roicalc .percentageInput:after {
    content: "%";
    display: inline-block;
    position: absolute;
    right: 15px;
    line-height: 34px;
    border-left: 1px solid #d7dade;
    padding-left: 10px;
    font-size: 16px;
}

.roicalc .dollarInput {
    position: relative;
	}

.dollarInput .input {
    padding-left: 40px;
}

.roicalc .dollarInput:after {
    content: "$";
    display: inline-block;
    position: absolute;
    left: 15px;
    line-height: 34px;
    border-right: 1px solid #d7dade;
    padding-right: 10px;
    font-size: 16px;
}

.monthlyROIResult {
    text-align: center;
    margin: 18px 10px 10px;
}

.monthlyROIResult .label {
    font-size: 12px;
}

.monthlyROI {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--e-global-color-accent);
}

.rOIPerJobSoldBreakdown h3 {
    text-align: center;
	margin-bottom: 0;
	font-size: 24px;
    letter-spacing: -0.3px;
}

.breakdownList {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    font-size: 16px;
}

.breakdownList > div:not(.spacer) {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d7dade;
}

.breakdownList .nbb {
    border-bottom: none !important;
}

.breakdownList > div:not(.spacer) > span {
    display: flex
;
}

.breakdownList > div > span:last-child {
    font-weight: 700;
}

.troi > span {
    color: #0085ff;
}

.roicalc .infoTooltip {
  position: relative;
  /*display: flex;*/
  display: none;
  width: 15px;
  margin-left: 5px;
  cursor: pointer;
}

.cps .infoTooltip {
    display: flex;
}

.infoTooltip span {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(247 247 247);
    color: #000;
    font-size: 14px;
    text-align: center;
    padding: 5px 10px;
    white-space: nowrap;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
	line-height: 1.4;
    text-align: left;
}

.infoTooltip:hover span {
  visibility: visible;
  opacity: 1;
}

.roicalc .resultsActionBox {
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    padding: 20px;
	margin-top: -20px;
}

.resultsActionBox .btnDemo {
    background: #0085ff;
    border: none;
    color: #fff;
    font-family: "Bebas Neue", Sans-serif;
    font-size: 20px;
    margin-top: 30px;
	padding: 15px;
	width: 100%;
	cursor: pointer;
}

.resultsActionBox a {
    color: #0085ff;
    font-weight: 600;
}

.roicalc-output.mobile {
  position: fixed;
  left: 5px;
  right: 5px;
  bottom: 0;
  background: #fff;
  border: 2px solid #d7dade;
  border-radius: 10px 10px 0 0;
  z-index: 999;
  padding-top: 30px;
  transition: height 0.5s ease-out;
  will-change: height;
}

.roicalc-output.mobile .rOIPerJobSoldBreakdown.expanded {
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.5s ease-out;
}

.roicalc-output.mobile .rOIPerJobSoldBreakdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

.roicalc-output.mobile .rOIPerJobSoldBreakdown > div {
  overflow: hidden;
}

.roicalc-output:not(.mobile) .swipeHandle,
.roicalc-output.mobile .btnDemo {
	display: none;
}

.roicalc .swipeHandle {
    width: 100px;
    height: 5px;
    border-radius: 100px;
    background: #d7dade;
    margin: -10px auto 20px;
}

.roicalcmodal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  font-family: 'Lato';
  line-height: 1.4;
  opacity: 0;
  transition: opacity .25s ease-in-out;
}

.roicalcmodal h2 {
    font-family: 'Lato';
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 15px;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  transform: scale(0);
  animation: zoomIn 0.25s ease-in-out forwards;
  border-radius: 15px;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-right: -42px;
  margin-top: -27px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
} 
		
@media (min-width: 768px) {
  .roicalc { 
    display: flex;
	justify-content: space-around;
	gap: 40px;
  } 
  
  .roicalc h2 {
       font-size: 40px;
  }
  
  .roicalc-output h2 {
	 margin-bottom: 40px;
  }
  
  .roicalc h2 br {
    display: initial;
  }
  
  .monthlyROI {
    font-size: 60px;
    margin-bottom: 14px;
  }
  
  .monthlyROIResult {
    margin: 0 10px 0;
  }
  
  .monthlyROIResult .label {
    font-size: 18px;
  }
  
  .rOIPerJobSoldBreakdown {
    margin-top: 40px;
   }
   
  .rOIPerJobSoldBreakdown h3 {
    font-size: 40px;
  }
   
  .roicalc-input {
    justify-content: flex-start;
  }
  
  .roicalc-input label {
    font-size: 11px;
  }
  
  .roicalc-inputs {
    width: 61%;
  } 
  
  .roicalc .inputFieldGroup {
    grid-template-columns: repeat(3, 1fr);
	padding: 40px;
  }
  
  .roicalc .resultsActionBox {
    font-size: 14px;
  }
} 