/* ============================================
   WooCommerce Variation Buttons - Frontend Styles
   ============================================ */

/* Hide original select if enabled */
.wcvb-hide-select select {
    display: none !important;
}

/* Buttons Container */
.wcvb-attribute-container {
    margin-bottom: 25px;
}

.wcvb-attribute-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.wcvb-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

/* Button Base Styles */
.wcvb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
    position: relative;
    user-select: none;
    text-decoration: none !important;
}

/* Button Styles */
.wcvb-button-style-rounded {
    border-radius: 6px;
}

.wcvb-button-style-square {
    border-radius: 0;
}

.wcvb-button-style-pill {
    border-radius: 50px;
}

.wcvb-button-style-outline {
    background: transparent;
    border-width: 1px;
}

/* Button Sizes */
.wcvb-button-size-small {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 60px;
}

.wcvb-button-size-medium {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 80px;
}

.wcvb-button-size-large {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 100px;
}

/* Button States */
.wcvb-button:hover:not(.wcvb-disabled) {
    border-color: #999;
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wcvb-button.wcvb-selected {
    background: #2271b1 !important;
    color: white !important;
    border-color: #2271b1 !important;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

.wcvb-button.wcvb-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through !important;
    background: #eee !important;
    color: #999 !important;
    border-color: #ddd !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Price Display */
.wcvb-button-price {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: normal;
}

.wcvb-selected .wcvb-button-price {
    color: rgba(255, 255, 255, 0.8);
}

/* Image Display */
.wcvb-button-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ddd;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcvb-buttons-wrapper {
        gap: 8px;
    }
    
    .wcvb-button {
        flex: 1 0 calc(50% - 8px);
        min-width: auto;
    }
    
    .wcvb-button-image {
        width: 20px;
        height: 20px;
    }
}

/* Swatch Styles (for colors) */
.wcvb-swatch {
    position: relative;
    padding-left: 40px !important;
}

.wcvb-swatch-color {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Loading State */
.wcvb-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Clear Selection */
.wcvb-clear-selection {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #2271b1;
    cursor: pointer;
    text-decoration: underline;
}

.wcvb-clear-selection:hover {
    color: #135e96;
}