/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2025   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/

.ty-product-block {
    .ty-product-block__img {
        display: inline-block;
        width: 100%; 
    }
    
    &__img {
        position: relative;
    }
}

.ty-quick-view__wrapper .ty-product-block__img {
    float: left;
    margin-right: 0;
}

.ab-sticker {
    &__tooltip {
        .border-radius(8px);
    }
}

.ab-stickers-container {
    &__TL&__product_labels {
        top: 0;
        left: 0;
    }

    &__TR&__product_labels {
        top: 0;
        right: 0;
    }

    &__BL&__product_labels {
        bottom: 0;
        left: 0;
    }

    &__BR&__product_labels {
        bottom: 0;
        right: 0;
    }
}

.ty-product-bigpicture__prices {
    .ab-stickers-wrapper {
        margin-top: 20px;
    }

    .ab-stickers-container {
        &__product_labels {
            flex: none;
            align-items: flex-end;
            margin-top: 0 !important;

            > div {
                margin-top: 0;
                margin-bottom: 0;
            }

            .ab-sticker {
                &.G-sticker {
                    display: block;
                }
            }

            &:not(:only-child) {
                margin-right: 5px;
            }
        }
    }
}

.ty-product-block__price-old {
    .ab-stickers-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        position: static;
    }
}

.ty-compact-list__image {
    position: relative;

    .ab-stickers-container__TR&__product_labels {
        right: 5px;
    }
}

.ty-compact-list {
    &__controls {
        > .ty-compact-list__price {
            display: inline-flex;
            flex-direction: row;
            justify-content: flex-end;
            flex-wrap: wrap;
            margin-bottom: 5px;

            .ab-stickers-container__price_before,
            .ab-stickers-container__price_after {
                justify-content: flex-end;
                text-align: right;
            }

            .ab-stickers-container__price_before {
                order: -1;
            }

            .ab-stickers-container__price_after {
                order: 1;
            }
        }
    }
}

.grid-list {
    .ab-stickers-container:not(.ab-stickers-container__product_labels) {
        justify-content: flex-start;
    }
}

.ty-product-bigpicture__img {
    .ab-stickers-wrapper {
        top: 20px;
    }

    &:not(:has(.ab_vg-images-wrapper)) {
        .ab-stickers-wrapper {
            left: 60px;
        }
    }
}

.ty-product-list__info {
    .ab-stickers-container__price_before, .ab-stickers-container__price_after {
        margin-top: 10px;
        margin-bottom: 0;
    }
}