/* CopyAddress — compact address + copy widget. */

.copy-address {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.7rem;
    line-height: 1.2;
    position: relative;
    white-space: nowrap;
}

.copy-address__label {
    font-family: inherit;
    color: var(--color-text-dim, #888);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 2px;
}

.copy-address__addr {
    color: var(--color-accent-link, #58a6ff);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}

.copy-address__addr:hover {
    border-bottom-color: currentColor;
}

.copy-address__btn {
    background: transparent;
    border: none;
    color: var(--color-text-dim, #888);
    cursor: pointer;
    padding: 0 2px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 3px;
    transition: color 0.12s, background-color 0.12s;
}

.copy-address__btn:hover {
    color: var(--color-text, #fff);
    background-color: var(--color-bg-subtle, rgba(255, 255, 255, 0.06));
}

.copy-address__btn:focus-visible {
    outline: 2px solid var(--color-accent, #58a6ff);
    outline-offset: 1px;
}

.copy-address__btn--copied {
    color: #2ea043;
}

.copy-address__toast {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background-color: #2ea043;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    white-space: nowrap;
    animation: copy-address-fade 1.2s ease-out forwards;
    z-index: 10;
}

@keyframes copy-address-fade {
    0% { opacity: 0; transform: translateY(-4px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-2px); }
}
