/* MATCHED BET CALC STYLES */

/* NO UI SLIDER */

/* Functional styling;
 * These styles are required for noUiSlider to function.
 * You don't need to change these rules to apply your design.
 */
.noUi-target,
.noUi-target * {
-webkit-touch-callout: none;
-webkit-user-select: none;
-ms-touch-action: none;
  touch-action: none;
-ms-user-select: none;
-moz-user-select: none;
  user-select: none;
-moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-target {
  position: relative;
  direction: ltr;
}
.noUi-base {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1; /* Fix 401 */
}
.noUi-origin {
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  bottom: 0;
}
.noUi-handle {
  position: relative;
  z-index: 1;
}
.noUi-stacking .noUi-handle {
/* This class is applied to the lower origin when
   its values is > 50%. */
  z-index: 10;
}
.noUi-state-tap .noUi-origin {
-webkit-transition: left 0.3s, top 0.3s;
  transition: left 0.3s, top 0.3s;
}
.noUi-state-drag * {
  cursor: inherit !important;
}

/* Painting and performance;
 * Browsers can paint handles in their own layer.
 */
.noUi-base,
.noUi-handle {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

/* Slider size and handle placement */
.noUi-horizontal {
  height: 18px;
}
.noUi-horizontal .noUi-handle {
  width: 34px;
  height: 28px;
  left: -12px;
  top: -6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.noUi-vertical {
  width: 18px;
}
.noUi-vertical .noUi-handle {
  width: 28px;
  height: 34px;
  left: -6px;
  top: -17px;
}

/* Styling */
.noUi-background {
  background: #FAFAFA;
  box-shadow: inset 0 1px 1px #f0f0f0;
}
.noUi-connect {
  background: #3FB8AF;
  box-shadow: inset 0 0 3px rgba(51,51,51,0.45);
-webkit-transition: background 450ms;
  transition: background 450ms;
}
.noUi-origin {
  border-radius: 2px;
}
.noUi-target {
  border-radius: 4px;
  border: 1px solid #D3D3D3;
  box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-target.noUi-connect {
  box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB;
}
/* Handles and cursors */
.noUi-draggable {
  cursor: w-resize;
}
.noUi-vertical .noUi-draggable {
  cursor: n-resize;
}
.noUi-handle {
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background: #FFF;
  cursor: default;
  box-shadow: inset 0 0 1px #FFF,
        inset 0 1px 7px #EBEBEB,
        0 3px 6px -3px #BBB;
}
.noUi-active {
  box-shadow: inset 0 0 1px #FFF,
        inset 0 1px 7px #DDD,
        0 3px 6px -3px #BBB;
}
/* Handle stripes */
.noUi-handle:before,
.noUi-handle:after {
  content: "";
  display: block;
  position: absolute;
  height: 14px;
  width: 1px;
  background: #E8E7E6;
  left: 14px;
  top: 6px;
}
.noUi-handle:after {
  left: 17px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
  width: 14px;
  height: 1px;
  left: 6px;
  top: 14px;
}
.noUi-vertical .noUi-handle:after {
  top: 17px;
}

/* Disabled state;
 */
[disabled].noUi-connect,
[disabled] .noUi-connect {
  background: #B8B8B8;
}
[disabled].noUi-origin,
[disabled] .noUi-handle {
  cursor: not-allowed;
}

/* Slider adjustments */

.noUi-horizontal .noUi-handle{
  border-radius: 100%;
  width: 24px;
  height: 24px;
  top: -4px;
  border-color: white;
  background-color: white;
}
.noUi-horizontal .noUi-handle:before, 
.noUi-horizontal .noUi-handle:after{
  content: none;
}
.noUi-base{
  height: 300%;
  top: -100%;
}
.noUi-background{
  height: 8px;
  border-radius: 4px;
  background-color: #eeeeee;
  border-color: #eeeeee;
}
.bg-back .noUi-background{
  background-color: var(--back-600);
  border-color: transparent;
}
.bg-lay .noUi-background{
  background-color: var(--lay-600);
  border-color: transparent;
}
.noUi-target{
  box-shadow: none;
}
.form-calc .noUi-marker{
  background: rgba(255,255,255,0.5);
}
.form-calc .noUi-pips{
  color: #333333;
}
.form-calc.bg-gray-400 .noUi-pips,
.form-calc.bg-gray-300 .noUi-pips,
.form-calc.bg-gray-200 .noUi-pips,
.form-calc.bg-gray-100 .noUi-pips{
  color: #333333;
}
.form-calc.bg-gray-400 .noUi-marker,
.form-calc.bg-gray-300 .noUi-marker,
.form-calc.bg-gray-200 .noUi-marker,
.form-calc.bg-gray-100 .noUi-marker{
  background-color: rgba(0,0,0,0.2)
}


/* GENERAL CALC STYLES */

.bet-calc .bg-back{
  background-color: var(--back-500) !important;
}
.bet-calc .bg-back-light{
  background-color: var(--back-300) !important;
}
.bet-calc .bg-back-dark{
  background-color: var(--back-700) !important;
}
.bet-calc .bg-lay{
  background-color: var(--lay-500) !important;
}
.bet-calc .bg-lay-light{
  background-color: var(--lay-300) !important;
}
.bet-calc .bg-lay-dark{
  background-color: var(--lay-700) !important;
}

.bet-calc{
  font-size: 1rem;
  line-height: 1.75;
}
.bet-calc .form-calc-lay-stake{
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: subpixel-antialiased;
  border-color: var(--lay-800);
  letter-spacing: 0.25px;
}
.bet-calc .close{
  text-shadow: none;
}
.calc-results{
  font-size: 1rem; 
  line-height: 1.5;
  overflow: hidden;
  border-radius: 0.5rem;
}
.calc-results span{
  white-space: nowrap;
}
@media (max-width: 767px) {
  .calc-results{
    font-size: 1rem; 
    border-radius: 0;
  }
}
.calc-results-cell{
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.total-profit{
  font-weight: bold;
  font-size: 1.3rem;
}



/* EACH WAY CALC STYLES */
.bet-calc-eachway .label-terms{
  position: absolute;
  left: 0;
}
.bet-calc-eachway .floating-label.isempty .label-terms{
  position: absolute !important;
  left: 3.4rem !important;
}



/* SEQUENTIAL LAY CALC STYLES */

.bet-calc-sequentiallay .result-row:nth-child(odd){
    background-color: var(--gray-50);
}
.bet-calc-sequentiallay .result-row:nth-child(even){
    background-color: var(--gray-100);
}


.bet-calc-sequentiallay .result-row:nth-child(4n+1) .result-label{
  background-color: var(--teal-500); 
}
.bet-calc-sequentiallay .result-row:nth-child(4n+2) .result-label{
  background-color: #bedd64;
}
.bet-calc-sequentiallay .result-row:nth-child(4n+3) .result-label{
  background-color: var(--yellow-500); 
}
.bet-calc-sequentiallay .result-row:nth-child(4n+4) .result-label{
  background-color: #bedd64;
}
.bet-calc-sequentiallay .result-row:nth-child(4n+1) .result-label:after {
  background-image: url(../svg/bg-arrow-green.svg);
}
.bet-calc-sequentiallay .result-row:nth-child(4n+2) .result-label:after {
  background-image: url(../svg/bg-arrow-lime.svg);
}
.bet-calc-sequentiallay .result-row:nth-child(4n+3) .result-label:after {
  background-image: url(../svg/bg-arrow-yellow.svg);
}
.bet-calc-sequentiallay .result-row:nth-child(4n+4) .result-label:after {
  background-image: url(../svg/bg-arrow-lime.svg);
}

.bet-calc-sequentiallay .result-row.results-all-win .result-label{
    background-color: #333333;
}
.bet-calc-sequentiallay .result-row.results-all-win .result-label:after {
    background-image: url(../svg/bg-arrow-grey.svg);
}


/* BET CALC IN PLAY */
@media (max-width: 991px) {
  .bet-calc-inplay .mock-input{
    margin-top: 0;
    margin-bottom: 5px;
  }

  .bet-calc-inplay .home-result-label:after,
  .bet-calc-inplay .draw-result-label:after,
  .bet-calc-inplay .away-result-label:after{
    content: none;
  }
  .bet-calc-inplay .mock-input{
    padding-right: 0;
    margin-top: -9px;
  }
  .bet-calc-inplay .mock-input .input-size{
    font-size: 20px;
  }

}
@media (max-width: 767px) {
  .bet-calc-inplay .mock-input .mock-label{
    margin-bottom: 10px;
  }
  .bet-calc-inplay .mock-input{
    padding-right: 0 !important;
  }
  .bet-calc-inplay .mock-input .input-size{
    font-size: 17px;
  }
  .bet-calc-inplay .lay-stake{
    margin-bottom: 0;
  }
  .bet-calc-inplay .alert{
    padding-right: 14px;
  }
}















/* CLEAN STYLES */

.bet-calc{
  -webkit-font-smoothing: auto;
}

.bet-calc .advanced-only{
	display: block;
}
.bet-calc.advanced-active .advanced-only{
	display: block;
}
.bet-calc .bet-options{
	margin-bottom: 1rem;
	border-radius: 0.5rem;
	padding: 1rem 1rem 0.75rem 1rem;
  line-height: 1.4;
}
.bet-calc .bet-options .custom-control-label:before,
.bet-calc .bet-options .custom-control-label:after{
  top: 0;
}

@media (max-width: 767px){
  .bet-calc .bet-options{
    border-radius: 0;
  }
}
.bet-options .custom-control-label{
  color: #666666;
  margin-bottom: 0.75rem;
}
.bet-options .custom-control-label b{
  color: #003e3f;
}
.bet-options .custom-control-indicator{
  background-color: white;
}
.bet-calc .form-calc{
	padding: 1rem 1rem; 
}
.bet-calc .stake-slider{
  margin-top: 15px;
  margin-bottom: 30px;
}
.bet-calc .form-lay .noUi-background{
  background-color: var(--lay-600);
  border-color: var(--lay-600);
}


/* NEGATIVE CHECKS */

.result-win{
  color: #28a745;
}
.result-loss{
  color: #dc3545;
}
.check-negative.result-win:before{
  content: "+ ";
}
.check-negative.result-loss:before{
  content: "- ";
}

.check-negative-win{
  color: #28a745;
}
.check-negative-loss{
  color: #dc3545;
}


/* INPUTS */

.bet-calc input::-webkit-outer-spin-button,
.bet-calc input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}



@media (max-width: 767px){
	.form-calc{
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.form-calc.rounded,
	.form-calc.rounded-top,
	.form-calc.rounded-bottom{
		padding-left: 1rem;
		padding-right: 1rem;
		border-radius: 0 !important;
	}
}




/* MATCHED BET CALC ONLY */

/*
.remove-part-lay{
    width: 30px;
    padding: 0;
    height: 30px;
    border-color: transparent;
    color: white;
    font-weight: normal;
    margin-top: 1px;
    border-radius: 100% !important;
    border-color: transparent !important;
}
.remove-part-lay:hover,
.remove-part-lay:active,
.remove-part-lay:focus{
    background-color: white;
}
.bg-lay .remove-part-lay:hover,
.bg-lay .remove-part-lay:active,
.bg-lay .remove-part-lay:focus{
    color: #f7aec6;
}
*/

.bet-calc-matchedbetting:not(.bet-free) .bet-free-only{
	display: none;
}
.bet-calc-matchedbetting:not(.bet-riskfree) .bet-riskfree-only{
  display: none;
}
.bet-calc-matchedbetting.advanced-active .basic-only{
  display: none;
}
.bet-calc-matchedbetting:not(.advanced-active) .advanced-only{
  display: none;
}
.bet-calc-matchedbetting .stake-slider {
    margin-top: 20px;
    margin-bottom: 30px;
}
.bet-calc-matchedbetting .noUi-value{
  margin-top: 0.6rem;
  display: none;
}
.bet-calc-matchedbetting .noUi-value[style="left: 49.99999%"], 
.bet-calc-matchedbetting .noUi-value[style="left: 50.00000%"], 
.bet-calc-matchedbetting .noUi-value[style="left: 50.00001%"]{
  display: block;
}
@media (max-width: 767px) {
  .bet-calc-matchedbetting .under-totals,
  .bet-calc-matchedbetting .over-totals{
    font-size: 1rem;
  }
}
.bet-calc-matchedbetting .advanced-switch{
  display: inline-flex;
  float: right;
  width: auto;

}
.bet-calc-matchedbetting .advanced-switch .input-group-text{
  font-size: 80%;
  opacity: 0.8;
}
.bet-calc-dutching .bet{
    border-bottom: 1px solid var(--teal-550);
}
@media (min-width: 768px) {
  .bet-calc-dutching .bet:first-child .form-calc{
    border-top-left-radius: .5rem!important;
    border-top-right-radius: .5rem!important;
  }
}

.bet-calc-dutching:not(.odds-fraction) .odds-fraction-only{
  display: none;
}
.bet-calc-dutching.odds-fraction .odds-fraction-hidden{
  display: none;
}

.bet-calc-dutching .odds-format-wrapper label{
  position: relative;
  top: 0.05rem;
}


.bet-calc-earlypayout:not(.advanced-active) .advanced-only{
  display: none;
}
.bet-calc-earlypayout:not(.dutching-active) .dutching-only{
  display: none;
}
.bet-calc-earlypayout:not(.paidout-active) .paidout-only{
  display: none;
}
.bet-calc-earlypayout:not(.advanced-active) .paidout-advanced-only,
.bet-calc-earlypayout:not(.paidout-active) .paidout-advanced-only{
    display: none;
}
.bet-calc-earlypayout.dutching-active .dutching-hidden{
  display: none;
}
.bet-calc-earlypayout .early-payout-toggles .input-group-text{
  font-size: 80%;
  opacity: 0.8;
}
.bet-calc-earlypayout .border-top{
  border-width: 1px !important;
}


