flights-root {
    @media (max-width: $media-breakpoint-tablet) {
        padding: 0 24px;
    }

    @media (max-width: $media-breakpoint-mobile) {
        padding: 0 10px;
    }
}

.ap-d-desktop {
    display: none !important;
}
.ap-d-tablet {
    display: none !important;
}
.ap-d-tablet-2 {
    display: none !important;
}
.ap-d-mobile {
    display: none !important;
}

@media (max-width: 1000000px) and (min-width: $media-breakpoint-tablet) {
    .ap-d-desktop {
        display: block !important;
    }
}

@media (max-width: $media-breakpoint-tablet) and (min-width: $media-breakpoint-tablet-min) {
    .ap-d-tablet {
        display: block !important;
    }
}

@media (max-width: $media-breakpoint-small-tablet) and (min-width: $media-breakpoint-small-tablet-min) {
    .ap-d-tablet-2 {
        display: block !important;
    }
}

@media (max-width: $media-breakpoint-mobile) {
    .ap-d-mobile {
        display: block !important;
    }
}

@media (max-width: $media-breakpoint-tablet) {
    .footer .main-module__footer {
        margin-top: $space-xl;
    }

    .city-autocomplete-popup {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: $media-breakpoint-desktop) {
    .main-module__header__link-buy {
        visibility: hidden;
    }
}

@media (max-width: $media-breakpoint-mobile) {
    flights-page-tabs .tabs,
    schedule-direction-switch .tabs {
        .tabs__tab {
            height: $button-height--mobile;
        }
    }

    .footer .main-module__footer {
        margin-top: $space-m;
    }

    board-search-result section.frame {
        border-radius: $border-radius !important;
    }

    page-empty-list section.empty-list {
        padding: 40px;
        padding-top: 150px;
        border-radius: $border-radius;
        background-position: center 40px;
        background-size: 65px auto;

        .text-header {
            text-align: center;
            margin-bottom: $space-m;
        }

        .text-info {
            max-width: 100% !important;
        }
    }
}
