
.beta-disabled{
	display: none !important;
}



/**** GLOBALS ****/

.noscroll{
  overflow: hidden !important;
}
.noscroll-fixed{
  overflow: hidden !important;
  position: fixed;
	top:0;left:0;
}

.mobile-only-inline{
	display: none !important;
}

.mobile-warning{
	padding: 10px 20px 10px 10px;
  text-align: left;
  width: 100%;
  max-width: 100% !important;
  background: var(--light-bg-color);
  font-weight: 600;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  opacity: 1 !important;
  gap: 10px;
}

.mobile-warning .icon-info{
	font-size: var(--font-head) !important;
}


@media all and (max-width: 800px) {
	.noscroll-mobile-only{
		overflow: hidden !important;
		position: fixed;
		top:0;left:0;
	}
	.mobile-only-inline{
		display: inline-block !important;
	}
}



.no-top-margin{
  margin-top: 0 !important;
}

.no-bottom-margin{
  margin-bottom: 0 !important;
}

.no-vertical-margin{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.no-margin{
  margin: 0 !important;
}

.no-padding{
  padding: 0 !important;
}

.add-vertical-margin{
  margin-top: 20px;
  margin-bottom: 20px;
}
.add-left-margin{
  margin-left: 5px;
}
.add-right-margin{
  margin-right: 5px;
}
.add-bottom-margin{
  margin-bottom: 10px;
}
.add-top-margin{
  margin-top: 10px;
}
.text-center{
  text-align: center;
}
.text-left{
  text-align: left;
}
.text-right{
  text-align: right;
}
.text-capital{
  text-transform: capitalize;
}
.float-right{
  float: right;
}

.small-text{
	font-size: var(--font-small);
}

.extra-small-text{
	font-size: var(--font-extra-small);
}


.add-underline{
	text-decoration: underline !important;
}

.minimal-scrollbar::-webkit-scrollbar {
    width: 2px !important;
    height: 0px !important;
}

.minimal-scrollbar::-webkit-scrollbar-thumb{
	background: var(--light-bg-color);
	border-radius: 10px;
}

.minimal-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}


.flex-row-override{
	flex-direction: row !important;
	align-items: center;
}

.flex-row-fullwidth{
	flex-basis: 100% !important;
	width: 100%;
}

.flex-row-fullwidth-override{
	flex-basis: 100% !important;
	width: 100%;
	max-width: 100% !important;
}

input.remove_input_controls::-webkit-outer-spin-button,
input.remove_input_controls::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.remove_input_controls[type=number]{
  -moz-appearance: textfield;
}


.icon-arrow-left:before {
  content: "\e901";
}

.icon-arrow-left {
  transform: rotate(180deg);
  display: inline-block;
}

.icon-arrow-down:before {
  content: "\e901";
}

.icon-arrow-down {
  transform: rotate(90deg);
  display: inline-block;
}

.simple-link{
	font-size: var(--font-small);
	display: block;
}

.simple-link:hover{
	opacity: 0.25;
}

/***** UI ELEMENTS ******/


.btn{
	background: var(--primary-color);
	width: 100%;
	color: var(--dark-bg-color);
	padding: 20px;
	text-align: center;
	margin: 15px auto;
	font-size: var(--font-copy);
	cursor:pointer;
	border-radius: var(--border-radius);
	cursor:pointer;
	transition: var(--transition);
	font-weight: 700;
/*	display: inline-block;*/
	position: relative;

	outline: none !important;
	box-shadow:none;
	border:none;
	text-decoration: none;
}

.btn:after {
	box-shadow: 0 0 0 3px var(--primary-color);
    display: none;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: var(--focus-opacity);
	border-radius: var(--border-radius);
	transition: var(--transition);
}

.btn:hover:after{
		display: block;
}

.btn.loading:hover:after{
	display: none;
	border-radius: 100px !important;
}

.btn_outline{
	color: var(--primary-color);
	background: none;
	box-shadow: 0 0 0 2px var(--primary-color);
	width:calc(100% - 4px);
	display: block;
	transition: none;
	transition: width var(--transition);
}


.btn.btn_outline:hover{
	background: var(--primary-color);
	opacity:1;
	color: var(--dark-bg-color);
}

