/* Bee1 Color Swatches - Frontend */

.bee1-color-swatches {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.bee1-swatch {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.bee1-swatch:hover {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bee1-swatch.selected {
    border-color: #000;
    border-width: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.bee1-swatch-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
    z-index: 10;
}

.bee1-swatch:hover .bee1-swatch-label {
    opacity: 1;
}

.bee1-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* תמיכה ב-RTL */
[dir="rtl"] .bee1-color-swatches {
    direction: rtl;
}

.bee1-front-sampler {
    position: fixed;
    inset-inline-start: 18px;
    bottom: 18px;
    z-index: 999999;
    display: grid;
    gap: 8px;
    width: min(280px, calc(100vw - 36px));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    pointer-events: none;
}

.bee1-front-sampler button,
.bee1-front-sampler__body {
    pointer-events: auto;
}

.bee1-front-sampler__toggle,
.bee1-front-sampler__sample {
    min-height: 42px;
    border: 1px solid #0f172a;
    border-radius: 4px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.bee1-front-sampler__sample {
    width: 100%;
    background: #fff;
    color: #0f172a;
}

.bee1-front-sampler__body {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
}

.bee1-front-sampler__body[hidden] {
    display: none;
}

.bee1-front-sampler__status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.bee1-front-sampler__status[data-state="saved"] {
    color: #166534;
}

.bee1-front-sampler__status[data-state="error"] {
    color: #b91c1c;
}

body.bee1-color-sampling-mode {
    cursor: crosshair;
}

@media (max-width: 640px) {
    .bee1-front-sampler {
        inset-inline-start: 12px;
        bottom: 12px;
        width: min(260px, calc(100vw - 24px));
    }
}
