div.purchase_form div.spos_opl {
    display: flex;
    border: 1px solid;
    border-radius: 8px;
    overflow: visible;
    width: 70%;
}

.purchase_form label {
    min-width: 150px;
    display: inline-block;
    line-height: 32px;
    padding: 0 10px;
    text-align: center;
}

.purchase_form input[type="radio"]:checked + label {
    background-color: #e6e6e6;
    color: #070707;
}


.purchase_form [type="radio"] {
    display: none;
}

.purchase_form .input {
    position: relative;
}

.purchase_form .input .select2-selection.select2-selection--single {
    border: none;
}

.purchase_form .widget_button{
    position: absolute;
    right: 10px;
    line-height: 30px;
    text-decoration: underline;
    color: #df1d32;
    top: 0;
}


/* переключатель типа плательщика в корзине и в карточке */

#goods_desc .tabs,
.purchase_form .tabs {
    margin: 20px 0 0 0;
    padding: 0;
    clear: both;
}

#goods_desc .tabs {
    display: none;
}
#goods_desc .tabs .current,
.purchase_form .tabs .current {
    background: #fff;
    color: #333;
}

#goods_desc .tabs li,
.purchase_form .tabs li {
    position: relative;
    float: left;
    background: #eee;
    color: #666;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 18px;
    list-style-type: none;
    border: 1px solid #333;
    border-bottom-width: 0;
    border-right-width: 0;
}

#goods_desc .tabs li:last-child,
.purchase_form .tabs li:last-child {
    border-top-right-radius: 4px;
    border-right-width: 1px;
}

#goods_desc .tabs .current:after,
.purchase_form .tabs .current:after {
    content: " ";
    background-color: #fff;
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    z-index: 1;
}

#goods_desc .content,
.purchase_form .content {
    clear: both;
    position: relative;
    border-top: 1px solid #333;
    display: none;
    font-size: 14px;
}

#goods_desc .current,
.purchase_form .current {
    display: block;
}

/*.eventDesc {*/
/*    position: absolute;*/
/*    left: 25px;*/
/*    width: 70%;*/
/*    bottom: 475px;*/
/*    margin: 5px;*/
/*    padding: 5px;*/
/*}*/

.delivery-option {
    display: flex;
    flex-direction: column;  /* Элементы друг под другом */
    align-items: flex-start; /* Выравнивание по левому краю */
}

.eventDesc {
    display: none;
    position: absolute;
    bottom: -10px;
    left: 0;
    width: max-content;
    font-size: 12px;
    padding: 5px;
    color: #999;
}

.eventDesc.is-visible {
    display: block;
}

fieldset {
    display: flex;
    flex-wrap: wrap;    /* Чтобы переносилось на мобильных */
}

.purchase_form .forms .tabs {
    display: flex;
    gap: 15px;
}

#content .purchase_form .forms .tabs li {
    border-radius: 10px;
    border: none;
}

#content .purchase_form .forms .tabs li.current {
    box-shadow: 0 2px 4px #5e5e5e1a,0 3px 14px #0000001a;
    font-weight: bold;
}

.purchase_form .forms .tabs li::after {
    display: none;
}

.purchase_form .forms .content {
    border: none;
}

.purchase_form .forms #is_ways_of .spos_opl,
.purchase_form .forms .purchase-ways .spos_opl {
    border: none;
    width: 100%;
}

.purchase_form .forms #is_ways_of fieldset,
.purchase_form .forms .purchase-ways fieldset {
    position: relative;
    column-gap: 15px;
    min-width: 0;
    width: 100%;
}

#content .purchase_form .forms .tabs li,
.purchase_form #is_ways_of label,
.purchase_form .purchase-ways label {
    font-size: 16px;
    opacity: .6;
    padding: 10px 15px;
    box-sizing: border-box;
    line-height: normal;
    cursor: pointer;
}


#content .purchase_form .forms .tabs li.current,
.purchase_form #is_ways_of input[type="radio"]:checked + label,
.purchase_form .purchase-ways input[type="radio"]:checked + label {
    opacity: 1;
    font-weight: bold;
}

@media all and (max-width: 640px) {
    .purchase_form .forms #is_ways_of .delivery-option .eventDesc,
    .purchase_form .forms .purchase-ways .delivery-option .eventDesc {
        display: none;
    }

    #content .purchase_form .forms .tabs li,
    .purchase_form #is_ways_of label,
    .purchase_form .purchase-ways label {
        font-size: 13px;
    }
}

.price_table {
    margin-top: 20px;
}

.purchase_form .delivery-option {
    margin-bottom: 15px;
}

.purchase_form .input .select2.select2-container {
    max-width: 100%;
}

.tabs-list {
    position: relative;
    display: flex;
    column-gap: 15px;
    flex-wrap: wrap;
}

.purchase_form p.btn-back-text {
    color: #999;
    font-size: 12px;
}

.purchase_table_btn::after {
    content: '';
    position: relative;
    right: -9px;
    top: -3px;
    width: 2px;
    height: 2px;
    background-size: 100%;
    border: solid #ddd;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
}

.show::after {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    top: 3px;
}

.purchase_table {
    display: none;
    margin-bottom: 0;
}
.show+.purchase_table {
    display: table;
}

.purchase_table_popup {
    position: relative;
    margin-bottom: 10px;
}

.purchase_table_btn {
    font-family: inherit;
    font-size: inherit;
    color: #333e48;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.purchase_table_btn::after {
    margin-left: 10px;
}

.purchase_table {
    border-collapse: collapse;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
    background-color: #fff;
    z-index: 10;
}

.purchase_table_item {
    display: table-row;
}

.purchase_table_item td {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
}

.purchase_table_item .qt {
    margin-right: 20px;
}

.purchase_table_item .sum {
    padding-left: 25px;
}

.purchase_table_item .qt,
.purchase_table_item .sum {
    white-space: nowrap
}

.purchase_table_item > *:first-child {
    max-width: 300px;
    margin-right: auto;
}

.purchase-horizontal-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.uds-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.readonly-input {
    display: flex;
    align-items: center;
    background-color: #ededed;
    height: 28px;
    width: 50%;
    margin-right: 3%;
    line-height: 14px;
    font-size: 14px;
    overflow: hidden;
    outline: none;
    padding: 0 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    box-sizing: border-box;
}

.uds-row .title {
    min-width: 0;
    padding: 0;
    text-align: left;
}

.uds_code .input {
    position: relative;
}

.uds_code .uds-apply-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    translate: 0 -50%;
    height: 100%;
    font-size: inherit;
    color: #df1d32;
    text-decoration: underline;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

@media all and (max-width: 860px) {
    body .readonly-input { width: 90%; }
    body .uds-row { margin-top: 10px}
}