.info-rapid-btn {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 12;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: box-shadow .14s;
    display: inline-block;
    background: transparent;
}

.info-rapid-btn svg {
    display: block;
    pointer-events: none;
}

.info-rapid-tooltip {
    position: absolute;
    top: 38px; right: 0;
    min-width: 180px;
    background: #fffbe7;
    color: #222;
    box-shadow: 0 8px 30px #ffc10748;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transition: opacity .2s, transform .17s;
    z-index: 22;
    border: 1px solid #ffd54f;
    white-space: normal;
}

.info-rapid-btn:hover .info-rapid-tooltip,
.info-rapid-btn:focus .info-rapid-tooltip,
.info-rapid-btn.show-tooltip .info-rapid-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.info-rapid-modal-bg {
    display: none;
    position: fixed; z-index: 9001;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,22,5,0.19);
    align-items: center; justify-content: center;
}
.info-rapid-modal-bg.active {
    display: flex;
}
.info-rapid-modal {
    background: #fffbe7;
    color: #222;
    border-radius: 16px;
    max-width: 92vw;
    min-width: 200px;
    max-height: 70vh;
    box-shadow: 0 8px 34px #ffb30057;
    padding: 24px 20px 12px 20px;
    position: relative;
    animation: popIn .21s cubic-bezier(.7,0,.4,1);
    font-size: 1.06rem;
    overflow-y: auto;
}
@keyframes popIn {
    0% {transform: scale(.85) translateY(24px); opacity: 0;}
    100% {transform: scale(1) translateY(0); opacity: 1;}
}
.info-rapid-modal-x {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 1.5rem;
    color: #ff9800;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}
