/**
 * we have to add this because magento default style applies `display: inline-block`
 * on button and other tags, which overrides the HTML5 standard [hidden] attribute
 */
[hidden] {
    display: none !important;
}

#refine-toggle {
    text-align: center;
    line-height: 40px;
    border: solid 1px #ededed;
    margin: 10px 0 20px;
    font-weight: 700;
    cursor: pointer;
}
.ais-ClearRefinements .ais-ClearRefinements-button {
	    text-decoration: none;
    background-color: #4a5678;
    padding: 7px 20px;
    color: #fff;
    border-radius: 4px;
	width: auto;
}
/* infos */
.algolia-infos {
    text-align: center;
	/*padding: 6px 10px;
    color: #aaa;
    background: #f4f4f4;
    font-size: 12px;
    clear: both;
    line-height: 32px;*/
}
.algolia-infos .pull-right .pull-left {float: none !important; display: inline-block;}
.algolia-infos .pull-right .sort-by-label {
	display: inline-block;
}
/* SearchBox */
.ais-SearchBox {
    margin-bottom: 1em;
}

.ais-SearchBox-submit {
    display: none;
}

.ais-SearchBox-form {
    position: relative;
}
.ais-SearchBox-loadingIndicator {
	position: absolute;
    top: 5px;
    right: 10px;
}
.ais-SearchBox-reset {
    position: absolute;
    right: 0;
	line-height: 36px;
}

button.ais-SearchBox-reset {
    box-shadow: none;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background: transparent;
}

button.ais-SearchBox-reset:focus,
button.ais-SearchBox-reset:active,
button.ais-SearchBox-reset:hover {
    border: 0;
}

input.ais-SearchBox-input {
    padding-right: 2em;
}
#algolia-stats {line-height: 36px;}
/* .ais-SearchBox-reset,
input.ais-SearchBox-input {
    height: 32px;
} */

/* Hits & InfiniteHits */
.ais-Hits-list,
.ais-InfiniteHits .ais-InfiniteHits-list {
	margin-left: -15px;
    margin-right: -15px;
}
.ais-Hits-list .ais-Hits-item,
.ais-InfiniteHits .ais-InfiniteHits-list .ais-InfiniteHits-item {
	width: 33.333333333333%;
    padding: 0 15px;
    margin-bottom: 30px;
    /* float: left; */
    display: inline-block;
    font-size: 1.4rem;
    vertical-align: top;
}
.result-wrapper {
	box-shadow: 0px 0px 5px 3px #eee; padding: 10px;
}
.result-wrapper:hover {
    position: relative;
    z-index: 30;
    box-shadow: rgba(0,0,0,.15) 0px 0px 10px;
    -moz-box-shadow: rgba(0,0,0,.15) 0px 0px 10px;
    -webkit-box-shadow: rgba(0,0,0,.15) 0px 0px 10px;
    -o-box-shadow: rgba(0,0,0,.15) 0px 0px 10px;
}
.result-sub-content {
	   text-align: center;
    padding: 10px 10px 0;
}
.result-sub-content .product-reviews-summary {
	display: block;
}
.ais-InfiniteHits,
.ais-Hits {
    /* text-align: center; */
    padding-top: 30px;
    padding-bottom: 30px;
}

.ais-InfiniteHits--empty,
.ais-Hits--empty {
    margin: 40px 0;
    color: #636363;
    font-size: 16px;
    font-weight: bold;
}

.ais-InfiniteHits--empty q:before,
.ais-InfiniteHits--empty q:after,
.ais-Hits--empty q:before,
.ais-Hits--empty q:after {
    content: '"';
}

.ais-InfiniteHits-item a:hover,
.ais-Hits-item a:hover {
    color: #666666;
    text-decoration: none;
}

.ais-InfiniteHits-list .no-results .clear-button,
.ais-Hits-list .no-results .clear-button {
    cursor: pointer;
}

.ais-InfiniteHits-list .no-results .popular-searches,
.ais-Hits-list .no-results .popular-searches {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 30px;
}

.ais-InfiniteHits-item .result-wrapper,
.ais-Hits-item .result-wrapper {
    padding: 25px 0;
}

