:root {
    --tp-brand-blue-color: #0085ff;
    --tp-hover-blue-color: #f5877d;
    --tp-active-blue-color: #f5877d;
    --tp-hover-pink-color: #f9f5f9;
    --tp-border-color: #000;
    --ffffff: #ffffff;
}


.table-wrapper {
    overflow-y: auto;
    max-height: 65vh;
    position: relative;
    padding-right: 8px;
    box-sizing: border-box;
}

.table-wrapper.with-gradient {
    background: linear-gradient(white, white 85%, rgba(0, 0, 0, 0.03) 97%, rgba(0, 0, 0, 0.1) 100%);
    /* Создаем плавный переход, где последние 15% начинают затемняться */
}

.table-wrapper::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.table-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
}

.table-wrapper {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.table-wrapper {
    position: relative;
}

.main-flights thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    /* Цвет фона шапки таблицы */
}

.main-flights th {
    background: inherit;
    /* Обеспечивает, что фон ячеек заголовка будет белым */
}

.main-flights {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.main-flights th,
.main-flights td {
    padding: 10px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1vw, 16px);
    /* Минимум 1rem, предпочтительно 1vw, максимум 16px */
    border-bottom: none;
}


.main-flights th:nth-child(1),
.main-flights td:nth-child(1) {
    width: 30%;
}

.main-flights th:nth-child(2),
.main-flights td:nth-child(2) {
    width: 18%;
}

.main-flights th:nth-child(3),
.main-flights td:nth-child(3) {
    width: 18%;
}

.main-flights th:nth-child(4),
.main-flights td:nth-child(4) {
    width: 17%;
}

.main-flights th:nth-child(5),
.main-flights td:nth-child(5) {
    width: 15%;
}


.main-flights a,
.flight-details a {
    text-decoration: none !important;
}

.main-flights a:hover,
.flight-details a:hover {
    text-decoration: none !important;
}

.main-flights tr:hover {
    background-color: var(--tp-hover-pink-color);
}

/* Отключение выделения текста для строк таблицы */
.main-flights tr {
    user-select: none;
    /* Для современных браузеров */
    -webkit-user-select: none;
    /* Для Safari */
    -moz-user-select: none;
    /* Для Firefox */
    -ms-user-select: none;
    /* Для IE и Edge */
}


