/************************************************************* TOGGLE SWITCH *************************************************************/
/* ------------------------------------------
CSS TOGGLE SWITCHES (Ionuț Colceriu)
Licensed under Unlicense 
https://github.com/ghinda/css-toggle-switch
------------------------------------------ */

/* Hide by default */

.spoonacular-switch .slide-button,
.toggle p span {
	display: none;
}

/* Toggle Switches */

/* We can't test for a specific feature,
 * so we only target browsers with support for media queries.
 */
@media only screen {

	/* Checkbox
	 */
	.toggle {
		position: relative;
		padding: 0;
		margin-left: 100px;
	}

	/* Position the label over all the elements, except the slide-button
	 * Clicking anywhere on the label will change the switch-state
	 */
	.toggle label {
		position: relative;
		z-index: 3;
		
		display: block;
		width: 100%;
	}

	/* Don't hide the input from screen-readers and keyboard access
	 */
	.toggle input {
		position: absolute;
		opacity: 0;
		z-index: 5;
	}
	
	.toggle p {
		position: absolute;
		left: -100px;
		
		width: 100%;
		margin: 0;
		padding-right: 100px;
		
		text-align: left;
	}
	
	.toggle p span {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 5;
		
		display: block;
		width: 50%;
		margin-left: 100px;
		
		text-align: center;
	}
	
	.toggle p span:last-child {
		left: 50%;
	}

	.toggle .slide-button {
		position: absolute;
		right: 0;
		top: 0;
		z-index: 4;
		
		display: block;
		width: 50%;
		height: 100%;
		padding: 0;
	}

	/* Radio Switch
	 */
	.spoonacular-switch {
		position: relative;
		padding: 0;
	}
	
	.spoonacular-switch input {
		position: absolute;
		opacity: 0;
	}
	
	.spoonacular-switch label {
		position: relative;
		z-index: 2;
		
		float: left;
		width: 50%;
		height: 100%;
		
		margin: 0;
		text-align: center;
	}

	.spoonacular-switch .slide-button {
		position: absolute;
		top: 0;
		left: 0;
		padding: 0;
		z-index: 1;
		
		width: 50%;
		height: 100%;
	}

	.spoonacular-switch input:last-of-type:checked ~ .slide-button {
		left: 50%;
	}

	/* Switch with 3 items */
	.switch.switch-three label,
	.switch.switch-three .slide-button {
		width: 33.3%;
	}

	.switch.switch-three input:checked:nth-of-type(2) ~ .slide-button {	
		left: 33.3%;
	}

	.switch.switch-three input:checked:last-of-type ~ .slide-button {
		left: 66.6%;
	}
	
	/* Switch with 4 items */
	.switch.switch-four label,
	.switch.switch-four .slide-button {
		width: 25%;
	}

	.switch.switch-four input:checked:nth-of-type(2) ~ .slide-button {	
		left: 25%;
	}
	
	.switch.switch-four input:checked:nth-of-type(3) ~ .slide-button {	
		left: 50%;
	}

	.switch.switch-four input:checked:last-of-type ~ .slide-button {
		left: 75%;
	}
	
	/* Switch with 5 items */
	.switch.switch-five label,
	.switch.switch-five .slide-button {
		width: 20%;
	}

	.switch.switch-five input:checked:nth-of-type(2) ~ .slide-button {	
		left: 20%;
	}
	
	.switch.switch-five input:checked:nth-of-type(3) ~ .slide-button {	
		left: 40%;
	}
	
	.switch.switch-five input:checked:nth-of-type(4) ~ .slide-button {	
		left: 60%;
	}

	.switch.switch-five input:checked:last-of-type ~ .slide-button {
		left: 80%;
	}

	/* Shared */
	.toggle,
	.spoonacular-switch {
		display: block;
		height: 24px;
	}
	
	.spoonacular-switch *,
	.toggle * {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
		-o-box-sizing: border-box;
		box-sizing: border-box;
	}
	
	.spoonacular-switch .slide-button,
	.toggle .slide-button {
		display: block;
		
		-webkit-transition: all 0.3s ease-out;
		-moz-transition: all 0.3s ease-out;
		-ms-transition: all 0.3s ease-out;
		-o-transition: all 0.3s ease-out;
		transition: all 0.3s ease-out;
	}
	
	.toggle label,
	.toggle p,
	.spoonacular-switch label {
		line-height: 24px;
		vertical-align: middle;
	}
	
	.toggle input:checked ~ .slide-button {
		right: 50%;
	}
	
	/* Outline the toggles when the inputs are focused */
	.toggle input:focus ~ .slide-button,
	.spoonacular-switch input:focus + label {
		outline: 1px dotted #888;
	}
	
	/* Bugfix for older Webkit, including mobile Webkit. Adapted from:
	 * http://css-tricks.com/webkit-sibling-bug/
	 */
	.spoonacular-switch, .toggle {
		-webkit-animation: bugfix infinite 1s;
	}
	
	@-webkit-keyframes bugfix { from { position: relative; } to { position: relative; } }


	/* Standalone Themes */

	.spoonacular-metro {
		background-color: #b6b6b6;
		
		color: #fff;
	}

	.spoonacular-metro.toggle {
		border: 2px solid #b6b6b6;
	}

	.spoonacular-metro.spoonacular-switch {
		overflow: hidden;
	}
		
	.spoonacular-metro.spoonacular-switch .slide-button {
		background-color: #279fca;
	}

	.spoonacular-metro.toggle .slide-button {
		border-radius: 2px;
		
		background-color: #848484;
	}

	/* Selected ON toggle */
	.spoonacular-metro.toggle input:first-of-type:checked ~ .slide-button {
		background-color: #279fca;
	}

	.spoonacular-metro p {
		color: #333;
	}

	.spoonacular-metro span {
		color: #fff;
	}
	
}


