.ppro-y26-c-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ppro-y26-c-info-tooltip__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--ppro-foreground);
    font-family: var(--ppro-font-body);
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ppro-y26-c-info-tooltip__toggle:hover {
    opacity: 1;
}

.ppro-y26-c-info-tooltip__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ppro-y26-c-info-tooltip__label {
    white-space: nowrap;
}

.ppro-y26-c-info-tooltip__popup {
    position: absolute;
    z-index: 60;
    bottom: calc(100% + 0.75rem);
    width: 22rem;
    max-width: calc(100vw - 2rem);
    padding: 1.5rem;
    background: var(--ppro-color-white);
    border: 1px solid var(--ppro-foreground);
    border-radius: 0;
    color: var(--ppro-foreground);
    text-align: left;
}

.ppro-y26-c-info-tooltip__popup::before {
    content: "";
    position: absolute;
    inset: calc(-0.5px - 0.15625rem);
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem);
    background-position:
        top left,
        top right,
        bottom left,
        bottom right;
    background-size: 0.3125rem 0.3125rem;
    background-repeat: no-repeat;
}

.ppro-y26-c-info-tooltip--left .ppro-y26-c-info-tooltip__popup {
    left: 0;
}

.ppro-y26-c-info-tooltip--right .ppro-y26-c-info-tooltip__popup {
    right: 0;
}

.ppro-y26-c-info-tooltip__popup--below,
.ppro-y26-c-info-tooltip--down .ppro-y26-c-info-tooltip__popup {
    top: calc(100% + 0.75rem);
    bottom: auto;
}

.ppro-y26-c-info-tooltip__dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    padding: 0;
    background: none;
    border: none;
    color: var(--ppro-foreground);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ppro-y26-c-info-tooltip__dismiss:hover {
    opacity: 1;
}

.ppro-y26-c-info-tooltip__dismiss-icon {
    width: 1rem;
    height: 1rem;
}

.ppro-y26-c-info-tooltip__title {
    margin: 0 1.5rem 0 0;
    font-family: var(--ppro-font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
}

.ppro-y26-c-info-tooltip__text {
    margin: 0.5rem 0 0;
    font-family: var(--ppro-font-body);
    font-weight: var(--ppro-font-weight-body);
    font-size: 0.875rem;
    line-height: 1.375rem;
    opacity: 0.8;
}

.ppro-y26-c-info-tooltip__text p {
    margin: 0.5rem 0 0;
}

.ppro-y26-c-info-tooltip__text > :first-child {
    margin-top: 0;
}

.ppro-y26-c-info-tooltip__text > :last-child {
    margin-bottom: 0;
}

.ppro-y26-c-info-tooltip__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ppro-y26-c-info-tooltip__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ppro-y26-c-info-tooltip__link-icon {
    width: 0.75rem;
    height: 0.75rem;
}

@media (max-width: 767px) {
    .ppro-y26-c-info-tooltip .ppro-y26-c-info-tooltip__popup {
        position: fixed;
        top: var(--ppro-tooltip-mobile-top, calc(100% + 0.75rem));
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100vw - 2rem);
        max-width: 22rem;
        transform: translateX(-50%);
    }
}
