/**
 * Styles for the creative library
 *
 * body_class: creative-library bg-light
 *
 * @author      Jim Mock
 * @copyright   2023, ON1
 */

/*------------------------------------------------------------------------------
 * Navigation
 -----------------------------------------------------------------------------*/
body.creative-library #page-navigation { border-bottom: 2px solid #1e1e1e; }

@media (max-width: 1199.98px) {
	body.creative-library #page-navigation {
		overflow-x: scroll;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	body.creative-library #page-navigation::-webkit-scrollbar { display: none; }
}

body.creative-library #page-navigation .nav-item { font-size: 0.75rem; }

body.creative-library #page-navigation .nav-link {
	border-radius: 0;
	color: #c0c0c0;
	padding-top: 0.75rem;
}

body.creative-library #page-navigation .nav-link.active {
	background: #1e1e1e;
	color: #fff;
}

body.creative-library #page-navigation .nav-item img { margin-bottom: 0.313rem; }

body.creative-library #page-navigation .nav-link i {
	font-size: 24px;
	margin-bottom: 0.313rem;
}

body.creative-library #page-navigation .nav-link:hover {
	background: #1e1e1e;
	color: #fff;
}

body.creative-library #page-navigation .nav-link.no-hover:hover {
	background: none;
	color: #fff;
}

body.creative-library #page-navigation .badge {
	font-size: 0.5rem;
	vertical-align: text-top;
}

body.creative-library #page-navigation .nav-button {
	font-size: 0.875rem;
	font-weight: 700;
	height: 70px;
	line-height: 70px;
	text-decoration: none;
}

body.creative-library #page-navigation .facetwp-facet { margin: 1rem 0; }
body.creative-library #page-navigation .facetwp-facet .facetwp-icon { opacity: 1; }

body.single.creative-library #page-navigation input#search {
	background: #fff url('/wp-content/plugins/facetwp/assets/images/icon-search.png') no-repeat;
	background-position: 98% 8px;
	background-size: 20px 20px;
	margin: 1rem 0;
	min-width: 240px
}

/*------------------------------------------------------------------------------
 * Content
 -----------------------------------------------------------------------------*/
body.creative-library .facetwp-overlay { background-color: #f6f6f7; }
body.creative-library .search-results select.facetwp-sort-select { font-size: 0.875rem; }
body.creative-library .search-results .btn-favorites { font-size: 0.875rem; }

body.creative-library .search-results .facetwp-selections ul {
	margin: 0 0 1.875rem 0;
	padding: 0;
}

body.creative-library .search-results .facetwp-selections .facetwp-selection-label { display: none; }

body.creative-library .search-results .facetwp-selections .facetwp-selection-value {
	background-color: #eaeaea;
	background-image: none;
	border-radius: 0.3rem;
	color: #676767;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
}

body.creative-library .search-results .facetwp-selections .facetwp-selection-value::before {
	content: '\f00d';
	font-family: 'Font Awesome 6 Pro';
	font-size: 0.875rem;
	font-weight: 900;
	margin-right: 0.313rem;
}

body.creative-library .search-results .facetwp-counts {
	color: #676767;
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0;
}

body.creative-library .search-no-results ul {
	margin-bottom: 1.875rem;
	margin-left: 2.25rem;
}

body.creative-library .asset { position: relative; }

body.creative-library .asset .plus-badge {
	font-size: 0.625rem !important;
	font-weight: 700 !important;
	line-height: 1;
	padding: 0.25rem 0.313rem !important;
	position: absolute;
	right: 1.25rem;
	top: 0.313rem;
}

body.creative-library .asset img {
	border-top-left-radius: 0.3rem;
	border-top-right-radius: 0.3rem;
	height: auto;
	width: 100%;
}

body.creative-library .asset .post-wrapper {
	border: 1px solid #e0e0e0;
	box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.1);
}

body.creative-library .asset .post-wrapper .row { padding: 0.75rem 1rem; }