.btn.btn_outline:hover:after{
	box-shadow: 0 0 0 5px var(--primary-color);
}


.btn.destructive, .btn.loading.destructive{
	background: var(--error-color) !important;
}

.btn.destructive:after {
		box-shadow: 0 0 0 3px var(--error-color);
}


.small_btn {
    width: fit-content !important;
    padding: 5px 15px !important;
    font-size: var(--font-copy) !important;
    display: inline-flex;
    font-weight: 600 !important;
    margin: 0 !important;
}

.loading.small_btn .text{
	width: 24px;
}

.secondary_btn{
	font-weight: 900;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    cursor:pointer;
    position: relative;
    overflow: hidden;
    z-index:10;
    color: var(--white-color);
    font-size: var(--font-small);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 100%;
}

.secondary_btn [class^="icon-"], .secondary_btn [class*=" icon-"] {
	font-size: 17pt;
}

.secondary_btn:after{
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	top:0;left:0;
	background: var(--light-bg-color);
	z-index: -1;
}

.secondary_btn:hover:after{
	opacity: var(--focus-opacity);
}

.secondary_btn_outline{
	font-weight: 300;
    padding: 7px 10px;
    border-radius: var(--border-radius);
    cursor:pointer;
    position: relative;
    overflow: hidden;
    z-index:10;
    font-size: var(--font-small);
    box-shadow: 0 0 0 2px var(--light-bg-color);
    background: transparent;
    text-align: center;
    color: var(--white-color);
    width: calc(100% - 4px);
    margin: 0 auto;
    text-decoration: none;
}

.secondary_btn_outline:hover{
	background: var(--light-bg-color);
}


.agreement_checkbox{
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.agreement_checkbox input{
  width: 20px;
  margin: 0 !important;
}




.switch {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-sub);
    flex-wrap: wrap;
    color: var(--white-color);
    margin: 15px 0;
}

.switch label{
	font-weight: 300;
	cursor:pointer;
	font-size: var(--font-copy);
	letter-spacing: 0.04em;
}

.switch .label-desc{
	font-size: var(--font-small);
	width:  100%;
	display:  none;
	margin: 10px 0 15px 0;
	letter-spacing: 0.06em;
}

.switch .fake-label-desc{
	font-size: var(--font-small);
	width:  100%;
	display:  block;
	margin: 10px 0 15px 0;
	letter-spacing: 0.06em;
}

.switch_checkbox:checked ~ span .label-desc{
	display: block;
}

.switch_checkbox:disabled ~ span, .switch_checkbox:disabled ~ label{
	opacity: var(--focus-opacity) !important;
}

.sub-switch{
	display: none;
	flex-basis: 100%;
	padding: 0 0 15px 6%;
}

.switch_checkbox:checked ~ .sub-switch{
	display: block;
	margin-top: 20px;
	border-bottom: 1px solid var(--light-bg-color);
}

.sub-switch .switch, .sub-switch .type_select{
	margin: 10px 0;
}



