.js-lenses-distance {
    display: none;
}

.js-lenses-distance.active {
    display: block;
}

.sidepanel__body .shop-item {
    cursor: default;
}

.form-label.required:after {
    content: "*";
    display: inline-block;
    margin-left: 0.25rem;
    font-weight: 700;
    color: #DB412C;
}

.icon-cart-full:before {
    content: "\e90b";
    color: #344054;
}

.dropzone {
    position: relative;
    padding: 1rem;
    background-color: #F2F2F2;
}

.dropzone input {
    height: 180px !important;
    opacity: 0;
}

.dropzone label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border: 1px dashed #A1110D;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.form-label.required:after {
    content: "*";
    display: inline-block;
    margin-left: 0.25rem;
    font-weight: 700;
    color: #ED584F;
}

#upload_recipe_close {
    position: absolute;
    top: 3%;
    right: 2%;
    background-color: #db412c;
    color: white;
    padding: 5px;
    line-height: normal;
    border-radius: 3px;
}

#upload_recipe_close .ico {
    font-size: 1rem;
}

.custom-radio-block .tag--discount, .custom-radio-block .tag--loyalty {
    position: absolute;
    top: -0.5rem;
    right: .5rem;
}


@media (max-width: 576px) {
    .shop-tools {
        display: block;
        background-color: transparent;
        border-radius: 0;
    }

    .shop-tools__item {
        background-color: #101828;
        margin-bottom: 0.5rem;
        border-radius: 64px;
        padding: 0 1rem;
    }

    .shop-tools__item .form-select {
        padding: 0 1.5rem;
        height: 40px;
        text-align-last: center;
        border: none
    }
}

.sidepanel__header div.title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #FFFFFF;
}

@media (max-width: 576px) {
    .ico.xs {
        font-size: 0.8rem;
    }
}

.page-header--intro {
    position: relative;
    bottom: -5rem;

}
@media (max-width: 768px) {
    .page-header--intro {
      bottom: 0;
    }
}
.product__price .loyalty-price {
    position: relative;
    transform: none;
    font-size: 1rem;
    top:-0.2rem;
}

/* OPTION 2: Custom tooltip styles */
.custom-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000E6;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}
.custom-tooltip a {
    color: lightgrey;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000000E6 transparent transparent transparent;
}

.custom-tooltip-wrapper:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Make custom tooltip hoverable */
.custom-tooltip-hoverable {
    pointer-events: auto;
}

.custom-tooltip-wrapper:hover .custom-tooltip-hoverable,
.custom-tooltip-hoverable:hover {
    visibility: visible;
    opacity: 1;
}

/* Add gap between trigger and tooltip for smoother hover */
.custom-tooltip-wrapper::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

/* Add info badge after the price element */
.loyalty-item .price:after, .loyalty-price:after{
    content: 'i';
    position: absolute;
    left: 19px; /* Position on the icon */
    top: -3px;
    width: 13px;
    height: 13px;
    background: #F6F6EE;
    color: #AF130E;
    border: 1.5px solid #AF130E;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product__price.loyalty-item .price:after {
    top: 3px;
}
.loyalty-price:after {
    left: auto;
    top: -3px;
    right: -6px;
}