.main-flights a,
.details-block a,
.flight-details a {
    display: inline-block;
    padding: 0.6rem;
    text-decoration: none;
    color: var(--tp-border-color);
    background-color: var(--ffffff);
    border: 1px solid #cccccc;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.main-flights a:hover,
.details-block a:hover,
.flight-details a:hover {
    background-color: #f78da7;
    color: var(--ffffff);
}

.main-flights a:active,
.details-block a:active,
.flight-details a:active {
    background-color: #f78da7;
    color: var(--ffffff);
}

.details-row {
    display: none;
}

.details-block {
    margin-top: 20px;
}

.details-block table.flight-details tr+tr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.details-block table.flight-details tr+tr td {
    padding-top: 12px;
}


.details-block table {
    width: 100%;
    border-collapse: collapse;
}

.details-block th,
.details-block td {
    padding: 12px;
    text-align: left;
    font-size: 16px;
}

.details-block tr:hover {
    background-color: #f9f5f9;
}

.details-block table.flight-details {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.details-block table.flight-details th,
.details-block table.flight-details td {
    text-align: left;
    padding: 8px;
}

.details-block table.flight-details td:nth-child(1) {
    width: 19%;
    font-size: 0.93rem;
}

.details-block table.flight-details td:nth-child(2) {
    width: 34%;
    font-size: 0.93rem;
}

.details-block table.flight-details td:nth-child(3) {
    width: 15%;
    font-size: 0.93rem;
}

.details-block table.flight-details td:nth-child(4) {
    width: 15%;
}

.details-block table.flight-details td:nth-child(5) {
    width: 20%;
    text-align: center;
    font-size: 0.9rem;
}

.details-block table.flight-details th,
.details-block table.flight-details td {
    min-width: 100px;
}

.flight-details .days-column {
    font-family: monospace;
    letter-spacing: 0.9rem;
    text-align: center;
}

.day-symbol {
    display: inline-block;
    width: 0.7rem;
    text-align: center;
}

.flight-details {
    font-size: 0.7rem !important;
}

.flight-details td,
.flight-details th {
    padding: 8px;
}

.flight-details .day-symbol {
    font-size: 14px;
}

.main-flights a.country-link {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: underline;
    color: #000000;
    transition: none;
}

.main-flights a.country-link:hover {
    text-decoration: underline;
    color: var(--tp-hover-blue-color);
    background: none;
}

@media (max-width: 700px) {

    .table-wrapper {
        overflow-y: auto;
        max-height: 68vh;
    }

    .main-flights td,
    .details-block td,
    .flight-details td {
        padding: 4px 8px;
    }

    /* Каркас строки */
    .main-flights tr:not(.details-row) {
        display: flex;
        flex-wrap: wrap;
        padding: 5px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        align-items: center;
        justify-content: space-between;
    }

    .main-flights thead {
        display: block;
        position: sticky;
        top: -1px;
        margin-top: -1px;
        z-index: 15;
        background-color: #fff;
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }

    .main-flights thead tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid rgba(0,0,0,0.1);
        padding-bottom: 5px;
        margin-bottom: 0;
    }

    .main-flights th,
    .main-flights td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-bottom: none;
    }

    .main-flights th:nth-child(1),
    .main-flights th:nth-child(4) {
        width: auto !important;
    }

    .main-flights th:nth-child(1) {
        text-align: left;
    }

    .main-flights th:nth-child(4) {
        text-align: right;
    }

    .main-flights th:nth-child(2),
    .main-flights th:nth-child(3),
    .main-flights th:nth-child(5) {
        display: none !important;
    }

    .main-flights td::before {
        display: none !important;
    }
    
    .main-flights th.sortable.sorted {
        background-color: transparent !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .main-flights th.sortable {
        -webkit-tap-highlight-color: transparent;
    }
    
    .main-flights tr:hover,
    .flight-details tr:hover {
        background-color: transparent !important;
    }

    .main-flights a,
    .details-block a,
    .flight-details a {
        display: block;
        width: 100%;
        padding: 10px;
        text-align: center;
        margin: 4px 0;
        box-sizing: border-box;
    }

    .link-col a {
        display: block;
        width: 100%;
        padding: 0.6rem;
        text-align: center;
        border-radius: 12px;
    }

    /* Форматирование ячеек внутри Flex-строки */
    .main-flights td:nth-child(1) { /* Направление */
        width: auto;
        max-width: 65%;
        order: 1;
        padding-bottom: 2px;
        font-weight: 600;
        text-align: left;
    }

    .main-flights td:nth-child(4) { /* Цена */
        width: auto;
        max-width: 35%;
        order: 2;
        padding-bottom: 2px;
        text-align: right;
    }

    .main-flights td:nth-child(2) { /* Страна */
        display: block !important;
        width: 65%;
        order: 3;
        font-size: 0.8em;
        color: #666;
        text-align: left;
        padding-top: 0;
        padding-bottom: 10px;
    }

    .main-flights td:nth-child(2) a {
        display: inline !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #666 !important;
    }

    .main-flights td:nth-child(3) { /* Дни */
        display: block !important;
        width: 35%;
        order: 4;
        font-size: 0.8em;
        color: #666;
        text-align: right;
        padding-top: 0;
        padding-bottom: 10px;
    }

    .main-flights td:nth-child(5) { /* Кнопка Найти */
        width: 100%;
        order: 5;
        margin-top: 5px;
    }

    .route-col {
        float: left;
        text-align: left;
        width: 70%;
    }

    .day-col,
    .price-col {
        float: left;
        text-align: left;
        width: 30%;
        clear: none;
    }

    .link-col a {
        display: block;
        width: 100%;
        padding: 8px 16px;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .flight-details tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .flight-details tr td {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 5px 0;
    }

    .flight-details tr td:nth-child(1) {
        flex: 1 0 50%;
        justify-content: flex-start;
        order: 1;
    }

    .flight-details tr td:nth-child(2) {
        flex: 1 0 100%;
        justify-content: flex-start;
        text-align: center;
        order: 3;
    }

    .flight-details tr td:nth-child(3) {
        display: none;
    }

    .flight-details tr td:nth-child(4) {
        text-align: right;
        flex: 1 0 50%;
        justify-content: flex-end;
        order: 2;
    }

    .flight-details tr td:nth-child(5) {
        flex: 1 0 100%;
        justify-content: center;
        order: 4;
    }

    .flight-details tr td:nth-child(6) {
        flex: 1 0 100%;
        justify-content: center;
        order: 5;
        margin-top: 10px;
    }
}

/* Обновленные стили для .toggle-more */
.toggle-more {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* Располагаем элементы вертикально */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    outline: none;
    position: relative;
    z-index: 2;
}

.toggle-more .toggle-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-right: 2px solid #333;
    border-top: 2px solid #333;
    transform: rotate(135deg);
    /* Начальная позиция стрелки */
    transform-origin: center;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    margin-top: 5px;
    /* Отступ между текстом и стрелкой */
}

.toggle-more.expanded .toggle-arrow {
    transform: rotate(315deg);
    /* Поворачиваем стрелку при раскрытии */
}

/* Меняем порядок элементов в зависимости от состояния */
.toggle-more:not(.expanded) .toggle-text {
    order: 1;
    /* Текст выше стрелки */
}

.toggle-more:not(.expanded) .toggle-arrow {
    order: 2;
    /* Стрелка ниже текста */
}

.toggle-more.expanded .toggle-text {
    order: 2;
    /* Текст ниже стрелки */
}

.toggle-more.expanded .toggle-arrow {
    order: 1;
    /* Стрелка выше текста */
}

/* Эффекты при наведении */
.toggle-more:hover .toggle-text {
    color: #f35d4d;
    transition: color 0.3s ease-in-out;
    /* Добавлен плавный переход */
}

.toggle-more:hover .toggle-arrow {
    border-color: #f35d4d;
}


.flight-details {
    position: relative;
}

.flight-details::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.no-gradient .flight-details::after {
    display: none;
}

.extra-flight {
    transition: all 0.3s ease-out;
}

.details-row {
    display: none;
}

.extra-flight:nth-child(6) {
    position: relative;
    z-index: 1;
}

.main-flights th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    /* Увеличиваем отступ справа для текста */
}