.switch_selector{
	flex-basis: 50px !important;
	width: 50px !important;
	display: flex !important;
	margin: 0;
	position: relative;
	height: 27px;
	background: var(--light-bg-color);
	border-radius: 100px;
	padding: 2px;
	cursor:pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.switch_selector.equal_value{
	flex-basis: 55px !important;
	width: 55px !important;
	height:  22px;
	font-size:  var(--font-small);
}

.switch_overlay{
	flex-basis: 50%;
    position: relative;
    z-index: 2;
    text-align: center;
    color:  var(--bg-color);
    transition: var(--transition);
    font-size: 13px;
}

.switch_overlay.grams_overlay{
    position: relative;
    bottom: 2px;
}

.switch_element{
	position: absolute;
	width: 50%;
	height: 23px;
	border-radius: 100px;
	background: var(--primary-color);
	transition: left 0.25s ease;
}

.switch_selector.equal_value .switch_element{
	background: var(--bg-color);
	height: 18px;

}

.switch_checkbox:checked ~ .switch_selector{
	/*background: var(--dark-bg-color);*/
}

.switch_checkbox:not(:checked) ~ span{
	opacity: 0.5;
}

.switch_checkbox ~ span{
	max-width: calc(95% - 50px);
	line-height: 85%;
}
  
.switch_checkbox:checked ~ .switch_selector .switch_element{
  left: calc(50% - 2px);
}

.switch_checkbox:checked ~ .switch_selector .switch_overlay:nth-child(2),
.switch_checkbox:not(:checked) ~ .switch_selector .switch_overlay:nth-child(1){
	color: var(--white-color);
}


.switch_checkbox:not(:checked) ~ .switch_selector .switch_element{
  left: 2px;
  background:var(--bg-color);
}


.web-notifications-btn, .web-notifications-reload-btn{
  display: none;
  text-align: center;
  color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
  font-size: var(--font-copy);
  border-radius: var(--border-radius);
  padding: 10px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  min-height: calc((var(--font-sub) * 1.5) + 20px);
}

.web-notifications-reload-btn{
  color: var(--light-bg-color);
  box-shadow: 0 0 0 2px var(--light-bg-color);
}

.web-notifications-reload-btn.hidden_notifications, .web-notifications-btn.hidden_notifications{
	display: none !important;
}


.web-notifications-btn .icon-bell, .web-notifications-reload-btn .icon-bell{
  font-size: calc(var(--font-sub) * 1.5);
  margin-right: 10px;
}

@media all and (max-width: 800px) {
  .web-notifications-btn:not(.hidden_notifications), .web-notifications-reload-btn:not(.hidden_notifications){
    display: flex;
  }

  .btn.small_btn{
  	width: fit-content !important;
  }
}

@media all and (min-width: 800px) {
  .web-notifications-btn:not(.hidden_notifications), .web-notifications-reload-btn:not(.hidden_notifications){
    display: none !important;
  }
}



.outdated-message {
    position: fixed;
    bottom: 20px;
    z-index: 100;
    left: 0;
    right: 0;
    width: 90%;
    max-width: fit-content;
    display: inline-flex;
    margin: auto;
    justify-items: center;
    justify-content: center;
    background: var(--light-bg-color);
    padding: 10px 20px;
    border-radius: 100px;
    gap: 20px;
    align-items: center;
    transform: translateY(100px);
    transition: var(--transition);
    box-shadow: 0 10px 30px 0 var(--dark-bg-color);
}

.outdated-message .secondary_btn:after{
	background: var(--bg-color);
}

.outdated .outdated-message{
	transform: translateY(0);
}


@media all and (max-width: 800px) {
  .outdated-message{
  	bottom: 153px;
  	transform: translateY(160px);
  }
}


/**** BUTTON ANIMATIONS *****/

.spinner {
	display: none;
	width: 24px;
	height: 24px;
	position: absolute;
	top: calc(50% - 12px);
	left: calc(50% - 12px);
	background: transparent;
	box-sizing: border-box;
	border-top: 4px solid var(--dark-bg-color);
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-radius: 100%;
	animation: spin 0.6s ease-out infinite;
}

.search_input .spinner{
	border-top: 4px solid var(--white-color);
	left:auto;right: 12px;
	z-index: 10;
}

.loading .spinner{
	display:block;
}

.loading .text{
	opacity:0;
	white-space: nowrap;
}

.btn.loading{
	width: 60px;
	border-radius: 100px !important;
	background:var(--primary-color) !important;
}

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




/****** INFO ******/

.icon-info{
/*	padding-left:5px;*/
	cursor:pointer;
	font-size: var(--font-copy) !important;
}

.icon-info:hover{
	opacity: var(--focus-opacity)
}

.favorite-metric{
	color: var(--light-bg-color);
	cursor: pointer;
}

.favorite-metric:hover:before{
	content:  "\e92f";
}

.favorite-metric.active-favorite{
	color:  var(--primary-color) !important;
}

.favorite-metric.active-favorite:before{
	content:  "\e92f" !important;
}



/**** ADVANCED OPTIONS ****/

.advanced-options{
	padding:  10px 0;
	border-top: 1px solid var(--light-bg-color);
  border-bottom: 1px solid var(--light-bg-color);
	transition: var(--transition);
}

.advanced-title{
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	font-size: var(--font-copy);
	cursor: pointer;
}
.advanced-title .icon-cog{
	font-size:  25px;
	transition: var(--transition);
}

.advanced-title .icon-cog:hover{
	opacity: var(--focus-opacity);
	transform: rotateZ(180deg);
}

.advanced-options-container{
	transition: var(--transition);
	padding: 0 0;
	overflow: hidden;
	max-height: 0;
	max-width:  100%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
/*	flex-direction: column;*/
	row-gap: 20px;
}

.advanced-active .advanced-options-container{
	padding: 20px 0;
	max-height: 1200px;
}

.advanced-active .icon-cog{
	transform: rotateZ(180deg);
}

.advanced-options-col{
	width: 49%;
}




/**** LOADING PAGE ****/



#loading-page{
  position: fixed;
  width: 100%;
  height:  100%;
  top: 0;left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index:  90001;
}

