/* sourcebook */

.single-product article.product,
.single-company article.company {
	margin-top: 0;
}

article.product header,
article.company header {
	margin-top: 0;
}


article.product header h1.page-title,
article.company header h1.page-title {
	text-align: center;
	margin-bottom: 40px;
}

article.product header .entry-summary,
article.company header .entry-summary {
	text-align: center;
}

article.product header h1.page-title {
	text-align: center;
	margin-bottom: 10px;
	margin-top: 35px;
}

article.product header .byline {
	display: block;
	text-align: center;
}

article.product header .byline a {
	color: #eb614f;
	font-weight: 700;
}

article.product header .image-gallery {
	margin-top: 40px;
}

article.company header .company-circle {
	width: 135px;
	display: block;
	height: 135px;
	background-repeat: no-repeat;
	background-position: center center;
	margin: 35px auto 10px;
}

article.company header .company-circle img {
	border-radius: 150px;
	-webkit-border-radius: 150px;
	border: 1px solid #d0d0d0;
}

article.product footer.page-footer,
article.company footer.page-footer {
	margin: 0 12px;
	background: #fff;
}

article.company footer.page-footer .post-tabs {
	background-color: #fff;
	border-bottom: 2px solid #4a596a;
	text-align: left;
	padding-top: 24px;
	overflow: hidden;
	position: relative;
	font-size: 0;
}

article.company footer.page-footer .post-tabs.centre {
	text-align: center;#
}

article.product footer.page-footer .post-tabs {
	background-color: #fff;
	border-bottom: 2px solid #4a596a;
	text-align: center;
	padding-top: 40px;
	overflow: hidden;
	position: relative;
}

article.company footer.page-footer .post-tabs a.post-tab {
	color: #010101;
	display: inline-block;
	width: 100%;
	height: 43px;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 14px;
	margin-right: 0;
	margin-top: 5px;
	font-weight: 700;
	font-size: 14px;
	/*float: left;*/
}

@media only screen and (min-width: 500px) {
	article.company footer.page-footer .post-tabs {
		white-space: nowrap;
	}
	.flexbox article.company footer.page-footer .post-tabs {
		white-space: normal;
		display: flex;
		flex-direction: row
	}
	article.company footer.page-footer .post-tabs a.post-tab {
		width: 19%;
		margin-right: 1%;
	}
}

article.product footer.page-footer .post-tabs a.post-tab {
	color: #010101;
	display: inline-block;
	/*width: 155px;*/
	height: 43px;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 14px;
	margin-right: 9px;
	font-weight: 700;
	font-size: 14px;
}

article.product footer.page-footer .post-tabs.centre a.post-tab,
article.company footer.page-footer .post-tabs.centre a.post-tab {
	float: none;
	margin: 0 auto !Important;
}

article.company footer.page-footer .post-tabs a.post-tab.blue,
article.product footer.page-footer .post-tabs a.post-tab.blue,
article.product footer.page-footer .post-tabs.centre a.post-tab.blue,
article.company footer.page-footer .post-tabs.centre a.post-tab.blue {
	background-color: #1fb9c7;
	color: #fff;
}

article.product footer.page-footer .post-tabs a.post-tab.active,
article.company footer.page-footer .post-tabs a.post-tab.active {
	color: #ffffff;
	background-color: #4a596a;
}

article.product footer.page-footer .post-tabs-content div.post-tab-content,
article.company footer.page-footer .post-tabs-content div.post-tab-content {
	display: none;
	padding-bottom: 40px;
  	padding-top: 40px;
	overflow: hidden;
	font-size: 15px;
}

article.company footer.page-footer .post-tabs-content div.post-tab-content.tab-page-companyfeatured {
	padding-bottom: 10px;
}

article.product footer.page-footer .post-tabs-content div.tab-page-documents,
article.company footer.page-footer .post-tabs-content div.tab-page-documents {
  	padding-top: 5px;
}