.main-flights th.sortable.sorted {
    background-color: #f0f8ff;
    /* Подсветка для сортируемого столбца */
}

.main-flights th.sortable::after {
    content: '';
    position: absolute;
    margin-left: 5px;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
    display: inline-block;
    /* Стрелка будет отображаться после текста */
}

.main-flights th.sortable.ascending::after {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #0085ff transparent;
    /* Цвет стрелки вверх */
}

.main-flights th.sortable.descending::after {
    border-width: 6px 6px 0 6px;
    border-color: #0085ff transparent transparent transparent;
    /* Цвет стрелки вниз */
}

/* Стили для ссылок в первом столбце, чтобы они выглядели как обычный текст */
.main-flights td:first-child a {
    display: inline;
    padding: 0;
    color: inherit;
    background-color: transparent;
    border: none;
    text-decoration: underline;
    transition: none;
}

.main-flights td:first-child a:hover {
    background-color: transparent;
    color: var(--tp-brand-blue-color);
    text-decoration: underline;
}

/* Удаление рамок и фона для ссылок, чтобы они не выглядели как кнопки */
.main-flights td:first-child {
    padding: 10px;
    text-align: left;
}

.main-flights td:first-child a {
    text-decoration: none;
}

.main-flights td:first-child a:hover {
    text-decoration: underline;
    color: var(--tp-hover-blue-color);
}


/* админка плагина */
.table-scroll {
    max-height: 30vh;
    /* Высота контейнера 30% от высоты окна */
    overflow-y: auto;
    /* Вертикальный скролл */
    overflow-x: auto;
    /* Горизонтальный скролл */
}

.table-scroll table {
    width: 100%;
    table-layout: auto;
}