/************************************************************* NUMERIC STEPPER *************************************************************/
/*
Copyright (c) Luciano Longo

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

.stepper-wrap {
    position: relative;
    display: inline-block;
    font: 11px Arial, sans-serif;
}

.stepper-wrap input {
    text-align: right;
}

.stepper-btn-wrap {
    position: absolute;
    top: 0;
    right: -15px;
    width: 15px;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ccc;
    border-left: 0;

    /* Border Radius */
    -webkit-border-radius: 0 2px 2px 0; /* Saf3-4, iOS 1-3.2, Android <1.6 */
       -moz-border-radius: 0 2px 2px 0; /* FF1-3.6 */
            border-radius: 0 2px 2px 0; /* Opera 10.5, IE9, Saf5, Chrome, FF4, iOS 4, Android 2.1+ */
    /* useful if you don't want a bg color from leaking outside the border: */        
    -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; 

    /* Background Gradient */
    background-color: #ddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd)); /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(top, #eee, #ddd); /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image:    -moz-linear-gradient(top, #eee, #ddd); /* FF3.6 */
    background-image:     -ms-linear-gradient(top, #eee, #ddd); /* IE10 */
    background-image:      -o-linear-gradient(top, #eee, #ddd); /* Opera 11.10+ */
    background-image:         linear-gradient(top, #eee, #ddd);
              filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#eee', EndColorStr='#ddd'); /* IE6-IE9 */
    
    /* Box Sizing */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.stepper-btn-wrap a {
    display: block;
    height: 50%;
    overflow: hidden;
    line-height: 100%;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 0 #fff;
    cursor: default;
    color: #666;

    /* Box Sizing */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.stepper-btn-wrap a:hover {
    background: rgba(255, 255, 255, 0.5);
}

#spoonacular-serving-stepper {
	width: 25px;
	margin-left: 4px;
}

/************************************************************* INGREDIENTS *************************************************************/
.spoonacular-ingredient {
	width: 100px;
	height: 100px;
	/*padding: 10px;*/
	position: relative;
	border: 4px solid rgba(30, 30, 30, 0.30);
	margin-right: 7px;
	margin-top: 10px;
}

.spoonacular-image-wrapper {
	width: 100px;
	height: 100px;	
	vertical-align: middle;
	text-align: center;
	line-height: 100px;
	background-color: #fff;
	position: relative;
}

#spoonacular-ingredient-vis-list .spoonacular-image-wrapper {
	border: 6px solid rgba(30, 30, 30, 0.30);
	width: 80px;
	height: 80px;
	line-height: 80px;
}

.spoonacular-ingredient img {
	max-width: 100px;
	max-height: 97px;
	vertical-align: middle;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	margin: auto;
}

.spoonacular-ingredient .spoonacular-name, .spoonacular-ingredient .spoonacular-amount {
	padding: 0px 2px;
	width: 96px;
	height: 0px;
	position: absolute;
	background-color: rgba(32, 34, 44, 0.64);
	line-height: 20px;
	color: #fff;
	text-align: center;
	overflow: hidden;
	z-index: 999;
}

.spoonacular-ingredient div.spoonacular-amount {
	top: 0px;	
	height:18px;
}
.spoonacular-ingredient div.spoonacular-name {
	bottom: 0px;
	height:18px;
}

.t12 {
	font-size: 12px;
}
.t11 {
	font-size: 11px;
}
.t10 {
	font-size: 10px;
}
.t9 {
	font-size: 9px;
}

#spoonacular-ingredient-vis-list {
	display: none;
}

div.spoonacular-ingredient-list {
	border-bottom: 1px solid #003366;
	color: #003366;
	font-size: 19px;
	line-height: 80px;
	padding: 5px 0px;
}
.spoonacular-ingredient-list img {
	max-width: 80px;
	max-height: 77px;
	vertical-align: middle;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	margin: auto;
}
div.spoonacular-ingredient-list .spoonacular-amount {
	margin-left: 20px;
	width: 90px;
	float: left;
}
div.spoonacular-ingredient-list .spoonacular-name {
	float: left;
}