
.bike-configurator{ border:1px solid #eee; padding:12px; margin-top:12px; background:#fafafa }
.bike-configurator h3{ margin-top:0 }
.bc-section{ margin-bottom:10px }
.bc-radio, .bc-chk{ display:block; margin:4px 0 }
.bc-note{ font-size:0.9em; color:#777 }
.bc-subscribe-options{ border-left:2px solid #ddd; padding-left:15px; margin-top:8px; margin-bottom:8px }
.bc-subscribe-options label{ font-size:0.95em }

/* Accessories grid layout - 4 items per row */
.bc-accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.bc-accessory-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bc-accessory-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bc-accessory-item label.bc-chk {
    display: block;
    margin: 0;
    cursor: pointer;
    padding: 0;
}

.bc-accessory-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bc-accessory-item input[type="checkbox"]:checked ~ label .bc-accessory-content,
.bc-accessory-item input[type="checkbox"]:checked + label .bc-accessory-content {
    background-color: #f0f8ff;
    border-color: #0073aa;
}

.bc-accessory-item input[type="checkbox"]:checked ~ label .bc-accessory-content::after,
.bc-accessory-item input[type="checkbox"]:checked + label .bc-accessory-content::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0073aa;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.bc-accessory-content {
    position: relative;
    padding: 10px;
    text-align: center;
}

.bc-accessory-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
}

.bc-accessory-item:hover .bc-accessory-image {
    transform: scale(1.05);
}

.bc-accessory-image-placeholder {
    background-color: #f5f5f5;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><rect fill="%23ddd" width="150" height="150"/><text x="50%25" y="50%25" text-anchor="middle" dy=".3em" fill="%23999" font-family="Arial" font-size="14">No Image</text></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bc-accessory-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-accessory-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.bc-accessory-price {
    font-size: 13px;
    color: #0073aa;
    font-weight: 600;
}

/* Responsive: 2 columns on tablets, 1 column on mobile */
@media (max-width: 768px) {
    .bc-accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bc-accessories-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide quantity input for bike configurator products - Multiple selectors for maximum compatibility */
body.bike-configurator-hide-quantity form.cart .quantity,
body.bike-configurator-hide-quantity form.cart input[name="quantity"],
body.bike-configurator-hide-quantity form.cart input.qty,
body.bike-configurator-hide-quantity form.cart label[for*="quantity"],
body.bike-configurator-hide-quantity .quantity {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* Alternative selector using :has() pseudo-class if browser supports it */
.single-product:has(.bike-configurator) form.cart .quantity,
.single-product:has(.bike-configurator) form.cart input[name="quantity"],
.single-product:has(.bike-configurator) form.cart input.qty,
.single-product:has(.bike-configurator) .quantity {
    display: none !important;
}


    .options-cards {
        display: flex;
        gap: 16px;
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }
    
    /* Each card */
    .options-cards .card {
        flex: 1;
    }
    
    /* Card label = full clickable area */
    .options-cards .card label {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border: 2px solid #ddd;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        transition: all 0.25s ease;
        position: relative;
    }
    
    /* Visible radio button */
    .options-cards .card input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: #2c8cff; /* modern browsers */
        cursor: pointer;
    }
    
    /* Text */
    .wcsatt-options-prompt-action {
        font-size: 16px;
        font-weight: 600;
    }
    
    /* Hover effect */
    .options-cards .card label:hover {
        border-color: #2c8cff;
    }
    
    /* Selected card (radio checked) */
    .options-cards .card input[type="radio"]:checked + .wcsatt-options-prompt-action,
    .options-cards .card input[type="radio"]:checked ~ .wcsatt-options-prompt-action {
        color: #2c8cff;
    }
    
    /* Highlight entire card when selected */
    .options-cards .card input[type="radio"]:checked::before,
    .options-cards .card input[type="radio"]:checked {
        /* highlight text */
    }
    
    .options-cards .card input[type="radio"]:checked {
        /* leave radio styling as is */
    }
    
    /* This highlights the card using parent selector trick */
    .options-cards .card input[type="radio"]:checked {
        /* nothing here */
    }
    
   
    @supports selector(:has(*)) {
        .options-cards .card:has(input[type="radio"]:checked) label {
            border-color: #2c8cff;
            background: #eef5ff;
            box-shadow: 0 0 0 3px rgba(44, 140, 255, 0.2);
        }
    }
    
    /* Tooltip styles */
    .wcsatt-tooltip-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        margin-left: auto;
    }
    
    .wcsatt-tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        color: #666;
        cursor: help;
        transition: color 0.2s ease;
    }
    
    .wcsatt-tooltip-icon:hover {
        color: #2c8cff;
    }
    
    .wcsatt-tooltip-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .wcsatt-tooltip-text {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: normal;
        white-space: nowrap;
        min-width: 200px;
        max-width: 300px;
        white-space: normal;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        margin-bottom: 8px;
    }
    
    /* Tooltip arrow */
    .wcsatt-tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #333;
    }
    
    /* Show tooltip on hover */
    .wcsatt-tooltip-wrapper:hover .wcsatt-tooltip-text {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    
    /* Adjust tooltip position for right edge */
    .wcsatt-tooltip-wrapper:hover .wcsatt-tooltip-text {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(0);
    }
    
    .wcsatt-tooltip-wrapper:hover .wcsatt-tooltip-text::after {
        left: auto;
        right: 20px;
        transform: translateX(0);
    }
    
