.fieldset-block__hram {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.rand_sellers.radio+label:before {
    top: 0px;
    left: 0px;
    background: unset;
    width: 40px;
    height: 40px;
    z-index: 2;
    border: 1px solid var(--color-accent);
}
.rand_sellers.radio+label  {
    width: 40px;
    height: 40px;
    text-align: center;
    margin: auto;
    padding: 8px;
}

.fieldset-block__hram_rand_button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
#treba-description.max-width_middle,
#formTreba.max-width_middle {
    margin: auto;
}
#formTreba .select-list-b__drop {
    max-height: 200px;
    overflow-x: auto;
}

.map-search-control {
    position: absolute;
    left: 40px;
    top: 8px;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    max-width: calc(100% - 32px);
}

@media (max-width: 1350px) {
    .map-search-control {
        left: 16px;
    }
}

.map-search-input {
    padding: 4px 8px;
    min-width: 220px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.map-search-button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--color-accent);
    color: white;
}

.search-result-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff5a5f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transform: translate(-50%, -100%);
}

#formTreba .js--delete_item:before {
    content: 'x';
    display: block;
    /* width: 20px; */
    /* height: 20px; */
    border-radius: 30%;
    position: absolute;
    right: 1px;
    color: red;
    top: 33px;
    line-height: 1;
    padding: 10px;
    cursor: pointer;
    background: #FFFFFF;
}

.button.disabled {
    pointer-events: none;
    opacity: 0.3;
}

#total_sellers {
    min-width: 16px;
    background: var(--color-light-blue);
    border-radius: 35px;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    padding: 4px 8px;
}
#formTreba .radio+label:after {
    top: 0;
    left: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    z-index: 3;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    opacity: 0;
    border: 1px solid var(--color-accent);
}

.cart_balloon_content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
}
.balloon_price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}
.balloon_price span {
    font-size: 11px;
}
.balloon {
    padding: 10px;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
    width: 250px;
    margin-bottom: 30px;
}
.cart_balloon_footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart_balloon_content img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
}
.cart_balloon_content a {
    font-size: 13px;
}
.cart_balloon_content a:hover {
    color: var(--color-accent);
}
.balloon_price b {
    line-height: 1;
}

.cart_treba_sellers__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cart_treba_sellers__item-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart_treba_sellers__item .treba-seller__date-price,
.cart_treba_sellers__item .treba-seller__title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.cart_treba_sellers__item .treba-seller__name {
    font-weight: 600;
    line-height: 1.4;
}
.cart_treba_sellers__item .treba-seller__date_time {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
}
.cart_treba_sellers__item .treba-seller__settings-date {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    align-items: center;
}
.cart_treba_sellers__item .treba-seller__settings-time,
.cart_treba_sellers__item .treba-seller__settings-date {
    font-size: 14px;
}
#cart_treba_sellers li {
    margin-bottom: 16px;
}
#cart_treba_sellers li:last-child {
    margin-bottom: 0px;
}
.cart_treba_sellers__item .treba-seller__price {
    font-size: 18px;
    font-weight: 700;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
}
.cart_treba_sellers__item .treba-seller__price span {
    min-width: 85px;
    text-align: right;
}
.cart_treba_sellers__item .js--delete_seller {
    float: right;
    margin-left: 5px;
    position: relative;
    top: 2px;
}

#formTreba .lk-form__content {
    margin-bottom: 20px;
}
#formTreba .clear_cart {
    font-size: 12px;
    color: var(--color-gray);
}

.cart_treba_sellers__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.note_header_img {
    margin: 15px 0;
    width: 100%;
    text-align: center;
}
.note_header_img img {
    margin: 0 auto 12px;
    max-width: 44px;
}


.select-type-name-wrap {
    position: relative;
    display: inline-block;
}

.select-type-name-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 0;
    position: relative;
    padding: 3px 10px;
    width: 84px;
    background-position: calc(100% - 4px);
    cursor: pointer;
}

