@media (max-width: 575.98px) {
    #splitViewRow.rt-domestic-layout .mmt-timeline-container.d-none.d-md-flex,
    #splitViewRow.rt-domestic-layout .mmt-summary-timeline.d-none.d-md-flex,
    #splitViewRow.rt-domestic-layout .mmt-flight-header.d-none.d-md-block,
    #splitViewRow.rt-domestic-layout .mmt-summary-airline.d-none.d-md-block {
        display: none !important;
    }

    #splitViewRow.rt-domestic-layout .mmt-leg-mobile-card,
    #splitViewRow.rt-domestic-layout .trip-summary-row .d-md-none,
    #splitViewRow.rt-domestic-layout .mmt-leg-summary-row .d-md-none {
        display: flex !important;
    }

    .search-results-row .trip-summary-row,
    .search-results-row .mmt-leg-summary-row {
        display: block !important;
    }

    .search-results-row .result-card {
        margin-bottom: 0.65rem !important;
    }

    .search-results-row .result-card,
    .search-results-row .filterable-flight,
    .search-results-row .split-view-card {
        overflow: visible !important;
    }

    .search-results-row .result-card .card-body > .p-4,
    .search-results-row .result-card .rt-card-shell {
        padding-right: 3rem !important;
    }

    .search-results-row .tripcart-picker-icon {
        top: 8px !important;
        right: 10px !important;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(148, 163, 184, 0.55);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .search-results-row .tripcart-picker-icon .fs-4 {
        font-size: 1.2rem !important;
    }

    .search-results-row .mmt-footer.oneway-footer .cancellation-policy {
        display: none !important;
    }

    .search-results-row .mmt-footer.oneway-footer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "status action"
            "disclosure disclosure";
        align-items: start;
        column-gap: 10px;
        row-gap: 6px;
    }

    .search-results-row .mmt-footer.oneway-footer .left-group {
        display: contents;
    }

    .search-results-row .mmt-footer.oneway-footer .baggage-info {
        grid-area: status;
        min-width: 0;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        align-self: center;
        color: #475569;
        font-size: 0.64rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results-row .mmt-footer.oneway-footer .baggage-info i {
        font-size: 0.8rem;
        opacity: 0.75;
        flex: 0 0 auto;
    }

    .search-results-row .mmt-footer.oneway-footer .baggage-info span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results-row .mmt-footer.oneway-footer .flight-details {
        grid-area: disclosure;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .search-results-row .mmt-footer.oneway-footer .right-group {
        grid-area: action;
        justify-self: stretch;
        min-width: 0;
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 2px !important;
    }

    .search-results-row .mmt-footer.oneway-footer .price-container {
        min-width: 0 !important;
        width: auto;
        align-items: flex-end !important;
        display: flex;
        flex-direction: column;
    }

    .search-results-row .mmt-footer.oneway-footer .more-prices-inline {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 86px;
        border-radius: 999px;
        padding: 0;
        font-size: 0.6rem;
        font-weight: 800;
        color: #2563eb;
        background: transparent;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results-row .more-prices-mobile-layout {
        display: none !important;
    }

    .search-results-row .more-prices-desktop-layout {
        display: inline-flex !important;
    }

    @media (max-width: 1199.98px) {
        .search-results-row .more-prices-mobile-layout {
            display: inline-flex !important;
        }

        .search-results-row .more-prices-desktop-layout {
            display: none !important;
            width: 0 !important;
            max-width: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            overflow: hidden !important;
        }
    }

    .search-results-row .mmt-footer.oneway-footer .price-display.split-price-display {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        width: auto;
    }

    .search-results-row .mmt-footer.oneway-footer .book-now-btn {
        min-width: 74px;
        padding: 0.38rem 0.62rem !important;
        align-self: center;
        font-size: 0.66rem !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card {
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card .card-body {
        padding: 0 !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card .rt-card-shell {
        display: block !important;
        padding: 8px !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card) {
        border: 1px solid #e2e8f0 !important;
        border-left: 4px solid transparent !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04) !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).rt-domestic-card-selected,
    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).selected {
        border-color: #1d4ed8 !important;
        background: linear-gradient(180deg, rgba(37, 99, 235, 0.10) 0%, rgba(255, 255, 255, 0.98) 38%, #ffffff 100%) !important;
        box-shadow:
            0 0 0 2px rgba(59, 130, 246, 0.16),
            0 18px 38px rgba(37, 99, 235, 0.18) !important;
        z-index: 1031;
        overflow: visible !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).rt-domestic-card-selected::after,
    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).selected::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 10px !important;
        bottom: 10px !important;
        width: 5px !important;
        border-radius: 0 999px 999px 0 !important;
        background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85) !important;
        display: block !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).rt-domestic-card-selected .rt-mobile-card-shell,
    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card).selected .rt-mobile-card-shell {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 246, 255, 0.56) 100%) !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card) .rt-card-shell {
        display: none !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card) .rt-mobile-card-shell {
        display: block !important;
        padding: 0 !important;
        border-radius: inherit;
        overflow: hidden;
    }

    #splitViewRow.rt-domestic-layout .split-view-card:not(.rt-combo-unified-card) .rt-mobile-card-body {
        padding: 8px !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card .trip-summary-row,
    #splitViewRow.rt-domestic-layout .split-view-card .mmt-leg-summary-row {
        min-height: 0 !important;
        padding: 0 !important;
    }

    #splitViewRow.rt-domestic-layout .split-view-card .trip-summary-row > .d-md-none,
    #splitViewRow.rt-domestic-layout .split-view-card .mmt-leg-summary-row > .d-md-none {
        width: 100%;
    }

    #splitViewRow.rt-domestic-layout .split-view-card .rt-mobile-select-btn {
        white-space: nowrap;
    }

    .search-results-row .mmt-footer.oneway-footer .flight-details-link {
        font-size: 0;
    }

    .search-results-row .result-card .p-4 {
        padding: 8px !important;
    }

    .search-results-row .mmt-trip-summary {
        gap: 0.6rem !important;
    }

    .mmt-leg-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .mmt-leg-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .mmt-leg-mobile-airline {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .mmt-leg-mobile-logo {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.45);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
        padding: 3px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .mmt-leg-mobile-airline-text {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        font-size: 0.84rem;
        font-weight: 800;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mmt-leg-mobile-airline-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mmt-leg-mobile-refund {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 0;
        line-height: 1;
    }

    .mmt-leg-mobile-refund::before {
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0.1px;
    }

    .mmt-leg-mobile-refund[data-refund-type="1"]::before {
        content: "₹✓";
        color: #16a34a;
    }

    .mmt-leg-mobile-refund[data-refund-type="2"]::before {
        content: "₹⚠";
        color: #d97706;
    }

    .mmt-leg-mobile-refund[data-refund-type="0"]::before {
        content: "₹✕";
        color: #dc2626;
    }

    .mmt-leg-mobile-duration {
        flex: 0 0 auto;
        font-size: 0.76rem;
        font-weight: 800;
        color: #475569;
        white-space: nowrap;
    }

    .mmt-leg-mobile-timing {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 10px;
        width: 100%;
    }

    .mmt-leg-mobile-side {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mmt-leg-mobile-station {
        font-size: 0.8rem;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .mmt-leg-mobile-terminal {
        font-size: 0.74rem;
        font-weight: 800;
        color: rgba(15, 23, 42, 0.62);
        letter-spacing: 0.2px;
    }

    .mmt-leg-mobile-time {
        font-size: 1.18rem;
        font-weight: 900;
        line-height: 1;
        color: #0f172a;
        white-space: nowrap;
    }

    .mmt-leg-mobile-to {
        text-align: right;
    }

    .mmt-leg-mobile-route {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 2px;
        gap: 2px;
    }

    .mmt-leg-mobile-route-line {
        width: 100%;
        height: 18px;
        position: relative;
    }

    .mmt-leg-mobile-route-line::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        background: rgba(15, 23, 42, 0.22);
        transform: translateY(-50%);
        border-radius: 999px;
    }

    .mmt-leg-mobile-route-dot {
        position: absolute;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.35);
        transform: translate(-50%, -50%);
    }

    .mmt-leg-mobile-route-arrow {
        position: absolute;
        top: 50%;
        right: -2px;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 8px solid rgba(15, 23, 42, 0.35);
        transform: translateY(-50%);
    }

    .mmt-leg-mobile-stops {
        font-size: 0.62rem;
        font-weight: 800;
        color: rgba(71, 85, 105, 0.95);
        line-height: 1;
        white-space: nowrap;
    }

    .search-results-row .price-dropdown,
    .search-results-row .mmt-footer .price-dropdown {
        left: 50% !important;
        right: auto !important;
        width: min(286px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        position: fixed !important;
        top: auto !important;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        transform: translateX(-50%) translateY(8px) scale(0.985) !important;
        transform-origin: top center;
        border-radius: 14px !important;
        max-height: min(272px, calc(100dvh - 200px)) !important;
        overflow: auto !important;
        overscroll-behavior: contain;
        box-sizing: border-box;
        padding: 0 0 calc(4px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 255, 0.99) 100%) !important;
        border: 1.5px solid rgba(100, 116, 139, 0.5) !important;
        box-shadow:
            0 20px 38px rgba(51, 65, 85, 0.26),
            0 8px 16px rgba(100, 116, 139, 0.20),
            0 2px 6px rgba(15, 23, 42, 0.10),
            inset 0 2px 0 rgba(255, 255, 255, 0.85),
            inset 0 -1px 0 rgba(148, 163, 184, 0.12) !important;
        isolation: isolate;
    }

    .search-results-row .price-dropdown::before,
    .search-results-row .mmt-footer .price-dropdown::before {
        display: none;
    }

    .search-results-row .price-dropdown::after,
    .search-results-row .mmt-footer .price-dropdown::after {
        display: none;
    }

    .search-results-row .price-dropdown > *,
    .search-results-row .mmt-footer .price-dropdown > * {
        position: relative;
        z-index: 1;
    }

    .search-results-row .price-dropdown.show,
    .search-results-row .mmt-footer .price-dropdown.show {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }

    .search-results-row .price-dropdown .dropdown-header,
    .search-results-row .mmt-footer .price-dropdown .dropdown-header {
        padding: 8px 10px !important;
        font-size: 0.66rem !important;
        font-weight: 800;
        letter-spacing: 0.2px;
        color: #1e3a8a;
        background: linear-gradient(180deg, rgba(237, 245, 255, 0.98) 0%, rgba(227, 238, 255, 0.98) 100%);
        border-bottom: 1px solid rgba(191, 219, 254, 0.95);
        border-radius: 14px 14px 0 0;
        margin: 0 0 2px;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .search-results-row .price-dropdown .price-option,
    .search-results-row .mmt-footer .price-option {
        display: grid !important;
        grid-template-columns: 16px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 8px 10px !important;
        white-space: normal !important;
        border: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 0;
        background: rgba(255, 255, 255, 0.18);
        box-shadow: none;
        min-height: 0;
    }

    .search-results-row .price-dropdown .price-option:last-child,
    .search-results-row .mmt-footer .price-option:last-child {
        border-bottom: 0;
        margin-bottom: 0 !important;
    }

    .search-results-row .price-dropdown .price-option.selected,
    .search-results-row .mmt-footer .price-option.selected {
        background: linear-gradient(180deg, rgba(234, 244, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%) !important;
        box-shadow:
            inset 2px 0 0 #2563eb,
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .search-results-row .price-dropdown .price-option-quote-cb {
        margin-right: 0 !important;
        margin-top: 1px;
        accent-color: #2563eb;
        width: 15px;
        height: 15px;
    }

    .search-results-row .price-dropdown .price-option-details,
    .search-results-row .mmt-footer .price-option-details {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 3px;
        min-width: 0;
    }

    .search-results-row .price-dropdown .option-price,
    .search-results-row .mmt-footer .option-price {
        font-size: 0.78rem !important;
        font-weight: 800;
        line-height: 1;
        color: #0f172a;
    }

    .search-results-row .price-dropdown .option-category,
    .search-results-row .mmt-footer .option-category {
        width: 100%;
        justify-content: flex-start !important;
    }

    .search-results-row .price-dropdown .option-category .category-badge,
    .search-results-row .mmt-footer .option-category .category-badge {
        max-width: 100%;
        font-size: 0.56rem;
        padding: 2px 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-header-actions {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-header-actions .split-sort {
        flex: 1 1 100%;
        min-width: 0;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-jump-btn {
        flex: 0 0 auto;
        border: 1px solid rgba(148, 163, 184, 0.55);
        background: rgba(248, 250, 252, 0.92);
        color: #1d4ed8;
        border-radius: 999px;
        padding: 8px 10px;
        font-size: 0.74rem;
        font-weight: 900;
        letter-spacing: 0.2px;
        line-height: 1;
        white-space: nowrap;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-jump-btn:hover,
    #splitViewRow.rt-domestic-layout .rt-mobile-jump-btn:focus {
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
        border-color: #2563eb;
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-wrap {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        color: #334155;
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.15;
        cursor: pointer;
        user-select: none;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-wrap .rt-selected-only-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 1px;
        height: 1px;
        margin: 0;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-switch {
        position: relative;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        width: 34px;
        height: 20px;
        border-radius: 999px;
        background: #dbe4f0;
        border: 1px solid rgba(148, 163, 184, 0.7);
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-switch::after {
        content: "";
        position: absolute;
        top: 1px;
        left: 1px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
        transition: transform 0.2s ease;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-text {
        min-width: 0;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-toggle:checked + .rt-mobile-selected-only-switch {
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
        border-color: #2563eb;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-toggle:checked + .rt-mobile-selected-only-switch::after {
        transform: translateX(14px);
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-wrap.is-on .rt-mobile-selected-only-switch {
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
        border-color: #2563eb;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-wrap.is-on .rt-mobile-selected-only-switch::after {
        transform: translateX(14px);
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-toggle:focus-visible + .rt-mobile-selected-only-switch {
        outline: 2px solid rgba(37, 99, 235, 0.35);
        outline-offset: 2px;
    }

    #splitViewRow.rt-domestic-layout .rt-mobile-selected-only-wrap.is-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    #splitViewRow.rt-domestic-layout .split-view-card.rt-selected-only-hidden {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .search-results-row .result-card .card-body > .p-4,
    .search-results-row .result-card .rt-card-shell {
        padding-right: 2.85rem !important;
    }

    .price-dropdown {
        width: min(304px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
    }
}

@media (max-width: 412px) {
    .mmt-leg-mobile-time {
        font-size: 1.12rem;
    }
}
