/* watchlist_popover.css — shared add-to-watchlist popover */

.wl-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-edge);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #c8cad4;
    font-family: var(--font-sans, var(--font-sans), ui-sans-serif, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.wl-watch-btn:hover {
    color: #f0f1f5;
    border-color: rgba(126, 155, 217, 0.35);
    background: rgba(126, 155, 217, 0.08);
}

.wl-watch-btn.is-watching {
    color: #ffd978;
    border-color: rgba(255, 217, 120, 0.35);
    background: rgba(255, 217, 120, 0.08);
}

.wl-watch-btn--icon {
    padding: 5px 8px;
    font-size: 15px;
    line-height: 1;
}

.wl-watch-btn--locked {
    opacity: 0.42;
    cursor: not-allowed;
}

.wl-watch-btn--locked:hover {
    color: #c8cad4;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.wl-popover {
    position: fixed;
    z-index: 12000;
    width: min(300px, calc(100vw - 24px));
    border-radius: var(--radius-edge);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(18, 18, 28, 0.98), rgba(12, 12, 20, 0.98));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    padding: 12px;
    font-family: var(--font-sans, var(--font-sans), ui-sans-serif, system-ui, sans-serif);
}

.wl-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.wl-popover-title {
    font-family: var(--font-display, var(--font-display), Georgia, serif);
    font-size: 14px;
    font-weight: 700;
    color: #ecedf2;
}

.wl-popover-ticker {
    font-family: var(--font-mono), ui-monospace, monospace;
    font-size: 12px;
    color: #cdab68;
}

.wl-popover-body {
    max-height: 240px;
    overflow-y: auto;
}

.wl-popover-empty {
    padding: 16px 8px;
    text-align: center;
    color: #6b6d78;
    font-size: 13px;
}

.wl-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 6px;
    border: none;
    border-radius: var(--radius-edge);
    background: transparent;
    color: #c8cad4;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.wl-popover-item:hover {
    background: rgba(126, 155, 217, 0.08);
}

.wl-popover-item input {
    accent-color: #cdab68;
    flex-shrink: 0;
}

.wl-popover-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-popover-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #cdab68;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(126, 155, 217, 0.12);
}

.wl-popover-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wl-popover-link {
    font-size: 12px;
    font-weight: 600;
    color: #cdab68;
    text-decoration: none;
}

.wl-popover-link:hover {
    color: #a8bbff;
}

.wl-popover-status {
    font-size: 12px;
    color: #6b6d78;
}

.wl-popover-status.is-error {
    color: #ff7e8f;
}