/************************************************************************************************/
/* Grid
/************************************************************************************************/
.kbe-cols-2 > div,
.kbe-cols-3 > div,
.kbe-cols-4 > div { float: left; margin: 0 50px 50px 0; vertical-align: top; }

.kbe-cols-2 > div { width: calc( 50% - 25px ); }
.kbe-cols-3 > div { width: calc( 33.3333% - 25px ); }
.kbe-cols-4 > div { width: calc( 25% - 25px ); }

@media screen and ( max-width: 720px ) {
	.kbe-cols-2 > div,
	.kbe-cols-3 > div,
	.kbe-cols-4 > div { float: none; margin-left: 0; margin-right: 0; width: 100%; }
}

/************************************************************************************************/
/* Helpers
/************************************************************************************************/
body .kbe-no-margin { margin: 0; }
body .kbe-no-margin-top { margin-top: 0; }
body .kbe-no-margin-right { margin-right: 0; }
body .kbe-no-margin-bottom { margin-bottom: 0; }
body .kbe-no-margin-left { margin-left: 0; }

body .kbe-no-padding { padding: 0; }
body .kbe-no-padding-top { padding-top: 0; }
body .kbe-no-padding-right { padding-right: 0; }
body .kbe-no-padding-bottom { padding-bottom: 0; }
body .kbe-no-padding-left { padding-left: 0; }

body .kbe-flex { display: flex; }

/************************************************************************************************/
/* Overwrites
/************************************************************************************************/
#kbe-wrapper svg[fill="none"],
#kbe-live-search-result svg[fill="none"] { fill: none; }

/************************************************************************************************/
/* Loading spinner
/************************************************************************************************/
.kbe-loading-spinner {
	display: none;
	text-align: center;
	line-height: 0;
	height: 6px;
}

.kbe-loading-spinner > div {
	width: 6px;
	height: 6px;
	background-color: #000;
	margin: 0 1px;

	border-radius: 100%;
	display: inline-block;
	-webkit-animation: kbe-bouncedelay 1.4s infinite ease-in-out both;
	animation: kbe-bouncedelay 1.4s infinite ease-in-out both;
}

.kbe-loading-spinner .kbe-loading-spinner-bounce-1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.kbe-loading-spinner .kbe-loading-spinner-bounce-2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes kbe-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes kbe-bouncedelay {
	0%, 80%, 100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% {
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}


/************************************************************************************************/
/* Primary and sidebar
/************************************************************************************************/
#kbe-wrapper {
    width: 100%;
	margin-right: auto;
	margin-left: auto;
}

#kbe-wrapper:after {
	content: '';
	display: block;
	clear: both;
	height: 0;
}

#kbe-wrapper #primary {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

#kbe-wrapper #main {
	padding-left: 0;
	padding-right: 0;
}

#kbe-wrapper .sidebar {
	float: left;
	position: relative;
	width: 100%;
    max-width: 30%;
    box-sizing: border-box;
}

body.kbe-template-sidebar-right #kbe-wrapper #primary {
	float: left;
	padding-right: 30px;
	max-width: 70%;
}

body.kbe-template-sidebar-left #kbe-wrapper #primary {
	float: right;
	padding-left: 30px;
	max-width: 70%;
}

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

	#kbe-wrapper #primary { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
	#kbe-wrapper .sidebar { max-width: 100% !important; }

}


/************************************************************************************************/
/* Main content
/************************************************************************************************/
#kbe-content {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.kbe-categories {
    width:100%;
}

.kbe-categories:after {
	content: '';
	display: block;
	clear: both;
	height: 0;
}

.kbe-category-header {
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #ccc;
}

.kbe-category-title {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1.75rem;
	line-height: 1;
}

.kbe-category-title:after { 
	content: '';
	clear: both;
	display: block;
	height: 0;
}

.kbe-category-title a,
.kbe-category-title a:visited {
	color: inherit;
	text-decoration: none;
}

.kbe-count {
	float: right;
	display: inline-block;
	padding-left: 10px;
	padding-right: 10px;
    color: #fff;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    font-weight: 400;
    background: #166c94;
    text-transform: none;
}



/************************************************************************************************/
/* Object lists
/************************************************************************************************/
body .kbe-object-list {
	list-style: none !important;
	margin-left: 0;
}

body .kbe-object-list li {
	position: relative;
	list-style: none !important;
	margin-left: 0 !important;
	min-height: 24px;
	padding-left: 25px !important;
	line-height: 24px;
}

body .kbe-object-list li:before {
	display: none !important;
}

body .kbe-object-list li a {
	vertical-align: baseline;
	color: inherit;
	line-height: 1;
}

