/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 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                                                           *
*******************************************************************************************/

.ab-sticker {
    &__tooltip {
        .yp_round();
    }
}

.ty-product-list {
    .ab-stickers-container__product_labels {
        max-width: -webkit-calc(~'100% - 54px');
        max-width: calc(~'100% - 54px');
    } 
} 

input[name="ab__stickers_output_side"][value="R"] {
    & ~ .ypi-grid-list__item_body .ty-grid-list__image .ypi-list-bt-block {
        right: auto;
        left: 0;
    }
}

.ab-sticker__name > span {
    @media screen and (max-width: 767px) {
        &.hidden-tablet, &.hidden-desktop {
            display: inherit !important;
        }
    }
}

.prices-container .ty-product-prices,
.grid-list .ty-grid-list__price,
.ty-product-list__price,
.ty-simple-list__price,
.ty-template-small__item-price,
.ty-compact-list__price {
    .ab-stickers-container__price_before {
        order: -1;
    }
}

.prices-container .ty-product-prices,
.ty-template-small__item-price {
    display: flex;
    flex-direction: column;
}

.grid-list .ty-grid-list__price,
.ty-compact-list__price {
    .ab-stickers-container__price_before,
    .ab-stickers-container__price_after{
        justify-content: flex-end;
    }
}

.grid-list:has(.ab-stickers-container) .ty-grid-list__price {
    align-content: flex-start;

    @media (min-width: 768px) {
        padding-top: 15px;
    }
}

.ty-product-list, .ty-simple-list {
    &__price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 3px;
        flex-direction: row;
    }
}

.ty-template-small__item-price {
    align-items: flex-start;
}

.ty-compact-list__controls > .ty-compact-list__price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.yt-sticky-block {
    .ab-stickers-container {
        display: none !important;
    }
}