/**
 * Booking Bytes - Cart & Checkout Styling for Woodmart
 * Only applies when NOT using Woodmart builder (.wd-builder-off)
 */

/* Modern checkout order review styling */
.wd-builder-off .woocommerce-checkout-review-order-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wd-builder-off .woocommerce-checkout-review-order-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.wd-builder-off .woocommerce-checkout-review-order-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wd-builder-off .woocommerce-checkout-review-order-table tbody tr:last-child td {
    border-bottom: none;
}

.wd-builder-off .woocommerce-checkout-review-order-table tfoot th,
.wd-builder-off .woocommerce-checkout-review-order-table tfoot td {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.wd-builder-off .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.wd-builder-off .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    font-size: 1.1em;
    color: #212529;
}

.wd-builder-off .woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
}

.wd-builder-off .woocommerce-checkout-review-order-table .product-name .product-quantity {
    color: #6c757d;
    font-weight: 400;
}

/* Modern cart table styling */
.wd-builder-off .woocommerce-cart-form .shop_table {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.wd-builder-off .woocommerce-cart-form .shop_table thead th {
    background: #f8f9fa;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
    border: none;
    border-bottom: 2px solid #e9ecef;
}

.wd-builder-off .woocommerce-cart-form .shop_table tbody td {
    padding: 20px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    background: #fff;
}

.wd-builder-off .woocommerce-cart-form .shop_table tbody tr:hover td {
    background: #fcfcfc;
}

.wd-builder-off .woocommerce-cart-form .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-name a {
    color: #212529;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-name a:hover {
    color: #0056b3;
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-thumbnail img {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-price,
.wd-builder-off .woocommerce-cart-form .shop_table .product-subtotal {
    font-weight: 600;
    color: #212529;
}

.wd-builder-off .woocommerce-cart-form .shop_table .quantity input.qty {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    width: 70px;
    text-align: center;
    font-weight: 500;
}

.wd-builder-off .woocommerce-cart-form .shop_table .quantity input.qty:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a,
.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    font-size: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a:before,
.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a.remove:before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: #dc2626;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") no-repeat center / contain;
    transition: background-color 0.2s ease;
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a:hover,
.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a.remove:hover {
    background-color: rgba(220, 38, 38, 0.18);
    color: #b91c1c !important;
    transform: scale(1.05);
}

.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a:hover:before,
.wd-builder-off .woocommerce-cart-form .shop_table .product-remove a.remove:hover:before {
    background-color: #b91c1c;
}

/* Edit options / Change dates button on cart rows */
.wd-builder-off .woocommerce-cart-form .tm-cart-edit-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #eef2ff;
    color: #1e3a5f !important;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wd-builder-off .woocommerce-cart-form .tm-cart-edit-options:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
}

.wd-builder-off .woocommerce-cart-form .tm-cart-edit-options:hover {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff !important;
}

/* Cart linked products styling */
.wd-builder-off .woocommerce-cart-form tr.linked-product-item td {
    background: #f8f9fa;
}

.wd-builder-off .woocommerce-cart-form tr.linked-product-item:hover td {
    background: #f3f4f6;
}

.wd-builder-off .woocommerce-cart-form tr.linked-product-item td.product-name a {
    color: #495057;
    font-weight: 400;
}

/* Cart totals modern styling */
.wd-builder-off .cart_totals {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wd-builder-off .cart_totals h2 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.wd-builder-off .cart_totals .shop_table {
    border: none;
}

.wd-builder-off .cart_totals .shop_table th,
.wd-builder-off .cart_totals .shop_table td {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.wd-builder-off .cart_totals .shop_table tr:last-child th,
.wd-builder-off .cart_totals .shop_table tr:last-child td {
    border-bottom: none;
}

.wd-builder-off .cart_totals .shop_table .order-total th,
.wd-builder-off .cart_totals .shop_table .order-total td {
    font-size: 1.15em;
    font-weight: 700;
    color: #212529;
    padding-top: 16px;
}

.wd-builder-off .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    border-radius: 8px;
    padding: 16px 24px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.wd-builder-off .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Checkout order review linked products */
.wd-builder-off .woocommerce-checkout-review-order-table tr.linked-product-item {
    background-color: #fafafa;
}

.wd-builder-off .woocommerce-checkout-review-order-table tr.linked-product-item td {
    font-size: 0.92em;
    color: #555;
}

/* ==========================================================================
   CHECKOUT LEFT SIDE - BILLING DETAILS MODERN STYLING
   ========================================================================== */

/* Main checkout container layout */
.wd-builder-off .woocommerce-checkout .col2-set {
    margin-bottom: 30px;
}

/* Billing/Shipping details card container */
.wd-builder-off .woocommerce-checkout .col2-set .col-1,
.wd-builder-off .woocommerce-checkout .col2-set .col-2 {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

/* Section headers (Billing Details, Shipping Details) */
.wd-builder-off .woocommerce-checkout .woocommerce-billing-fields h3,
.wd-builder-off .woocommerce-checkout .woocommerce-shipping-fields h3,
.wd-builder-off .woocommerce-checkout .woocommerce-additional-fields h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #212529;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.wd-builder-off .woocommerce-checkout .woocommerce-billing-fields h3::after,
.wd-builder-off .woocommerce-checkout .woocommerce-shipping-fields h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

/* Form row styling */
.wd-builder-off .woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

/* Labels */
.wd-builder-off .woocommerce-checkout .form-row label {
    font-size: 0.875em;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
    display: block;
}

.wd-builder-off .woocommerce-checkout .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}

.wd-builder-off .woocommerce-checkout .form-row label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.9em;
}

/* Input fields styling */
.wd-builder-off .woocommerce-checkout .form-row input.input-text,
.wd-builder-off .woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95em;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
}

.wd-builder-off .woocommerce-checkout .form-row input.input-text:hover,
.wd-builder-off .woocommerce-checkout .form-row textarea:hover {
    border-color: #d1d5db;
}

.wd-builder-off .woocommerce-checkout .form-row input.input-text:focus,
.wd-builder-off .woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Placeholder styling */
.wd-builder-off .woocommerce-checkout .form-row input.input-text::placeholder,
.wd-builder-off .woocommerce-checkout .form-row textarea::placeholder {
    color: #9ca3af;
}

/* Select2 dropdown styling (Country, State) */
.wd-builder-off .woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.wd-builder-off .woocommerce-checkout .select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db;
}

.wd-builder-off .woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.wd-builder-off .woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wd-builder-off .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 16px;
    color: #1f2937;
    font-size: 0.95em;
}

