/* Barre du haut */
#custom-cart-buttons-wrapper {
    position: relative;
    background: #b1cdc8;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Barre du bas */
#custom-cart-buttons-wrapper-bottom {
    background: #b1cdc8;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.custom-cart-buttons-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.select-all-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-cart-item {
    margin-right: 10px;
}

button#custom-delete-selected:disabled,
button#custom-delete-selected-bottom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-count,
.selected-count-bottom {
    font-size: 14px;
    color: #666;
}

#delete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#delete-overlay.hidden {
    display: none;
}

#delete-overlay .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f79a6d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#delete-overlay .message {
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles des boutons */
button#custom-delete-selected,
button#custom-delete-selected-bottom {
    background-color: #f79a6d !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px;
    cursor: pointer;
}

button#custom-delete-selected:hover:not(:disabled),
button#custom-delete-selected-bottom:hover:not(:disabled) {
    background-color: #e5885d !important;
}

/* Checkboxes */
.cart tbody input[type=checkbox] {
    border-color: #f79a6d !important;
    box-shadow: 0px 1px 6px 0px rgba(247, 154, 109, 0.3) !important;
}

.cart tbody input[type=checkbox]:checked {
    background-color: #f79a6d !important;
    border-color: #f79a6d !important;
}

/* Masquer la croix de suppression par défaut */
.cart .product-remove a {
    visibility: hidden !important;
}

/* Masquer les checkboxes des produits parents */
.cart_item.parent-product-reference .product-remove input[type=checkbox],
.cart_item.parent-product-zero-price .product-remove input[type=checkbox] {
    display: none !important;
}