/* Основной контейнер страницы тарифов */
.urmall-price-page {
    padding: 20px 0 60px;
}

.urmall-price-header {
    text-align: center;
    margin-bottom: 50px;
}

.urmall-price-header h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.urmall-price-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка карточек */
.urmall-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

/* Карточка тарифа */
.urmall-price-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.urmall-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(127, 0, 212, 0.1);
}

/* Выделенная карточка (Популярный тариф) */
.urmall-price-card-popular {
    background: #f8f5fc;
    border: 2px solid #7f00d4;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(127, 0, 212, 0.15);
    z-index: 2;
}

.urmall-price-card-popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Бейджик для популярного тарифа */
.urmall-price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0077;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Заголовок карточки */
.urmall-price-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.urmall-price-card-header p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 20px;
    min-height: 40px;
}

/* Цена */
.urmall-price-amount {
    margin-bottom: 10px;
    color: #7f00d4;
}

.urmall-price-value {
    font-size: 3rem;
    font-weight: bold;
}

.urmall-price-currency {
    font-size: 1.5rem;
    font-weight: bold;
    vertical-align: top;
}

/* Выгода */
.urmall-price-profit {
    font-size: 0.9rem;
    color: #ff0077;
    font-weight: bold;
    margin-bottom: 25px;
    min-height: 20px;
}

/* Список особенностей */
.urmall-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.urmall-price-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.95rem;
}

.urmall-price-features li:last-child {
    border-bottom: none;
}

/* ========================================= */
/* БОНУСНАЯ СТРОКА С ИКОНКОЙ                 */
/* ========================================= */
.urmall-price-features .urmall-bonus-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px; /* Отступ между иконкой и текстом */
    padding-left: 0;
    text-align: left; /* Текст выравниваем по левому краю внутри flex-контейнера */
    line-height: 1.2;
}

.urmall-price-features .urmall-bonus-item::before {
    content: '';
    display: block;
    flex-shrink: 0; /* Запрещаем сплющивание иконки */
    width: 38px;
    height: 38px;
    background: url(/includes/assets/images/bonus_icon.svg) center no-repeat;
    background-size: contain;
}

.urmall-price-features .urmall-bonus-item a {
    color: #7f00d4;
    text-decoration: underline;
    text-decoration-color: rgba(127, 0, 212, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.urmall-price-features .urmall-bonus-item a:hover {
    text-decoration-color: #7f00d4;
}

/* Кнопки */
.urmall-btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.urmall-btn-primary {
    background-color: #7f00d4;
    color: #fff;
    border: none;
}

.urmall-btn-primary:hover {
    background-color: #6400a8;
}

.urmall-btn-outline {
    background-color: transparent;
    color: #7f00d4;
    border: 2px solid #7f00d4;
}

.urmall-btn-outline:hover {
    background-color: #f8f5fc;
}

/* Блок с информацией под тарифами */
.urmall-price-info {
    text-align: center;
    background: #f8f5fc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #7f00d4;
    color: #444;
}

.urmall-price-info a {
    color: #7f00d4;
    font-weight: bold;
    text-decoration: none;
}

.urmall-price-info a:hover {
    text-decoration: underline;
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 992px) {
    .urmall-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .urmall-price-card-popular {
        transform: scale(1);
    }
    
    .urmall-price-card-popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .urmall-price-header h1 { 
        font-size: 25px; 
        font-weight: 700; 
        letter-spacing: -1px; 
        margin-bottom: 16px; 
        line-height: 1.1; 
    }
    .urmall-price-header p { 
        color: #666; 
        font-size: 14px; 
        max-width: unset; 
        margin: 0 auto; 
        line-height: 1.4; 
    }
    .urmall-price-header { 
        margin-bottom: 20px; 
    }
    .urmall-price-page {
        padding: 10px 0; /* Убрали боковые отступы контейнера, чтобы скролл уходил за край экрана */
        margin: 0 auto;
    }
    
    /* Превращаем сетку в горизонтальную карусель */
    .urmall-pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 20px; /* Боковые отступы для прокрутки и отступ снизу для тени */
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        
        /* Скрываем скроллбар в Firefox и IE/Edge */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Скрываем скроллбар в Chrome/Safari/Webkit */
    .urmall-pricing-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Настраиваем ширину карточки и центровку */
    .urmall-price-card {
        flex: 0 0 85%; /* Карточка занимает 85% ширины, чтобы следующая немного выглядывала */
        max-width: 300px; /* Ограничитель на случай больших телефонов */
        scroll-snap-align: center; /* Карточка магнитится точно по центру */
    }

    /* Снимаем span с последней карточки (он ломал ширину во flex) */
    .urmall-price-card:last-child {
        grid-column: auto;
    }
    .urmall-price-card-header h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: #333;
        line-height: 1;
    }
    .urmall-price-currency {
        font-size: 2rem;
        font-weight: bold;
        vertical-align: top;
    }
    .urmall-price-value {
        font-size: 2rem;
        font-weight: bold;
    }
    .urmall-price-card-header p {
        font-size: 0.95rem;
        color: #777;
        margin-bottom: 5px;
        min-height: 25px;
    }
    .urmall-price-amount {
        margin-bottom: 0;
        color: #7f00d4;
    }
    .urmall-price-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 15px 15px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .urmall-price-badge {
        position: absolute;
        top: -9px;
        left: 50%;
        transform: translateX(-50%);
        background: #ff0077;
        color: #fff;
        padding: 1px 8px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .urmall-price-profit {
        font-size: 0.9rem;
        color: #ff0077;
        font-weight: 400;
        margin-bottom: 10px;
        min-height: 20px;
    }
}

/* ========================================= */
/* СОСТОЯНИЕ ЗАГРУЗКИ ДЛЯ КНОПОК ТАРИФОВ     */
/* ========================================= */
.urmall-btn .urmall-btn-text {
    transition: opacity 0.2s ease;
}

.urmall-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.urmall-btn.is-loading .urmall-btn-text {
    opacity: 0;
}

.urmall-btn.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: urmall-spin 0.8s linear infinite;
}

.urmall-btn-outline.is-loading::after {
    border: 2px solid rgba(127, 0, 212, 0.2);
    border-top-color: #7f00d4;
}

@keyframes urmall-spin {
    to { transform: rotate(360deg); }
}