body.creative-library .asset h3 {
	font-size: 1rem;
	line-height: 1.4;
}

body.creative-library .asset h3 a { text-decoration: none; }
body.creative-library.archive .asset a.simplefavorite-button:hover { cursor: pointer; }
body.creative-library.archive .asset a.simplefavorite-button i { color: #ff3d57; }
body.creative-library.archive .asset .favorites-text { display: none; }
body.creative-library #creative-library-favorites .asset h3 { padding: 0.75rem 1rem; }

body.creative-library #creative-library-favorites a.simplefavorite-button {
	background: #ff3d57;
	border-radius: 0.3rem;
	color: #fff;
	cursor: pointer;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
}

body.creative-library #creative-library-favorites a.simplefavorite-button i.fa-heart { color: #fff; }
body.creative-library a.simplefavorite-button.active { opacity: 1; }

body.creative-library.single a.simplefavorite-button i.fa-heart, body.creative-library.single a.simplefavorite-button {
	color: #ff3d57;
	text-decoration: none;
}

/*------------------------------------------------------------------------------
 * Pagination
 -----------------------------------------------------------------------------*/
body.creative-library .facetwp-pager { margin-top: 1rem; }

body.creative-library .facetwp-pager .facetwp-page {
	border: 0;
	margin: 0;
}

body.creative-library .facetwp-pager .pagination .page-link {
	background: #fff;
	border: 1px solid #eaeaea;
	color: #676767 !important;
	font-weight: 500;
	margin-left: -1px;
}

body.creative-library .facetwp-pager .pagination .page-link:hover {
	background: #303030;
	color: #eaeaea !important;
}

body.creative-library .facetwp-pager .pagination .page-item.active .page-link {
	background: #1e1e1e;
	border-color: #eaeaea;
	color: #fff !important;
}

body.creative-library.tax-creative_library_cats .pagination .page-link, body.creative-library.tax-creative_library_tags .pagination .page-link {
	background: none;
	border: 1px solid #676767;
	color: #676767 !important;
	padding: 0.625rem 1rem;
}

body.creative-library.tax-creative_library_cats .pagination .page-item.active .page-link, body.creative-library.tax-creative_library_tags .pagination .page-item.active .page-link {
	background: #1e1e1e;
	border-color: #676767;
	color: #eaeaea !important;
}

/*------------------------------------------------------------------------------
 * Sidebar
 -----------------------------------------------------------------------------*/
body.creative-library #cl-sidebar { font-size: 0.75rem; }
body.creative-library #cl-sidebar .facetwp-facet { margin: 0; }
body.creative-library #cl-sidebar .facetwp-expand { display: none; }
body.creative-library #cl-sidebar .facetwp-checkbox:last-child { margin-bottom: 0; }

body.creative-library #cl-sidebar [data-value="on1-plus"] {
	color: #fd6f16;
	font-weight: 900;
	margin-bottom: 0.5;
}

body.creative-library #cl-sidebar [data-value="non-plus"] { display: none; }

body.creative-library #cl-sidebar .facetwp-depth.visible {
	color: #676767;
	margin-bottom: 0.625rem;
	margin-left: 0.5rem;
	max-height: 200px;
	overflow: auto;
	padding: 0.25rem 0.125rem 0.25rem 0.313rem;
}

body.creative-library #cl-sidebar ::-webkit-scrollbar {
	width: 5px;
	-webkit-appearance: none;
}

body.creative-library #cl-sidebar ::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/*------------------------------------------------------------------------------
 * Single posts
 -----------------------------------------------------------------------------*/
body.creative-library.single #hero .restricted-wrapper p { color: #fff; }
body.creative-library.single #hero .restricted-wrapper a { color: #fff; }

body.creative-library.single #hero .plus-badge {
	position: absolute;
	top: 1.5rem;
	right: 0;
}

body.creative-library.single #hero .hero-content {
	padding-bottom: 12rem;
	padding-top: 12rem;
}

body.creative-library.single #hero .hero-content.non-plus {
	padding-bottom: 5rem;
	padding-top: 5rem;
}

