#toggle-hide-prices {
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;

    .toggle-text {
        display: none;
        font-size: 14px;
        color: #888888;
        padding-left: 7px;
    }

    .icon-hide-prices {
        display: block;
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

    .icon-show-prices {
        display: none;
        width: 20px;
        height: 20px;
    }

    .tooltip {
        visibility: hidden;
        width: max-content;
        max-width: 150px;
        background-color: #f6f7fb;
        color: #888888;
        text-align: center;
        border: 1px solid #e8e8e8;
        border-radius: 15px;
        padding: 5px 8px;
        position: absolute;
        z-index: 1000;
        top: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        white-space: nowrap;
        pointer-events: none;
    }

    .tooltip::after {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #f6f7fb transparent;
    }

    &:hover .tooltip {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 1024px) {
    #toggle-hide-prices {
        -webkit-tap-highlight-color: transparent;
        padding: 16px 0;

        /* White icons on mobile only */
        .icon-hide-prices, .icon-show-prices {
            filter: brightness(0) invert(1);
        }

        .toggle-text {
            color: #fff;
            font-size: 16px;
            display: block;
        }

        .tooltip {
            display: none;
        }

        &:active, &:focus {
            outline: none;
            box-shadow: none;
        }
    }
}
