/* ---- RESOURCES ----- */



.resources-block {
	box-sizing: border-box;
	margin-bottom: 1em;
}

.resources-block h2 {
	padding-left: 0;
	margin: 5px 0;
}

.resources-block h3 {
	margin: 5px 0;
}

.resources-block > ul:last-of-type li.subject:last-of-type {
	border-bottom: 1px solid #999;
}

.resources-block .subject {
	border-top: 1px solid #999;
}

.resources-block .book {
	border-top: 1px solid #999;
}

.resources-block .book a {
	padding-left: 1em;
	display: block;
}

.resources-block .book-link {
	border-top: 1px solid #999;
	padding: 2px 0;
}

.resources-block .book-link a {
	padding-left: 2em;
}

.resources-block .resource {
	background-color: #eee;
}

.resources-block .resource a {
	padding-left: 0;
	display: block;
	width: 100%;
}

.resources-block-misc li.resource span {
	text-indent: 1em;
}

.resources-block ul li ul li ul li > span {
	/*text-indent: 3em;*/
	margin-left: 0;
}

.resources-block .opener {
	padding-right: 5px !important;
	color: rgb(204,0,51);
	font-size: 12px;
	font-family: "ThemeIcons";
	float: right;
	height: 10px;
}

.resources-block .opener::before {
	font-size: 12px;
	content: "\e23c";
}

.resources-block .expanded .opener::before {
	content: "\e23d";
}

.resources-block li.book > span {
	display:inline-block;
	padding: 5px 0 5px 5px;
	font-size: 1em;
	cursor: pointer;
	position: relative;
}

.resources-block li.book span.name {
	display: inline-block;
	vertical-align: middle;
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	width: 200px;
}

.resources-block li.book > span > img {
	padding: 0 5px 0 0;
	max-width: 40px;
	max-height: 40px;
}

.resources-block li.book > span.opener {
	width: auto;
}

li.resource {
	border-top: 1px solid #999;
	padding: 2px 0;
}

li.resource:first-child {
	border-top: 1px solid #999;
}

li.resource span {
	display: inline-block;
	width: 100%;
	background: url('../images/icon-download-sprite.png') no-repeat;
	background-position: top right;
	box-sizing: border-box;
	padding: 0 2em 0 2em;
}

.catalog-product-view .resource span {
	padding-left: 0;
}

.resources-block li.book .resource > span > span {
	padding: 0 2em 0 3em;
	max-width: 100%;
	background: none;
	
}

.resources-block li.book .resource > span > span {
	padding: 0 2em 0 3em;
	max-width: 100%;
	background: none;
	box-sizing: border-box;
}

li.resource span:hover {
	background-position-y: -100px;
}

.resources-block-misc li.resource span {
	padding: 0;
}

/* Tooltip - Log in to download */

li.resource span.locked {
	color: #bbb;
	position: relative;
	background-position-y: -100px;
}

li.resource span.locked:hover:after{
    background: #333;
   background: rgba(0,0,0,.8);
   border-radius: 5px;
   bottom: 26px;
   color: #fff;
   content: attr(title);
   left: 3em;
   padding: 5px 15px;
   position: absolute;
   z-index: 98;
   text-indent: 0;
}