body .kbe-object-list li a:visited {
	color: inherit;
}

body .kbe-object-list li svg {
	position: absolute;
	top: 2px;
	left: 0;
	width: 20px;
	height: 20px;
	color: #000;
}

body li .kbe-object-list {
	margin-top: 0.75em;
}

body .kbe-object-list li {
	margin-bottom: 0.75em;
}


/********************************************************************************/
/* Single category
/********************************************************************************/
.kbe-category-header .kbe-category-description {
	margin-top: 15px;
}

.kbe-category-header .kbe-category-description > :first-child {
	margin-top: 0;
}

.kbe-category-header .kbe-category-description > :last-child {
	margin-bottom: 0;
}


/********************************************************************************/
/* Search
/********************************************************************************/
.kbe-search-header {
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #ccc;
}

.kbe-search-header .kbe-search-title {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1.75rem;
}


/********************************************************************************/
/* Single article
/********************************************************************************/
body.wp-knowledgebase article .entry-header {
	background: none;
	height: auto !important;
	text-align: left;
}

body.wp-knowledgebase article .entry-header .entry-title {
	text-align: left;
}


/********************************************************************************/
/* Breadcrumbs
/********************************************************************************/
#kbe-breadcrumbs {
    margin: 0 0 25px;
    overflow: hidden;
    width: 100%;
}

#kbe-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kbe-breadcrumbs ol li {
    float: left;
    list-style: none;
    margin: 0 3px;
    line-height: 1.25em;
}

#kbe-breadcrumbs ol li:first-of-type {
	margin-left: 0;
}

#kbe-breadcrumbs ol li a,
#kbe-breadcrumbs ol li a:visited {
    color: inherit;
}


/********************************************************************************/
/* Search Field
/********************************************************************************/
#kbe-live-search {
	margin: 0 0 25px;
	width: 100%;
}

.kbe-search-field form {
	position: relative;
	padding: 0;
}

.kbe-search-field svg {
	position: absolute;
	left: 16px;
	top: 50%;
	margin-top: -10px;
	width: 20px;
	height: 20px;
}

.kbe-search-field input[type=text] {
    color: #666666;
    border: 1px solid #ccc;
    width: 100%;
    height: auto;
    padding: 12px 12px 12px 50px;
    margin: 0 !important;
    background-image: none;
    box-sizing: border-box;
}

.kbe-search-field input[type=text]:focus {
	outline: none;
	border: 1px solid #ccc;
}

#kbe-live-search-result {
    width: 100%;
	list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ccc;
}

#kbe-live-search-result li {
    position: relative;
    list-style: none outside none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

#kbe-live-search-result li:hover {
    background-color: #f8f8f8;
}

#kbe-live-search-result li a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-size: 1em;
    font-weight: normal;
    padding: 15px 15px 15px 50px;
    border: 0;
}

#kbe-live-search-result li a:hover {
    text-decoration: none;
    font-weight: normal;
    border: 0;
}

#kbe-live-search-result li a svg {
	position: absolute;
	top: 17px;
	left: 15px;
	width: 20px;
	height: 20px;
	color: inherit;
}

#kbe-live-search-result.kbe-live-search-result-has-excerpt li .kbe-live-search-result-title {
    font-weight: bold;
    margin-bottom: 0.8em;
}

#kbe-live-search-result li .kbe-live-search-result-excerpt p {
	font-size: 0.8em;
    margin: 0.5em 0;
}

#kbe-live-search-result li .kbe-live-search-result-excerpt > :first-child {
    margin-top: 0;
}

#kbe-live-search-result li .kbe-live-search-result-excerpt > :last-child {
    margin-bottom: 0;
}

.kbe-live-search-no-result {
    display: inline-block;
    background: #fff;
    padding: 15px 15px 15px 50px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}


.kbe-search-field .kbe-loading-spinner {
	display: none;
	position: absolute;
	top: 50%;
	margin-top: -3px;
	left: 14px;
	text-align: center;
	line-height: 0;
	height: 6px;
}

.kbe-search-field form.kbe-loading > .kbe-loading-spinner {
	display: block;
}

.kbe-search-field form.kbe-loading > svg {
	display: none;
}


/************************************************************************************************/
/* Widgets
/************************************************************************************************/
.widget-area .kbe-widget ul.kbe-object-list {
	padding-left: 0;
}

.widget-area .kbe-widget ul.kbe-object-list > li {
	text-align: left;
	padding-top: 5px;
	padding-bottom: 5px;
}

.widget-area .kbe-widget ul.kbe-object-list > li svg {
	top: 7px;
}

.kbe-widget form[role="search"] input[type="text"] { 
	width: 100%;
	margin: 0;
}