.ais-InfiniteHits-list::after,
.ais-Hits-list::after {
    content: ' ';
    clear: both;
    display: block;
}
.ais-InfiniteHits-loadMore {
    background: #1a2537;
    border-color: transparent;
    color: #666666;
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.ais-InfiniteHits .ais-InfiniteHits-loadMore {
	background: #1a2537;
	margin: 0 auto;
    display: block;
	    border-radius: 20px;
}
.ais-InfiniteHits .ais-InfiniteHits-loadMore:hover {
	    background-color: #DA2128;
}
.ais-InfiniteHits-loadPrevious--disabled,
.ais-InfiniteHits-loadMore--disabled {
    display: none !important;
}

.result-wrapper .tocart {
    color: #fff;
    background: #1a2537;
	border-radius: 20px;
	padding: 0 30px;
    line-height: 38px;
	font-weight: 700;
}
.aa-LoadingIndicator svg circle {color: #4a5678}
.result-wrapper .tocart:before {
    vertical-align: middle;
    margin-right: 3px;
    position: relative;
    top: -2px;
    content: '\e957';
    display: inline-block;
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    font-size: 18px;
}
.result-wrapper .tocart:hover {
    background-color: #DA2128;
    border-color: #DA2128;
    color: #FFFFFF;
}
.result-wrapper .price {
    text-align: center;
    font-size: 1.8rem;
	margin: 5px 0 15px;
    /* color: #54A5CD; */
}
.result-wrapper .price .price-wrapper .before_special {
	position: inherit;
}
.result-wrapper .before_special {
    /* color: #aaaaaa; */ color: #333;
    text-decoration: line-through;
    font-size: 14px;
}

.result-wrapper .text-ellipsis {
    white-space: nowrap; font-size: 14px;     text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* HierarchicalMenu */
.ais-HierarchicalMenu-item {
    margin: 0;
    line-height: 1.8em;
}

.ais-HierarchicalMenu-link--selected {
    font-weight: bold;
}

.ais-HierarchicalMenu-link--selected .cross-circle {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: url("data:image/svg+xml;utf8,<svg width='34' height='34' viewBox='0 0 34 34' xmlns='http://www.w3.org/2000/svg'><title>testvg</title><g fill='%23000' fill-rule='evenodd'><path d='M17.163 0C7.95 0 .41 7.578.353 16.893c-.03 4.542 1.693 8.82 4.847 12.053 3.156 3.23 7.367 5.026 11.857 5.054h.11c9.21 0 16.75-7.578 16.81-16.893C34.035 7.735 26.54.06 17.163 0zm.015 30.842v1.08l-.09-1.08c-3.656-.023-7.085-1.485-9.654-4.115-2.57-2.63-3.97-6.116-3.948-9.814C3.533 9.33 9.673 3.158 17.262 3.158c7.548.048 13.65 6.297 13.605 13.93-.05 7.585-6.19 13.754-13.69 13.754z'/><path d='M22.362 10.23l-5.186 5.245-5.186-5.244c-.417-.42-1.092-.42-1.51 0-.416.422-.416 1.105 0 1.526L15.668 17l-5.186 5.244c-.416.42-.416 1.104 0 1.525.21.21.483.316.755.316.273 0 .546-.106.755-.317l5.186-5.245 5.186 5.244c.208.21.482.316.754.316.273 0 .546-.106.755-.317.417-.422.417-1.105 0-1.526L18.685 17l5.187-5.244c.417-.42.417-1.104 0-1.525-.416-.42-1.09-.42-1.508 0z'/></g></svg>") no-repeat center center / contain;
    opacity: 0;
}

.ais-HierarchicalMenu-link--selected:hover .cross-circle {
    opacity: 1;
}

.ais-HierarchicalMenu-count::before {
    content: '('
}

.ais-HierarchicalMenu-count::after {
    content: ')'
}
/* RefinementList */
.ais-RefinementList-searchBox .ais-SearchBox-input {
    margin-top: 4px;
    margin-bottom: 4px;
}

.ais-RefinementList-searchBox .ais-SearchBox-input[disabled] {
    display: none;
}

.ais-RefinementList-count::before {
    content: '('
}

.ais-RefinementList-count::after {
    content: ')'
}

/* Panel */
.ais-Panel {
    border: solid 1px #efefef;
    margin-bottom: 15px;
}

.ais-Panel-header {
    background-color: #efefef;
    padding: 7px;
}

.ais-Panel-body {
    padding: 4px 7px;
}

/* RangeSlider */
.ais-RangeSlider {
    margin: 0 20px;
}

.ais-RangeSlider .rheostat-background {
    border: 0;
    background-color: #efefef;
}

.ais-RangeSlider .rheostat-progress {
    background-color: #da1f26;
}

/* Pagination */
.ais-Pagination-list {
    margin: 2em 0;
    justify-content: center;
}

.ais-Pagination-item {
    padding: 1em;
}

.ais-Pagination-item--selected {
    color: black;
    font-weight: bold;
}

.ais-Pagination-item--disabled {
    display: none;
}

/* CurrentRefinements */
.ais-CurrentRefinements-list:not(:empty) {
    margin-bottom: 10px;
}

.ais-CurrentRefinements-item {
    color: #636363;
    border-radius: 2px;
    border: solid 1px #ddd;
    background-color: #f4f4f4;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    padding: 0.2em 0.5em;
    overflow: hidden;
    margin-right: 0.4em;
    margin-bottom: 0;
}

.ais-CurrentRefinements-label {
    font-weight: bold;
}

.ais-CurrentRefinements-category {
    margin: 0 0.5em;
}

.ais-CurrentRefinements-categoryLabel {
}

button.ais-CurrentRefinements-delete {
    line-height: inherit;
    box-shadow: none;
    margin-left: 0.2em;
	margin-top: -4px;
}

button.ais-CurrentRefinements-delete:hover,
button.ais-CurrentRefinements-delete:active,
button.ais-CurrentRefinements-delete:focus {
    box-shadow: none;
    background: none;
    border: none;
}

/* CurrentRefinements */
.ais-ClearRefinements-button {
    width: 100%;
    margin-bottom: 15px;
}

.ais-ClearRefinements-button--disabled {
    display: none !important;
}

.no-results {
    padding: 3em 0;
    text-align: center;
}
.result-thumbnail {
	text-align: center;
}

@media (min-width: 768px) and (max-width: 991px) {
	.ais-Hits-list .ais-Hits-item,
	.ais-InfiniteHits .ais-InfiniteHits-list .ais-InfiniteHits-item	{
		width: 50%;
	}
}
@media (min-width: 481px) and (max-width: 767px) {
	.ais-Hits-list .ais-Hits-item,
	.ais-InfiniteHits .ais-InfiniteHits-list .ais-InfiniteHits-item	{
		width: 50%;
	}
}
@media (max-width: 480px) {
	.ais-Hits-list .ais-Hits-item,
	.ais-InfiniteHits .ais-InfiniteHits-list .ais-InfiniteHits-item	{
		width: 100%;
	}
}
