.pc-price-chart {
    position: relative;
    width: 100%;
}

.pc-price-chart__canvas {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.pc-price-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
}

.pc-price-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text);
}

.pc-price-chart__legend-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.pc-price-chart__tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    min-width: 9rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    font-size: 0.8rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translate(-50%, -110%);
    transition: opacity 0.12s ease;
}

.pc-price-chart__tooltip.is-visible {
    opacity: 1;
}

.pc-price-chart__tooltip strong {
    display: block;
    margin-bottom: 0.15rem;
}

.pc-price-chart__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 10px;
}