.select-type-name-res {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
    z-index: 2;
    width: calc(100% - 12px);
    background: #FFF;
    font-size: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
}

.lk-list_name__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    align-items: center;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    margin: 0 0 16px;
    flex-wrap: wrap;
}
.lk-list_name_item__name {
    min-width: 220px;
}
.lk-list_name__column {
    max-width: 228px;
}
.lk-list_name__column:last-child {
    margin-left: auto;
}

.lk-list_name__column textarea {
    border: 0;
    resize:none;
    border-bottom: 1px solid var(--color-gray);
    font-size: 12px;
}

.lk-list_name__column textarea:focus {
    outline: none;
}
.content-zone h3 span {
    min-width: 24px;
    height: 24px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: var(--color-light-blue);
    border-radius: 35px;
    padding: 0 8px;
    font-size: 14px;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    font-weight: 400;
    color: #2c2c2c;
}
.name-trash {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
.name-trash svg {
    fill: none;
}
.cart_treba_names__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    align-items: center;
}
#cart_treba_names li {
    margin-bottom: 12px;
}
#cart_treba_names li .input-text {
    border: 1px solid #ddd;
}
#cart_treba_names li:last-child {
    margin-bottom: 0px;
}

.select-list-b__cart_item {
    padding: 4px 32px 4px 8px;
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.select-list-b__cart_item:hover {
    background-color: var(--color-light);
}

#modal-cart-seller-schedule {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 400px;
}

.modal_treba_form > button{
    width: 100%;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px;
    height: auto;
}

#modal-cart-my-lists.modal-b__block {
    min-height: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}
.subservice_items {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}
.subservice_item {
    width: calc(50% - 8px);
    text-align: center;
    background: var(--color-light-blue);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.subservice_item.subservice_in_cart {
    color: #fff;
    background: var(--color-accent);
}

.seller_services__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.seller_services__item input {
    max-width: 75px;
    text-align: center;
    padding: 0;
}
.all_services-input {
    text-align: right;
}
.all_services-input input {
    text-align: center;
    max-width: 75px;
}
.all_services-input span {
    text-align: right;
}
#modal-cart-subservice .modal-b__content {
    max-height: 350px;
    overflow: auto;
}
.seller_services__name small {
    color: var(--color-accent);
}
.modal_total_service {
    font-weight: 600;
    margin-left: auto;
}
#treba_total input::-webkit-outer-spin-button,
#treba_total input::-webkit-inner-spin-button,
#modal-cart-subservice input::-webkit-outer-spin-button,
#modal-cart-subservice input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
#treba_total input,
#modal-cart-subservice input {
    -moz-appearance:textfield;
}
.error_hidden {
    display: none;
    color: red;
}
#cart_treba_sellers ol {
    max-height: 450px;
    overflow: auto;
    padding-right: 15px;
}
.filter-b__btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: nowrap;
    max-width: 245px;
    gap: 12px;
}
.treba_total_sum > div {
    font-weight: 700;
    font-size: 20px;
}
#cart_map {
    display: none;
    width: 100%;
    height: 350px;
    margin: 25px 0;
}
#cart_map.cart_map_show {
    display: block;
}
.fieldset-block__hram_rand.lk-form__field {
    margin-top: 16px;
}

#modal-cart-subservice .modal-b__buttons {
    justify-content: start;
}
.treba-payment {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modal-cart-my-lists.modal-b__block .modal-b__buttons{
    margin-top: auto;
}

#modal-cart-seller-schedule .modal-b__buttons{
    margin-top: auto;
}

#modal-cart-seller-schedule .more_date {
    margin: 26px;
}
#modal-cart-seller-schedule .modal-schedule_item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#modal-cart-seller-schedule .modal-schedule_items {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow: auto;
}
#modal-cart-seller-schedule .modal-schedule_price {
    font-weight: 600;
}

