
.seosa_product_label {
    position: absolute;
    width: 80px;
    height: 80px;
    /*display: none;*/
    display: flex;
    z-index: 20;
}
/* Hint tooltip: keep it closed by default on every listing page,
   even when the controller-specific inline CSS is not printed. */
.seosa_label_hint {
    display: none;
}

.seosa_product_label:hover {
    z-index: 100;
}

/*.seosa_product_label:hover {*/
/*    z-index: 11;*/
/*}*/

@media (max-width: 1199px) {
    .seosa_product_label {
        /*max-width: 33%;*/
        /*height: auto !important;*/
    }
}

.seosa_product_label a, .seosa_product_label img {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    background: transparent!important;
    box-shadow: none;
    margin-left: 0 !important;
    height: auto !important;
    margin: 0;
}

@media (max-width: 767px) {
    .seosa_product_label a, .seosa_product_label img {
        /*max-height: 75%;*/
        /*height: 100% !important;*/
        /*width: auto !important;*/
        /*height: 60% !important;*/
        /*width: auto !important;*/
    }
}


.product_list .product-container .left-block a.product_img_link {
    display: inline-block;
    margin: 0;
    padding: 0;
    position: relative;
}

.seosa_product_label.top-left, .seosa_product_label.top-center, .seosa_product_label.top-right {
    top: 0;
}

.seosa_product_label.center-left, .seosa_product_label.center-center, .seosa_product_label.center-right {
    top: 50%;
    margin-top: -40px;
}

.seosa_product_label.bottom-left, .seosa_product_label.bottom-center, .seosa_product_label.bottom-right {
    bottom: 0;
    margin-top: -40px;
    display: flex;
    align-items: flex-end;
}

.seosa_product_label.bottom-left a, .seosa_product_label.bottom-center a, .seosa_product_label.bottom-right a {
    display: flex;
    align-items: flex-end;
}

.seosa_product_label.top-left, .seosa_product_label.center-left, .seosa_product_label.bottom-left {
    left: 0;
    text-align: left;
}


.seosa_product_label.top-center, .seosa_product_label.center-center, .seosa_product_label.bottom-center {
    left: 50%;
    margin-left: -40px;
}

.seosa_product_label.top-right, .seosa_product_label.center-right, .seosa_product_label.bottom-right {
    right: 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.seosa_product_label.top-right .seosa_label_hint, .seosa_product_label.center-right .seosa_label_hint, .seosa_product_label.bottom-right .seosa_label_hint {
    text-align: left;
}

@media (max-width: 767px) {
    .seosa_product_label.top-left .seosa_label_hint, .seosa_product_label.center-left .seosa_label_hint, .seosa_product_label.bottom-left .seosa_label_hint {
        position: absolute;
        background: #eb001b;
        color: #fffff0;
        border-radius: 3px;
        top: 0;
        right: -10px;
        left: auto;
        margin-right: -150px;
        z-index: 1000;
        opacity: 1;
        width: 150px;
        padding: 5px;
    }

    .seosa_product_label.top-left .seosa_label_hint:after, .seosa_product_label.center-left .seosa_label_hint:after, .seosa_product_label.bottom-left .seosa_label_hint:after {
        border-bottom: solid transparent 7px;
        border-top: solid transparent 7px;
        border-right: solid #eb001b 10px;
        top: 10%;
        content: " ";
        height: 0;
        right: 100%;
        left: auto;
        position: absolute;
        width: 0;
        border-left: none;
    }

    .seosa_product_label.top-right .seosa_label_hint, .seosa_product_label.center-right .seosa_label_hint, .seosa_product_label.bottom-right .seosa_label_hint {
        display: none;
        position: absolute;
        background: #eb001b;
        color: #fffff0;
        border-radius: 3px;
        top: 0;
        left: -10px;
        margin-left: -150px;
        z-index: 1000;
        opacity: 1;
        width: 150px;
        padding: 5px;
    }

    .seosa_product_label.top-right .seosa_label_hint:after, .seosa_product_label.center-right .seosa_label_hint:after, .seosa_product_label.bottom-right .seosa_label_hint:after {
        border-bottom: solid transparent 7px;
        border-top: solid transparent 7px;
        border-left: solid #eb001b 10px;
        border-right: none;
        top: 10%;
        content: " ";
        height: 0;
        left: 100%;
        position: absolute;
        width: 0;
    }
}

.sidebar .seosa_product_label {
    display: none !important;
}

.seosa_label_hint p {
    margin-bottom: 0;
    color: inherit;
}

.product-miniature .thumbnail-container {
    overflow: visible;
}

.product-miniature .thumbnail-top {
     overflow: visible;
}

/* Avoid tooltip clipping in category/manufacturer product grids. */
.product-miniature .thumbnail-container > a,
.product-miniature .thumbnail-top > a,
.product-miniature a.thumbnail.product-thumbnail,
.product-miniature .product-thumbnail,
.product-miniature .product_img_link,
.product-miniature .product-image,
.product-miniature .product_image,
.product-miniature .product-cover-link {
    position: relative;
    overflow: visible !important;
}


/* Product list/brand/category tooltip visibility fixes.  Some themes place
   labels inside anchors such as <a class="product-cover link"> and hide
   overflow on the image wrapper.  The hint is absolutely positioned, so it
   must be allowed to escape those wrappers. */
.seosa_product_label._catalog {
    overflow: visible !important;
}

.seosa_product_label._catalog .seosa_label_hint {
    box-sizing: border-box;
    white-space: normal !important;
    pointer-events: none;
}

.products,
.product_list,
.product-miniature,
.js-product-miniature,
.ajax_block_product,
.product-container,
.product-miniature .thumbnail-container,
.product-miniature .thumbnail-top,
.product-miniature .product-thumbnail,
.product-miniature a.product-cover,
.product-miniature .product-cover,
.product-miniature .product-cover.link,
.product-miniature a.product-cover.link,
.product-miniature a.thumbnail.product-thumbnail,
.product-miniature .thumbnail-container > a,
.product-miniature .thumbnail-top > a,
.product-miniature .product_img_link,
.product-miniature .product-image,
.product-miniature .product_image,
.product-miniature .product-cover-link {
    overflow: visible !important;
}

.product-miniature a.product-cover,
.product-miniature .product-cover,
.product-miniature .product-cover.link,
.product-miniature a.product-cover.link,
.product-miniature a.thumbnail.product-thumbnail,
.product-miniature .thumbnail-container > a,
.product-miniature .thumbnail-top > a,
.product-miniature .product_img_link,
.product-miniature .product-image,
.product-miniature .product_image,
.product-miniature .product-cover-link {
    position: relative;
}

/* Listing cards: when a label is placed at the bottom of the product image,
   align the hint to the bottom of the label so the popup opens upward instead
   of being clipped by the product title/price area below the image. */
.seosa_product_label._catalog.bottom-left .seosa_label_hint,
.seosa_product_label._catalog.bottom-right .seosa_label_hint {
    top: auto !important;
    bottom: 0 !important;
}

.seosa_product_label._catalog.bottom-left .seosa_label_hint:after,
.seosa_product_label._catalog.bottom-right .seosa_label_hint:after {
    top: auto !important;
    bottom: 10% !important;
}

.seosa_product_label._catalog:hover,
.seosa_product_label._catalog:hover .seosa_label_hint {
    z-index: 3000 !important;
}
