/**
 * Стили для виджета тарифов
 * Обновленный дизайн согласно макету - черный фон с оранжевыми и синими акцентами
 */

/* ===== МАКСИМАЛЬНО АГРЕССИВНЫЕ СТИЛИ ДЛЯ WORDPRESS ===== */
/* Эти стили должны точно повторить HTML версию */

/* Основной контейнер */
.tariff-widget-container,
.elementor-widget-tariff_widget .tariff-widget-container,
body .tariff-widget-container,
html .tariff-widget-container {
    background: #000000 !important;
    color: #fff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Заголовок */
.tariff-widget-container .tariff-widget-title,
.elementor-widget-tariff_widget .tariff-widget-title,
body .tariff-widget-container .tariff-widget-title {
    font-size: 2.5em !important;
    font-weight: 700 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    text-align: left !important;
}

/* Основная сетка */
.tariff-widget-container .tariff-widget-content,
.elementor-widget-tariff_widget .tariff-widget-content,
body .tariff-widget-container .tariff-widget-content {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

/* Левая панель категорий */
.tariff-widget-container .tariff-categories,
.elementor-widget-tariff_widget .tariff-categories,
body .tariff-widget-container .tariff-categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.tariff-widget-container .category-item,
.elementor-widget-tariff_widget .category-item,
body .tariff-widget-container .category-item {
    font-size: 1.5em !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 15px 0 !important;
    position: relative !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.tariff-widget-container .category-item:hover,
.elementor-widget-tariff_widget .category-item:hover,
body .tariff-widget-container .category-item:hover {
    color: #FF8C00 !important;
    transform: translateX(5px) !important;
}

.tariff-widget-container .category-item.active,
.elementor-widget-tariff_widget .category-item.active,
body .tariff-widget-container .category-item.active {
    color: #FF8C00 !important;
    font-weight: 600 !important;
}

/* Правая панель */
.tariff-widget-container .tariff-content-wrapper,
.elementor-widget-tariff_widget .tariff-content-wrapper,
body .tariff-widget-container .tariff-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.tariff-widget-container .tariff-widget-subtitle,
.elementor-widget-tariff_widget .tariff-widget-subtitle,
body .tariff-widget-container .tariff-widget-subtitle {
    font-size: 1.1em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Основной контент */
.tariff-widget-container .tariff-content,
.elementor-widget-tariff_widget .tariff-content,
body .tariff-widget-container .tariff-content {
    position: relative !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 0px 0px 0px 20px !important;
    overflow: hidden !important;
    min-height: 500px !important;
    border: none !important;
}

/* Изображение */
.tariff-widget-container .tariff-main-image,
.elementor-widget-tariff_widget .tariff-main-image,
body .tariff-widget-container .tariff-main-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.tariff-widget-container .tariff-main-image img,
.elementor-widget-tariff_widget .tariff-main-image img,
body .tariff-widget-container .tariff-main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

/* КНОПКА ПОКУПКИ - ОБЯЗАТЕЛЬНО СЛЕВА ВВЕРХУ */
.tariff-widget-container .tariff-buy-button,
.elementor-widget-tariff_widget .tariff-buy-button,
body .tariff-widget-container .tariff-buy-button,
html .tariff-widget-container .tariff-buy-button {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 12px 0 !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
}

.tariff-widget-container .buy-ticket-btn,
.elementor-widget-tariff_widget .buy-ticket-btn,
body .tariff-widget-container .buy-ticket-btn,
html .tariff-widget-container .buy-ticket-btn {
    background: #1976D2 !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3) !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* КНОПКА ИНФОРМАЦИИ - ОБЯЗАТЕЛЬНО СПРАВА ВВЕРХУ */
.tariff-widget-container .info-button,
.elementor-widget-tariff_widget .info-button,
body .tariff-widget-container .info-button,
html .tariff-widget-container .info-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 0 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
}

.tariff-widget-container .info-btn,
.elementor-widget-tariff_widget .info-btn,
body .tariff-widget-container .info-btn,
html .tariff-widget-container .info-btn {
    background: transparent !important;
    border: 2px solid #1976D2 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #1976D2 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.tariff-widget-container .info-btn:hover,
.elementor-widget-tariff_widget .info-btn:hover,
body .tariff-widget-container .info-btn:hover {
    background: #1976D2 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* КОНТЕЙНЕР С ЦЕНАМИ - ОБЯЗАТЕЛЬНО СПРАВА ВНИЗУ */
.tariff-widget-container .tariff-price-container,
.elementor-widget-tariff_widget .tariff-price-container,
body .tariff-widget-container .tariff-price-container,
html .tariff-widget-container .tariff-price-container {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 360px !important;
    max-width: calc(100% - 40px) !important;
    background: #000000 !important;
    border-radius: 12px 0 0 0 !important;
    padding: 16px !important;
    z-index: 5 !important;
    color: #fff !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
}

.tariff-widget-container .tariff-price-container h3,
.elementor-widget-tariff_widget .tariff-price-container h3,
body .tariff-widget-container .tariff-price-container h3 {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #fff !important;
}

.tariff-widget-container .tariff-price-container .tariff-details,
.elementor-widget-tariff_widget .tariff-price-container .tariff-details,
body .tariff-widget-container .tariff-price-container .tariff-details {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    font-size: 0.85em !important;
}

.tariff-widget-container .tariff-session-time-inline,
.elementor-widget-tariff_widget .tariff-session-time-inline,
body .tariff-widget-container .tariff-session-time-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(76, 175, 80, 0.2) !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-size: 0.7em !important;
    color: #4CAF50 !important;
    margin-bottom: 8px !important;
    width: fit-content !important;
}

.tariff-widget-container .tariff-features ul,
.elementor-widget-tariff_widget .tariff-features ul,
body .tariff-widget-container .tariff-features ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.tariff-widget-container .tariff-features li,
.elementor-widget-tariff_widget .tariff-features li,
body .tariff-widget-container .tariff-features li {
    background: rgba(255, 140, 0, 0.2) !important;
    color: #FF8C00 !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-size: 0.7em !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255, 140, 0, 0.3) !important;
}

.tariff-widget-container .tariff-prices-row,
.elementor-widget-tariff_widget .tariff-prices-row,
body .tariff-widget-container .tariff-prices-row {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
}

.tariff-widget-container .tariff-price,
.elementor-widget-tariff_widget .tariff-price,
body .tariff-widget-container .tariff-price {
    background: rgba(255, 140, 0, 0.2) !important;
    border: 1px solid rgba(255, 140, 0, 0.4) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #FF8C00 !important;
    font-weight: 700 !important;
    font-size: 0.9em !important;
    text-align: center !important;
    flex: 1 !important;
    min-width: 80px !important;
}

/* СКРЫВАЕМ МОДАЛЬНОЕ ОКНО ПО УМОЛЧАНИЮ */
.tariff-widget-container .info-modal-overlay,
.elementor-widget-tariff_widget .info-modal-overlay,
body .tariff-widget-container .info-modal-overlay {
    display: none !important;
}

.tariff-widget-container .info-modal-overlay.show,
.elementor-widget-tariff_widget .info-modal-overlay.show,
body .tariff-widget-container .info-modal-overlay.show {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(5px) !important;
}

/* ===== КОНЕЦ АГРЕССИВНЫХ СТИЛЕЙ ===== */

.tariff-widget-container {
    background: #000000;  /* Черный фон как на первом фото */
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    
    /* Переменные для цветов */
    --category-active-color: #FF8C00;
    --category-hover-color: #FF8C00;
    --category-inactive-color: #666;
    --category-inactive-bg: rgba(255, 255, 255, 0.05);
    --buy-button-color: #1976D2;
    --buy-button-hover-color: #1565C0;
    --price-color: #FF8C00;
    --success-color: #1976D2;
}

/* Заголовок виджета - над всем контентом */
.tariff-widget-header {
    text-align: left;
    margin-bottom: 30px;
}

.tariff-widget-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 30px 0;  /* Увеличиваем отступ снизу */
    line-height: 1.2;
    color: #fff;
}

/* Основной контент */
.tariff-widget-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Левая панель с названиями тарифов - простой текст */
.tariff-categories {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Увеличиваем отступы между категориями */
}

.category-item {
    font-size: 1.5em; /* Увеличиваем размер шрифта */
    font-weight: 400; /* Делаем шрифт обычным */
    color: rgba(255, 255, 255, 0.7); /* Полупрозрачный белый для неактивных */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 0; /* Увеличиваем отступы */
    position: relative;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 1.3;
}

.category-item:hover {
    color: #FF8C00;  /* Оранжевый при наведении */
    transform: translateX(5px);
}

.category-item.active {
    color: #FF8C00;  /* Оранжевый для активного */
    font-weight: 600; /* Жирный шрифт для активного */
}

.category-item.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #FF8C00; /* Оранжевый индикатор */
    border-radius: 2px;
}

/* Правая панель - обертка для подзаголовка и контента */
.tariff-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tariff-widget-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Правая панель с контентом */
.tariff-content {
    position: relative;
    background: rgba(255, 255, 255, 0.02); /* Очень слабый фон */
    border-radius: 0px 0px 0px 20px; /* Только левый нижний угол */
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.1); - убираем границу */
    min-height: 500px;
}

/* Полноразмерное изображение */
.tariff-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.tariff-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tariff-main-image:hover img {
    transform: scale(1.05);
}

/* Кнопка покупки - теперь в левом верхнем углу */
.tariff-buy-button {
    position: absolute;
    top: 0;
    left: 0; /* Прижимаем к левому углу */
    z-index: 10;
    background: #000000; /* Полностью черный */
    border-radius: 0 0 12px 0; /* Скругляем только правый нижний угол */
    padding: 12px;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); - убираем границу */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.buy-ticket-btn {
    background: #1976D2; /* Синий цвет */
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    margin: 0;
}

.buy-ticket-btn:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

.buy-ticket-btn:disabled {
    background: rgba(108, 117, 125, 0.9);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Новая кнопка информации */
.info-button {
    position: absolute;
    top: 0;
    right: 0;
    background: #000000;
    border-radius: 0 0 0 12px; /* Скругляем только левый нижний угол */
    padding: 12px;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); - убираем границу */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.info-btn {
    background: transparent;
    border: 2px solid #1976D2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #1976D2;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    background: #1976D2;
    color: #fff;
    transform: scale(1.1);
}

/* Время сеанса в левом верхнем углу */
.tariff-session-time {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(76, 175, 80, 0.9); /* Зеленый для времени */
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tariff-session-time .time-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
}

.tariff-session-time .time-value {
    color: #fff;
    font-weight: 700;
    margin-left: 5px;
}

/* Описание - убираем старый блок tariff-info, перемещаем всё в tariff-price-container */
.tariff-info {
    display: none; /* Скрываем старый блок */
}

/* Новый контейнер с ценой - теперь содержит всё */
.tariff-price-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 360px; /* Увеличиваем ширину */
    max-width: calc(100% - 40px);
    background: #000000; /* Полностью черный фон */
    border-radius: 12px 0 0 0; /* Убираем скругления везде кроме левого верхнего угла */
    padding: 16px;
    z-index: 5;
    color: #fff;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); - убираем границу */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Принудительные стили для точного соответствия тестовому HTML */
.tariff-widget-container .tariff-price-container {
    bottom: 0 !important;
    right: 0 !important;
    width: 360px !important;
    border-radius: 12px 0 0 0 !important;
    background: #000000 !important;
}

.tariff-widget-container .tariff-buy-button {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 12px 0 !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.tariff-widget-container .info-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: #000000 !important;
    border-radius: 0 0 0 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
}

.tariff-widget-container .tariff-content {
    border-radius: 0px 0px 0px 20px !important;
}

.tariff-widget-container .buy-ticket-btn {
    margin: 0 !important;
}

.tariff-widget-container .info-btn {
    background: transparent !important;
    border: 2px solid #1976D2 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #1976D2 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tariff-widget-container .info-btn:hover {
    background: #1976D2 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Заголовок тарифа */
.tariff-price-container h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

/* Описание тарифа */
.tariff-price-container .tariff-details {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin-bottom: 10px;
    font-size: 0.85em;
}

/* Особенности тарифа - компактно в ряд */
.tariff-price-container .tariff-features {
    margin: 8px 0;
}

.tariff-price-container .tariff-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tariff-price-container .tariff-features li {
    background: rgba(255, 140, 0, 0.2);
    color: #FF8C00;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 500;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

/* Цены в ряд - компактно */
.tariff-prices-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tariff-price {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 8px;
    padding: 6px 10px;
    color: #FF8C00;
    font-weight: 700;
    font-size: 0.9em;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.price-breakdown {
    margin-top: 4px;
    font-size: 0.6em;
    opacity: 0.9;
    color: rgba(255, 140, 0, 0.8);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 1px 0;
}

/* Время сеанса - переносим в контейнер */
.tariff-session-time-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.7em;
    color: #4CAF50;
    margin-bottom: 8px;
    width: fit-content;
}

.tariff-session-time-inline .time-value {
    font-weight: 700;
}

/* Скрываем старое время сеанса */
.tariff-session-time {
    display: none;
}

/* Состояния загрузки */
.tariff-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #666;
    font-size: 1.2em;
}

.tariff-widget-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tariff-content {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tariff-widget-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tariff-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .category-item {
        font-size: 1.2em;
        padding: 8px 0;
        min-width: auto;
    }
    
    .category-item.active::before {
        display: none;
    }
    
    .tariff-info {
        width: 300px;
        background: rgba(0, 0, 0, 0.8); /* Сохраняем черный фон */
    }
}

@media (max-width: 768px) {
    .tariff-widget-container {
        padding: 20px;
        background: #000000; /* Черный фон на мобильных */
    }
    
    .tariff-widget-title {
        font-size: 2em;
    }
    
    .tariff-content {
        min-height: 400px;
    }
    
    .tariff-price-container {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Принудительные стили для мобильных */
    .tariff-widget-container .tariff-price-container {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #000000 !important;
        border-radius: 12px !important;
    }
    
    .tariff-widget-container .tariff-buy-button {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        background: #000000 !important;
        border-radius: 0 0 12px 0 !important;
    }
    
    .tariff-widget-container .info-button {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        background: #000000 !important;
        border-radius: 0 0 0 12px !important;
    }
    
    .tariff-prices-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .tariff-price {
        min-width: auto;
        text-align: center;
    }
    
    .category-item {
        font-size: 1.1em;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .category-item:hover {
        color: #FF8C00; /* Оранжевый при наведении */
    }
    
    .category-item.active {
        color: #FF8C00; /* Оранжевый для активного */
    }
    
    .tariff-buy-button {
        /* Убираем оранжевый фон, оставляем только синюю кнопку */
    }
}

@media (max-width: 480px) {
    .tariff-widget-container {
        padding: 15px;
        background: #000000; /* Черный фон */
    }
    
    .tariff-content {
        min-height: 350px;
    }
    
    .category-item {
        font-size: 1em;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .category-item:hover {
        color: #FF8C00;
    }
    
    .category-item.active {
        color: #FF8C00;
    }
    
    .tariff-price-container {
        padding: 12px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    /* Принудительные стили для очень маленьких экранов */
    .tariff-widget-container .tariff-price-container {
        background: #000000 !important;
        border-radius: 12px !important;
    }
    
    .tariff-widget-container .tariff-buy-button {
        background: #000000 !important;
        border-radius: 0 0 12px 0 !important;
    }
    
    .tariff-widget-container .info-button {
        background: #000000 !important;
        border-radius: 0 0 0 12px !important;
    }
    
    .tariff-price-container h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
    }
    
    .tariff-price-container .tariff-details {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .tariff-prices-row {
        gap: 4px;
    }
    
    .tariff-price {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    .tariff-buy-button {
        /* Убираем оранжевый фон контейнера */
        padding: 0;
        background: transparent;
    }
    
    .buy-ticket-btn {
        padding: 10px 18px;
        font-size: 12px;
        background: #1976D2; /* Синий цвет кнопки */
    }

    .buy-ticket-btn:hover {
        background: #1565C0;
    }
}

/* Модальное окно для выбора билетов */
.tariff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.tariff-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tariff-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.tariff-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.tariff-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.tariff-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tariff-modal-content {
    padding: 30px;
}

/* Форма выбора билетов */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ticket-type:hover {
    border-color: #1976D2;
    background: #fff;
}

.ticket-type label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ticket-label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.ticket-price {
    color: #FF8C00;
    font-weight: 700;
    font-size: 1.3em;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #1565C0;
    transform: scale(1.1);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.qty-input:focus {
    outline: none;
    border-color: #1976D2;
}

.total-price {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    border-radius: 12px;
    font-size: 1.4em;
}

.btn-buy-tickets {
    background: linear-gradient(135deg, #FF8C00, #FF7F00);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-tickets:hover {
    background: linear-gradient(135deg, #FF7F00, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.btn-buy-tickets:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Состояние обработки для кнопки покупки */
.buy-ticket-btn.processing {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Уведомление об успехе */
.tariff-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.tariff-success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
}

.notification-text {
    font-weight: 600;
    flex: 1;
}

/* Дополнительные стили для интеграции с Elementor */
.elementor-widget-tariff_widget {
    margin: 0;
}

.elementor-widget-tariff_widget .tariff-widget-container {
    margin: 0;
}

/* Принудительные стили для Elementor */
.elementor-widget-tariff_widget .tariff-price-container {
    bottom: 0 !important;
    right: 0 !important;
    width: 360px !important;
    border-radius: 12px 0 0 0 !important;
    background: #000000 !important;
}

.elementor-widget-tariff_widget .tariff-buy-button {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 12px 0 !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.elementor-widget-tariff_widget .info-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: #000000 !important;
    border-radius: 0 0 0 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
}

.elementor-widget-tariff_widget .tariff-content {
    border-radius: 0px 0px 0px 20px !important;
}

.elementor-widget-tariff_widget .buy-ticket-btn {
    margin: 0 !important;
}

.elementor-widget-tariff_widget .info-btn {
    background: transparent !important;
    border: 2px solid #1976D2 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #1976D2 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-widget-tariff_widget .info-btn:hover {
    background: #1976D2 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Модальное окно для информации */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.info-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.info-modal {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-modal-header h3 {
    margin: 0;
    color: #FF8C00;
    font-size: 1.4em;
    font-weight: 600;
}

.info-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.info-modal-content {
    line-height: 1.6;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.info-modal-content p {
    margin-bottom: 15px;
}

.info-modal-content p:last-child {
    margin-bottom: 0;
}

/* Блокировка скролла при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Дополнительные стили для контента модального окна */
.info-modal-content h4 {
    color: #FF8C00;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.info-modal-content h4:first-child {
    margin-top: 0;
}

.info-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.info-modal-content li {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.info-modal-content .session-info,
.info-modal-content .features-info,
.info-modal-content .price-info {
    margin-bottom: 20px;
}

.info-modal-content .price-info p {
    margin-bottom: 8px;
}

/* КРИТИЧЕСКИ ВАЖНЫЕ СТИЛИ - МАКСИМАЛЬНЫЙ ПРИОРИТЕТ */

/* Кнопка покупки - ОБЯЗАТЕЛЬНО слева вверху */
.tariff-widget-container .tariff-content .tariff-buy-button,
.elementor-widget-tariff_widget .tariff-content .tariff-buy-button,
body .tariff-widget-container .tariff-content .tariff-buy-button {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 12px 0 !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    display: block !important;
}

/* Кнопка информации - ОБЯЗАТЕЛЬНО справа вверху */
.tariff-widget-container .tariff-content .info-button,
.elementor-widget-tariff_widget .tariff-content .info-button,
body .tariff-widget-container .tariff-content .info-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    background: #000000 !important;
    border-radius: 0 0 0 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    display: block !important;
}

/* Стили для кнопки информации "i" */
.tariff-widget-container .info-button .info-btn,
.elementor-widget-tariff_widget .info-button .info-btn,
body .tariff-widget-container .info-button .info-btn {
    background: transparent !important;
    border: 2px solid #1976D2 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #1976D2 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tariff-widget-container .info-button .info-btn:hover,
.elementor-widget-tariff_widget .info-button .info-btn:hover,
body .tariff-widget-container .info-button .info-btn:hover {
    background: #1976D2 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Контейнер с ценами - ОБЯЗАТЕЛЬНО справа внизу с черным фоном */
.tariff-widget-container .tariff-content .tariff-price-container,
.elementor-widget-tariff_widget .tariff-content .tariff-price-container,
body .tariff-widget-container .tariff-content .tariff-price-container {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 360px !important;
    max-width: calc(100% - 40px) !important;
    background: #000000 !important;
    border-radius: 12px 0 0 0 !important;
    padding: 16px !important;
    z-index: 5 !important;
    color: #fff !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
}

/* Основной контент */
.tariff-widget-container .tariff-content,
.elementor-widget-tariff_widget .tariff-content,
body .tariff-widget-container .tariff-content {
    position: relative !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 0px 0px 0px 20px !important;
    overflow: hidden !important;
    min-height: 500px !important;
    border: none !important;
}

/* Скрываем дефолтное модальное окно если оно показывается */
.tariff-widget-container .info-modal-overlay:not(.show),
.elementor-widget-tariff_widget .info-modal-overlay:not(.show),
body .tariff-widget-container .info-modal-overlay:not(.show) {
    display: none !important;
}

/* Принудительно скрываем модальное окно по умолчанию */
.info-modal-overlay {
    display: none !important;
}

.info-modal-overlay.show {
    display: flex !important;
}

/* Кнопка покупки билета */
.tariff-widget-container .buy-ticket-btn,
.elementor-widget-tariff_widget .buy-ticket-btn,
body .tariff-widget-container .buy-ticket-btn {
    background: #1976D2 !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3) !important;
    margin: 0 !important;
    display: inline-block !important;
}

.tariff-widget-container .buy-ticket-btn:hover,
.elementor-widget-tariff_widget .buy-ticket-btn:hover,
body .tariff-widget-container .buy-ticket-btn:hover {
    background: #1565C0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4) !important;
} 