article.company footer.page-footer .post-tabs-content div.tab-page-companyfeatured,
article.product footer.page-footer .post-tabs-content div.tab-page-products,
article.company footer.page-footer .post-tabs-content div.tab-page-products,
article.product footer.page-footer .post-tabs-content div.tab-page-productmore {
  	padding-top: 17px;
}

article.product footer.page-footer .post-tabs-content div.tab-page-gallery,
article.company footer.page-footer .post-tabs-content div.tab-page-gallery {
  	padding-top: 0;
	padding-bottom: 0;
}

article.product footer.page-footer .post-tabs-content div.post-tab-content.active,
article.company footer.page-footer .post-tabs-content div.post-tab-content.active {
	display: block;
}

article.product footer.page-footer .post-tabs a.post-tab:last-of-type,
article.company footer.page-footer .post-tabs a.post-tab:last-of-type {
	margin-right: 0;
}

article.company footer.page-footer .post-tabs-content .tab-page-exhibiting .exhibitionlogo,
article.product footer.page-footer .post-tabs-content .tab-page-productexhibiting .exhibitionlogo {
	margin: 20px auto;
  	max-width: 84%;
}

article.product footer.page-footer .post-tabs-content .tab-page-productcompany a {
  color: #1fb9c7;
}

.sourcebook-header {
  	margin: 20px 12px 10px;
	position: relative;
}

.sourcebook-header h2 {
	min-height: 50px;
	line-height: 50px;
	background: #2d3946;
	color: #fff;
	text-align: center;
	font-size: 27px;
}

.sourcebook-header h2 a {
	color: #fff;
}

.sourcebook-header h2 a.sourcebook-title:hover {
	text-decoration: underline;
}

.sourcebook-header h2 a.add-link {
  	position: absolute;
  	right: 20px;
    font-weight: bolder;
    font-size: 30px !Important;
	height: 50px;
    color: white !Important;
}

.sourcebook-header h2 a.add-link .add-link-text {
	display: inline-block;
	vertical-align: middle;
	height: 54px;
    padding-left: 10px;
    color: #fff;
    font-size: 16px;
    right: 20px;
    font-weight: bold;
}

.sourcebook-header .search-area {
	min-height: 80px;
	background: #4a596a;
}

.sourcebook-header .filter-area {
	min-height: 80px;
	background: #2d3946;
	display: none;
}

.sourcebook-header .search-area .searchbox {
	width: 100%;
    border-radius: 20px;
}

.sourcebook-header .search-area .searchmark {
	width: 70%;
	float: left;
	margin-left: 20px;
	margin-top: 18px;
}

.sourcebook-header .search-area .searchbox:disabled {
	background: #6e7a88;
	border: 1px solid #6e7a88;
}

.sourcebook-header .search-area a.products-links {
  	color: #fff;
  	float: right;
  	border: 1px solid #fff;
  	padding: 9px 30px;
  	margin-right: 20px;
  	margin-top: 18px;
    font-size: 16px;
    line-height: 22px;
}

.sourcebook-header .search-area a.products-links.enabled {
	color: #2d3946;
	background: #fff;
}

.sourcebook-header .filter-area input.filterbutton {
  	color: #fff;
  	float: right;
  	border: 1px solid #eb614f;
  	padding: 9px 30px;
  	margin-right: 20px;
  	margin-top: 18px;
	background-color: #eb614f;
}

.sourcebook-row2,
.sourcebook-row3 {
	margin-top: 30px;
}

.sourcebook-type-box {
	margin: 12px;
	background: #fff;
	padding: 0 !Important;
	text-align: center;
}

.sourcebook-type-box h3 {
	text-align: center;
	color: #4a596a;
	font-size: 21px;
	margin: 35px 0;
}

.sourcebook-type-box .taxonomy-wrap {
	height: 204px;
	width: 100%;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}


