#index #ap-container-small {
    display: none !important;
}

#ap-container {
    background: #eee;
    margin-top: 15px;
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
}

#ap-container.hidden {
    display: none;
}

.ap-products {
    margin: auto -0.2rem;
    flex-wrap: wrap;
    display: flex;
}

.ap-products > .col, .ap-products > [class*="col-"] {
    padding: 0.2rem;
}

.ap-product-row {
    background: white;
}

.ap-product-miniature {
    border: 1px solid #dedede;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#product .ap-product-miniature:hover {
    border: 2px solid black;
}

.ap-image img {
    max-height: 75px;
    width: auto;
    text-align: center;
    margin: auto;
    display: block;
    padding: 0.5rem;
    max-width: none !important;
}

.ap-label {
    flex-grow: 1;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    padding: 5px;
}

.ap-actions-add-to-cart i.material-icons.shopping-cart {
    margin-right: 0;
}

.ap-label-flags {
    text-align: right;
}

.ap-actions {
    min-width: 80px;
    text-align: right;
}

.ap-actions-price {
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 3px 2px;
}

.ap-label-flags .ap-flag {
    padding: 2px 5px;
    margin-top: 3px;
    display: inline-block;
}

.ap-label-flags span.stock-label {
    background: green;
    color: white;
}

.ap-label-flags span.sale-label {
    background: #ff6f26;
    color: white;
    font-weight: bold;
}

.ap-label-flags.out-of-stock span.sale-label {
    display: none;
}

.ap-label-flags.out-of-stock span.stock-label {
    background: transparent;
    color: gray;
}

.ap-title {
    font-weight: 700;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* product-list (#ap-container-small) styling */

.listing .ap-products {
    margin: auto -0.1rem;
}

.listing .ap-products > .col, .listing .ap-products > [class*="col-"] {
    padding: 0.1rem;
}

.listing .ap-product-row.this .ap-product-miniature {
    border: 1px solid #dedede;
}

#ap-container-small {
    background: transparent;
    box-shadow: none;
}

#ap-container-small span.ap-flag.sale-label {
    position: absolute;
    bottom: 0;
    background: #fb0000;
    padding: 0rem 0.2rem;
    left: 0;
    color: white;
    font-size: small;
}

.tippy-tooltip {
    background-color: #000000;
}

.tippy-tooltip[data-placement^=top]>.tippy-arrow{
    border-top-color:#000000;
}

.tippy-tooltip[data-placement^=bottom]>.tippy-arrow{
    border-bottom-color:#000000;
}

.tippy-tooltip[data-placement^=left]>.tippy-arrow{
    border-left-color:#000000;
}

.tippy-tooltip[data-placement^=right]>.tippy-arrow{
    border-right-color:#000000;
}

.tippy-tooltip > div {
    text-align: center;
}

.tippy-tooltip .product-price {
    color: white;
}

.tippy-tooltip {
    color: white;
}

.ap-product-row.this .ap-product-miniature {
    border: 2px solid #222222;
}

.ap-products:not(.all) .ap-product-row.collapsed {
    display: none;
}

.ap-products.all .show-all-thumbs {
    display: none;
}

.ap-products:not(.all) .hide-all-thumbs {
    display: none;
}

.ap-label-name a {
    display: flex;
    flex-flow: column;
}

.ap-label-name a > .features {
    color: #444444;
}

.features .name:after {
    content: ':';
    padding-right: 5px;
}

.ap-product-row.out-of-stock a {
    opacity: 0.5;
}

.out-of-stock .ap-product-miniature .ap-image:after {
    position: absolute;
    top: 5%;
    left: 5%;
    display: block;
    width: 90%;
    height: 90%;
    background-image: url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCUiIHkyPSIxMDAlIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiPjwvbGluZT48L3N2Zz4=);
    content: "";
    opacity: 0.4;
}

.all-thumbs {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
}

a.all-thumbs {
    border: 1px solid transparent;
}

a.all-thumbs:hover {
    text-decoration: none !important;
    border: 1px solid #dedede;
}