.table-scroll th,
.table-scroll td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Стили для вкладок */
.worldfly-tabs {
    width: 100%;
    padding-bottom: 1.5rem;
    font-family: Arial, sans-serif;
    /* Обновление шрифта для современного вида */
}

.worldfly-tabs .worldfly-tabs-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #fff;
    margin: 1.5rem 0 1.5rem 0;
}

.worldfly-tabs .tab-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    border-bottom: none !important;
    flex-grow: 1 !important;
}

.worldfly-header-inner {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border-bottom: 2px solid #e0e0e0 !important;
    background: #fff !important;
    min-height: 52px !important;
    width: 100% !important;
}

.worldfly-search-trigger,
.worldfly-scroll-top-btn,
.worldfly-fullscreen-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    margin: 1px 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background-color 0.2s;
}

.worldfly-search-trigger:hover,
.worldfly-scroll-top-btn:hover,
.worldfly-fullscreen-btn:hover {
    background-color: #f0ecf0;
}

.worldfly-search-trigger svg,
.worldfly-scroll-top-btn svg,
.worldfly-fullscreen-btn svg {
    fill: #555;
    transition: fill 0.2s;
}

.worldfly-search-trigger:hover svg,
.worldfly-search-trigger:focus svg,
.worldfly-scroll-top-btn:hover svg,
.worldfly-scroll-top-btn:focus svg,
.worldfly-fullscreen-btn:hover svg,
.worldfly-fullscreen-btn:focus svg {
    fill: #f35d4d;
}

@keyframes worldflyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.worldfly-tabs:not(.is-fullscreen) .worldfly-mobile-fullscreen svg {
    animation: worldflyPulse 2s infinite ease-in-out;
}

.worldfly-mobile-fullscreen:active {
    transform: scale(0.9);
}


.worldfly-tabs .tab-links li {
    flex: 1;
    margin: 0;
}

