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

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

.ap-product-row {
    display: flex;
    margin: 4px 0px;
    background: white;
    padding: 3px 3px;
}

#ap-container-small .ap-product-row {
    text-align: center;
}

.ap-image img {
    max-width: 70px;
}

.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 {
    background: white;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px 5px 10px;
}

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

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

#ap-container-small .ap-title {
    background: transparent;
    box-shadow: none;
    padding: 3px;
    font-size: 1em;
    border-bottom: 1px solid #dedede;
}

#ap-container-small .ap-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#ap-container-small .ap-product-row > a {
    border: 1px solid #dedede;
}

#ap-container-small span.ap-flag.sale-label {
    position: absolute;
    bottom: 0;
    background: #ffffffad;
    padding: 2px;
    width: 100%;
    left: 0;
}

.ap-product-row {
    position: relative;
}

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

.tippy-tooltip .product-price {
    color: #fff6b9;
}

.tippy-tooltip .features {
    color: #CCCCCC;
}

.ap-product-row.this {
    border: 1px 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;
}

.more-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
}

a.hide-all-thumbs {
    font-size: 2em;
}

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