/*********** INFORMATION *****************************

- document:  SlideIt - CSS3 fixed sliding elements
- element:   Special product image - Bottom Right
- author:    Capelle @ Codecanyon
- profile:   http://codecanyon.net/user/Capelle

*****************************************************/



#slideit * {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: 300;
	font-style: normal;
	font-size: 100%;
	font-family: Arial, Helvetica, sans-serif; /* Edit this if you want to match the font with your template design */
	vertical-align: baseline;
	line-height: normal;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
#slideit label {
	cursor: pointer;
}
#slideit input[type="radio"] {
	display: none;
}
/* === Note === If you experience issues with reset above, please adjust the selectors and values according to your template/website.
When adjusting the reset is adviced to check up the elements on your page, as they might distort. */


/*  ==================
    3. MAIN STYLES
    ==================  */

#slideit {
	z-index: 9999; /* Keep the item above all other elements on the page */
	position: fixed;
	width: 360px; /* Width of the wrapper of the section. Adjust this value if you want different size of an image */
	bottom: 0; /* Vertical position of the elements */
	right: 2%; /* Horizontal position of the elements */
}

/***** Main styles *****/

#slideit section {
	margin: 0;
	overflow: hidden;
	width: 100%;
	height: auto;
	right: 0;
	bottom: 0;
	position: absolute;
	z-index: 10;
	background: #fff;
	-webkit-backface-visibility: hidden; /* Webkit transition hack */
	border-bottom-width: 6px;
	border-bottom-style: solid;
	border-bottom-color: #FFFFFF;
}
#slideit section,
#slideit input#close-item:checked ~ section {
	/* Section position when closed */
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	-o-transform: translateY(100%);
	transform: translateY(100%);
}
#slideit input#open-item:checked ~ section {
	/* Section position when opened */
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);
}
#slideit section .wrap {
	position: relative;
	float: left;
	width: 100%;
	height: 300px; /* <-- This will be the height of the image */
	z-index: 1; /* Layering the image wrapper below Close label */
	border: 1px solid #CCCCCC;
}
#slideit .wrap a {
	text-decoration: none;
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}
#slideit section .wrap img {
	width: 100%;
	height: auto;
}
#slideit .caption {
	position: absolute;
	width: 70%;
	padding: 16px;
	background: #fff;
	bottom: 10%;
	left: 0;
}
#slideit .caption span.title {
	color: #222;
	font-size: 16px;
	text-transform: uppercase;
}
#slideit .caption p {
	font-size: 12px;
	color: #999;
}
#slideit .special {
	position: absolute;
	right: -50px;
	top: 0;
	width: auto;
	height: 100%;
	background: #9EA3C5;
	text-align: center;
	line-height: 68px;
	padding: 0 10px;
}
#slideit .special span {
	color: #fff;
	font-size: 20px;
}

/***** Labels *****/

#slideit label.open,
#slideit label.close {
	text-align: center;
	position: absolute;
}
#slideit label.open {
	font-size: 0.929em;
	color: #FFF;
	width: 130px;
	bottom: -50px;
	left: 200px;
	right: 0;
	top: auto;
	margin: auto;
	padding: 10px;
	text-transform: uppercase;
	z-index: 1;
	font-weight: bold;
	background-color: #00CC00;
	opacity: 0.6;
}
#slideit input#close-item:checked ~ label.open {
	bottom: 0;
}
#slideit label.open:hover,
#slideit label.open:focus {
	color: #99cc33;
	background-color: #090;
	border-top-width: 1px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
#slideit label.close {
	right: 30px;
	left: auto;
	top: 0;
	bottom: auto;
	font-size: 20px;
	color: #fff;
	width: 22px;
	z-index: 999;
	background-color: #b4495f;
}
#slideit label.close:hover,
#slideit label.close:focus {
	background-color: #99cc33;
}

/***** Transitions *****/

#slideit label {
	-webkit-transition: all 0.1s ease-in-out;
	-moz-transition: all 0.1s ease-in-out;
	-ms-transition: all 0.1s ease-in-out;
	-o-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
}
#slideit section {
	-webkit-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
	-moz-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
	-ms-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
	-o-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
	transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
}
#slideit input#close-item:checked ~ label.open {
	-webkit-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
	-moz-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
	-ms-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
	-o-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
	transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
}


/*  ==================
    4. MEDIA QUERIES
    ==================  */

/***** Max width 480px *****/

@media screen and (max-width:480px){
	#slideit {
		width: 100%;
		left: 0;
	}
}
