/*
 * Rukodel Checkout 0.1.4
 * Финальные защитные правила правой колонки заказа.
 * Плагин загружается после темы, поэтому эти правила принадлежат checkout,
 * а не зависят от конкретной версии Rukodel Shop Child.
 */

body.rukodel-classic-checkout #order_review,
body.rukodel-classic-checkout #order_review *{
    box-sizing:border-box;
}

body.rukodel-classic-checkout #order_review{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
}

body.rukodel-classic-checkout #order_review table.shop_table{
    width:100%!important;
    max-width:100%!important;
    table-layout:fixed!important;
}

body.rukodel-classic-checkout #order_review table.shop_table th.product-name,
body.rukodel-classic-checkout #order_review table.shop_table td.product-name{
    min-width:0!important;
    width:auto!important;
    padding-right:14px!important;
}

body.rukodel-classic-checkout #order_review table.shop_table th.product-total,
body.rukodel-classic-checkout #order_review table.shop_table td.product-total{
    width:124px!important;
    min-width:124px!important;
    max-width:124px!important;
    text-align:right!important;
}

/* Именно заголовок «Стоимость товаров» раньше выступал за правую рамку. */
body.rukodel-classic-checkout #order_review table.shop_table thead th.product-total{
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    font-size:11px!important;
    line-height:1.2!important;
}

/* Денежные значения остаются одной строкой. */
body.rukodel-classic-checkout #order_review table.shop_table tbody td.product-total,
body.rukodel-classic-checkout #order_review table.shop_table .cart-subtotal td,
body.rukodel-classic-checkout #order_review table.shop_table .order-total td{
    white-space:nowrap!important;
}

body.rukodel-classic-checkout #order_review table.shop_table th,
body.rukodel-classic-checkout #order_review table.shop_table td,
body.rukodel-classic-checkout #order_review .rsc-checkout-product,
body.rukodel-classic-checkout #order_review .rsc-checkout-product__name{
    max-width:100%!important;
    overflow-wrap:break-word!important;
}

@media(max-width:520px){
    body.rukodel-classic-checkout #order_review table.shop_table th.product-total,
    body.rukodel-classic-checkout #order_review table.shop_table td.product-total{
        width:96px!important;
        min-width:96px!important;
        max-width:96px!important;
    }

    body.rukodel-classic-checkout #order_review table.shop_table thead th.product-total{
        font-size:10px!important;
    }
}
