/* Keep the cart's column widths, row height and action positions unchanged. */
.cart_items[data-custom-position] input:not([type='file']),
.cart_items[data-custom-position] .text_area_upload {
    border: 1px solid #cbd2d8;
    border-radius: 4px;
    background: #fff;
    color: #252a30;
    font-family: Tahoma, Arial, sans-serif;
    box-shadow: inset 0 1px 2px #00000005;
    transition: border-color .15s, box-shadow .15s;
}
.cart_items[data-custom-position] input:not([type='file']):hover { border-color: #929da6; }
.cart_items[data-custom-position] input:not([type='file']):focus,
.cart_items[data-custom-position] .text_area_upload:focus {
    border-color: #228b38;
    box-shadow: 0 0 0 2px #228b3826;
}
.cart_items[data-custom-position] input:disabled { color: #777; background: #f4f5f6 !important; cursor: default; }
.cart_items[data-custom-position] .new_li_cart_art,
.cart_items[data-custom-position] .new_li_cart_fab,
.cart_items[data-custom-position] .new_li_cart_col,
.cart_items[data-custom-position] .new_li_cart_price {
    height: 24px;
    padding: 0 3px;
    font-size: 12px;
}
.cart_items[data-custom-position] .new_li_cart_id {
    height: 24px;
    padding: 0 12px 0 3px;
    width: 68px;
    box-sizing: border-box;
    font-size: 11px;
    background: #f5f8f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%23656f69' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 3px center;
}
.cart_items[data-custom-position] .new_li_cart_name {
    box-sizing: border-box;
    width: 100%;
    height: 28px;
    padding: 0 7px;
    font-size: 13px;
    font-weight: 500;
}
.cart_items[data-custom-position] .new_li_cart_qnty { height: 24px; padding-left: 3px; padding-right: 32px; box-sizing: border-box; width: 86px; font-variant-numeric: tabular-nums; }
.cart_items[data-custom-position] .new_li_measure { height: 16px; padding: 0 1px; border-color: #dfe4e7; background: #f6f8f9; }
.cart_items[data-custom-position] .cart_item_sale { height: 20px; padding: 0 2px; background: #fafbfc; }
.cart_items[data-custom-position] .cart_summ { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart_items[data-custom-position] .custom-photo-upload {
    position: relative; box-sizing: border-box; width: 92px; height: 92px;
    border: 1px dashed #bac5ce; border-radius: 6px; background: #f8fafb;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart_items[data-custom-position] .custom-photo-upload:focus-within,
.cart_items[data-custom-position] .custom-photo-upload.is-dragging {
    border-color: #228b38; background: #eef7ef; box-shadow: 0 0 0 2px #228b3826;
}
.cart_items[data-custom-position] .custom-photo-upload[data-has-photo='true'] { border-style: solid; }
.cart_items[data-custom-position] .cart_imgs { max-width: 90px; max-height: 90px; object-fit: contain; }
.cart_items[data-custom-position] .text_area_upload {
    transform: none; border: 0; box-shadow: none; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; width: 100%; height: 100%; text-align: center; cursor: default;
}
.cart_items[data-custom-position] .custom-photo-icon { color: #728573; font: 24px/22px Arial, sans-serif; }
.cart_items[data-custom-position] .custom-photo-select,
.cart_items[data-custom-position] .custom-photo-change {
    border: 0; border-radius: 3px; padding: 3px 4px; font: 11px/1.3 Tahoma, Arial, sans-serif;
    color: #267736; background: #e8f2e9; cursor: pointer;
}
.cart_items[data-custom-position] .custom-photo-hint { color: #7a858d; font: 9px/1.4 Tahoma, Arial, sans-serif; }
.cart_items[data-custom-position] .custom-photo-change {
    display: none; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    background: #ffffffed; color: #34483a; box-shadow: 0 1px 4px #0002;
}
.cart_items[data-custom-position] .custom-photo-upload[data-has-photo='true'] .custom-photo-change { display: block; }
.cart_items[data-custom-position] .custom-photo-upload[aria-busy='true'] { pointer-events: none; opacity: .65; }
.cart_items[data-custom-position] .custom-photo-upload:not(:has(.imageToUpload)) .custom-photo-select { display: none; }

/* Additional services keep their existing column widths and 60px row height. */
.otherUslugi input,
.otherUslugi .otherUslugi_text {
    border: 1px solid #cbd2d8;
    border-radius: 4px;
    background: #fff;
    color: #252a30;
    font: 12px/1.4 Tahoma, Arial, sans-serif;
    box-shadow: inset 0 1px 2px #00000005;
    transition: border-color .15s, box-shadow .15s;
}
.otherUslugi input:hover,
.otherUslugi .otherUslugi_text:hover { border-color: #929da6; }
.otherUslugi input:focus,
.otherUslugi .otherUslugi_text:focus { border-color: #228b38; box-shadow: 0 0 0 2px #228b3826; }
.otherUslugi .otherUslugi_text {
    box-sizing: border-box;
    width: 546px;
    min-width: 546px !important;
    max-width: 546px;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px;
    resize: none;
    font-size: 13px;
}
.otherUslugi .otherUslugi_text::placeholder { color: #8a949c; }
.otherUslugi .otherUslugi_amount,
.otherUslugi .otherUslugi_price { height: 24px; padding-top: 0; padding-bottom: 0; }
.otherUslugi .otherUslugi_sale { height: 20px; padding-top: 0; padding-bottom: 0; background: #fafbfc; }
.otherUslugi .cart_ed { color: #737e88; font-size: 11px; line-height: 20px; pointer-events: none; }
.otherUslugi .otherUslugi_price_result { font-weight: 700; color: #252a30; line-height: 20px; }
.otherUslugi .cart_delete { height: 60px; }

/* Currency labels share typography; only the total itself is bold. */
.cart_items .cart_price_rub,
.cart_items .cart_summ_rub,
.otherUslugi .otherUslugi_price + .cart_ed,
.otherUslugi .otherUslugi_price_result + .cart_ed {
    color: #252a30;
    font: 400 12px/16px Tahoma, Arial, sans-serif;
    pointer-events: none;
}
.cart_items .cart_price_rub,
.cart_items .cart_summ_rub {
    top: 50%;
    transform: translateY(-50%);
}
/* Keep the service price column width; reserve room outside its input for р. */
.otherUslugi .otherUslugi_price {
    box-sizing: border-box;
    width: 68px !important;
    height: 26px;
    padding-left: 3px;
    padding-right: 3px !important;
}
.otherUslugi .otherUslugi_price + .cart_ed {
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%);
}
.otherUslugi .otherUslugi_price_result + .cart_ed {
    top: 50% !important;
    transform: translateY(-50%);
}

/* Customer and internal notes retain their existing placement and multiline input. */
.prim_extra .cart_item_prim,
.prim_extra .cart_item_prim_manager {
    box-sizing: border-box;
    width: 171px;
    max-width: 100%;
    min-height: 42px;
    max-height: 101px;
    padding: 6px 7px;
    border: 1px solid #cbd2d8;
    border-radius: 4px;
    background: #fff;
    color: #252a30;
    font: 12px/1.4 Tahoma, Arial, sans-serif;
    box-shadow: inset 0 1px 2px #00000005;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.prim_extra .cart_item_prim_manager { border-color: #b7d4bd; background: #f0f8f1; }
.prim_extra .cart_item_prim::placeholder { color: #8a949c; opacity: 1; }
.prim_extra .cart_item_prim_manager::placeholder { color: #6c8672; opacity: 1; }
.prim_extra .cart_item_prim:hover { border-color: #929da6; }
.prim_extra .cart_item_prim_manager:hover { border-color: #81ae8b; }
.prim_extra .cart_item_prim:focus,
.prim_extra .cart_item_prim_manager:focus { border-color: #228b38; box-shadow: 0 0 0 2px #228b3826; }
.prim_extra textarea:disabled { color: #777; cursor: default; }
@media screen and (max-width: 1800px) {
    .prim_extra .cart_item_prim,
    .prim_extra .cart_item_prim_manager { min-height: 44px; max-height: 44px; }
}

.cart_add_new_t {
    position: fixed;
    bottom: auto;
    z-index: 100001;
    box-sizing: border-box;
    width: 190px;
    min-width: 0;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d3dadf;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 24px #0003;
    color: #252a30;
    font: 400 12px/1.4 Tahoma, Arial, sans-serif;
    text-align: left;
}
.cart_add_new_t > div { padding: 8px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.cart_add_new_t > div:hover { color: #216d31; background: #eef7ef; }
.cart_add_new_t > div::before { display: inline-block; width: 22px; color: #7b8980; text-align: center; margin-right: 5px; }
.cart_add_new_t > .cart_delimeter::before { content: '—'; }
.cart_add_new_t > .cart_double::before { content: '⧉'; }
.cart_add_new_t > .cart_add_new_li::before { content: '+'; }
.cart_add_new_t > .cart_add_service::before { content: '+'; }
.cart_add_new_c { border-radius: 4px; cursor: pointer; }
.cart_add_new_c:hover { background: #eef7ef; }

/* Order history panel: retain dragging, resizing and the existing control layout. */
#order_his_cart {
    border: 1px solid #cbd2d8;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 24px #0002;
    color: #252a30;
    font-family: Tahoma, Arial, sans-serif;
}
#order_his_cart #movable_tong {
    border-radius: 6px 6px 0 0;
    background-color: #eef5ef !important;
}
#order_his_cart #search_orders_d { background-color: #eef5ef !important; border-bottom: 1px solid #dce6de; }
#order_his_cart #search_orders_inp,
#order_his_cart .i_status_select {
    box-sizing: border-box;
    height: 24px;
    max-height: 24px;
    border: 1px solid #cbd2d8;
    border-radius: 4px;
    color: #35423a;
    font: 400 12px/1.4 Tahoma, Arial, sans-serif;
    box-shadow: inset 0 1px 2px #00000005;
}
#order_his_cart #search_orders_inp { padding: 3px 8px; background: #fff; }
#order_his_cart #i_status_select_ { background: #fff; }
#order_his_cart #search_orders_inp::placeholder,
#order_his_cart #i_status_select_::placeholder { color: #7b8780; opacity: 1; }
#order_his_cart #search_orders_inp:focus,
#order_his_cart .i_status_select:focus { border-color: #228b38; box-shadow: 0 0 0 2px #228b3826; }
#order_his_cart #close_prev_order { color: #397448; text-shadow: none; }
#order_his_cart #close_prev_order:hover { color: #205d2e; }
#order_his_cart #l_car_arch { color: #397448 !important; font: 12px/1.4 Tahoma, Arial, sans-serif; }
#order_his_cart #l_car_arch:hover { color: #205d2e !important; text-decoration: underline; }
#order_his_cart .order_id_prev {
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    border-bottom: 1px solid #edf0ee;
    font-size: 12px;
    line-height: 1.5;
    transition: background-color .15s;
}
#order_his_cart .order_id_prev:hover { background-color: #f5f8f5; }
#order_his_cart #id_prev_select,
#order_his_cart .order_id_prev[style*='lightgreen'],
#order_his_cart .order_id_prev[style*='144, 238, 144'] {
    background-color: #eaf5ec !important;
    box-shadow: inset 3px 0 #398c4c;
}
#order_his_cart #new_order_pickup { color: #267736; font-weight: 600; }
#order_his_cart .sum_fr_pick { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#order_his_cart .d_status_select {
    padding: 4px;
    border: 1px solid #cbd2d8;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 16px #0002;
    font-size: 12px;
}
#order_his_cart .li_status_select { padding: 5px 3px; margin: 2px 0; border-radius: 3px; }
#order_his_cart #list_prev_orders_cart { border-radius: 0 0 6px 6px; scrollbar-width: thin; scrollbar-color: #c4cec6 #f6f8f6; }
#order_his_cart #list_prev_orders_cart::-webkit-scrollbar { width: 8px; }
#order_his_cart #list_prev_orders_cart::-webkit-scrollbar-track { background: #f6f8f6; }
#order_his_cart #list_prev_orders_cart::-webkit-scrollbar-thumb { border-radius: 4px; background: #c4cec6; }
#order_his_cart #list_prev_orders_cart::-webkit-scrollbar-thumb:hover { background: #9eafa2; }
#order_his_cart #list_prev_orders_cart::-webkit-scrollbar-corner { background: #f6f8f6; }
