/* Checkout Page - Custom Styles */

/* Обертка способа оплаты */
.pay-way-item-wrapper {
    position: relative;
    margin-bottom: 22px; /* место для ярлычка */
}

/* Карточка оплаты */
[data-ti="pay-way-button"] {
    position: relative;
    z-index: 2;
    background-color: #fff !important;
    /* Удаляем старые стили margin-bottom */
    margin-bottom: 0 !important;
}

/* Удаляем старые ::after */
[data-ti="pay-way-button"]::after {
    content: none;
    display: none;
}

/* Ярлычок отдельным элементом */
.pay-way-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(24px);
    padding: 15px 2px 6px;
    height: 34px;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    font-family: "Tutu Sans", var(--o-font-direct, Helvetica, Arial, sans-serif);
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    background: rgba(125, 130, 160, 0.15);
    color: #555A7A;
    z-index: 1; /* Под карточкой (которая z-index 2), но торчит */
}

.pay-way-label-green {
    background: #48A22B;
    color: #FFFFFF;
}

/* Блок "Выберите выгоду" */
.benefit-section {
    margin-top: 16px;
}

.benefit-title {
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-options {
    display: flex;
    background: #EFEFF7; /* Непрозрачный фон */
    border-radius: 14px;
    padding: 4px;
    gap: 0;
    position: relative;
    z-index: 2;
}

.benefit-option {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.benefit-option:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.5);
}

@media (hover: none) {
    .benefit-option:hover:not(.selected) {
        background: transparent;
    }
}

/* Убираем серый фон при нажатии на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
}

.benefit-option.selected {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.benefit-option-label {
    display: block;
    font: 700 15px/20px "Tutu Sans", var(--o-font-direct, Helvetica, Arial, sans-serif);
    color: #262738;
    margin-bottom: 0;
    line-height: 18px;
}

.benefit-option-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font: 400 15px/15px "Tutu Sans", var(--o-font-direct, Helvetica, Arial, sans-serif);
    color: #181c2d;
    margin-top: 2px;
}

.benefit-option-value .icon_966f38e3 {
    color: #388A20;
    font-size: 16px;
    line-height: 14px;
}

/* Информация о баллах/кешбэке */
.benefit-info {
    margin-top: -12px;
    padding: 20px 16px 12px;
    background: #F5F5F9;
    border-radius: 0 0 12px 12px;
    color: #555A7A;
    position: relative;
    z-index: 1;
}

/* Блок "Больше кешбэка" */
.more-cashback-block {
    margin-top: 15px;
    display: none;
    position: relative;
}

.more-cashback-block .panel_e3343f20 {
    overflow: visible !important;
    position: relative;
    padding: 17px 16px !important;
}

.more-cashback-block.visible {
    display: block;
}

.more-cashback-label {
    position: absolute;
    left: 15px;
    top: -8px;
    height: 18px;
    z-index: 3;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-cashback-label span {
    background: #7D82A0;
    color: #FFFFFF;
    padding: 0 6px;
    border-radius: 6px;
    font-family: "Tutu Sans", var(--o-font-direct, Helvetica, Arial, sans-serif);
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.more-cashback-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    line-height: 16px;
}

.more-cashback-content .typoText400Normal_fa28d45d {
    font-size: 13px !important;
    line-height: 16px !important;
}

.more-cashback-content i {
    color: #388A20;
    font-size: 15px;
}

.more-cashback-content a span {
    font-size: 13px !important;
    line-height: 14px !important;
}

.more-cashback-btn {
    white-space: nowrap;
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Зачёркнутая старая цена (красная линия как в Figma) */
.old-price-strikethrough {
    position: relative;
    color: #7D82A0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-left: 8px;
    text-decoration: none;
}

.old-price-strikethrough::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: #F34D16; /* Красная линия */
    transform: translateY(-50%);
}

/* Анимация изменения цены */
#current-price {
    transition: color 0.2s ease;
}
