/* Основной контейнер */
.payment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Карточка метода оплаты */
.payment-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 180px; /* Фиксированная ширина для десктопа */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
}

.payment-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    width: 100%;
    text-align: center;
    border:0 !important;
}

/* Эффект при наведении */
.payment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff; /* Цвет можно заменить на брендовый */
}

/* Иконка */
.payment-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Название метода */
.payment-item .method-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Цена */
.payment-item .price-tag {
    font-size: 16px;
    font-weight: 700;
    color: #28a745; /* Зеленый цвет для цены */
    display: block;
}

.payment-item .fee-info {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .payment-item {
        width: calc(50% - 10px); /* По 2 в ряд на маленьких экранах */
        min-width: 140px;
    }
}
.price-block {
    margin-top: auto; /* Прижимает цену к низу карточки, если названия разной длины */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-tag {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.fee-info {
    font-size: 12px;
    color: #e74c3c; /* Красноватый оттенок для комиссии или серый #7f8c8d */
    font-weight: 600;
    margin-top: 2px;
    background: #fdf2f2; /* Легкий фон для выделения */
    padding: 2px 8px;
    border-radius: 10px;
}

/* Стили для контейнера элемента */
.payment-item.best-choice {
    position: relative;
    overflow: hidden; /* Важно, чтобы лента не вылезала за края */
    background: linear-gradient(145deg, #ffffff 0%, #fff9e6 100%) !important;
    transition: transform 0.2s;
}

/* Создаем ленту в углу */
.payment-item.best-choice::before {
    content: "САМЫЙ ВЫГОДНЫЙ!";
    position: absolute;
    top: 22px;
    right: -30px;
    width: 130px;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%); /* Яркий градиент */
    color: white;
    text-align: center;
    font-size: 8px;
    font-weight: bold;
    line-height: 24px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}