/* drop down filters - widgets */
.sourcebook-choices > li.filter > a {
	background: transparent url('../images/down-arrow.png') no-repeat 95.85% center;
}

.sourcebook-choices > li.filter.active > a {
	background: transparent url('../images/up-arrow.png') no-repeat 95.8% center;
}

.sourcebook-type-box li.filter > ul {
	display: none;
	opacity: 1;
}

.sourcebook-type-box > ul.active,
.sourcebook-type-box li.active > ul {
	display: block;
	margin-top: 4px;
	z-index: 1001;
}

.sourcebook-type-box li.filter {
	display: inline-block;
	margin: 0 18px 0 0;
	position: relative;
	width: 18%;
	border: 1px solid #4a596a;
	background: #fff;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 5px;
	font-size: 14px;
}

.sourcebook-type-box > li.filter > ul > li a:active {
	background-color: #ddd;
}

.sourcebook-type-box > li.selected a {
	xbackground: #faf;

}

.sourcebook-type-box li.selected {
	background-color: #ccc;
}

.sourcebook-type-box ul {
	max-height: 300px;
	overflow: visible;
	background: #fff;
}

.sourcebook-type-box ul.sourcebook-choices {
	display: block;
	text-align: left;
	clear: both;
}

.sourcebook-type-box .sourcebook-choices > li.filter {
	display: block;
	margin: 0 auto;
	position: relative;
	width: 80%;
	border: none;
	background: none;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	font-size: 16px;
	margin-bottom: 20px;
	font-weight: 700;
}

.sourcebook-type-box li a {
	display: block;
	line-height: 1em;
	padding: 15px 20px 15px 40px;
	text-align: left;
	/*color: #4a596a;*/
	color: #1fb9c7;
	background-color: #fff;
}

.sourcebook-type-box li a.categorychild.closed {
	display: none;
}

.sourcebook-type-box li a.categoryparent {
	display: block;
	line-height: 1em;
	padding: 15px 20px;
	text-align: left;
}

.sourcebook-type-box li a.selectoption,
.sourcebook-type-box li a.categoryparent {
	color: #4a596a;
	background-color: #fff;
}

.sourcebook-type-box li a.categoryparent.open,
.sourcebook-type-box li a.categoryparent.open:hover {
	color: #fff;
	background-color: #4a596a;
}

.sourcebook-type-box li.filter > ul > li  span.categoryparent {
	border: solid 1px rgba( 0,0,0,0.1);
	border-top: none;
}

.sourcebook-type-box .sourcebook-choices > li.filter > a {
	border: 1px solid #4a596a;
}

.sourcebook-type-box li.filter.active > ul {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0;
}

.sourcebook-type-box li.filter.active > ul li {
	display: block;
	line-height: 1.1em;
	padding: 0;
	text-align: left;
}

.sourcebook-type-box li.filter a:hover {
	background-color: #fafafa;
}

.sourcebook-type-box li.filter > ul > li  a {
	border: solid 1px rgba( 0,0,0,0.1);
	border-top: none;
}

/* drop down filters - category search */

.filter-choices > li.filter > a {
	background: transparent url('../images/down-arrow.png') no-repeat 95.85% center;
}

.filter-choices > li.filter.active > a {
	background: transparent url('../images/up-arrow.png') no-repeat 95.8% center;
}


.filter-area li.filter > ul {
	display: none;
	opacity: 1;
}

.filter-area > ul.active,
.filter-area li.active > ul {
	display: block;
	margin-top: 4px;
	z-index: 1001;
}

.filter-area li.filter {
	display: inline-block;
	margin: 0 18px 0 0;
	position: relative;
	width: 18%;
	border: 1px solid #4a596a;
	background: #fff;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 5px;
	font-size: 14px;
}

.filter-area > li.filter > ul > li a:active {
	background-color: #ddd;
}

.filter-area > li.selected a {
	xbackground: #faf;

}

.filter-area li.selected {
	background-color: #ccc;
}

