﻿

/* Attribute error field */
.noValueOptionSelected {
    background-color: var(--AlertColor);
}

.productAttributeTextFieldError,
.productAttributeRadioButtonError,
.productAttributeColorPickerError {
    color: var(--AlertColor);
    display: none;
}

.is-invalid .productAttributeTextFieldError,
.is-invalid .productAttributeRadioButtonError,
.is-invalid .productAttributeColorPickerError {
    display: block;
}

/* Selected attribute summary */
.shopProductSelectedAttributeSummaryRow{
    clear: both;
}

.shopProductSelectedAttributeSummaryLabel {
    float: left;
    max-width: Calc(100% - 150px);
}

.shopProductSelectedAttributeSummaryPrice {
    float: right;
    margin-left: 20px;
}

#shopProductSelectedAttributeSummaryContainer .shopProductPrice {
    font-weight: normal;
    font-size: inherit;
    color: var(--CSSColor);
}

/* Attribute color picker */
.colorPickerLabel {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.colorPickerWrapper:hover .colorPickerLabel {
    border-color: #888;
    transform: scale(1.08);
}

.productAttributeColorPicker:checked + .colorPickerLabel {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0px 4px 8px rgba(40, 40, 40, 0.4);
}

.colorPickerWrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.colorPickerWrapper:hover .tooltip {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}