#formCartTreba.max-width_middle {
    margin: auto;
}

#formCartTreba .table-container {
    overflow-x: auto;
    margin-bottom: 16px;
}

#formCartTreba table {
    width: 100%;
    border-collapse: collapse;
}

#formCartTreba th,
#formCartTreba td {
    padding: 12px 15px;
    text-align: left;
}

/*#formCartTreba th:nth-child(2) {*/
/*    min-width: 195px;*/
/*}*/
#formCartTreba th:nth-child(2),
#formCartTreba td:nth-child(2) {
    width: 350px;
}
#formCartTreba th:nth-child(3),
#formCartTreba td:nth-child(3) {
    width: 150px;
}
#formCartTreba th:nth-child(4),
#formCartTreba td:nth-child(4) {
    width: 200px;
}
#formCartTreba th:nth-child(5),
#formCartTreba td:nth-child(5) {
    width: 150px;
    text-align: right;
}

#formCartTreba .padding_none th,
#formCartTreba .padding_none td {
    padding: 0 15px;
}

#formCartTreba tbody tr:hover {
    background-color: var(--color-light);
}

#formCartTreba .checkbox-cell {
    width: 40px;
    text-align: center;
}

#formCartTreba input[type="checkbox"] {
    transform: scale(1.4);
    cursor: pointer;
    accent-color: var(--color-accent);
}

#formCartTreba .delete-btn {
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    display: block;
}

#formCartTreba .delete-btn:hover {
    color: #c0392b;
}

#formCartTreba tfoot {
    background-color: #ecf0f1;
    font-weight: bold;
}

#formCartTreba tfoot tr:last-child {
    background-color: #2c3e50;
    color: white;
}

#formCartTreba .footer-totals {
    text-align: right;
    padding-right: 20px;
}

#formCartTreba .footer-totals div {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin-left: auto;
}

#formCartTreba .footer-totals .total {
    font-size: 1.2em;
    border-top: 1px solid #bdc3c7;
    padding-top: 12px;
    font-weight: 700;
}

#formCartTreba .mobile-label {
    display: none;
}

#formCartTreba .lk-form__content {
    margin-bottom: 12px;
    padding: 16px 32px;
}
.count_sellers {
    min-width: 24px;
    color: #2c2c2c;
    height: 24px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: var(--color-light-blue);
    border-radius: 35px;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 400;
}
/* Адаптивный дизайн для мобильных - ВСЕ поля видны */
@media (max-width: 768px) {
    #formCartTreba th:nth-child(2),
    #formCartTreba td:nth-child(2),
    #formCartTreba th:nth-child(3),
    #formCartTreba td:nth-child(3),
    #formCartTreba th:nth-child(4),
    #formCartTreba td:nth-child(4),
    #formCartTreba th:nth-child(5),
    #formCartTreba td:nth-child(5) {
        width: unset;
    }

    #formCartTreba td:nth-child(5) {
        justify-content: end;
    }

    #formCartTreba .lk-form__content {
        padding: 16px 16px;
    }

    #formCartTreba th, #formCartTreba td {
        padding: 10px 12px;
    }

    #formCartTreba .mobile-label {
        display: inline-block;
        width: 90px;
        font-weight: bold;
        margin-right: 10px;
        color: #2c3e50;
    }

    #formCartTreba tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    #formCartTreba tbody td {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 10px 8px;
    }

    #formCartTreba tbody td:last-child {
        border-bottom: none;
        justify-content: center;
    }

    #formCartTreba thead {
        display: none;
    }

    #formCartTreba tbody td:first-child {
        justify-content: center;
        background-color: #ecf0f1;
        border-radius: 4px 4px 0 0;
    }

    #formCartTreba tbody td {
        display: flex !important;
    }
}



@media (max-width: 750px) {
    .max-width {
        max-width: 450px;
    }
}


@media (max-width: 450px) {
    .subservice_item {
        width: 100%;
    }
}

