/* Sélecteur de palettes (popin) — outil d'aperçu admin */
.ebdev-ts {
    position: fixed;
    right: 28px;
    bottom: 92px; /* au-dessus du bouton "back to top" (bottom:2rem, h:45px) */
    z-index: 1040; /* sous le header (1050) pour que le menu mobile passe par-dessus */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ebdev-ts-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #2D3D30;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: transform 0.2s ease;
}
.ebdev-ts-toggle:hover { transform: scale(1.06); }

.ebdev-ts-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.ebdev-ts.is-open .ebdev-ts-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ebdev-ts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
}
.ebdev-ts-close {
    border: none;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
}
.ebdev-ts-note {
    font-size: 0.72rem;
    color: #888;
    margin: 4px 0 12px;
}

.ebdev-ts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 52vh;
    overflow-y: auto;
}

.ebdev-ts-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ebdev-ts-item:hover { background: #f7f7f7; }
.ebdev-ts-item.is-active {
    border-color: #2D3D30;
    background: #f3f5f3;
}

.ebdev-ts-swatch { display: inline-flex; flex-shrink: 0; }
.ebdev-ts-swatch span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    margin-left: -6px;
}
.ebdev-ts-swatch span:first-child { margin-left: 0; }

.ebdev-ts-label { font-size: 0.85rem; color: #333; font-weight: 500; }
