.price-with-discount-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* Основной блок для бейджа скидки - ВОЗВРАЩАЕМ КАК БЫЛО */
.discount-label-wrapper {
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    height: 26px;
    max-width: fit-content;
}

/* Блок с процентом скидки (красный фон) */
.discount-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c00;
    color: white;
    padding: 0 8px;
    font-weight: bold;
    font-size: 13px;
    height: 100%;
    border-radius: 3px;
    margin-right: 7px;
}

/* Стили для ссылки "подробнее" */
.discount-more-info {
    color: #5d8dc9;
    font-size: 12px;
    text-decoration: dotted underline;
    cursor: help;
    position: relative;
}

/* Стили для тултипа (убираем дублирование) */
.discount-more-info:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    max-width: 250px;
    min-width: 200px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#headerfixed .table-view .item-actions .item-price {
    max-width: 315px !important;
}

.online-payment-badge {
    background-color: #366cc2;
    color: white;
    padding: 3px 8px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    text-align: left;
    width: auto;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Добавим очистку после бейджа для предотвращения проблем с float */
.online-payment-badge::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 992px) {
    .online-payment-badge {
        display: none;
    }
}

/* НОВЫЕ СТИЛИ ДЛЯ РАССРОЧКИ - располагаем под основным блоком */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
    margin-left: 0;
    width: 100%;
    align-items: flex-start; /* Прижимаем к левому краю */
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1px 0;
    font-size: 11px;
    justify-content: flex-start; /* Прижимаем содержимое к левому краю */
}

.payment-option img {
	flex-shrink: 0;
  vertical-align: middle;
  width: 55px;
  height: 35px;
  object-fit: contain;
  object-position: center;
}

.payment-text {
    font-size: 11px;
    color: #495057;
    cursor: pointer;
    position: relative;
    line-height: 1.2;
}

.payment-text:hover {
    color: #007bff;
}

/* Тултипы для способов оплаты */
.payment-text:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: normal;
    max-width: 200px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.payment-text:hover::before {
    content: '';
    position: absolute;
    bottom: 113%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(51, 51, 51, 0.9);
    z-index: 999;
}

.item-actions .payment-options {
 display:none;
}