/* Listing detail: photo-first marketplace hierarchy with a privacy-safe route estimate. */
.app-detail-seller-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
}
.app-detail-seller-identity .seller-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #10275e;
    background: #79adff;
    font-size: 22px;
    font-weight: 900;
}
.app-detail-seller-identity > div { flex: 1; min-width: 0; }
.app-detail-seller-identity strong,
.app-detail-seller-identity small { display: block; }
.app-detail-seller-identity strong { font-size: 17px; }
.app-detail-seller-identity small { margin-top: 3px; color: #6a6a6a; }
.app-detail-seller-identity form { margin: 0; }
.app-seller-message {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: inherit;
    border: 1px solid #8a8a8a;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.app-fulfilment-card {
    display: grid;
    gap: 13px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #dedede;
    border-radius: 18px;
    background: #f8f8f8;
}
.app-fulfilment-card h2 { margin: 0; font-size: 19px; }
.app-postage-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}
.app-postage-line span:last-child {
    padding: 4px 9px;
    border-radius: 999px;
    color: #2451b8;
    background: #e8f0ff;
    font-size: 12px;
    font-weight: 800;
}
.app-distance-line { margin: 0; line-height: 1.55; }
.app-distance-line a { color: #2f62d9; font-weight: 750; }
.app-postcode-form { display: grid; gap: 7px; margin: 2px 0 0; }
.app-postcode-form label,
.app-owner-dispatch-location label { font-size: 13px; font-weight: 800; }
.app-postcode-form > div,
.app-owner-dispatch-location form > div { display: flex; gap: 8px; }
.app-postcode-form input,
.app-owner-dispatch-location input {
    min-width: 0;
    flex: 1;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #a9a9a9;
    border-radius: 10px;
    color: #161616;
    background: #fff;
    font: inherit;
    text-transform: uppercase;
}
.app-postcode-form button,
.app-owner-dispatch-location button {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #3665f3;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.app-postcode-form small,
.app-owner-dispatch-location small { color: #686868; line-height: 1.45; }
.app-postcode-error { color: #c8203a !important; font-weight: 700; }
.app-condition-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding-top: 13px;
    border-top: 1px solid #d6d6d6;
}
.app-condition-row span { color: #6a6a6a; }
.app-condition-row strong { text-align: right; }
.app-condition-row a { color: inherit; text-decoration: none; }
.app-estimate-explainer summary,
.app-owner-dispatch-location summary {
    color: #2f62d9;
    font-weight: 750;
    cursor: pointer;
}
.app-estimate-explainer p { margin: 8px 0 0; color: #686868; line-height: 1.5; }
.app-owner-dispatch-location {
    padding-top: 13px;
    border-top: 1px solid #d6d6d6;
}
.app-owner-dispatch-location form { display: grid; gap: 7px; margin-top: 12px; }
.app-mobile-action-stack { margin: 10px 0; }
.app-detail-outline-action {
    width: 100%;
    min-height: 54px;
    border: 2px solid #4d91ff;
    border-radius: 999px;
    color: #4d91ff;
    background: transparent;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
}
.app-detail-outline-action.is-saved { color: #fff; background: #235fcc; }
.app-watch-activity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    padding: 18px;
    border-radius: 15px;
    background: #ededed;
}
.app-watch-activity > span {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #161616;
    font-size: 25px;
}
.app-watch-activity p { margin: 0; line-height: 1.45; }

@media (max-width: 767px) {
    .app-route-detail .app-main-image img { object-fit: contain; }
    .app-route-detail .app-product-summary h1 {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.12;
        letter-spacing: -.8px;
    }

    /* Keep the buying/auction summary clear without two oversized boxed panels
       fighting for width on a phone. */
    .app-route-detail .app-purchase-panel {
        padding: 16px !important;
        border-radius: 18px !important;
    }
    .app-route-detail .app-purchase-panel .auction-status {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 !important;
        margin: 0 0 14px !important;
        padding: 0 0 14px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--fx-line, rgba(127, 145, 170, .24)) !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    .app-route-detail .app-purchase-panel .auction-status > div {
        min-height: 0 !important;
        padding: 0 12px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .app-route-detail .app-purchase-panel .auction-status > div + div {
        padding: 0 0 0 12px !important;
        border-left: 1px solid var(--fx-line, rgba(127, 145, 170, .24)) !important;
    }
    .app-route-detail .app-purchase-panel .auction-status span,
    .app-route-detail .app-purchase-panel .auction-status strong,
    .app-route-detail .app-purchase-panel .auction-status small {
        display: block !important;
    }
    .app-route-detail .app-purchase-panel .auction-status span {
        margin: 0 !important;
        font-size: .72rem !important;
        line-height: 1.2 !important;
        letter-spacing: .08em !important;
        text-transform: uppercase;
    }
    .app-route-detail .app-purchase-panel .auction-status strong {
        margin: 5px 0 0 !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -.025em !important;
    }
    .app-route-detail .app-purchase-panel .auction-status > div:last-child strong {
        font-size: clamp(.98rem, 4.4vw, 1.16rem) !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }
    .app-route-detail .app-purchase-panel .auction-status small {
        margin: 6px 0 0 !important;
        font-size: .76rem !important;
        line-height: 1.35 !important;
    }
    .app-route-detail .app-purchase-panel > .warning-box {
        margin: 12px 0 !important;
        padding: 14px !important;
    }
    .app-route-detail .app-purchase-panel > form {
        margin-top: 10px !important;
    }

    .app-route-detail .purchase-price strong { font-size: clamp(1.65rem, 8vw, 2.2rem); }
    .app-route-detail .app-fulfilment-card {
        padding: 18px 0;
        border-width: 1px 0;
        border-radius: 0;
    }

    /* The detail-page recommendation rail must use the same compact card rhythm
       as the main marketplace instead of nearly full-width cards. */
    .app-route-detail .app-similar-feed {
        padding-top: 18px !important;
        padding-bottom: 24px !important;
    }
    .app-route-detail .app-similar-feed .app-feed-heading {
        margin-bottom: 14px !important;
    }
    .app-route-detail .app-similar-feed .app-feed-heading h2 {
        margin: 0 !important;
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
    }
    .app-route-detail .app-similar-feed .app-feed-heading p {
        margin: 5px 0 0 !important;
        font-size: .9rem !important;
        line-height: 1.4 !important;
    }
    .app-route-detail .app-similar-feed .app-product-rail {
        width: 100% !important;
        max-width: 100% !important;
        grid-auto-columns: clamp(156px, 42vw, 188px) !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 4px 10px 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
    .app-route-detail .app-similar-feed .app-product-rail-item > .listing-card {
        width: 100% !important;
        min-height: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .app-route-detail .app-similar-feed .listing-card-media {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border: 1px solid var(--fx-line, rgba(127, 145, 170, .24)) !important;
        border-radius: 14px !important;
        background: var(--fx-panel-2, #f5f6f8) !important;
    }
    .app-route-detail .app-similar-feed .listing-card-media .media-placeholder {
        padding: 10px !important;
        font-size: .7rem !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
    .app-route-detail .app-similar-feed .listing-card-body {
        padding: 9px 0 0 !important;
        gap: 5px !important;
        background: transparent !important;
    }
    .app-route-detail .app-similar-feed .listing-card-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 28px !important;
        gap: 4px !important;
        align-items: start !important;
    }
    .app-route-detail .app-similar-feed .listing-card-title-row h3 {
        margin: 0 !important;
        min-height: 2.55em !important;
        font-size: .91rem !important;
        line-height: 1.28 !important;
        font-weight: 600 !important;
    }
    .app-route-detail .app-similar-feed .app-card-menu {
        width: 28px !important;
        min-width: 28px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
    }
    .app-route-detail .app-similar-feed .app-card-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 6px !important;
        margin: 0 !important;
        min-height: 0 !important;
        font-size: .78rem !important;
        line-height: 1.28 !important;
    }
    .app-route-detail .app-similar-feed .app-card-meta span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .app-route-detail .app-similar-feed .app-card-meta span::before,
    .app-route-detail .app-similar-feed .app-card-meta span::after,
    .app-route-detail .app-similar-feed .app-card-meta span + span::before {
        content: none !important;
        display: none !important;
    }
    .app-route-detail .app-similar-feed .app-card-meta span:nth-child(n+3),
    .app-route-detail .app-similar-feed .fault-summary {
        display: none !important;
    }
    .app-route-detail .app-similar-feed .listing-card-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        margin: 3px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .app-route-detail .app-similar-feed .listing-card-footer .price {
        margin: 0 !important;
        font-size: 1.08rem !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
    }
    .app-route-detail .app-similar-feed .listing-card-footer small,
    .app-route-detail .app-similar-feed .delivery-note,
    .app-route-detail .app-similar-feed .card-auction-line {
        margin: 0 !important;
        font-size: .76rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 430px) {
    .app-route-detail .app-similar-feed .app-product-rail {
        grid-auto-columns: clamp(148px, 43vw, 178px) !important;
        gap: 10px !important;
    }
}

@media (min-width: 768px) {
    .app-detail-seller-identity { padding-bottom: 12px; border-bottom: 1px solid #e2e2e2; }
}


/* Live demand, sales velocity and stock activity on the product page. */
.app-live-activity-stack {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.app-live-activity-stack .app-live-activity {
    margin: 0;
}
.app-live-activity[hidden] {
    display: none !important;
}
.app-live-activity > span i {
    display: block;
    line-height: 1;
}
.app-live-activity--hot {
    border: 1px solid rgba(255, 122, 63, .22);
}
.app-live-activity--stock {
    border: 1px solid rgba(73, 167, 113, .22);
}
.app-live-activity--stock.is-low-stock {
    border-color: rgba(255, 172, 58, .35);
}
