/* Listing detail information polish.
   The legacy disclosure panel used position: sticky, which made Item specifics
   hang on screen while the rest of the product page scrolled. Detail content
   should move naturally with the page, like the rest of the marketplace. */

.app-route-detail .disclosure-panel,
.app-route-detail #item-specifics {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    align-self: stretch !important;
}

/* Replace the old flat square block with a softer marketplace card. */
.app-route-detail #item-specifics {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(18px, 2vw, 24px) !important;
    overflow: hidden !important;
    border: 1px solid var(--fx-line, rgba(127, 145, 170, .24)) !important;
    border-radius: 20px !important;
    background: var(--fx-panel, #ffffff) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06) !important;
}

.app-route-detail #item-specifics > h2 {
    margin: 0 0 14px !important;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em !important;
}

/* Specifics read as clean key/value rows instead of one heavy filled slab. */
.app-route-detail #item-specifics .status-list {
    display: grid !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.app-route-detail #item-specifics .status-list > div {
    display: grid !important;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr) !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fx-line, rgba(127, 145, 170, .2)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.app-route-detail #item-specifics .status-list > div:last-child {
    border-bottom: 0 !important;
}

.app-route-detail #item-specifics .status-list dt,
.app-route-detail #item-specifics .status-list dd {
    min-width: 0 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.app-route-detail #item-specifics .status-list dt {
    color: var(--fx-muted, #667085) !important;
    font-weight: 500 !important;
}

.app-route-detail #item-specifics .status-list dd {
    color: var(--fx-text, #15171a) !important;
    font-weight: 750 !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
}

/* Warning/safety notes in the item details should feel intentional, not like
   large square dark blocks. Use a compact rounded callout with a small accent. */
.app-route-detail #item-specifics .warning-box,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box {
    position: relative !important;
    margin: 16px 0 0 !important;
    padding: 15px 16px 15px 18px !important;
    overflow: hidden !important;
    border: 1px solid var(--fx-line, rgba(127, 145, 170, .22)) !important;
    border-radius: 14px !important;
    background: var(--fx-panel-2, #f7f8fa) !important;
    box-shadow: none !important;
}

.app-route-detail #item-specifics .warning-box::before,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--fx-blue, #3665f3);
}

.app-route-detail #item-specifics .warning-box strong,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box strong {
    display: block !important;
    margin: 0 0 4px !important;
    font-size: .94rem !important;
    line-height: 1.3 !important;
}

.app-route-detail #item-specifics .warning-box p,
.app-route-detail #item-specifics .warning-box small,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box p,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box small {
    margin: 0 !important;
    color: var(--fx-muted, #667085) !important;
    line-height: 1.5 !important;
}

/* Specialist equipment data follows the same clean row language. */
.app-route-detail #item-specifics .app-detail-label,
.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-detail-label {
    display: inline-flex !important;
    width: fit-content !important;
    margin: 18px 0 5px !important;
    padding: 5px 9px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--fx-blue, #3665f3) 12%, transparent) !important;
    color: var(--fx-blue, #3665f3) !important;
    font-size: .7rem !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

html[data-theme="dark"] body.app-route-detail #item-specifics {
    border-color: var(--fx-line, rgba(161, 183, 214, .18)) !important;
    background: var(--fx-panel, #101620) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .18) !important;
}

html[data-theme="dark"] body.app-route-detail #item-specifics .status-list dt {
    color: var(--fx-muted, #9ba8ba) !important;
}

html[data-theme="dark"] body.app-route-detail #item-specifics .status-list dd {
    color: var(--fx-text, #f5f8fc) !important;
}

html[data-theme="dark"] body.app-route-detail #item-specifics .warning-box,
html[data-theme="dark"] body.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box {
    border-color: var(--fx-line, rgba(161, 183, 214, .18)) !important;
    background: var(--fx-panel-2, #151d29) !important;
}

@media (max-width: 900px) {
    .app-route-detail #item-specifics {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .app-route-detail #item-specifics .status-list > div {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
        min-height: 44px !important;
        padding: 10px 0 !important;
    }

    .app-route-detail #item-specifics .warning-box,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box {
        border-radius: 12px !important;
    }
}
