#recent-viewed-sidebar {
	position: fixed;
	background: #EEE;
	z-index: 999;
	-webkit-transition: all 150ms ease-in-out;
	-moz-transition: all 150ms ease-in-out;
	-ms-transition: all 150ms ease-in-out;
	-o-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
	margin: 0;
}

#recent-viewed-sidebar.left.closed,
#recent-viewed-sidebar.right.closed {
	width: 0!important;
	border: 0px;
}

#recent-viewed-sidebar.left, #recent-viewed-sidebar.right {
	/*width: 105px;*/
}

#recent-viewed-sidebar .rvp-block-content {
	margin: 8px 0 0 0;
	overflow: hidden;
	min-height: 130px;
}

#recent-viewed-sidebar.bottom .rvp-block-content {
	min-height: 0;
}

#recent-viewed-sidebar .rvp-block-content ul {
	list-style: none;
}

#recent-viewed-sidebar .rvp-block-content li {
	float: left;
	list-style: none;
}

#recent-viewed-sidebar #recently-viewed-items li > a {
	display: block;
	background: #fff;
}

#recent-viewed-sidebar #recently-viewed-items li > a img {
	display: block;
	max-width: initial;
}

#recent-viewed-sidebar .clear-all-btn {
	text-align: center;
	padding: 5px 0;
	background: #f7f7f7;
	border: 1px solid #DEDEDE;
	border-top: 0;
}

#recent-viewed-sidebar.closed .clear-all-btn span {
	font-size: 0;
}

#recent-viewed-sidebar .clear-all-btn span {
	font-size: 12px;
	text-decoration: none;
}

#recent-viewed-sidebar .clear-all-btn span:hover {
	text-decoration: underline;
	cursor: pointer;
}

#recent-viewed-sidebar #recent-slide-btn {
	outline: none;
	display: block;
	background-color: #f5f5f5;
	border: 1px solid #c4c1bc;
	border-right: 0px;
	width: 30px;
	height: 145px;
	overflow: hidden;
	position: absolute;
	top: 50%;
	margin-top: -74px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

#recent-viewed-sidebar #recent-slide-btn {
	border-right: 1px solid #c4c1bc;
	border-left: 0;
}

#recent-viewed-sidebar #recent-slide-btn:hover {
	text-decoration: none;
	background-color: #EFEFEF;
	cursor: pointer;
}

#recent-viewed-sidebar #recent-slide-btn span {
	-moz-transform: rotate(270deg);
	-webkit-transform: rotate(270deg);
	-o-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
	transform: rotate(270deg);
	display: block;
	padding: 0;
	width: 100%;
	height: 20px;
	white-space: nowrap;
	margin-top: 100%;
	top: 54%;
	position: relative;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 13px;
}

/* on right side */
#recent-viewed-sidebar #recent-slide-btn span:after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	margin-left: 3px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	border-width: 8px 4px 0 4px;
	border-color: #848484 transparent transparent transparent;
}

#recent-viewed-sidebar.closed #recent-slide-btn span:after {
	border-width: 0 4px 8px 4px;
	border-color: transparent transparent #fff transparent;
}

/* on left side */
#recent-viewed-sidebar.left #recent-slide-btn span:after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	margin-left: 3px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	border-width: 0 4px 8px 4px;
	border-color: transparent transparent #848484 transparent;
}

#recent-viewed-sidebar.left.closed #recent-slide-btn span:after {
	border-width: 8px 4px 0 4px;
	border-color: #fff transparent transparent transparent;
}

#recent-viewed-sidebar.closed #recent-slide-btn {
	background-color: #999999;
	border: 1px solid #999999;
	color: #fff;
}

#recent-viewed-sidebar.closed #recent-slide-btn:hover {
	background-color: #858585;
}

#recent-viewed-sidebar.closed #recent-slide-btn {
	background-position: left top;
}

/*position right*/
#recent-viewed-sidebar.right {
	right: 0px;
	top: 0;
}
#recent-viewed-sidebar.right .rvp-block-content li {
	padding: 0 9px 10px 9px;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

#recent-viewed-sidebar.right #recent-slide-btn {
	left: -31px;
	border-left: 1px solid #c4c1bc;
	border-right: 0px;
}

/*position left*/
#recent-viewed-sidebar.left .rvp-block-content li {
	padding: 0 9px 10px 9px;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

#recent-viewed-sidebar.left #recent-slide-btn.active {
	left: 105px;
}

#recent-viewed-sidebar.left #recent-slide-btn {
	right: -31px;
	border-right: 1px solid #c4c1bc;
	border-left: 0px;
}

/*no clear buton*/
#recent-viewed-sidebar.right.no-clear-button #recent-slide-btn,
#recent-viewed-sidebar.left.no-clear-button #recent-slide-btn {
    height: 116px;
    margin-top: -59px;
}