@media (max-width: 575.98px) {
	body.creative-library.single #hero .hero-content {
		padding-bottom: 3rem;
		padding-top: 3rem;
	}
}

body.creative-library.single #hero h1, body.creative-library.single #hero h2 { text-shadow: 0 0 5px rgba(0, 0, 0, 0.75); }
body.creative-library.single #post-content .avatar { border-radius: 100%; }
body.creative-library.single #post-content .post-meta { font-size: 0.875rem; }
body.creative-library.single #post-content .post-tag { margin-right: 0.5rem; }
body.creative-library.single #post-content .post-tag:last-of-type { margin-right: 0; }

body.creative-library.single #sidebar-ad .sidebar-ad-icon {
	border-radius: 0.3rem;
	height: auto;
	max-width: 66px;
}

body.creative-library.single #post-comments #comments { background-color: transparent !important; }

body.creative-library.single #post-comments #comments .comment-list {
	margin: 0;
	padding: 0;
}

body.creative-library.single #post-comments #comments .comment-list li { list-style-type: none; }
body.creative-library.single #post-comments #comments .comment-list .comment { margin-bottom: 3rem; }

body.creative-library.single #post-comments #comments .comment-list .comment-content {
	background: #fff;
	border-radius: 10px;
	padding: 1rem;
	position: relative;
}

body.creative-library.single #post-comments #comments .comment-list .comment-content:before {
	border-bottom: 10px solid transparent;
	border-left: 10px solid transparent;
	border-right: 10px solid #fff;
	border-top: 10px solid transparent;
	content: '';
	left: -1.25rem;
	position: absolute;
}

body.creative-library.single #post-comments #comments .comment-list .bypostauthor .comment-content {
	background: rgba(10, 126, 250, 0.25);
	color: #0a7efa;
}

body.creative-library.single #post-comments #comments .comment-list .bypostauthor .comment-content a { color: #0a7efa; }

body.creative-library.single #post-comments #comments .comment-list .bypostauthor .comment-content:before {
	border-bottom: 10px solid transparent;
	border-left: 10px solid transparent;
	border-right: 10px solid rgba(10, 126, 250, 0.25);
	border-top: 10px solid transparent;
}

body.creative-library.single #post-comments #comments .comment-list .comment-text p { line-height: 1.6; }
body.creative-library.single #post-comments #comments .comment-list .comment-avatar { padding-right: 15px; }
body.creative-library.single #post-comments #comments .comment-list .comment-avatar img { border-radius: 10px; }

body.creative-library.single #post-comments #comments .comment-list .comment-reply-link, body.creative-library.single #post-comments #comments .comment-list .comment-reply-login {
	display: inline-block;
	font-size: 0.75rem;
	margin-top: 1rem;
}

body.creative-library.single #post-comments #comments #cancel-comment-reply-link {
	display: inline-block;
	float: right;
	font-size: 0.75rem;
	line-height: 1.25em;
	padding-top: 1.25rem;
}

body.creative-library.single #post-comments #comments .comment-meta {
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

body.creative-library.single #post-comments #comments #respond h3 {
	color: #303030;
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 1rem;
}

body.creative-library.single #post-comments #comments .comment-list #respond { margin-left: 15%; }

body.creative-library.single #post-comments #comments .comment-form label {
	display: block;
	font-size: 1rem;
}

body.creative-library.single #post-comments #comments .comment-form textarea { width: 100%; }

body.creative-library.single #post-comments #comments .comment-form input[type=submit] {
	background-color: #0a7efa;
	border: 1px solid transparent;
	border-radius: 0.25rem;
	color: #fff;
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 0;
	padding: 0.475rem 1.25rem;
	text-align: center;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	vertical-align: middle;
	-webkit-appearance: none;
}

body.creative-library.single #post-comments #comments .privacy-policy-link {
	font-size: 0.75rem;
	font-style: italic;
	margin-bottom: 0;
	margin-top: 1.5rem;
}