.filter-area ul {
	max-height: 300px;
	overflow: visible;
	background: #fff;
}

.filter-area ul.filter-choices {
	display: block;
  	overflow: visible;
  	min-height: 80px;
	background: inherit;
	float: left;
  	width: 85%;
}

.filter-area .filter-choices > li.filter {
	display: block;
	position: relative;
	width: 22%;
	border: none;
	background: #fff;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	font-size: 16px;
	font-weight: 700;
	float: left;
	margin-top: 18px;
	margin-left: 15px;
	margin-right: 0;
}

.filter-area li a {
	display: block;
	line-height: 1em;
	padding: 12px 20px;
	text-align: left;
	color: #4a596a;
}

.filter-area li.remove-me a {
	color: #eb614f;
}

.filter-area .filter-choices > li.filter > a {
	text-overflow: ellipsis;
  	white-space: nowrap;
  	overflow: hidden;
  	padding-right: 30px;
}

.filter-area li.filter.active > ul {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0;
}

.filter-area li.filter.active > ul li {
	display: block;
	line-height: 1.1em;
	padding: 0;
	text-align: left;
}

.filter-area li.filter a:hover {
	background-color: #fafafa;
}

.filter-area li.filter > ul > li  a {
	border: solid 1px rgba( 0,0,0,0.1);
	border-top: none;
	background: #fff;
}

.filter-area li.filter > ul > li  a.open {
	border: solid 1px rgba( 0,0,0,0.1);
	border-top: none;
	color: #fff;
	background-color: #4a596a;
}

.filter-area li.filter > ul > li  a.categorychild {
	padding: 15px 20px 15px 40px;
	text-align: left;
	/*color: #4a596a;*/
	color: #1fb9c7;
	background-color: #fff;
}


.filter-area li.filter > ul > li  a.categorychild.closed {
	display: none;
}

.filter-area .filtered-on {
	display: none;
}

.filter-area .filtered-on.active {
	display: block;
	clear: both;
}

.filter-area .bottom-holder {
    display: none;
}

.filterinformation {
	height: 60px;
	background: #fff;
	margin: 0 12px 8px;
	line-height: 60px;
	padding: 0 25px;
}

.filterinformation span.searchquery {
	font-weight: bold;
}

article.company footer {
	min-height: 38px;
}

/* Additions - need moved */
h3.sponsor-heading {
  text-align: center;
  font-size: 18px !Important;
  margin: 10px 0;
}

article.product footer.entry-footer {
  min-height: 38px;
}

article.company footer.entry-footer {
  min-height: 38px;
}

article.excerpted.no-thumbnail {
  color: #fff;
}

article.excerpted.no-thumbnail .entry-header .entry-terms a {
  color: #fff;
}

article.excerpted.no-thumbnail .entry-header h1 a {
  color: #fff;
}

article.excerpted.no-thumbnail .entry-header h1 {
  	font-size: 24px;
	line-height: 1.4;
}

article.excerpted.no-thumbnail footer .entry-meta {
	color: #fff;
}

article.excerpted.no-thumbnail footer .entry-share.active .label {
	position: absolute;
	left: 0;
	width: 20%;
	overflow: hidden;
}

.sourcebook-header .search-area .searchmark {
    position: relative;
}

.sourcebook-header .search-area .searchmark:after {
	content: "\e61f";
	position: absolute;
	right: 15px;
	top: 6px;
	font-family: 'icomoon';
	font-size: 1.4em;
	color: #eb614f;
}

/* Product footer */

.product-footer-widgetarea {
	padding-top: 25px;
}



/* Social icons */

div.sourcebook-social {
	margin-top: 20px;
	overflow: hidden;
}

a.sourcebook-website,
a.sourcebook-website:hover {
	background: #ededed;
	color: #000 !Important;
	/*height: 45px;
	line-height: 45px;
	padding: 0;
	text-align: center;
	width: 190px;*/
	padding: 12px 25px;
	margin-top: 25px;
}

