/*
 * Indicative currency conversion — display-only decorations.
 *
 * When a visitor picks a display currency, prices render in that currency with a
 * leading "≈" (approximately-equals) and a small info icon. Hovering / focusing
 * the icon reveals a tooltip explaining that the actual charge is in the base
 * currency. No amount rendered here is what gets billed.
 */

/* Small info icon beside a converted price. */
.currency-info {
    position: relative;
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.62em;
    color: #9aa0a6;
    cursor: help;
    vertical-align: middle;
    top: -0.15em;
}

/* Tooltip bubble (revealed on hover / focus). */
.currency-info::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-8px);
    background: #212529;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 1080;
    pointer-events: none;
}

/* Tooltip arrow. */
.currency-info::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: #212529;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 1080;
    pointer-events: none;
}

.currency-info:hover::after,
.currency-info:focus::after,
.currency-info:focus-visible::after,
.currency-info:hover::before,
.currency-info:focus::before,
.currency-info:focus-visible::before {
    opacity: 1;
    visibility: visible;
}