#recent-viewed-sidebar.right.no-clear-button #recent-slide-btn span,
#recent-viewed-sidebar.left.no-clear-button #recent-slide-btn span {
	top: 48%;
	height: 18px;
	font-size: 11px;
}


/* position bottom */
#recent-viewed-sidebar.bottom {
	bottom: 0;
	left: 0!important;
	width: 100%;
	min-width: 150px;
	border-top: 1px solid #C4C1BC;
}

#recent-viewed-sidebar.bottom.closed {
	border: 0px;
}

#recent-viewed-sidebar.bottom:before,
#recent-viewed-sidebar.bottom:after {
	display: block;
	clear: both;
	content: "";
}

#recent-viewed-sidebar.bottom .rvp-block-content {
    padding: 8px 40px 8px 5px;
    float: left;
    margin: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

#recent-viewed-sidebar.bottom.opened .rvp-block-content {
    -webkit-animation: show_bottom 150ms ease-in-out;
    -moz-animation: show_bottom 150ms ease-in-out;
    animation: show_bottom 150ms ease-in-out;  

    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    animation-fill-mode: both;
	display: block;
    width: 100%;
}

#recent-viewed-sidebar.bottom.closed .rvp-block-content {
    -webkit-animation: hide_bottom 250ms ease-in-out;
    -moz-animation: hide_bottom 250ms ease-in-out;
    animation: hide_bottom 250ms ease-in-out;  

    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    animation-fill-mode: both;

    display: none;
}

@keyframes hide_bottom {
	100% { height: 0; padding: 0; }
}

@-webkit-keyframes hide_bottom {
	100% { height: 0; padding: 0; }
}

@keyframes show_bottom {
	0% { height: 0; padding: 8px 5px 0 5px; }
	/* 100% { height: attr(style); } */
}

@-webkit-keyframes show_bottom {
	0% { height: 0; padding: 8px 5px 0 5px; }
	/* 100% { height: attr(style); } */
}


#recent-viewed-sidebar.bottom .rvp-block-content ul:before,
#recent-viewed-sidebar.bottom .rvp-block-content ul:after {
	display: block;
	clear: both;
	content: "";
}

#recent-viewed-sidebar.bottom .rvp-block-content ul {
    padding: 0;
    overflow: hidden;
}

#recent-viewed-sidebar.bottom .rvp-block-content li {
    margin: 0 5px 8px 5px;
}

#recent-viewed-sidebar.bottom .clear-all-btn {
    height: 100%;
    position: absolute;
    right: 0;
    width: 35px;
}

#recent-viewed-sidebar.bottom .clear-all-btn span {
    -moz-transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    display: block;
    padding: 0;
    width: 100%;
    height: 20px;
    white-space: nowrap;
    margin-top: 0%;
    position: absolute;
    top: 45%;
    text-align: center;
}

#recent-viewed-sidebar.bottom #recent-slide-btn {
    width: auto;
    text-align: center;
    padding: 0 10px;
    min-width: 150px;
    height: 30px;
    top: -30px;
    margin-top: 0;
    height: 29px;
    left: 50%;
    margin-left: -75px;
    line-height: 30px;
    border: 1px solid #c4c1bc;
    border-bottom: 0px;
}

#recent-viewed-sidebar.bottom #recent-slide-btn:hover {
	opacity: 0.8;
}

#recent-viewed-sidebar.bottom  #recent-slide-btn span {
	height: auto;
	white-space: nowrap;
	margin-top: 0;
	-moz-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	transform: rotate(0deg);
	top: 0;
	line-height: 29px;
}


@media only screen and (max-width:480px) {
	#recent-viewed-sidebar.bottom {
		max-height: 115px;
	}
	#recent-viewed-sidebar.bottom.opened .rvp-block-content {
		max-height: 100px;
	}
	#recent-viewed-sidebar.bottom .rvp-block-content {
		max-height: 100px;
		width: 100%;
		padding: 8px 0;
	}
	#recent-viewed-sidebar #recently-viewed-items li > a img {
		max-height: 100px;
	}
	#recent-viewed-sidebar.bottom #recent-slide-btn {
		left: 0;
		margin-left: 0;
		min-width: 35px;
	}
	#recent-viewed-sidebar.bottom .rvp-block-content ul {
		text-align: center;
		margin-right: 40px;
	}
	#recent-viewed-sidebar.bottom.no-clear-button .rvp-block-content ul {
		margin-left: 0;
	}
	#recent-viewed-sidebar.bottom .rvp-block-content li {
		float: none;
		display: inline-block;
	}
	#recent-viewed-sidebar.bottom #recent-slide-btn span {
		font-size: 0px;
	    background-image: url("../../../images/plumrocket/rproducts/preview_see_seen_view.png");
	    background-repeat: no-repeat;
	    background-size: 30px;
		height: 29px;
	    text-indent: -1000px;
	    white-space: nowrap;
	    overflow: hidden;
	}
	#recent-viewed-sidebar #recent-slide-btn span:after {
		display: none;
	}
}
