@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

.bs-color-container {
    font-family: 'Vazir', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bs-color-container.vertical {
    flex-direction: column;
    align-items: flex-start;
}

.bs-color-container.horizontal {
    flex-direction: row;
    align-items: center;
}

.bs-color-circle {
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.bs-color-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.bs-color-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    opacity: 1;
    z-index: 10000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden; /* جلوگیری از خروج رنگ‌ها */
}

.bs-color-popup-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.bs-color-popup-content.horizontal {
    flex-direction: row;
}

.bs-color-popup-content.vertical {
    flex-direction: column;
    align-items: center;
}

.bs-color-popup-row {
    display: flex;
    gap: 10px;
}

.bs-color-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 768px) {
    .bs-color-popup {
        width: 90%;
        height: auto;
    }
}