/* The markup transform is mobile-only. These defensive rules preserve readable
   rows if a phone/tablet crosses the breakpoint after rotation or window resize. */
@media (min-width: 901px) {
    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-main,
    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-row-value {
        display: grid !important;
        gap: 4px !important;
        min-width: 0 !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .app-route-detail .fx-ebay-fulfilment .fx-ebay-delivery-disclosure > summary,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-condition-link {
        min-height: 68px !important;
        display: grid !important;
        grid-template-columns: 86px minmax(0, 1fr) 24px !important;
        gap: 12px !important;
        align-items: center !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--fx-line, rgba(127, 145, 170, .28)) !important;
        text-decoration: none !important;
    }

    .app-route-detail .fx-ebay-fulfilment .fx-ebay-delivery-body {
        display: grid !important;
        gap: 14px !important;
        padding: 0 0 20px 98px !important;
    }
}

@media (max-width: 900px) {
    .app-route-detail .fx-ebay-purchase-panel .auction-status > .fx-ebay-auction-main {
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .auction-status > .fx-ebay-auction-main .fx-ebay-auction-price {
        display: block !important;
        margin: 0 !important;
        color: var(--fx-text, #f5f7fb) !important;
        font-size: clamp(2rem, 10vw, 2.55rem) !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: -.035em !important;
        text-transform: none !important;
        white-space: normal !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-meta span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: normal !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-breakdown {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--fx-muted, #9eabba) !important;
        font-size: .88rem !important;
        font-weight: 400 !important;
        line-height: 1.45 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: normal !important;
    }

    .app-route-detail .fx-ebay-fulfilment,
    .app-route-detail .fx-ebay-fulfilment details,
    .app-route-detail .fx-ebay-fulfilment summary {
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-fulfilment .fx-ebay-delivery-disclosure > summary,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-condition-link {
        border-radius: 0 !important;
        background: transparent !important;
    }

    .app-route-detail .fx-ebay-fulfilment .fx-ebay-row-label,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-row-value,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-row-value strong,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-row-value small {
        margin: 0 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
}
