/* Styles for Select Checkout in Cart plugin */
.shop_table .cart_item {
    position: relative;
    padding-left: 30px;
}

/* Checkbox container */
.item-selector {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    position: absolute;
    left: 6px;
}

/* Checkbox styling */
.checkout-selector, .select-all-checkbox {
    margin: 0;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

/* Select all container */
.select-all-container {
    margin-bottom: 15px;
    padding: 10px 6px;
    display: flex;
    align-items: center;
}

.select-all-container.select-all-bottom {
    margin-top: 15px;
    margin-bottom: 0;
}

.select-all-container label {
    margin-left: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Selected items summary styling */
.selected-items-summary {
    background-color: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.selected-items-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.selected-items-summary p {
    margin-bottom: 8px;
}

/* Highlight selected items */
tr.cart_item.selected {
    background-color: rgba(127, 84, 179, 0.1);
}

/* Disabled controls styling */
.cart_item .qty.disabled,
.cart_item .remove.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.cart_item .qty.disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

.cart_item .remove.disabled {
    color: #999 !important;
    text-decoration: line-through !important;
}

/* Controls disabled message */
.controls-disabled-message {
    color: #666 !important;
    font-size: 11px !important;
    margin-top: 3px !important;
    font-style: italic !important;
    display: block !important;
    padding: 2px 5px !important;
    background-color: #f9f9f9 !important;
    border-radius: 2px !important;
    border-left: 2px solid #ccc !important;
}

/* Quantity validation message styling */
.quantity-validation-message {
    color: #e2401c !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    font-style: italic !important;
    display: block !important;
    padding: 5px 8px !important;
    background-color: #f8d7da !important;
    border-radius: 3px !important;
    border-left: 3px solid #e2401c !important;
}

/* Enhanced remove button styling */
.woocommerce-cart .cart_item .remove {
    color: #e2401c !important;
    border: none;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
}

/* Quantity input validation styling */
.woocommerce-cart .qty {
    min-width: 60px !important;
}

.woocommerce-cart .qty:invalid {
    border-color: #e2401c !important;
    box-shadow: 0 0 0 1px #e2401c !important;
}

/* Notice styling for quantity validation */
.woocommerce-error {
    background-color: #f8d7da !important;
    border-color: #e2401c !important;
    color: #721c24 !important;
    border-left: 4px solid #e2401c !important;
    padding: 10px 15px !important;
    margin-bottom: 20px !important;
    border-radius: 3px !important;
}

.woocommerce-error .notice-close {
    float: right !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 18px !important;
    color: #721c24 !important;
}

.woocommerce-error .notice-close:hover {
    opacity: 0.7 !important;
}

/* Disabled checkout button styling */
.checkout-button.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #ccc !important;
    color: #666 !important;
}

.checkout-button.disabled:hover {
    background-color: #ccc !important;
    color: #666 !important;
}

/* Empty state styling for selected items list */
.selected-items-list p {
    color: #999 !important;
    font-style: italic !important;
    margin: 0 !important;
    padding: 10px !important;
    text-align: center !important;
    background-color: #f9f9f9 !important;
    border-radius: 3px !important;
}

.cart_totals > h2, .cart_totals > .shop_table {
    display: none;
}

.woocommerce .cart_totals {
    display: flex;
    flex-direction: column-reverse ;
    padding: 0;
    background: none;
}

.selected-items-total {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--tb-theme-color);
}

.cart-bottom.actions .continue-to-shop, .cart-bottom.actions .update {
    display: none;
}