/* Desktop and tablet layout. Phone pages keep the separate mobile theme. */
html body.iflight-pc {
    min-width: 0 !important;
}

body.iflight-pc .sections-wrapper {
    min-width: 0;
}

body.iflight-pc :is(.homepage-banner, #products, #brand, #ShotOn, #DifferentFields, #service),
body.iflight-pc .homepage-banner :is(.swiper-container, .swiper-wrapper, .swiper-slide) {
    min-width: 0 !important;
}

body.iflight-pc .grid-container {
    width: min(1200px, calc(100% - 48px));
}

body.iflight-pc .container {
    min-width: 0 !important;
    max-width: 100%;
}

body.iflight-pc .icp-benefits-note {
    width: min(956px, 100%);
}

body.iflight-pc #site-header .new-header-container,
body.iflight-pc #site-header .new-header-content {
    min-width: 0;
}

body.iflight-pc #site-header .new-header-menu-toggle,
body.iflight-pc #site-header .new-header-compact-all {
    display: none;
}

@media (max-width: 1599px) {
    body.iflight-product-detail .x8v2-bentoGrid_wrapper {
        max-width: calc(100% - 48px);
    }

    body.iflight-product-detail .x8v2-bentoGrid_column {
        min-width: 0;
        flex: 1;
    }

    body.iflight-product-detail .x8v2-bentoGrid_column:first-child {
        flex: 1.4;
    }

    body.iflight-product-detail .x8v2-bentoGrid_column > .x8v2-bento_grid > div {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 1399px) {
    body.iflight-pc .icp-case-layout {
        flex-direction: column;
    }

    body.iflight-pc .icp-case-layout > div {
        width: 100%;
        height: auto;
        flex: auto;
    }

    body.iflight-pc .icp-case-media {
        aspect-ratio: 5 / 3;
    }

    body.iflight-pc :is(.icp-track, .icp-guide) > div > .flex > div {
        height: auto;
    }

    body.iflight-product-detail section :is([class*="container"], [class*="-content"], [class*="-info"], [class*="_wrapper"], [class*="_item"], [class*="_media"], [class*="_desc"], [class*="-title"], .card-wrapper, .section-wrapper, .C-title, .info-icon, .info-take, .a-c-img, .B-info, .titan-textBottom, .titan-d8_point, .overview-desc) {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    body.iflight-product-detail section :is(img, video, model-viewer),
    body.iflight-product-detail section :is(.home-container, .vertical-card, .info-take, .C-container, .B-container, .Antenna-container, .Splitmirror-container) > div {
        min-width: 0;
        max-width: 100%;
    }

    body.iflight-pc #site-header .new-header-content {
        margin-left: 24px;
    }

    body.iflight-pc #site-header :is(.new-header-trigger, .new-header-link) {
        padding-right: 8px;
        padding-left: 8px;
    }

    body.iflight-pc #products .aboutus-pc {
        width: 100% !important;
    }

    body.iflight-product-detail :is(.home-container, .details1-content, .details2-content, .details3-content, .details5-content, .details6-content, .details7-container, .tsview-container, .accessories-container, .Product-container, .chip-title, .parameter, .modelViewer, #view, .pro-swiper, .vdo-size) {
        max-width: calc(100vw - 48px);
    }

    body.iflight-product-detail .media-modal-video {
        max-width: calc(100vw - 48px);
        height: auto;
        aspect-ratio: 16 / 9;
    }

    body.iflight-product-detail .media-modal-video :is(video, iframe) {
        width: 100%;
        height: 100%;
    }

    body.iflight-product-detail .nav-top .nav-content {
        min-width: 0;
        padding-right: 24px;
        padding-left: 24px;
    }

    body.iflight-product-detail .comments-component :is(.comments-container, .comments-horizontal-line) {
        max-width: calc(100vw - 48px);
    }

    /* Legacy product modules share the desktop theme but have their own fixed sizes. */
    body.iflight-product-detail section [class~="min-w-[1200px]"] {
        min-width: 0;
    }

    body.iflight-product-detail :is(.titan-dc_content > ul, .titan-d6_item > div, .f5v3-dc_list, .f5v3-d8_point, .swiper-bottom, .S-control, .overview-desc_sub, .skyviz-sp_list, .x8v2-introBlock_wrapper > p) {
        max-width: 100%;
    }

    body.iflight-product-detail .info-img {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    body.iflight-product-detail .S-model {
        height: auto;
        aspect-ratio: 2 / 1;
    }

    body.iflight-product-detail .S-model img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    body.iflight-product-detail .D-info > img {
        max-width: 80%;
        height: auto !important;
        right: 0 !important;
    }

    body.iflight-product-detail .titan-details3 > div > .flex > div {
        min-width: 0;
        flex: 1 1 0;
    }

    body.iflight-product-detail .x8v2-feature .x8v2-feature_cols {
        min-width: 0;
        flex: 1 1 0;
    }

    body.iflight-product-detail :is(.x8v2-showcaseRow_wrapper, .x8v2-introBlock_wrapper, .x8v2-showcase_wrapper, .x8v2-feature_wrapper, .x8v2-detailsContrast_wrapper, .section-wrapper) {
        max-width: calc(100% - 48px);
    }

    body.iflight-product-detail .c5c7-details10_left {
        min-width: 0;
        flex: 1.4 1 0;
    }

    body.iflight-product-detail .c5c7-details10_right {
        min-width: 0;
        flex: 1 1 0;
    }

    body.iflight-product-detail .c5c7-details10_bottom > div {
        min-width: 0;
        flex: 1 1 0;
    }

    body.iflight-product-detail .c5c7-details10_img .text-box {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 1199px) {
    body.iflight-product-detail .d9-container {
        padding: 32px 24px;
        align-items: center;
    }

    body.iflight-product-detail .d9-container .list-wrapper {
        position: relative;
        top: auto;
        left: auto;
        width: 600px;
        max-width: 100%;
        transform: none;
        overflow: hidden;
    }

    body.iflight-product-detail .d9-container .text-group {
        width: 100%;
    }

    body.iflight-product-detail .d9-container .text-xs {
        margin-bottom: 24px;
    }

    body.iflight-product-detail .d9-container .circle-list {
        margin-top: 24px;
    }

    body.iflight-product-detail .accessories-info {
        gap: 24px;
    }

    body.iflight-product-detail .accessories-info > * {
        min-width: 0;
        flex: 1 1 0;
    }

    body.iflight-product-detail .home-title,
    body.iflight-product-detail .home-title span {
        font-size: clamp(32px, 4vw, 48px);
        line-height: 1.15;
    }

    body.iflight-product-detail .f5v3-d8_point {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    body.iflight-product-detail .x8v2-bentoGrid_wrapper {
        height: auto;
    }

    body.iflight-product-detail .x8v2-bentoGrid_wrapper,
    body.iflight-product-detail .x8v2-bentoGrid_column > .x8v2-bento_grid {
        flex-direction: column;
    }

    body.iflight-product-detail .x8v2-bentoGrid_item {
        width: 100%;
        height: 400px;
        flex: auto;
    }

    body.iflight-product-detail :is(.x8v2-showcaseRow_wrapper, .titan-details3 > div > .flex) {
        flex-direction: column;
    }

    body.iflight-product-detail .x8v2-showcaseRow_cover {
        max-width: 100%;
    }

    body.iflight-product-detail .titan-details3 > div > .flex > div {
        width: 100%;
        flex: auto;
    }
}

@media (max-width: 1279px), (hover: none) and (pointer: coarse) {
    body.iflight-pc #site-header .new-header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        border: 0;
        border-radius: 8px;
        color: #fff;
        background: transparent;
        cursor: pointer;
    }

    body.iflight-pc #site-header .new-header-content {
        flex: 0 1 auto;
        margin-left: 12px;
    }

    body.iflight-pc #site-header .new-header-actions {
        display: flex;
        flex-shrink: 0;
    }

    body.iflight-pc #site-header [data-new-header-nav] {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        padding: 16px 24px 24px;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, .1);
        background: #111;
    }

    body.iflight-pc #site-header.new-header-menu-open {
        background: #111;
    }

    body.iflight-pc #site-header.new-header-menu-open [data-new-header-nav] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    body.iflight-pc #site-header :is(.new-header-menu, .new-header-trigger, .new-header-link) {
        width: 100%;
    }

    body.iflight-pc #site-header :is(.new-header-trigger, .new-header-link) {
        display: flex;
        justify-content: space-between;
        padding: 14px 12px;
        white-space: normal;
    }

    body.iflight-pc #site-header .new-header-panel {
        display: none;
        position: static !important;
        transform: none;
    }

    body.iflight-pc #site-header .new-header-menu.is-open > .new-header-panel {
        display: block;
    }

    body.iflight-pc #site-header .new-header-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0 0 8px;
    }

    body.iflight-pc #site-header .new-header-compact-all {
        display: flex;
    }

    body.iflight-pc #products .aboutus-pc {
        flex-direction: column;
    }

    body.iflight-pc #products .aboutus-pc > div:first-child {
        width: 100% !important;
        height: auto;
        margin-right: 0 !important;
        margin-bottom: 24px;
    }

    body.iflight-product-detail .nav-top :is(.nav-content, .otherinfo) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        height: auto;
        min-height: 64px;
    }

    body.iflight-product-detail .nav-top .otherinfo a.oi {
        margin-right: 0;
    }
}
