/**
 * Magedelight
 * Copyright (C) 2026 Magedelight <info@magedelight.com>
 *
 * @category Magedelight
 * @package Magedelight_BulkCustomizableOptionsAssignment
 * @copyright Copyright (c) 2026 Mage Delight (http://www.magedelight.com/)
 * @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPL-3.0)
 * @author Magedelight <info@magedelight.com>
 */

.bco-swatch-wrap {
    margin: 6px 0 10px;
}

.bco-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

.bco-radio-hidden .field.choice {
    display: none !important;
}

.bco-swatch-item {
    position: relative;
    cursor: pointer;
    list-style: none;
    transition: transform 0.15s ease;
}

.bco-swatch-img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #d0d0d0;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f5f5f5;
}

.bco-swatch-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    font-weight: 600;
}

.bco-swatch-item:hover .bco-swatch-img {
    border-color: #999;
}

.bco-swatch-item.bco-sel .bco-swatch-img {
    border-color: #1979c3;
    box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.25);
}

.bco-swatch-item.bco-sel::after {
    content: "\2713";
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    background: #1979c3;
    color: #fff;
    border-radius: 50%;
}

.bco-swatch-name, .bco-swatch-price{
    display: block;
    font-size: 13px;
    text-align: center;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bco-sel-display {
    font-size: 13px;
    margin-top: 5px;
    color: #333;
    min-height: 16px;
}

.bco-sel-display strong {
    color: #1979c3;
}

.bco-swatch-error {
    color: #e02b27;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.bco-swatch-error.show {
    display: block;
}