.wd-builder-off .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 12px;
}

.wd-builder-off .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
}

/* Select2 dropdown menu */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #3b82f6;
}

/* Native select styling fallback */
.wd-builder-off .woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95em;
    color: #1f2937;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") right 12px center/20px no-repeat;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wd-builder-off .woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox styling */
.wd-builder-off .woocommerce-checkout .form-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* ==========================================================================
   CHECKOUT NOTICES & MESSAGES
   ========================================================================== */

/* Returning customer / Login notice */
.wd-builder-off .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 16px;
    color: #475569;
    font-size: 0.925em;
}

.wd-builder-off .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    color: #3b82f6;
}

.wd-builder-off .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a,
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wd-builder-off .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a:hover,
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Success messages (coupon applied, etc) */
.wd-builder-off .woocommerce-checkout .woocommerce-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
    color: #166534;
    font-size: 0.925em;
    font-weight: 500;
}

.wd-builder-off .woocommerce-checkout .woocommerce-message::before {
    color: #22c55e;
}

/* Error messages */
.wd-builder-off .woocommerce-checkout .woocommerce-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
    color: #991b1b;
    font-size: 0.925em;
}

.wd-builder-off .woocommerce-checkout .woocommerce-error::before {
    color: #ef4444;
}

/* Validation error state on inputs */
.wd-builder-off .woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.wd-builder-off .woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.wd-builder-off .woocommerce-checkout .form-row.woocommerce-invalid input.input-text:focus,
.wd-builder-off .woocommerce-checkout .form-row.woocommerce-invalid select:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validated state */
.wd-builder-off .woocommerce-checkout .form-row.woocommerce-validated input.input-text {
    border-color: #22c55e;
}

/* ==========================================================================
   LOGIN & COUPON FORMS (Expandable)
   ========================================================================== */

