/* Frontend styles */
#addon-products-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.addon-products-list {
    margin-top: 15px;
}

.addon-product-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.addon-product-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.addon-product-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    margin-right: 10px;
    transition: background 0.3s;
}

.toggle-switch:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.addon-product-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: #B1181E;
}

.addon-product-toggle input[type="checkbox"]:checked + .toggle-switch:after {
    transform: translateX(26px);
}

.addon-product-desc {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    width: 380px;
}
@media (max-width: 600px) {
    .addon-product-desc {
            width: 190px;

    }
}
/* Admin styles */
.addon-products-container {
    margin: 20px 0;
}

#addon-products-table {
    width: 100%;
}

#addon-products-table th, 
#addon-products-table td {
    padding: 10px;
}

#addon-products-table .addon-product-select {
    width: 100%;
    max-width: 300px;
}
/* Add this to your existing CSS file */
.addon-product {
    background-color: #f8f8f8;
}

.addon-product th {
    font-weight: normal;
    padding-left: 20px !important;
}

.addon-product td {
    font-weight: bold;
}

/* Highlight the addons section */
#addon-products-section {
    background-color: #f8f8f8;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.addon-product-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

/* Addon products in order review */
.addon-product {
    background-color: #fafafa;
}

.addon-product th {
    font-weight: normal;
    padding-left: 20px !important;
    color: #666;
}

.addon-product td {
    font-weight: bold;
}

/* Loading state */
.blockUI.blockOverlay {
    opacity: 0.6 !important;
}

/* Toggle button feedback */
.addon-product-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: #B1181E;
}

.addon-product-toggle input[type="checkbox"]:checked + .toggle-switch:after {
    transform: translateX(26px);
}
.woocommerce-checkout-review-order-table .fee:not(.addon-product) {
    display: none !important;
}