#loading-page:after{
  content: '';
  width:  100%;height: 100%;
  position: absolute;
  top: 0;left: 0;
  background:  var(--dark-bg-color);
}

#loading-page-bar{
  position: relative;
  z-index:  2;
  width:  95%;
  max-width:  200px;
  background:  var(--bg-color);
  height: 2px;
}

#loading-page-bar:after{
  content: '';
  position: absolute;
  top: 0;left: 0;
  height:  100%;
  background: var(--primary-color);
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  animation: 10s load_init cubic-bezier(0.05, 1.06, 0.58, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  transition: 0.25s cubic-bezier(0.05, 1.06, 0.58, 1);
}

@keyframes load_init {
  0% {width: 0%}
  10% {width: 5%}
  100% {width: 90%}
}


#loading-page-bar.fullyLoaded:after{
  width:  100% !important;
}


#loading-page-error {
    max-width: 330px;
    z-index: 1;
    text-align: center;
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-direction: column;
}

.has_error #loading-page-error{
	display: flex;
}

.has_error #loading-page-bar{
	display: none;
}


/****** VIDEO PLAYERS ********/

.player {
	position: relative;
	font-size: 0;
  overflow: hidden;
}

.player.video_fullscreen{
	background: #000;
}

.player-controls{
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: space-between;
	position: absolute;
	top:0;left:0;
	pointer-events: none;
}

.viewer {
	width: 100%;
}

.video_fullscreen .viewer{
  height: 100%;
  margin: 0 auto;
}

.player-forward, .player-backward {
	flex-basis: 20%;
    width: 20%;
    background: rgba(0,0,0,0.2);
    font-size: 30px;
    color: var(--white-color);
    pointer-events: all;
    cursor:pointer;
    opacity: 0;
    transition: var(--transition)
}

.light .player-forward, .light .player-backward{
	background: rgba(255,255,255,0.2);
}

.player-backward .icon{
	transform: scaleY(-1);
}
.player-forward .icon{
	transform: rotate(180deg);
}

.player-forward:hover, .player-backward:hover {
	opacity: 1;
}

.controls-item{
    align-items: center;
    display: flex;
    height: 100%;	
    justify-content: center;
}
.controls-item .icon-arrow-right{
	font-size: 30px;
}

.controls-item .icon-pause{
	font-size: 40px;
}