.wd-builder-off .woocommerce-checkout .woocommerce-form-login,
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wd-builder-off .woocommerce-checkout .woocommerce-form-login p:not(.form-row),
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon p:not(.form-row) {
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 16px;
}

/* Coupon input with button inline */
.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon .form-row-first {
    width: 65%;
    float: left;
    margin-right: 3%;
}

.wd-builder-off .woocommerce-checkout .woocommerce-form-coupon .form-row-last {
    width: 32%;
    float: left;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.wd-builder-off .woocommerce-checkout button.button,
.wd-builder-off .woocommerce-checkout input.button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.wd-builder-off .woocommerce-checkout button.button:hover,
.wd-builder-off .woocommerce-checkout input.button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.wd-builder-off .woocommerce-checkout button.button:active,
.wd-builder-off .woocommerce-checkout input.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   ADDITIONAL FIELDS (Order notes)
   ========================================================================== */

.wd-builder-off .woocommerce-checkout .woocommerce-additional-fields {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

.wd-builder-off .woocommerce-checkout .woocommerce-additional-fields h3::after {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.wd-builder-off .woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .wd-builder-off .woocommerce-checkout .col2-set .col-1,
    .wd-builder-off .woocommerce-checkout .col2-set .col-2,
    .wd-builder-off .woocommerce-checkout .woocommerce-additional-fields {
        padding: 20px 18px;
    }

    .wd-builder-off .woocommerce-checkout .woocommerce-form-coupon .form-row-first,
    .wd-builder-off .woocommerce-checkout .woocommerce-form-coupon .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .wd-builder-off .woocommerce-checkout .woocommerce-form-coupon .form-row-last {
        margin-top: 12px;
    }

    /* Mobile shopping-cart layout fixes */
    .bb_view_calendar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .datespophtmlwrap {
        padding-left: 30px !important;
    }

    .wd-builder-off .woocommerce-cart-form .shop_table tbody td {
        padding: 10px;
    }

    /* Edit options button — full width on mobile so it doesn't overflow next to title */
    .wd-builder-off .woocommerce-cart-form .tm-cart-edit-options {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        margin-top: 10px;
    }
}

/* ==========================================================================
   SIDEBAR / MINI-CART
   ========================================================================== */

/* Better remove icon (red trash) — replaces the woodmart "×" glyph */
.woocommerce-mini-cart .remove,
.widget_shopping_cart .remove,
.wd-cart-drop .remove {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background-color: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.woocommerce-mini-cart .remove:after,
.widget_shopping_cart .remove:after,
.wd-cart-drop .remove:after {
    content: "" !important;
    display: block;
    width: 12px;
    height: 12px;
    background-color: #dc2626;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/><path d='M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2'/></svg>") no-repeat center / contain;
    transition: background-color 0.2s ease;
}
.woocommerce-mini-cart .remove:hover,
.widget_shopping_cart .remove:hover,
.wd-cart-drop .remove:hover {
    background-color: rgba(220, 38, 38, 0.18) !important;
    color: #b91c1c !important;
    transform: scale(1.08);
}
.woocommerce-mini-cart .remove:hover:after,
.widget_shopping_cart .remove:hover:after,
.wd-cart-drop .remove:hover:after {
    background-color: #b91c1c;
}

/* Mini-cart action buttons (View cart + Checkout) — smaller, matching backgrounds */
.woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart__buttons .btn-cart,
.woocommerce-mini-cart__buttons .checkout,
.widget_shopping_cart .buttons .button,
.widget_shopping_cart .buttons .btn-cart,
.widget_shopping_cart .buttons .checkout {
    padding: 8px 14px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
}

/* View cart background should match Checkout background (both use accented color) */
.woocommerce-mini-cart__buttons .btn-cart,
.widget_shopping_cart .buttons .btn-cart {
    background-color: var(--btn-accented-bgcolor) !important;
    color: var(--btn-accented-color) !important;
    box-shadow: var(--btn-accented-box-shadow) !important;
}
.woocommerce-mini-cart__buttons .btn-cart:hover,
.widget_shopping_cart .buttons .btn-cart:hover {
    background-color: var(--btn-accented-bgcolor-hover) !important;
    color: var(--btn-accented-color-hover) !important;
    box-shadow: var(--btn-accented-box-shadow-hover) !important;
}