/* ============================================ *
 * Configurable Swatches - Comfortflex Theme
 * ============================================ */

.clearfix:after, .configurable-swatch-list:after, .product-view .product-options .swatch-attr:after {
    content: '';
    display: table;
    clear: both;
}

/* Swatch Attribute Labels */
.product-view .product-options .swatch-attr {
    float: none;
    display: block;
    clear: both;
    border: 0;
    margin-bottom: 8px;
}

.product-view .product-options .swatch-attr label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #27272a;
    line-height: 1.4;
    margin-bottom: 6px;
}

.product-view .product-options .swatch-attr .select-label {
    display: inline;
    font-weight: 600;
    color: #52525b;
    padding-left: 4px;
}

/* Configurable Swatch List */
.configurable-swatch-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none;
}

.configurable-swatch-list li {
    float: none;
    margin: 0;
    display: inline-block;
}

/* General Swatch Link Styling (Sizes) */
.swatch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background-color: #ffffff;
    color: #27272a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

.swatch-link:hover {
    border-color: #18181b;
    color: #000000;
    text-decoration: none;
}

/* Swatch Has Image (Color Circle Swatch) */
.swatch-link.has-image {
    min-width: 16px;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.swatch-link.has-image .swatch-label {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-link.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Selected State */
.configurable-swatch-list .selected .swatch-link {
    border: 2px solid #2b1f1a;
    color: #000000;
    font-weight: 700;
}

.configurable-swatch-list .selected .swatch-link.has-image {
    border: 2px solid #2b1f1a;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2b1f1a;
}

/* Hide old icon check indicator */
.configurable-swatch-list .selected .swatch-link:before {
    display: none !important;
}

/* Not Available State */
.configurable-swatch-list .not-available .swatch-link {
    border-color: #f4f4f5;
    background-color: #fafafa;
    color: #a1a1aa;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.configurable-swatch-list .not-available .swatch-link:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: #a1a1aa;
    transform: rotate(-25deg);
}

.configurable-swatch-box select.swatch-select, select.no-display {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* Validation Advice Alert Box */
.product-options-wrapper .validation-advice {
    clear: both;
    display: block;
    margin-top: 8px;
    padding: 6px 12px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}