/**
 * Woo Checkbox Variations Pro Frontend Stylesheet
 *
 * Provides responsive, beautiful layouts for the newly injected swatches and visual indicators.
 *
 * @package WooCheckboxVariationsPro
 * @version 2.4.0
 */

/**
 * Woo Checkbox Variations Pro Frontend Stylesheet
 *
 * Provides responsive, beautiful layouts for the newly injected swatches and visual indicators.
 *
 * @package WooCheckboxVariationsPro
 * @version 2.4.0
 */

.wcvp-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 24px 0;
    width: 100%;
}

.wcvp-swatch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fafafa;
    border: 1.5px solid #e2e8f5;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    min-width: 150px;
    box-sizing: border-box;
}

.wcvp-swatch-card:hover {
    background-color: #f4f6fc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wcvp-swatch-card:active {
    transform: translateY(0) scale(0.98);
}

.wcvp-swatch-card.wcvp-selected {
    background-color: rgba(16, 185, 129, 0.04);
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
    animation: wcvpSelectedPulse 0.18s ease-out;
}

.wcvp-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcvp-checkbox-visual {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.wcvp-check-inner {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: transparent;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wcvp-swatch-card.wcvp-selected .wcvp-checkbox-visual {
    background-color: #10b981;
    border-color: #10b981;
}

.wcvp-swatch-card.wcvp-selected .wcvp-check-inner {
    background-color: #ffffff;
}

.wcvp-option-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.wcvp-price-label {
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    color: #10b981;
    margin-left: 14px;
}

.wcvp-disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

.scale-0 {
    transform: scale(0);
}

.scale-100 {
    transform: scale(1);
}

/* Woodmart Theme Compatibility Layer */
.variations_form select[name^="attribute_"],
.variations select {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    display: inline-block !important; /* Keep display inline-block to satisfy layout geometry engines, whilst keeping dimensions zero and hidden */
}

/* Forcefully disappear Woodmart's built-in custom swatches grids and lists to avoid double listings */
.variations_form .wd-swatches-grid,
.variations_form .woodmart-swatches,
.variations_form .wd-swatch,
.variations_form .woodmart-swatch,
.variations_form .wd-swatches {
    display: none !important;
}

/* Animations for selection shifts */
@keyframes wcvpSelectedPulse {
    0% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}

