/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.thumbnail-container,
.thumbnail-top,
.product-cover,
.product__cover,
.product__carousel,
.product-miniature {
    position: relative;
}

/* Hide raw sticker container everywhere by default to prevent floating elements */
.tv-sticker-container,
.product-additional-info .tv-sticker-container,
.product-description .tv-sticker-container,
.product-information .tv-sticker-container,
.quickview .product-additional-info .tv-sticker-container {
    display: none !important;
    position: relative;
}

/* Active positioning once moved to cover or miniature thumbnail */
.product-cover > .tv-sticker-container,
.product__cover > .tv-sticker-container,
.product__carousel > .tv-sticker-container,
.thumbnail-top > .tv-sticker-container,
.thumbnail-container > .tv-sticker-container,
.product-thumbnail > .tv-sticker-container,
.product-miniature .thumbnail-top > .tv-sticker-container,
.product-miniature .thumbnail-container > .tv-sticker-container,
.product-miniature .product-thumbnail > .tv-sticker-container {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Explicitly prevent stickers from ever appearing inside sliders or carousels */
#carousel .tv-sticker-container,
.carousel .tv-sticker-container,
.homeslider .tv-sticker-container,
.homeslider-container .tv-sticker-container,
#ps_imageslider .tv-sticker-container,
[id*="slider"] .tv-sticker-container,
[class*="slider"] .tv-sticker-container {
    display: none !important;
}

.tv-sticker-item {
    position: absolute;
    z-index: 10;
    line-height: 0;
    pointer-events: auto;
}

.tv-sticker-item a {
    pointer-events: auto;
    display: inline-block;
}

.tv-sticker-item img,
.tv-sticker-item .tv-text-sticker-span {
    max-width: 100%;
    height: auto; /* Ensure image scales correctly */
    background: transparent; /* Override default theme background for sticker images */
}

.tv-text-sticker-span {
    display: inline-block;
    padding: 5px 10px;
    line-height: 1.2;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

/* Alignment classes */
.tv-sticker-container .tv-sticker-item.top-left,
#tvproduct-stikers .tv-sticker-item.top-left { top: 10px; left: 10px; }

.tv-sticker-container .tv-sticker-item.top-center,
#tvproduct-stikers .tv-sticker-item.top-center { top: 10px; left: 50%; transform: translateX(-50%); text-align: center; }

.tv-sticker-container .tv-sticker-item.top-right,
#tvproduct-stikers .tv-sticker-item.top-right { top: 10px; right: 10px; text-align: right; }

.tv-sticker-container .tv-sticker-item.center-left,
#tvproduct-stikers .tv-sticker-item.center-left { top: 50%; left: 10px; transform: translateY(-50%); }

.tv-sticker-container .tv-sticker-item.center-center,
#tvproduct-stikers .tv-sticker-item.center-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

.tv-sticker-container .tv-sticker-item.center-right,
#tvproduct-stikers .tv-sticker-item.center-right { top: 50%; right: 10px; transform: translateY(-50%); text-align: right; }

.tv-sticker-container .tv-sticker-item.bottom-left,
#tvproduct-stikers .tv-sticker-item.bottom-left { bottom: 10px; left: 10px; }

.tv-sticker-container .tv-sticker-item.bottom-center,
#tvproduct-stikers .tv-sticker-item.bottom-center { bottom: 10px; left: 50%; transform: translateX(-50%); text-align: center; }

.tv-sticker-container .tv-sticker-item.bottom-right,
#tvproduct-stikers .tv-sticker-item.bottom-right { bottom: 10px; right: 10px; text-align: right; }

.tv-sticker-banner-container {
    padding: 10px;
    margin: 15px 0;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    clear: both;
}
.tv-text-sticker-text-on-img{
    padding: 2px 4px;
}
.tooltip.bs-tether-element-attached-bottom .tooltip-inner::before, 
.tooltip.tooltip-top .tooltip-inner::before{
    transform: rotate(180deg);
}

.tooltip-inner::before{
    border:none !important;
    width: 11px;
    height: 6px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: inherit;
}
.tooltip.bs-tether-element-attached-left .tooltip-inner::before, .tooltip.tooltip-right .tooltip-inner::before{
    transform: rotate(-90deg);
    left: -3px;
    top: 0;
    bottom: 0;
    margin: auto;
}
.tooltip.bs-tether-element-attached-right .tooltip-inner::before, .tooltip.tooltip-left .tooltip-inner::before{
    right: -3px;
    transform: rotate(90deg);
    top: 0;
    bottom: 0;
    margin: auto;
}

.bs-tether-element.tooltip.in{
    opacity: 1 !important;
}

.tippy-box[data-theme~='tvtooltip'] {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tippy-arrow{
    color: inherit;
}