.worldfly-tabs .tab-links a {
    display: block;
    padding: 15px;
    text-align: center;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.worldfly-tabs .tab-links a:hover {
    color: #000;
}

.worldfly-tabs .tab-links .active a {
    color: #f35d4d;
    /* Акцентный цвет для активной вкладки */
    border-bottom: 2px solid #f35d4d;
    /* Подчеркивание активной вкладки */
    font-weight: bold;
}

.worldfly-tabs .tab-content {
    background: #fff;
    border-top: none;
    /* Убираем верхнюю границу, чтобы соединить с вкладками */
}

.worldfly-tabs .tab {
    display: none;
}

.worldfly-tabs .tab.active {
    display: block;
}

.nolink-direction {
    font-weight: bold;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 700px) {
    .worldfly-tabs .tab-links a {
        padding: 10px;
        font-size: 14px;
    }
    
    .worldfly-search-trigger, 
    .worldfly-scroll-top-btn,
    .worldfly-fullscreen-btn {
        width: 40px;
    }
    
    .worldfly-search-trigger:hover, 
    .worldfly-scroll-top-btn:hover,
    .worldfly-fullscreen-btn:hover {
        background-color: transparent !important;
    }
    
    .worldfly-desktop-scroll { display: none !important; }
    .worldfly-mobile-fullscreen { display: flex !important; }
    
    .details-block:first-of-type {
        border-top: 8px solid #f2f2f2;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .worldfly-search-divider,
    .worldfly-scroll-divider {
        margin: 0 4px !important;
    }
    
    .worldfly-search-box .worldfly-search-close {
        width: 40px !important;
    }
}

@media (min-width: 701px) {
    
    .worldfly-desktop-scroll { display: flex !important; }
    .worldfly-mobile-fullscreen { display: none !important; }

    /* прячем второй столбец */
    .russiafly-container .main-flights th:nth-child(2),
    .russiafly-container .main-flights td:nth-child(2) {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
    }

    /* делаем первый шире */
    .russiafly-container .main-flights th:nth-child(1),
    .russiafly-container .main-flights td:nth-child(1) {
        width: 40% !important;
    }

    /* немного перераспределяем остальные,
       чтобы сумма снова была ≈100 % */
    .russiafly-container .main-flights th:nth-child(3),
    .russiafly-container .main-flights td:nth-child(3) {
        width: 20% !important;
    }

    .russiafly-container .main-flights th:nth-child(4),
    .russiafly-container .main-flights td:nth-child(4) {
        width: 22% !important;
    }

    .russiafly-container .main-flights th:nth-child(5),
    .russiafly-container .main-flights td:nth-child(5) {
        width: 18% !important;
    }
}

/* --- Стили для поля поиска --- */
.worldfly-search-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -2px !important;
    background: #fff !important;
    z-index: 10 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    opacity: 0;
    transform: translateX(15px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.worldfly-search-container.search-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.worldfly-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.worldfly-search-box.focused,
.worldfly-search-box.has-input {
    border-bottom-color: #f35d4d !important;
}

.worldfly-search-box:hover,
.worldfly-search-box.focused {
    box-shadow: none !important;
}

.worldfly-search-input {
    flex-grow: 1;
    height: 100% !important;
    padding: 0 8px 0 22px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1.11rem !important;
    outline: none !important;
    background: transparent !important;
    font-family: inherit;
    color: #202124 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.worldfly-search-input::placeholder {
    color: #9aa0a6;
}

.worldfly-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 8px !important;
    height: 100% !important;
    outline: none !important;
    margin: 0 !important;
    min-width: 36px !important;
}

.worldfly-search-box.has-input .worldfly-search-clear {
    display: flex !important;
}

.worldfly-search-clear svg {
    fill: #5f6368 !important;

    transition: fill 0.2s;
    display: block;
    width: 20px !important;
    height: 20px !important;
}

.worldfly-search-clear:hover svg {
    fill: #202124 !important;
}

.worldfly-search-divider,
.worldfly-scroll-divider {
    width: 1px !important;
    height: 30px !important;
    background-color: #dfe1e5 !important;
    margin: 0 8px !important;
    display: block !important;
}

.worldfly-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    width: 60px !important;
    height: 100% !important;
    outline: none !important;
    margin: 0 !important;
    transition: transform 0.1s ease;
}

.worldfly-search-close svg {
    fill: #5f6368 !important;
    transition: fill 0.2s;
    display: block;
    width: 22px !important;
    height: 22px !important;
}

.worldfly-search-close:hover svg {
    fill: #f35d4d !important;
}

.worldfly-search-close:active {
    transform: scale(0.95);
}

/* Fullscreen Mode */
html.worldfly-fullscreen-active,
body.worldfly-fullscreen-active {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
}

.worldfly-tabs.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f7f9fa !important;
    margin: 0 !important;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.worldfly-tabs.is-fullscreen .worldfly-tabs-header {
    margin: 0 !important;
}

.worldfly-tabs.is-fullscreen .worldfly-header-inner,
.worldfly-tabs.is-fullscreen .table-wrapper,
.worldfly-tabs.is-fullscreen .details-block {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
}

.worldfly-tabs.is-fullscreen .table-wrapper {
    max-height: none !important;
    overflow: visible !important;
}

.worldfly-tabs.is-fullscreen .main-flights,
.worldfly-tabs.is-fullscreen .details-block {
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

.worldfly-tabs.is-fullscreen .main-flights th,
.worldfly-tabs.is-fullscreen .main-flights td,
.worldfly-tabs.is-fullscreen .flight-details th,
.worldfly-tabs.is-fullscreen .flight-details td {
    padding-left: 4px !important;
    padding-right: 4px !important;
    min-width: 0 !important;
    word-break: break-word !important;
}

.worldfly-tabs.is-fullscreen .main-flights th:nth-child(4) {
    padding-right: 14px !important;
}

/* Floating Scroll-to-Top Button */
.worldfly-floating-top-btn {
    position: fixed;
    bottom: 25px;
    right: -70px; /* Hidden state */
    width: 40px;
    height: 40px;
    background-color: rgba(243, 93, 77, 0.7);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), background-color 0.2s;
}

.worldfly-floating-top-btn.is-visible {
    right: 20px; /* Visible state */
}

.worldfly-floating-top-btn:hover {
    background-color: rgba(243, 93, 77, 1);
}

.worldfly-floating-top-btn svg {
    fill: #ffffff;
}