/**
 * Copyright © Bluemint. All rights reserved.
 * Amasty Label CSS for Hyva Theme Compatibility
 */

/* Base container styles */
.amasty-label-container:not(.-preview) {
    max-height: 300px !important;
    max-width: 300px !important;
    z-index: 10;
}

.amasty-label-container.-link:hover {
    cursor: pointer;
}

.amasty-label-container.-link:hover .amlabel-text {
    text-decoration: underline;
}

/* Hide labels in fullscreen fotorama */
.fotorama--fullscreen .amasty-label-container {
    display: none !important;
}

/* Position wrapper */
.amlabel-position-wrapper {
    position: absolute;
    display: block;
    z-index: 995;
    pointer-events: none;
}

.amlabel-position-wrapper * {
    pointer-events: auto;
}

.amlabel-position-wrapper .amasty-label-container {
    pointer-events: auto;
}

.sidebar .amlabel-position-wrapper {
    z-index: 9;
}

.block-viewed-products-grid .amlabel-position-wrapper {
    z-index: 2;
}

/* Text label styles */
.amlabel-text {
    padding: 0 3px;
    position: absolute;
    box-sizing: border-box;
    white-space: nowrap;
    width: 100%;
    line-height: 1.2;
}

.amlabel-text.-am-centered {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto !important;
}

/* Image label styles */
.amasty-label-image {
    width: 100%;
    height: 100%;
    display: block;
}

/* Upsell products override */
.products-upsell .product-item .amlabel-text {
    font-size: 12px !important;
    padding: 0 !important;
}


/* Hyva theme specific adjustments */
.card-product .amasty-label-container,
.product-item .amasty-label-container,
.product-item-photo .amasty-label-container {
    position: absolute;
    z-index: 10;
}

/* Ensure labels don't break layout */
.amasty-label-container {
    box-sizing: border-box;
}

/* Tooltip styles */
.amasty-label-tooltip {
    cursor: help;
}

.bluemint-label-container {
    position: absolute;
}