/*
 * Blotto Auto Gift 2.1.34
 * Inventory-card refinement for paid and free Tester cart rows.
 * Visual only: no price, coupon, quantity or entitlement behavior changes.
 */

body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table {
    --blotto-inventory-border: #e7d8de;
    --blotto-inventory-shadow: 0 7px 20px rgba(75, 42, 53, .07);
    --blotto-inventory-image: #faf6f7;
    --blotto-inventory-green: #19723a;
}

body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table > tbody > tr.woocommerce-cart-form__cart-item {
    position: relative;
    background: #fff !important;
    box-shadow: var(--blotto-inventory-shadow) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table > tbody > tr.blotto-free-gift-row {
    background: #fff !important;
    box-shadow: inset 4px 0 0 #58a873, var(--blotto-inventory-shadow) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table > tbody > tr.woocommerce-cart-form__cart-item > td {
    border-color: var(--blotto-inventory-border) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-thumbnail a {
    display: grid !important;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eadde1;
    border-radius: 11px !important;
    background: var(--blotto-inventory-image) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-thumbnail img {
    border-radius: 10px !important;
    background: transparent !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-name {
    color: #3f3035;
}

body.blotto-commerce-ui form.woocommerce-cart-form .cart_item:not(.blotto-free-gift-row) .product-name::before {
    content: "สินค้า";
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin: 0 9px 5px 0;
    padding: 3px 10px;
    border: 1px solid #efd8df;
    border-radius: 999px;
    background: #fff2f5;
    color: #a63b5e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-name a,
body.blotto-commerce-ui form.woocommerce-cart-form .blotto-gift-product-name {
    color: #ec4c24 !important;
    text-decoration: none !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-quantity .quantity,
body.blotto-commerce-ui form.woocommerce-cart-form .blotto-free-gift-row .blotto-gift-quantity {
    border: 1px solid #eadde1;
    border-radius: 10px;
    background: #fbf7f8;
    box-shadow: inset 0 1px 2px rgba(75, 42, 53, .025);
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-subtotal {
    color: #2f2529;
    font-size: 15px;
}

body.blotto-commerce-ui form.woocommerce-cart-form .blotto-free-gift-row .product-subtotal {
    color: var(--blotto-inventory-green) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .blotto-free-gift-row .blotto-gift-free-price {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf7ee;
    color: var(--blotto-inventory-green) !important;
}

body.blotto-commerce-ui form.woocommerce-cart-form .product-remove a {
    display: inline-grid !important;
    place-items: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: #faf5f6;
}

@media (max-width: 767px) {
    body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table > tbody > tr.woocommerce-cart-form__cart-item {
        min-height: 132px;
        padding: 13px !important;
        border-color: var(--blotto-inventory-border) !important;
        background: #fff !important;
        box-shadow: var(--blotto-inventory-shadow) !important;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form table.shop_table > tbody > tr.blotto-free-gift-row {
        box-shadow: inset 4px 0 0 #58a873, var(--blotto-inventory-shadow) !important;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .product-thumbnail a {
        width: 72px !important;
        height: 72px !important;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .product-name {
        align-self: center;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .cart_item:not(.blotto-free-gift-row) .product-name::before {
        display: flex;
        width: max-content;
        margin-bottom: 7px;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .product-quantity,
    body.blotto-commerce-ui form.woocommerce-cart-form .product-subtotal {
        align-self: end;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .blotto-free-gift-row .product-name::before {
        margin-bottom: 7px !important;
    }

    body.blotto-commerce-ui form.woocommerce-cart-form .blotto-free-gift-row .blotto-gift-quantity {
        background: #fbf7f8;
    }
}

@media (max-width: 380px) {
    body.blotto-commerce-ui form.woocommerce-cart-form .product-thumbnail a {
        width: 64px !important;
        height: 64px !important;
    }
}
