.acf-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    cursor: pointer;
    position: relative;
    display: inline-block;
    color: #6B6B6B;
}

.tooltip-icon svg {
    vertical-align: middle;
}

.tooltip-icon svg path {
    fill: currentColor;
}

.tooltip-icon svg path[stroke] {
    stroke: currentColor;
    fill: none;
}

.tooltip-content {
    visibility: hidden;
    background-color: #FFFFFF;
    color: #0D0D0D;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0px 4px 36px rgba(0, 0, 0, 0.15);
    padding: 24px 32px 24px 50px;
    
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-width: 452px;
}

.tooltip-title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    width: 100%;
}

.tooltip-title {
    font-family: 'Involve', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    color: #2A73DC;
    margin: 0;
}

.tooltip-description-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 100%;
}

.tooltip-description {
    font-family: 'Involve', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #0D0D0D;
    margin: 0;
}

.tooltip-icon:hover .tooltip-content,
.tooltip-icon:focus .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Support for tooltip applied to text elements */
.tooltip-hover-text {
    color: var(--Color-Content-Tertiary, #6B6B6B);
    font-family: var(--Type-Body-M-Body-3-Family, Involve);
    font-size: var(--Type-Body-M-Body-3-Size, 14px);
    font-style: normal;
    font-weight: var(--Type-Body-M-Body-3-Weight, 500);
    line-height: 140%; /* 19.6px */
}

.tooltip-text {
    cursor: pointer;
    position: relative;
    display: flex;
    height: 26px;
    align-items: center;
    gap: 8px;
}

.tooltip-icon-inline {
    display: inline-flex;
    align-items: center;
    color: #6B6B6B;
}

.tooltip-icon-inline svg {
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

/* The following rules ensure both fill and stroke attributes get the right color */
.tooltip-icon-inline svg path {
    fill: currentColor;
}

.tooltip-icon-inline svg path[stroke] {
    stroke: currentColor;
    fill: none;
}

.tooltip-text .tooltip-content {
    visibility: hidden;
    background-color: #FFFFFF;
    color: #0D0D0D;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0px 4px 36px rgba(0, 0, 0, 0.15);
    padding: 24px 32px 24px 50px;
    
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-width: 452px;
}

.tooltip-text:hover .tooltip-content,
.tooltip-text:focus .tooltip-content {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .tooltip-content {
        min-width: 300px;
        width: 90vw;
        left: auto;
        right: 0;
        transform: none;
    }
}
