.hfs-ts-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    box-sizing: border-box;
    width: max-content;
    max-width: min(var(--hfs-ts-max-width), calc(100vw - 24px));
    padding: var(--hfs-ts-padding-v) var(--hfs-ts-padding-h);
    border-radius: var(--hfs-ts-radius);
    background: var(--hfs-ts-bg);
    color: var(--hfs-ts-color);
    box-shadow: var(--hfs-ts-shadow);
    font-size: var(--hfs-ts-font-size);
    font-weight: var(--hfs-ts-font-weight);
    line-height: var(--hfs-ts-line-height);
    text-align: var(--hfs-ts-text-align);
    white-space: var(--hfs-ts-white-space);
    overflow-wrap: normal;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(var(--hfs-ts-shift, var(--hfs-ts-movement)));
    transition:
        opacity var(--hfs-ts-duration) ease,
        transform var(--hfs-ts-duration) ease,
        visibility 0s linear var(--hfs-ts-duration);
}

.hfs-ts-tooltip.is-visible {
    visibility: visible;
    opacity: var(--hfs-ts-opacity);
    transform: translateY(0);
    transition-delay: 0s;
}

.hfs-ts-tooltip::after {
    content: "";
    position: absolute;
    left: var(--hfs-ts-arrow-left, 50%);
    width: 0;
    height: 0;
    border: var(--hfs-ts-arrow) solid transparent;
    transform: translateX(-50%);
}

.hfs-ts-tooltip[data-placement="top"] {
    --hfs-ts-shift: var(--hfs-ts-movement);
}

.hfs-ts-tooltip[data-placement="top"]::after {
    top: 100%;
    border-top-color: var(--hfs-ts-bg);
}

.hfs-ts-tooltip[data-placement="bottom"] {
    --hfs-ts-shift: calc(var(--hfs-ts-movement) * -1);
}

.hfs-ts-tooltip[data-placement="bottom"]::after {
    bottom: 100%;
    border-bottom-color: var(--hfs-ts-bg);
}

.hfs-inactive {
    opacity: var(--hfs-ts-inactive-opacity) !important;
    filter: grayscale(var(--hfs-ts-inactive-grayscale));
    color: var(--hfs-ts-inactive-color) !important;
    cursor: var(--hfs-ts-inactive-cursor) !important;
}

.hfs-inactive:is(a, button, [role="button"], .elementor-button),
.hfs-inactive :is(a, button, [role="button"], .elementor-button) {
    border-color: var(--hfs-ts-inactive-border) !important;
    background-color: var(--hfs-ts-inactive-bg) !important;
    color: var(--hfs-ts-inactive-color) !important;
    cursor: var(--hfs-ts-inactive-cursor) !important;
}

.hfs-inactive :is(i, svg),
.hfs-inactive:is(i, svg) {
    color: var(--hfs-ts-inactive-color) !important;
}

.hfs-inactive svg {
    fill: currentColor;
}

@media (max-width: 480px) {
    .hfs-ts-tooltip {
        max-width: calc(100vw - 24px);
        font-size: var(--hfs-ts-mobile-font-size);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hfs-ts-tooltip {
        transition: none;
    }
}