.controls-item .icon-arrow-right, .controls-item .icon-pause{
	position: relative;
	overflow: hidden;
	width:  50px;height: 50px;
	border-radius: 100px;
	display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.controls-item .icon-arrow-right:before, .controls-item .icon-pause:before{
	position: relative;
	z-index: 2;
}
.controls-item .icon-arrow-right:after, .controls-item .icon-pause:after{
	content: '';
	width:  100%;height: 100%;
	top: 0;left: 0;
	position: absolute;
	background: var(--dark-bg-color);
	opacity: 0.7;
}

.progress_container {
	position: absolute;
	bottom:0;left: 0;
	background: rgba(0, 0, 0, 0.5);
	height: 3px;
	width: 100%;
	cursor: pointer;
	z-index: 1;
	transition-delay: 2s;
}

.light .progress_container{
	background: rgba(255, 255, 255, 0.5);
}

.video_played .progress_container:hover{
	height: 30px;
	transition-delay: 0s;
}

.progress_fill {
	width: 0%;
	background: var(--primary-color);
	height: 3px;
	z-index:10;
	position: absolute;
	top:0;left:0;
}

.small_controls {
    font-size: 20px;
    color: var(--white-color);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
    height: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.small_controls_hitbox{
	position: absolute;
	height: 30px;width: 100%;
	bottom: 0;left:0;
	z-index: 1;
}

.play-pause:before{
	content: "\e901";
}

.playing .play-pause:before{
	content: "\e929";
}


.toggle_playback{
	color: var(--white-color);
	font-size:20px;
	cursor:pointer;
	pointer-events: none;
	z-index:10;
	flex-basis: 60%;
	transition: var(--transition);
	opacity: 1;
}

.playing .toggle_playback{
	transition-delay:1.5s;
	opacity:0;
}

.player_thumb {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.video_loading .player_thumb{
	opacity: 0.5;
}



.video_loading video{
	display: none;
}

.video_played .player_thumb{
	display: none !important;
}

.video_played video{
	display: block;
}



.video-placeholder{
	min-height: 200px;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	z-index: 11;
}

.video-placeholder:after{
	content: '';
	position: absolute;
	width: 100%;height: 100%;
	top: 0;left: 0;
	background: var(--dark-bg-color);
	opacity: 0.7;
}

.small_player .video-placeholder{
	min-height: 0;
}

.small_player .player_thumb{
	min-height: auto;
}

.small_player .player-controls .icon,
.small_player .player-controls .icon-arrow-right {
    font-size: 18px !important;
}

.small_player .player-controls .icon-pause{
	font-size: 22px !important;
}

.small_player .player-controls .icon-pause,
.small_player .player-controls .icon-arrow-right{
	width:  30px;height: 30px;
}

.small_player .player{
	height: 100%;
}

.video-loading-bar{
	position: relative;
	z-index:  2;
	width:  95%;
	max-width:  200px;
	background:  var(--bg-color);
	height: 2px;
}

.small_player .video-loading-bar{
	max-width: 70%;
}

.small_player .video_played .toggle_playback{
	display: none;
}

.video-loading-bar:after{
	content: '';
	position: absolute;
	top: 0;left: 0;
	height:  100%;
	background: var(--primary-color);
	transition: 0.25s cubic-bezier(0.05, 1.06, 0.58, 1);
}


.video_loading .video-placeholder{
	opacity: 1;
}

.video_loading .video-loading-bar:after{
	animation-fill-mode: forwards;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	animation-iteration-count: 1;
	animation-duration: 10s;
	animation-name: load_init;
	animation-timing-function: cubic-bezier(0.05, 1.06, 0.58, 1);
}



/*** EXTERNAL VIDEO PLAYERS **/


.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	background-position: center;
	background-size: cover;
}

.video-container iframe, .video-container .invalid-url{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-container .invalid-url{
	display: flex;
	background: var(--dark-bg-color);
	align-items: center;
	justify-content: center;
	border-radius: var(--border-radius);
}

.video-container.short-portrait{
	width: 100%;
	padding-bottom: 133.33%;   /* 1440 x 1080 */
}




/**** GRAPH STYLING ***/

.graph{
  height:100%;
  width: 100%;
  display: block;
  margin: 0 auto;
  text-align: center;
/*  overflow: overlay;*/
  overflow: visible;
}


.graph_container{
	display: flex;
	justify-content: space-between;
	height: 350px;
	position: relative;
	margin: 60px 0 30px 0;
	z-index: 1;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-bg-color);
    text-align: right;
    padding-right: 10px;
    font-size: var(--font-small);
    border-right: 1px solid var(--light-bg-color);
 		padding-bottom: calc((350px * .1) - 15px);
}

.y-axis.time-axis{
	width: 100px;
}

.x-axis{
  stroke:var(--light-bg-color);
  stroke-width: 1;
  fill: transparent;
}


.graph .bottom{
  fill:var(--light-bg-color);
}
.graph .line{
  stroke:var(--primary-color);
  stroke-width: 2;
  fill: transparent;
}

.graph .circle{
  stroke: var(--primary-color);
  stroke-linecap:round;
  stroke-width:13px;
}

.graph_size-small {
    height: 30px;
    max-width: 90px;
    width: 30%;
    margin: 0;
}

.graph_size-small .circle{
	stroke-width: 6px;
}

/* Multiline coloring */
.graph g:nth-child(1) .circle, .graph g:nth-child(1) .line { stroke: var(--white-color); }
.graph g:nth-child(2) .circle, .graph g:nth-child(2) .line { stroke: var(--carbs-color); }
.graph g:nth-child(3) .circle, .graph g:nth-child(3) .line { stroke: #9cf74d; }
.graph g:nth-child(4) .circle, .graph g:nth-child(4) .line { stroke: var(--proteins-color); }

.graph-keys .graph-key.active-key:nth-child(1){ color: var(--white-color); }
.graph-keys .graph-key.active-key:nth-child(2){ color: var(--carbs-color); }
.graph-keys .graph-key.active-key:nth-child(3){ color: #9cf74d; }
.graph-keys .graph-key.active-key:nth-child(4){ color: var(--proteins-color); }

.graph-keys .graph-key.active-key:nth-child(1):before, .graph-keys .graph-key.active-key:nth-child(1):after{ background: var(--white-color); }
.graph-keys .graph-key.active-key:nth-child(2):before, .graph-keys .graph-key.active-key:nth-child(2):after{ background: var(--carbs-color); }
.graph-keys .graph-key.active-key:nth-child(3):before, .graph-keys .graph-key.active-key:nth-child(3):after{ background: #9cf74d; }
.graph-keys .graph-key.active-key:nth-child(4):before, .graph-keys .graph-key.active-key:nth-child(4):after{ background: var(--proteins-color); }

.quick_stats-multiline .quick_stat:nth-child(2) p{ color: var(--white-color); }
.quick_stats-multiline .quick_stat:nth-child(3) p{ color: var(--carbs-color); }
.quick_stats-multiline .quick_stat:nth-child(4) p{ color: #9cf74d; }
.quick_stats-multiline .quick_stat:nth-child(5) p{ color: var(--proteins-color); }


.past_nutrition_widget .past_nutrition_widget-row:nth-child(1) .past_nutrition_widget-bar-inside{ background: var(--white-color); }
.past_nutrition_widget .past_nutrition_widget-row:nth-child(2) .past_nutrition_widget-bar-inside{ background: var(--carbs-color); }
.past_nutrition_widget .past_nutrition_widget-row:nth-child(3) .past_nutrition_widget-bar-inside{ background: #9cf74d; }
.past_nutrition_widget .past_nutrition_widget-row:nth-child(4) .past_nutrition_widget-bar-inside{ background: var(--proteins-color); }


.graph g {
  cursor: pointer;
}

.graph > g:hover .line, .graph > g:hover .circle {
  opacity: 1;
}

.graph:hover:has(g:hover) g {
    opacity: .3;
}

.graph:hover:has(g:hover) g:not(:hover) .circle, .graph:hover:has(g:hover) g:not(:hover) .line {
    stroke: var(--light-bg-color);
}

.graph g:hover{
  opacity:1 !important;
}

.graph-keys {
    display: flex;
    justify-content: center;
    gap: 7px;
    text-transform: capitalize;
}

.graph-key{
	color: var(--white-color) !important;
	position: relative;
	padding: 10px;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.graph-key:before{
	content: '';
	width: 15px;height:15px;
	border-radius: 10px;
	background: var(--light-bg-color);
	margin-right: 6px;
	display: inline-block;
}

.graph-key:after{
	content: '';
	width: 100%;height:100%;
	border-radius: 10px;
	background: var(--light-bg-color);
	margin-right: 6px;
	display: inline-block;
	position: absolute;
	top:0;left:0;
	opacity: 0.2;
	z-index: -1;
}

.metric_quick_stats-header p{
	font-weight: 700;
}

.quick_stats-multiline {
	display: flex;
	flex-direction: column;
}

.quick_stat {
    width: 100%;
    display: flex;
    justify-content: end;
    text-transform: capitalize;
    border-bottom: 1px solid var(--light-bg-color);
    padding: 10px 0;
}

.quick_stat-key {
	font-weight: 700;
    flex: 1;
}

.quick_stat-desc {
    text-align: left;
    flex-basis: calc(20% + 10px);
}


/****** DIFFICULTY *****/

.difficulty-contain{
	display: flex;
	justify-content: flex-start;
	margin-bottom:20px;
	padding-top:  2px;
}

.difficulty-contain label{
	width:20px;height:20px;
	margin-right:10px;
	border-radius:200px;
	box-shadow: 0 0 0 2px var(--primary-color);
	cursor: pointer;
	background:var(--primary-color);

}
.difficulty-contain input:checked ~ label {
	background: transparent;
}
.difficulty-contain input:checked + label {
	background: var(--primary-color);
}



/****** MESSAGE LOADING ****/

.message_loading_container {
    position: absolute;
    top: 0;left: 0;
    width: 100%;height: 100%;
}

.message_loading_container:after{
	content: '';
	background: var(--dark-bg-color);
	opacity: 0.8;
  position: absolute;
  top: 0;left: 0;
  width: 100%;height: 100%;
}

.message_loading_container .message_loading{
	width:  95%;
	max-width:  200px;
	height: 2px;
	z-index:10;
	top:0;left:0;bottom:0;right:0;
	margin: auto;
	position: absolute;
	background: var(--bg-color);
}

.message_loading_container .message_loading:after {
	content:'';
	height: 100%;
	width: var(--progress);
	position: absolute;
	background: var(--primary-color);
}

.message_loading_container:before {
	content: attr(data-content)'%';
	width: 100px;
	text-align: center;
	position: absolute;
	color: var(--primary-color);
	z-index:10;
	top:0;left:0;right:0;bottom:0;
	margin: auto;
	font-size: var(--font-copy);
	height: var(--font-copy);
	padding-top: calc(var(--font-copy) * 2);
}

.message.type-link .message_loading_container:before, .message.type-audio .message_loading_container:before{
	display: none;
}

/****** SLIDER *******/

.slider-track-contain{
	width: 100%;
	position: relative;
	display: flex;
	justify-content: space-between;
	column-gap: 15px;
}


.slider-track{
	-webkit-appearance: none;
	padding: 0;margin-bottom: 0;
	background:  transparent;
	position: relative;
	flex: 1;
}

.slider-track:focus {
  outline: none;
}

.slider-track-label{
	font-size: var(--font-sub);
	font-weight: 800;
}


.slider-track::-webkit-slider-runnable-track {
  width: 100%;
  height: 15px;
  cursor: pointer;
  background: var(--light-bg-color);
  border-radius: 100px;
}
.slider-track::-webkit-slider-thumb {
  border: 0px solid rgba(0, 0, 0, 0);
  height: 15px;
  width: 15px;
  border-radius: 100px;
  background: var(--primary-color);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: 0;
  position: relative;
}

.slider-track-label:after{
	content: attr(data-content)'%';
}



/*** MESSAGES ****/

.rtdb-offline-messages {
    display: none;
    flex-basis: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    font-size: var(--font-small);
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #000;
    text-align: center;
    padding: 0 10px;
}

.rtdb-is-offline .rtdb-offline-messages{
	display:flex;
}


/**** NUTRITION ****/

.macro_breakdown-list{
	display: flex;
	justify-content: space-between;
	background: var(--dark-bg-color);
	flex-direction: column;
	padding:10px;
	border-radius: var(--border-radius);
}

.macro_breakdown-header{
	text-align: center;
	margin: 20px 0;
}

.macro_breakdown-header h3{
	font-weight: 900;
}

.macro_breakdown-row{
	display: flex;
	border-bottom: 1px solid var(--bg-color);
}

.macro_breakdown-row p{
  width: 16%;
  max-width: 16%;
  min-width: 16%;
  font-size: var(--font-small);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px;
  cursor: pointer;
}

.macro_breakdown-row .macro_breakdown-food{
	width: 33%;
	max-width: 33%;
	min-width: 33%;
	padding-right: 10px;
}

.macro_breakdown-row.row-head p{
	font-size: var(--font-extra-small);
}

.macro_breakdown-row.row-totals p{
	font-weight: 900;
}


.macro_breakdown-row.active-row{
	background: var(--light-bg-color);
}

.macro_breakdown-row.active-row p{
	color: var(--primary-color);
	font-weight: 900;
}

.macro_breakdown-list[data-active-row="calories"] [data-row-type="calories"],
.macro_breakdown-list[data-active-row="carbs"] [data-row-type="carbs"],
.macro_breakdown-list[data-active-row="fats"] [data-row-type="fats"],
.macro_breakdown-list[data-active-row="proteins"] [data-row-type="proteins"]{
	background: var(--light-bg-color);
	color: var(--primary-color);
	font-weight: 900;
}



/****** EXPANDABLE DROPDOWN *********/


.expandable{
  cursor:pointer;
  position: relative;
  
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.expand{
  position: absolute;
  display:none;
  background: rgba(6,6,6,0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0 15px;
  text-align: left;
  z-index: 14;
  border-radius: 10px;
  max-height: 210px;
  overflow: hidden;
  overflow-y: scroll;
  white-space: nowrap;
  box-shadow: 10px 10px 30px 4px rgba(6,6,6,0.8);
}

.light .expand{
	background: rgba(240,240,240,0.8) !important;
	box-shadow: 0 0 0 2px var(--light-bg-color);
}

.expandable .expand-active{
  display:inline-block;
}

.expand.direction-left{
  top:10px;right:calc(100% + 10px);
}
.expand.direction-right{
  top:10px;left:calc(100% + 10px);
}
.expand.direction-bottom-right{
  top:calc(100% + 5px);left:25%;
}
.expand.direction-bottom-left{
  top:calc(100% + 5px);right:25%;
}
.expand.direction-top-left{
  bottom: calc(100% + 5px);right: 25%;
}


.expand-item, .expand-item-subhead{
  border-bottom: 1px solid var(--light-bg-color);;
  padding: 12px 0;
  color: var(--white-color);
  font-size: var(--font-copy) !important;
  line-height: 110%;
  transition:  var(--transition);
  text-decoration: none;
  font-weight:  400 !important;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
}

.expand-item a{
  font-weight:  400 !important;
   text-decoration: none;
}

.expand-item:last-child{
  border-bottom: none;
}

.expand-item [class^="icon-"]{
	margin-right: 10px;
	font-size: 24px;
}

.expand-item:hover{
  opacity: var(--focus-opacity);
}

.expand-item-subhead{
	font-weight:  900 !important;
	padding: 10px 0;
	color: var(--primary-color);
  border-color: var(--primary-color);
}

.expand::-webkit-scrollbar{
  width: 6px;
  height: 10px;
}

.expand::-webkit-scrollbar-thumb{
	background: var(--bg-color);
	border-radius: 10px;
}

.light .expand::-webkit-scrollbar-thumb{
	background: var(--white-color);
}

.expand::-webkit-scrollbar-track{
  background: transparent;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

.expand-btn{
	display: block;
  padding: 5px;
  margin: 5px 0 15px 0;
}

.warning-error-text{
	color: var(--error-color);
}



.toggle-dropdown{
	cursor: pointer;
}

.toggle-dropdown.closed-dropdown .icon-arrow-down{
	transform: rotate(90deg) scaleX(-1);
}

.dropdown{
	max-height: 2000px;
	overflow: hidden;
	transition: var(--transition);
}
.dropdown.closed-dropdown{
	max-height: 0;
}

/** BETA APP ACCESS **/

.app_download {
	margin: 30px auto;
	padding: 0 10px;
	text-align: center;
}

.app_download a {
	text-decoration: underline;
	color: var(--white-color);
	font-weight: 800;
}

.app_download a:hover {
	color: var(--primary-color);
}

/** iOS APP SMART BANNER */

.smart-banner {
    width: 100%;
    padding: 5px 2.5% 10px 2.5%;
    background: #000;
    display: flex;
    justify-content: space-between;
    gap: 15px;
	align-items: center;
	position: sticky;
	top: 0;left: 0;
	z-index: 9001;
}

.smart-banner_logo {
    width: 43px;
    border-radius: 12px;
}

.smart-banner_info {
    flex: 1;
    text-align: left;
}

.smart-banner_info p{
	text-align: left;
	font-weight: 800;
}

.smart-banner_btn{
	background-color: #0A83FF;
	display: inline-block;
	padding: 5px 20px;
	font-size: var(--font-small);
	border-radius: 100px;
	font-weight: 800;
}