/* The USD tooltip of every bitcoin amount (usd.js). */

.usd-tip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    max-width: min(320px, calc(100vw - 8px));
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.usd-tip[hidden] {
    display: none;
}

.usd-tip-title {
    color: var(--ink-2);
}

.usd-tip-usd {
    font-weight: 600;
}

/* Amounts with a USD value, once there are prices (a link's stays a link's). */
.has-usd [data-usd]:not(a *, button *) {
    cursor: help;
}

.has-usd .usd-focus:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
    border-radius: 2px;
}

/* The sales chart's tooltip: the sale's USD under its price. */
.sale-tip-usd {
    color: var(--ink-2);
}
