/* Palette Visualizer — Swatches redesign
   Scoped styles for the `pv-swatches` list and individual swatch cards.
   Keeps colour values inline (rendered by JS) and applies structural/visual rules here.
*/

#pv-swatches {
    display: flex;
    flex-direction: column;
}

.pv-swatch {
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.pv-swatch:focus,
.pv-swatch:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.48);
    outline: none;
}

.pv-swatch-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.pv-swatch-badge {
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.pv-swatch-body {
    min-width: 0;
    /* allow text truncation inside flex */
}

.pv-swatch-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-swatch-meta {
    margin-top: 4px;
}

.pv-swatch-cvd span {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pv-swatch-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pv-swatch-copy:hover {
    filter: brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {

    .pv-swatch,
    .pv-swatch:focus,
    .pv-swatch:hover {
        transition: none;
        transform: none;
        box-shadow: none;
    }
}