a.exhibition-website,
a.exhibition-website:hover {
	margin-top: 25px;
	padding: 12px 25px;
}

a.sourcebook-social-icon,
a.sourcebook-social-icon:hover {
	font-size: 30px;
	margin-right: 15px;
}

a.sourcebook-social-icon.icon-twitter {
	color: #00A8FF !Important;
}

a.sourcebook-social-icon.icon-pinterest {
	color: #d91717 !Important;
}

a.sourcebook-social-icon.icon-facebook {
	color: #2c73b5 !Important;
}

/* Address */
.sourcebook-address,
.sourcebook-email,
.sourcebook-telephone {
	padding-left: 40px;
}

.sourcebook-address p:before {
	background-image: url(../images/location.png);
	background-repeat: no-repeat;
}

@media only screen and (max-width: 900px) {

    .filter-area ul.filter-choices {
      	width: 100%;
        float: none;
        padding-left: 5px;
    }

    .filter-area .filter-choices > li.filter {
    	width: 45%;
    }

    .filter-area .filter-choices > li.filter:nth-child(even) {
        float: right;
        margin-right: 20px;
        margin-left: 0;
    }

    .sourcebook-header .search-area .searchmark {
    	width: 50%;
    }

    .filter-area .bottom-holder {
        display: block;
        clear: both;
        padding-bottom: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .sourcebook-header h2 a.add-link .add-link-text {
        display: none;
    }
}

@media only screen and (max-width: 550px) {

    .sourcebook-header .search-area .searchmark {
        width: 45px;
        margin-left: 5%;
    }

    .sourcebook-header .search-area .searchbox::-webkit-input-placeholder {
        color: transparent;
    }

    .sourcebook-header .search-area .searchbox:-moz-placeholder {
        color: transparent;
    }

    .sourcebook-header .search-area .searchbox::-moz-placeholder {
        color: transparent;
    }

    .sourcebook-header .search-area .searchbox:-ms-input-placeholder {
        color: transparent;
    }

    .sourcebook-header .search-area .searchmark.focused {
        margin-right: 5%;
        width: 90%;
    }

    .sourcebook-header .search-area .searchbox {
        color: transparent;
    }

    .sourcebook-header .search-area .searchbox.focused {
        color: rgb(17, 17, 17);
    }

    .sourcebook-header .search-area .searchmark.focused + a.products-links  {
        display:none;
    }

    a.products-links {
        width: 75%;
        text-align: center;
    }

    .filter-area .filter-choices > li.filter,
    .filter-area .filter-choices > li.filter:nth-child(even) {
        width: 90%;
        float: left;
        margin-right: 5%;
        margin-left: 5%;
    }

}

@media only screen and (max-width: 500px) {

    .widget-sourcebooktaxonomywidget .sourcebook-type-box .taxonomy-wrap {
        display: none;
    }

    .page-template-template-sourcebook article.company a.entry-thumbnail,
    .page-template-template-sourcebook article.product a.entry-thumbnail {
        display: none;
    }

    .page-template-template-sourcebook article.product.excerpted header,
    .page-template-template-sourcebook article.company.excerpted header,
    .page-template-template-sourcebook article.company.has-thumbnail.excerpted header,
    .page-template-template-sourcebook article.company.has-thumbnail.excerpted header {
        min-height: 120px !Important;
    }

}

@media only screen and (max-width: 440px) {

    a.products-links {
      width: 60%;
      text-align: center;
      font-size: 14px;
      line-height: 22px;
      padding: 9px 5px !Important;
    }
}

/*
*	Add form footer
*/

article.company-form header.page-header.cf {
  min-height: 0;
}

article.company-form footer.page-footer {
  margin: 0 !Important;
}

article.company .post-tab-content.tab-page-about a,
article.product .post-tab-content.tab-page-about a {
  color: #1fb9c7;
}
