.pdsc-chart {
    margin: 24px 0;
}

.pdsc-chart__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pdsc-chart__group {
    margin-bottom: 20px;
}

.pdsc-chart__group-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #444;
}

.pdsc-chart__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pdsc-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 210px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.pdsc-swatch__preview {
    display: block;
    width: 210px;
    height: 130px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #eee;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pdsc-swatch:hover .pdsc-swatch__preview,
.pdsc-swatch:focus-visible .pdsc-swatch__preview {
    transform: scale(1.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.pdsc-swatch__name {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
}

/* Lightbox */

.pdsc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdsc-lightbox[hidden] {
    display: none;
}

body.pdsc-lightbox-open {
    overflow: hidden;
}

.pdsc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.pdsc-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 640px);
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

.pdsc-lightbox__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.pdsc-lightbox__media img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 4px;
}

.pdsc-lightbox__color {
    width: min(60vw, 320px);
    height: min(60vw, 320px);
    border-radius: 4px;
}

.pdsc-lightbox__caption {
    margin-top: 12px;
    font-weight: 600;
    text-align: center;
}
