/* fixonic-visibility-audit.css */
/* Final cross-page visibility/responsive layer.
 * This file intentionally loads after legacy Fixonic CSS via theme_toggle.html.
 * It prevents fixed-height card clipping, unreadable theme combinations and
 * excessive mobile gutters from resurfacing on individual routes.
 */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

main,
main > *,
.shell,
section,
article,
form,
fieldset,
div {
    min-width: 0;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

:is(h1,h2,h3,h4,p,span,strong,small,a,label,dt,dd,li,button) {
    overflow-wrap: anywhere;
}

/* Never hide card copy because an older phase gave the card/body a fixed size. */
.listing-card,
.app-listing-card,
.app-product-rail-item .listing-card,
.app-explore-grid .listing-card {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

.listing-card-body,
.app-listing-card .listing-card-body,
.app-product-rail-item .listing-card-body {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.listing-card-title-row,
.listing-card-title-row h3,
.listing-card-title-row h3 a,
.fault-summary,
.listing-card-footer,
.delivery-note,
.card-auction-line,
.app-card-meta {
    max-height: none !important;
}

.listing-card-title-row h3 {
    min-height: 0 !important;
    line-height: 1.28 !important;
}

.listing-card-title-row h3 a,
.fault-summary,
.delivery-note,
.card-auction-line,
.app-card-meta span {
    white-space: normal !important;
}

.fault-summary {
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 1.45 !important;
}

.listing-card-footer {
    margin-top: auto !important;
    overflow: visible !important;
    padding-bottom: 2px;
}

/* Media itself should clip; text/content must not. */
.listing-card-media,
.app-listing-card .listing-card-media {
    overflow: hidden !important;
}

/* Homepage rails: use the available phone width and keep a small next-card peek. */
.app-product-rail,
.app-guide-rail,
.app-category-rail {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    scroll-padding-inline: 0 !important;
}

.app-product-rail {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: clamp(220px, 42vw, 290px) !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 0 0 12px !important;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}

.app-product-rail::-webkit-scrollbar { display: none; }
.app-product-rail-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    scroll-snap-align: start;
}

.app-product-rail-item > .listing-card {
    width: 100% !important;
    min-height: 100% !important;
}

/* Homepage rails must collapse the wrapper itself when an internal SKU card or
   unusable media card is suppressed. Hiding only the child leaves an empty grid
   column and can push the next real card off-screen on mobile. */
.app-route-home .app-product-rail-item:has(.app-shadow-variant-listing),
.app-route-home .app-product-rail-item:has(.listing-card-media.has-media-error),
.app-route-home .app-product-rail-item:has(.listing-card-media > .media-placeholder:not(.fx-media-fallback)) {
    display: none !important;
}

/* Empty states must remain readable in either theme. */
.empty-conversations,
.message-empty-state,
.empty-state,
.app-empty-state,
.empty-results,
.no-results,
.empty-list,
.empty-card {
    color: var(--fx-text, #191919) !important;
    border-color: var(--fx-line, #d7dce3) !important;
    background: var(--fx-panel, #fff) !important;
}

:is(.empty-conversations,.message-empty-state,.empty-state,.app-empty-state,.empty-results,.no-results,.empty-list,.empty-card) :is(strong,h1,h2,h3) {
    color: var(--fx-text, #191919) !important;
}

:is(.empty-conversations,.message-empty-state,.empty-state,.app-empty-state,.empty-results,.no-results,.empty-list,.empty-card) :is(p,small,span) {
    color: var(--fx-muted, #667085) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .empty-conversations,
[data-theme="dark"] .message-empty-state,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .app-empty-state,
[data-theme="dark"] .empty-results,
[data-theme="dark"] .no-results,
[data-theme="dark"] .empty-list,
[data-theme="dark"] .empty-card {
    color: #f5f7fb !important;
    border-color: #354153 !important;
    background: #101720 !important;
}

[data-theme="dark"] :is(.empty-conversations,.message-empty-state,.empty-state,.app-empty-state,.empty-results,.no-results,.empty-list,.empty-card) :is(strong,h1,h2,h3) {
    color: #f5f7fb !important;
}

[data-theme="dark"] :is(.empty-conversations,.message-empty-state,.empty-state,.app-empty-state,.empty-results,.no-results,.empty-list,.empty-card) :is(p,small,span) {
    color: #aeb8c8 !important;
}

/* Messaging specifically: no white-on-white / dark-on-dark inherited combinations. */
.message-inbox-shell,
.message-thread-shell {
    width: min(900px, calc(100% - 32px)) !important;
    margin-inline: auto !important;
}

[data-theme="dark"] .conversation-card,
[data-theme="dark"] .message-bubble,
[data-theme="dark"] .message-composer {
    color: #f5f7fb !important;
    border-color: #354153 !important;
    background: #101720 !important;
}

[data-theme="dark"] .conversation-copy small,
[data-theme="dark"] .conversation-card time,
[data-theme="dark"] .message-meta time,
[data-theme="dark"] .composer-actions small {
    color: #aeb8c8 !important;
}

[data-theme="dark"] .is-mine .message-bubble {
    border-color: #355d9c !important;
    background: #13233a !important;
}

/* Forms/tables/cards should grow with their content instead of cropping it. */
:is(.checkout-card,.order-summary-card,.content-card,.app-detail-card,.app-wizard-card,.app-account-links>a,.app-account-links>button,.app-selling-card-list>article,.project-card,.guide-card,.equipment-card) {
    max-height: none !important;
    overflow: visible;
}

table {
    max-width: 100%;
}

/* Protect content from the fixed app-style bottom navigation. */
@media (max-width: 760px) {
    main {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .shell,
    .app-feed-section.shell,
    .app-category-feed.shell,
    .app-shortcuts.shell,
    .app-feed-notice.shell,
    .app-sell-prompt.shell,
    .app-confidence-banner.shell {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        margin-inline: 14px !important;
    }

    .app-feed-heading {
        width: 100% !important;
        margin-inline: 0 !important;
    }

    .app-product-rail {
        grid-auto-columns: min(78vw, 310px) !important;
        gap: 12px !important;
    }

    .app-product-rail .listing-card-body {
        padding: 12px !important;
        gap: 7px !important;
    }

    .app-product-rail .listing-card-title-row h3 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .app-product-rail .fault-summary {
        font-size: .88rem !important;
        line-height: 1.4 !important;
    }

    .app-product-rail .listing-card-footer {
        gap: 4px !important;
    }

    .message-page-hero .shell,
    .message-inbox-shell,
    .message-thread-shell,
    .message-thread-heading {
        width: calc(100% - 28px) !important;
        margin-inline: 14px !important;
    }

    .empty-conversations {
        padding: 28px 16px !important;
    }

    .conversation-card {
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
    }

    .conversation-copy b,
    .conversation-copy small {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .app-results-grid .listing-card {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .app-results-grid .listing-card-body {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Marketplace home follows the efficient mobile rhythm used by mature marketplaces:
       content close to the viewport edge and compact product tiles rather than boxed panels. */
    .app-home-feed .app-feed-section.shell {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 12px !important;
    }

    .app-home-feed .app-feed-heading {
        padding-inline: 0 !important;
    }

    .app-home-feed .app-product-rail {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        margin-right: -12px !important;
        grid-auto-columns: clamp(156px, 42vw, 188px) !important;
        gap: 12px !important;
        padding: 0 12px 10px 0 !important;
        scroll-padding-left: 0 !important;
    }

    .app-home-feed .app-product-rail-item > .listing-card {
        min-height: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-home-feed .app-product-rail .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-home-feed .app-product-rail .listing-card-body {
        padding: 9px 0 0 !important;
        gap: 5px !important;
        background: transparent !important;
    }

    .app-home-feed .app-product-rail .listing-card-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 28px !important;
        gap: 4px !important;
        align-items: start !important;
    }

    .app-home-feed .app-product-rail .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-home-feed .app-product-rail .app-card-menu {
        width: 28px !important;
        min-width: 28px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
    }

    .app-home-feed .app-product-rail .app-card-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 6px !important;
        margin: 0 !important;
        min-height: 0 !important;
        color: var(--fx-muted) !important;
        font-size: .78rem !important;
        line-height: 1.28 !important;
    }

    .app-home-feed .app-product-rail .app-card-meta span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-home-feed .app-product-rail .app-card-meta span::before,
    .app-home-feed .app-product-rail .app-card-meta span::after,
    .app-home-feed .app-product-rail .app-card-meta span + span::before {
        content: none !important;
        display: none !important;
    }

    /* Supplier provenance belongs on the detail page; suppressing it in the narrow rail
       keeps the browse card focused on item, condition, price and delivery. */
    .app-home-feed .app-product-rail .app-card-meta span:nth-child(n+3) {
        display: none !important;
    }

    .app-home-feed .app-product-rail .fault-summary {
        display: none !important;
    }

    .app-home-feed .app-product-rail .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-home-feed .app-product-rail .listing-card-footer .price {
        margin: 0 !important;
        font-size: 1.08rem !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
    }

    .app-home-feed .app-product-rail .listing-card-footer small,
    .app-home-feed .app-product-rail .delivery-note,
    .app-home-feed .app-product-rail .card-auction-line {
        margin: 0 !important;
        font-size: .76rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 430px) {
    .shell,
    .app-feed-section.shell,
    .app-category-feed.shell,
    .app-shortcuts.shell,
    .app-feed-notice.shell,
    .app-sell-prompt.shell,
    .app-confidence-banner.shell,
    .message-page-hero .shell,
    .message-inbox-shell,
    .message-thread-shell,
    .message-thread-heading {
        width: calc(100% - 24px) !important;
        margin-inline: 12px !important;
    }

    .app-product-rail {
        grid-auto-columns: min(82vw, 300px) !important;
    }

    .app-home-feed .app-feed-section.shell {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-inline: 10px !important;
    }

    .app-home-feed .app-product-rail {
        width: calc(100vw - 10px) !important;
        margin-right: -10px !important;
        grid-auto-columns: clamp(148px, 43vw, 178px) !important;
        gap: 10px !important;
        padding-right: 10px !important;
    }
}


/* fixonic-mobile-header-audit.css */
/* Final mobile-header geometry layer. Loaded after the broader visibility audit. */
@media (max-width: 900px) {
    .app-mobile-header {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        padding-top: calc(10px + env(safe-area-inset-top)) !important;
        padding-right: 16px !important;
        padding-bottom: 12px !important;
        padding-left: 16px !important;
    }

    .app-mobile-header > .app-mobile-brand-row,
    .app-mobile-header > .app-mobile-search {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .app-mobile-brand-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .app-mobile-brand {
        min-width: max-content !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .app-mobile-brand strong {
        flex: 0 0 auto !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: clamp(.9rem, 3.8vw, 1.05rem) !important;
        letter-spacing: .06em !important;
    }

    .app-mobile-header-actions {
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .app-mobile-search {
        box-sizing: border-box !important;
        height: 52px !important;
        min-height: 52px !important;
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) 42px !important;
        align-items: center !important;
        column-gap: 10px !important;
        padding: 0 8px 0 14px !important;
        overflow: hidden !important;
        border-radius: 27px !important;
    }

    .app-mobile-search > svg {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        flex: none !important;
    }

    .app-mobile-search input {
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
    }

    .app-search-camera {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        display: grid !important;
        place-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-self: end !important;
        border-radius: 50% !important;
    }

    .app-search-camera svg {
        width: 25px !important;
        height: 25px !important;
        margin: 0 !important;
    }

    /* Keep the compact three-dot icon visually subtle without shrinking the touch target. */
    .app-home-feed .app-product-rail .app-card-menu,
    .app-listing-card .app-card-menu {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        margin-top: -4px !important;
        margin-right: -8px !important;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important;
    }

    .app-home-feed .app-product-rail .app-card-menu svg,
    .app-listing-card .app-card-menu svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 430px) {
    .app-mobile-header {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .app-mobile-search {
        grid-template-columns: 26px minmax(0, 1fr) 40px !important;
        column-gap: 9px !important;
        padding-left: 13px !important;
        padding-right: 7px !important;
    }

    .app-mobile-search > svg {
        width: 26px !important;
        height: 26px !important;
    }

    .app-mobile-search input {
        font-size: 15px !important;
    }

    .app-search-camera {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}

@media (max-width: 350px) {
    .app-mobile-header {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .app-mobile-header-actions {
        gap: 5px !important;
    }

    .app-mobile-search {
        grid-template-columns: 24px minmax(0, 1fr) 38px !important;
        column-gap: 8px !important;
        padding-left: 12px !important;
        padding-right: 6px !important;
    }

    .app-mobile-search > svg {
        width: 24px !important;
        height: 24px !important;
    }

    .app-mobile-search input {
        font-size: 14px !important;
    }

    .app-search-camera {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}


/* fixonic-card-title-clamp-fix.css */
/* Final mobile listing-card treatment.
 * Keep titles consistent and make the homepage "More to explore" grid use the
 * same compact visual language as the other homepage listing rails.
 */
@media (max-width: 760px) {
    .app-listing-card .listing-card-title-row {
        overflow: visible !important;
    }

    .app-listing-card .listing-card-title-row h3 {
        height: auto !important;
        min-height: 2.6em !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        line-height: 1.3 !important;
    }

    .app-listing-card .listing-card-title-row h3 > a {
        display: -webkit-box !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 2.6em !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    /* Compact homepage cards do not repeat the longer fault summary. */
    .app-home-feed .app-product-rail .fault-summary,
    .app-home-feed .app-product-rail-item .fault-summary,
    .app-home-feed .app-explore-grid .fault-summary {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }

    /* "More to explore" keeps its two-column/load-more behaviour, but the cards
       themselves now match the compact borderless cards used everywhere else on
       the mobile homepage. */
    .app-home-feed .app-explore-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start !important;
        gap: 22px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-home-feed .app-explore-grid > * {
        min-width: 0 !important;
        width: 100% !important;
    }

    .app-home-feed .app-explore-grid .listing-card,
    .app-home-feed .app-explore-grid .app-listing-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        gap: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-home-feed .app-explore-grid .listing-card-media {
        width: 100% !important;
        height: auto !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-home-feed .app-explore-grid .listing-card-body {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 5px !important;
        padding: 9px 0 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .app-home-feed .app-explore-grid .listing-card-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        align-items: start !important;
        gap: 4px !important;
    }

    .app-home-feed .app-explore-grid .listing-card-title-row h3 {
        min-height: 2.6em !important;
        font-size: .91rem !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    /* Keep the icon visually compact but preserve the 44x44 mobile touch target. */
    .app-home-feed .app-explore-grid .app-card-menu {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
    }

    .app-home-feed .app-explore-grid .app-card-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 6px !important;
        min-height: 0 !important;
        margin: 0 !important;
        color: var(--fx-muted) !important;
        font-size: .78rem !important;
        line-height: 1.28 !important;
    }

    .app-home-feed .app-explore-grid .app-card-meta span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-home-feed .app-explore-grid .app-card-meta span::before,
    .app-home-feed .app-explore-grid .app-card-meta span::after,
    .app-home-feed .app-explore-grid .app-card-meta span + span::before {
        content: none !important;
        display: none !important;
    }

    .app-home-feed .app-explore-grid .app-card-meta span:nth-child(n+3) {
        display: none !important;
    }

    .app-home-feed .app-explore-grid .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;
        overflow: visible !important;
        border: 0 !important;
    }

    .app-home-feed .app-explore-grid .listing-card-footer .price {
        margin: 0 !important;
        font-size: 1.08rem !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
    }

    .app-home-feed .app-explore-grid .listing-card-footer small,
    .app-home-feed .app-explore-grid .delivery-note,
    .app-home-feed .app-explore-grid .card-auction-line {
        margin: 0 !important;
        font-size: .76rem !important;
        line-height: 1.3 !important;
    }
}


/* fixonic-no-title-clipping.css */
/* Final listing-card copy layout.
 * Product names stay readable without being allowed to push metadata, price and
 * delivery copy on top of each other. Supplier titles are normalised server-side;
 * cards reserve exactly two title lines and keep every following row in normal flow.
 */
.listing-card .listing-card-body,
.app-listing-card .listing-card-body,
.app-product-rail-item .listing-card-body {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.listing-card .listing-card-title-row,
.app-listing-card .listing-card-title-row {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.listing-card .listing-card-title-row h3,
.app-listing-card .listing-card-title-row h3 {
    position: static !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
}

.listing-card .listing-card-title-row h3 > a,
.app-listing-card .listing-card-title-row h3 > a,
.app-product-rail .listing-card-title-row h3 > a,
.app-similar-feed .listing-card-title-row h3 > a,
.app-explore-grid .listing-card-title-row h3 > a {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

.app-listing-card .app-card-meta,
.app-listing-card .fault-summary,
.app-listing-card .listing-card-footer,
.app-listing-card .listing-card-footer > * {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

.app-listing-card .app-card-meta {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.app-listing-card .listing-card-footer {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Variant shadow listings exist only so checkout and fulfilment stay bound to
 * the exact supplier SKU. They must never appear as duplicate catalogue cards. */
.app-shadow-variant-listing {
    display: none !important;
}

/* Customer-facing supplier version chooser. */
.app-supplier-variant-field {
    display: grid;
    gap: 7px;
    margin: 12px 0 14px;
}

.app-supplier-variant-field label {
    margin: 0;
    font-weight: 700;
}

.app-supplier-variant-field select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 42px 0 13px;
    border: 1px solid var(--fx-line, #cfd6df);
    border-radius: 10px;
    color: var(--fx-text, #191919);
    background-color: var(--fx-panel, #fff);
    font: inherit;
    font-weight: 600;
}

.app-supplier-variant-field select:focus-visible {
    outline: 3px solid rgba(54, 101, 243, .22);
    outline-offset: 2px;
    border-color: #3665f3;
}

.app-supplier-variant-help {
    margin: 0;
    color: var(--fx-muted, #667085);
    font-size: .82rem;
    line-height: 1.35;
}

[data-theme="dark"] .app-supplier-variant-field select {
    color: #f5f7fb;
    border-color: #354153;
    background-color: #101720;
}

/* Keep horizontal rails compact in width, not by allowing text layers to collide. */
.app-product-rail-item,
.app-product-rail-item > .listing-card,
.app-product-rail-item > .app-listing-card,
.app-explore-grid > * {
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.app-repair-tools-feed {
    margin-top: 28px;
}

.app-repair-tool-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 250px);
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
}

.app-repair-tool-card {
    min-width: 0;
    scroll-snap-align: start;
}

.app-repair-tool-card > a:first-child {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--fx-line, rgba(127,145,170,.24));
    border-radius: 14px;
    background: var(--fx-panel-2, #111827);
}

.app-repair-tool-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-repair-tool-card-body {
    display: grid;
    gap: 5px;
    padding-top: 9px;
}

.app-repair-tool-card-body > span,
.app-repair-tool-card-body > small {
    color: var(--fx-muted, #9aa8bd);
    font-size: .78rem;
}

.app-repair-tool-card-body h3 {
    height: 2.56em;
    margin: 0;
    overflow: hidden;
    font-size: .98rem;
    line-height: 1.28;
}

.app-repair-tool-card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.app-repair-tool-card-body strong {
    font-size: 1.08rem;
}

@media (max-width: 760px) {
    .app-repair-tool-rail {
        grid-auto-columns: minmax(155px, 68vw);
        gap: 12px;
    }

    .app-supplier-variant-field {
        margin: 10px 0 12px;
    }

    .app-supplier-variant-field select {
        min-height: 48px;
        font-size: 1rem;
    }

    .app-home-feed .app-product-rail .listing-card-body,
    .app-home-feed .app-explore-grid .listing-card-body {
        gap: 5px !important;
    }

    .app-home-feed .app-product-rail .fault-summary,
    .app-home-feed .app-product-rail-item .fault-summary,
    .app-home-feed .app-explore-grid .fault-summary {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }

    .app-home-feed .app-product-rail .app-card-meta,
    .app-home-feed .app-explore-grid .app-card-meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 6px !important;
        width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        line-height: 1.3 !important;
    }

    .app-home-feed .app-product-rail .app-card-meta span,
    .app-home-feed .app-explore-grid .app-card-meta span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .app-home-feed .app-product-rail .listing-card-footer,
    .app-home-feed .app-explore-grid .listing-card-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        margin: 2px 0 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .app-home-feed .app-product-rail .listing-card-footer > *,
    .app-home-feed .app-explore-grid .listing-card-footer > * {
        max-width: 100% !important;
    }

    .app-home-feed .app-product-rail .delivery-note,
    .app-home-feed .app-product-rail .card-auction-line,
    .app-home-feed .app-product-rail .listing-card-footer small,
    .app-home-feed .app-explore-grid .delivery-note,
    .app-home-feed .app-explore-grid .card-auction-line,
    .app-home-feed .app-explore-grid .listing-card-footer small {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
}


/* fixonic-card-title-accessibility.css */
/* Keep mobile listing titles as an accessible 44px target while preserving a
 * strict two-line card rhythm. This loads after the legacy title layers so the
 * visible title is never clipped at narrow phone widths. */
@media (max-width: 760px) {
    .app-listing-card .listing-card-title-row h3,
    .app-listing-card .listing-card-title-row h3 > a {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 21px !important;
    }

    .app-listing-card .listing-card-title-row h3 > a {
        display: -webkit-box !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: ellipsis !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
}


/* fixonic-ebay-purchase-mobile.css */
/* 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;
    }
}


/* fixonic-ebay-detail-polish.css */
@media (max-width: 900px) {
    /* Keep the whole mobile detail flow away from the device edges. */
    .app-route-detail .app-product-layout.shell,
    .app-route-detail .fx-ebay-detail-shell.shell,
    .app-route-detail .app-similar-feed.shell,
    .app-route-detail .app-related-guides.shell {
        width: auto !important;
        max-width: none !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .app-route-detail .app-product-summary {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Auction information should read like eBay: text hierarchy, not nested cards. */
    .app-route-detail .app-purchase-panel.fx-ebay-purchase-panel,
    .app-route-detail .fx-ebay-purchase-panel .auction-status,
    .app-route-detail .fx-ebay-purchase-panel .auction-status > div,
    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-main,
    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-meta,
    .app-route-detail .fx-ebay-purchase-panel .fx-ebay-auction-meta > span {
        min-height: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .auction-status {
        padding-top: 8px !important;
        padding-bottom: 18px !important;
    }

    .app-route-detail .fx-ebay-auction-price {
        font-size: clamp(2.25rem, 11vw, 3rem) !important;
        line-height: .98 !important;
        letter-spacing: -.045em !important;
    }

    .app-route-detail .fx-ebay-auction-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 5px 7px !important;
        margin-top: 4px !important;
        color: var(--fx-text, #f5f7fb) !important;
        font-size: 1rem !important;
        line-height: 1.35 !important;
    }

    .app-route-detail .fx-ebay-auction-meta .fx-ebay-ended {
        color: var(--fx-muted, #9eabba) !important;
    }

    .app-route-detail .fx-ebay-auction-breakdown {
        margin-top: 7px !important;
        color: var(--fx-muted, #9eabba) !important;
        font-size: .88rem !important;
        line-height: 1.45 !important;
    }

    /* Active bidding: compact input + action, not a large boxed widget. */
    .app-route-detail .fx-ebay-purchase-panel .bid-form {
        margin: 0 !important;
        padding: 18px 0 20px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form > label {
        display: block !important;
        margin: 0 0 9px !important;
        color: var(--fx-text, #f5f7fb) !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form > div {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form input {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 10px 13px !important;
        border: 1px solid var(--fx-line-strong, #566171) !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: var(--fx-text, #f5f7fb) !important;
        box-shadow: none !important;
        font-size: 1.05rem !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form .button {
        width: auto !important;
        min-width: 112px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        border-radius: 999px !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .proxy-bid-note,
    .app-route-detail .fx-ebay-purchase-panel .bid-form > .build-note {
        display: block !important;
        margin: 9px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--fx-muted, #9eabba) !important;
        text-align: left !important;
        font-size: .8rem !important;
        line-height: 1.45 !important;
    }

    /* Ended/sold state is informational text, not another shaded card. */
    .app-route-detail .fx-ebay-purchase-panel > .warning-box,
    .app-route-detail .fx-ebay-purchase-panel > .build-note {
        margin: 0 !important;
        padding: 18px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-purchase-panel > .warning-box p {
        margin: 5px 0 0 !important;
    }

    /* Postage / condition rows use generous interior spacing but no surrounding box. */
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-delivery-disclosure > summary,
    .app-route-detail .fx-ebay-fulfilment .fx-ebay-condition-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Lower disclosure area: remove the old coloured panels and keep row separators. */
    .app-route-detail .fx-ebay-detail-shell.shell {
        margin-top: 14px !important;
        padding-bottom: 32px !important;
    }

    .app-route-detail .fx-ebay-detail-section > summary {
        min-height: 72px !important;
        padding: 20px 0 !important;
    }

    .app-route-detail .fx-ebay-detail-panel {
        padding: 0 0 24px !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-detail-card,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .content-card,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .disclosure-panel,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .fault-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--fx-text, #f5f7fb) !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-detail-card + .app-detail-card,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .disclosure-panel + .app-detail-card,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-detail-card + .disclosure-panel {
        border-top: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] h2,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] h3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .status-list {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .status-list > div {
        margin: 0 !important;
        padding: 13px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
        background: transparent !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .status-list > div:last-child {
        border-bottom: 0 !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .warning-box {
        margin: 0 !important;
        padding: 18px 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-fault-disclosure {
        margin-top: 4px !important;
        padding-top: 20px !important;
        border-top: 1px solid var(--fx-line, rgba(127,145,170,.28)) !important;
        background: transparent !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-fault-disclosure .app-detail-label {
        margin: 0 0 10px !important;
        padding: 0 !important;
        color: #ff6878 !important;
        background: transparent !important;
        font-size: .76rem !important;
        font-weight: 800 !important;
        letter-spacing: .08em !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-fault-disclosure .prose,
    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .app-fault-disclosure p {
        color: var(--fx-muted, #9eabba) !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .tag-list {
        gap: 7px !important;
        margin: 11px 0 !important;
    }

    .app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .tag-list span {
        padding: 7px 10px !important;
        border: 1px solid var(--fx-line-strong, #475364) !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: var(--fx-text, #f5f7fb) !important;
        box-shadow: none !important;
    }

    .app-route-detail .fx-owner-manage-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 6px 0 12px;
        padding: 11px 0;
        color: var(--fx-blue, #62a2ff);
        border-top: 1px solid var(--fx-line, rgba(127,145,170,.28));
        border-bottom: 1px solid var(--fx-line, rgba(127,145,170,.28));
        text-decoration: none !important;
        font-weight: 700;
    }

    .app-route-detail .fx-owner-manage-link span:last-child {
        color: var(--fx-text, #f5f7fb);
        font-size: 1.55rem;
        font-weight: 300;
    }
}

@media (max-width: 390px) {
    .app-route-detail .app-product-layout.shell,
    .app-route-detail .fx-ebay-detail-shell.shell,
    .app-route-detail .app-similar-feed.shell,
    .app-route-detail .app-related-guides.shell {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form > div {
        grid-template-columns: minmax(0, 1fr) 104px !important;
    }

    .app-route-detail .fx-ebay-purchase-panel .bid-form .button {
        min-width: 104px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* Auction eligibility: do not expose bid controls before the buyer qualifies. */
.app-route-detail .fx-ebay-purchase-panel .bid-eligibility-lock {
    margin: 14px 0 !important;
    padding: 14px 16px !important;
    border: 1px solid var(--fx-line-strong, #566171) !important;
    border-radius: 12px !important;
    background: rgba(255, 184, 77, .07) !important;
    text-align: left !important;
}
.app-route-detail .fx-ebay-purchase-panel .bid-eligibility-lock strong,
.app-route-detail .fx-ebay-purchase-panel .bid-eligibility-lock p {
    display: block;
    margin: 0;
}
.app-route-detail .fx-ebay-purchase-panel .bid-eligibility-lock p {
    margin-top: 6px !important;
    color: var(--fx-muted, #9eabba) !important;
}


/* fixonic-purchase-controls-hotfix.css */
/* Purchase controls must remain readable and contained on narrow mobile screens. */
.app-purchase-panel .buy-now-form,
.app-purchase-panel .buy-now-form .field-group,
.app-purchase-panel .buy-now-form fieldset {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.app-purchase-panel .buy-now-form .field-group {
    display: grid;
    gap: 8px;
}

.app-purchase-panel .buy-now-form .field-group > label,
.app-supplier-variant-field > label {
    position: static !important;
    display: block;
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    color: var(--text, #f4f7fb);
    font-weight: 700;
    line-height: 1.3;
    clip: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* iOS Safari was inheriting a near-white text fill on the white quantity box. */
.app-purchase-panel .buy-now-form #id_quantity,
.app-purchase-panel .buy-now-form input[name="quantity"] {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 56px;
    box-sizing: border-box;
    padding: 12px 16px !important;
    border: 1px solid #8b93a1 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    opacity: 1 !important;
    font: inherit;
    font-size: 16px !important;
    line-height: 1.2;
}

.app-purchase-panel .buy-now-form #id_quantity:focus,
.app-purchase-panel .buy-now-form input[name="quantity"]:focus {
    outline: 3px solid color-mix(in srgb, #4d91ff 45%, transparent);
    outline-offset: 2px;
}

/* eBay-style stacked delivery option: radio on the left, title then timing/price below it. */
.app-purchase-panel .buy-now-form fieldset {
    width: 100%;
    min-inline-size: 0;
    margin: 0;
    padding: 14px !important;
    overflow: hidden !important;
}

.app-purchase-panel .buy-now-form fieldset > legend {
    max-width: calc(100% - 20px);
    padding: 0 6px;
    white-space: normal;
}

.app-purchase-panel .buy-now-form fieldset > label {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-areas: "radio copy" !important;
    align-items: start !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 12px 10px !important;
    white-space: normal !important;
    overflow: hidden !important;
}

.app-purchase-panel .buy-now-form fieldset > label > input[type="radio"] {
    grid-area: radio;
    align-self: start;
    margin: 3px 0 0 !important;
}

.app-purchase-panel .buy-now-form fieldset > label > span {
    grid-area: copy;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    white-space: normal !important;
}

.app-purchase-panel .buy-now-form fieldset > label > span > strong {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    line-height: 1.3;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.app-purchase-panel .buy-now-form fieldset > label > span > small {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    line-height: 1.4;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Supplier SKU selector: one compact dropdown rather than AliExpress thumbnail chips. */
.app-supplier-variant-field {
    display: grid !important;
    gap: 8px !important;
    min-width: 0;
    width: 100%;
    margin: 0 0 14px !important;
}

.app-supplier-variant-field select {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 54px;
    box-sizing: border-box;
    padding: 10px 42px 10px 14px !important;
    border: 1px solid var(--border, #3c4655) !important;
    border-radius: 12px !important;
    background-color: var(--surface, #101722) !important;
    color: var(--text, #f5f7fb) !important;
    -webkit-text-fill-color: var(--text, #f5f7fb) !important;
    font: inherit;
    font-size: 16px !important;
    line-height: 1.25;
}

.app-supplier-variant-field select:focus {
    outline: 3px solid color-mix(in srgb, #4d91ff 45%, transparent);
    outline-offset: 2px;
}

.app-supplier-variant-help {
    display: block;
    color: var(--muted, #9ba7b8);
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .app-purchase-panel .buy-now-form fieldset {
        padding: 10px !important;
    }

    .app-purchase-panel .buy-now-form fieldset > label {
        padding: 11px 6px !important;
    }

    .app-purchase-panel .buy-now-form fieldset > label > span > strong,
    .app-purchase-panel .buy-now-form fieldset > label > span > small {
        font-size: 15px !important;
    }
}


/* 2026-10-05 mobile control cleanup: keep labels and controls visually part of
   the page instead of rendering dark heading strips / oversized quantity UI. */
.app-route-detail .app-purchase-panel .buy-now-form .field-group,
.app-route-detail .app-supplier-variant-field {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.app-route-detail .app-purchase-panel .buy-now-form .field-group > label,
.app-route-detail .app-supplier-variant-field > label {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.app-route-detail .app-supplier-variant-field select {
    background-color: transparent !important;
    border-color: var(--fx-line, rgba(127,145,170,.34)) !important;
}

.app-route-detail .app-purchase-panel .buy-now-form #id_quantity,
.app-route-detail .app-purchase-panel .buy-now-form input[name="quantity"] {
    width: min(132px, 100%) !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
}

@media (max-width: 760px) {
    .app-route-detail #item-specifics .status-list > div,
    .app-route-detail .fx-ebay-detail-panel #item-specifics .status-list > div {
        grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr) !important;
        align-items: start !important;
    }

    .app-route-detail #item-specifics .status-list dt {
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .app-route-detail #item-specifics .status-list dd {
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
}


/* fixonic-live-ui-hotfix.css */
/* Live regression fixes for listing media and checkout contrast. Loaded from the body theme include so it wins over older head styles. */

/* Desktop listing gallery: keep the thumbnail rail vertical and give every
   thumbnail its own fixed-size slot beside the main image. An older management
   stylesheet turned this rail into a horizontal flex scroller while it still
   occupied the narrow desktop grid column, which produced the tall dark strip
   and tiny/squeezed thumbnail shown on staging. */
@media (min-width: 851px) {
    .app-route-detail .app-product-media {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, auto) !important;
        align-items: start !important;
        gap: 12px !important;
        min-width: 0 !important;
    }

    .app-route-detail .app-main-image {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .app-route-detail .app-thumbnail-row {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        align-content: initial !important;
        gap: 8px !important;
        width: 96px !important;
        max-width: 96px !important;
        max-height: 720px !important;
        margin: 0 !important;
        padding: 0 3px 0 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scroll-snap-type: y proximity;
    }

    .app-route-detail .app-thumbnail-row > button {
        position: relative !important;
        flex: 0 0 92px !important;
        width: 92px !important;
        min-width: 92px !important;
        height: 92px !important;
        min-height: 92px !important;
        margin: 0 !important;
        padding: 4px !important;
        overflow: hidden !important;
        border: 2px solid transparent !important;
        border-radius: 14px !important;
        background: var(--fx-panel-2, #f3f5f7) !important;
        box-shadow: none !important;
        scroll-snap-align: start;
        cursor: pointer;
    }

    .app-route-detail .app-thumbnail-row > button:hover {
        border-color: var(--fx-line-strong, #7a8594) !important;
    }

    .app-route-detail .app-thumbnail-row > button.is-active {
        border-color: var(--fx-text, #161616) !important;
        box-shadow: 0 0 0 1px var(--fx-text, #161616) !important;
    }

    .app-route-detail .app-thumbnail-row > button > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        object-fit: contain !important;
    }
}

/* The image counter belongs to the image canvas, never the product-summary column. */
.app-route-detail .app-product-media,
.app-route-detail .app-main-image {
    position: relative !important;
}

.app-route-detail .app-image-counter {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 8 !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 48px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 6px 11px !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #ffffff !important;
    background: rgba(7, 9, 13, .78) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

/* Checkout uses dark panels in dark mode. Never leave light-theme ink on those panels. */
html[data-theme="dark"] body .checkout-card,
html[data-theme="dark"] body .order-summary-card {
    color: var(--fx-text, #f5f8fc) !important;
    border-color: var(--fx-line, rgba(161, 183, 214, .18)) !important;
    background: var(--fx-panel, #101620) !important;
}

html[data-theme="dark"] body :is(.checkout-card, .order-summary-card) :is(
    h1, h2, h3, strong, label, legend, dt, dd, span, p
) {
    color: var(--fx-text, #f5f8fc) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body :is(.checkout-card, .order-summary-card) :is(
    .checkout-section-title p,
    small,
    .helptext,
    .summary-lines dt,
    .provider-pending p,
    .provider-ready p,
    .order-state p
) {
    color: var(--fx-muted, #9ba8ba) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body .order-summary-card .eyebrow,
html[data-theme="dark"] body :is(.checkout-card, .order-summary-card) .text-link {
    color: var(--fx-blue, #65a0ff) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body .order-summary-card :is(.summary-protection, .summary-delivery),
html[data-theme="dark"] body .checkout-card :is(.provider-pending, .provider-ready, .order-state) {
    color: var(--fx-text, #f5f8fc) !important;
    border-color: var(--fx-line, rgba(161, 183, 214, .18)) !important;
    background: var(--fx-panel-2, #151d29) !important;
}

html[data-theme="dark"] body .order-summary-card :is(.summary-protection, .summary-delivery) :is(strong, p, span, small) {
    color: var(--fx-text-soft, #c5cfdd) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body .order-summary-card :is(.summary-protection, .summary-delivery) strong {
    color: var(--fx-text, #f5f8fc) !important;
}

/* Keep checkout entry fields intentionally white for maximum readability on iOS. */
html[data-theme="dark"] body .checkout-card :is(
    input:not([type="checkbox"]):not([type="radio"]), select, textarea
) {
    border-color: #8b93a1 !important;
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .checkout-card :is(input, textarea)::placeholder {
    color: #667085 !important;
    -webkit-text-fill-color: #667085 !important;
}

/* The pale reservation timer had pale text in dark mode. */
html[data-theme="dark"] body .reservation-clock,
html[data-theme="dark"] body .reservation-clock :is(span, strong) {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

/* Checkout delivery radios should use the same contained stacked layout as listing delivery. */
html[data-theme="dark"] body .order-summary-card .buy-now-form fieldset,
html[data-theme="dark"] body .order-summary-card .buy-now-form label {
    color: var(--fx-text, #f5f8fc) !important;
    border-color: var(--fx-line-strong, rgba(161, 183, 214, .32)) !important;
    background: var(--fx-panel, #101620) !important;
}

html[data-theme="dark"] body .order-summary-card .buy-now-form label :is(span, strong, small) {
    color: var(--fx-text, #f5f8fc) !important;
    -webkit-text-fill-color: currentColor !important;
}

@media (max-width: 850px) {
    /* Phone/tablet keeps the familiar horizontal swipeable strip below the main image. */
    .app-route-detail .app-product-media {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .app-route-detail .app-main-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .app-route-detail .app-thumbnail-row {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 10px 0 4px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
    }

    .app-route-detail .app-thumbnail-row::-webkit-scrollbar {
        display: none;
    }

    .app-route-detail .app-thumbnail-row > button {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        height: 72px !important;
        min-height: 72px !important;
    }

    .app-route-detail .app-image-counter {
        top: 10px !important;
        right: 10px !important;
        min-width: 44px;
        min-height: 32px;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

/* fixonic-supplier-variant-static.css */
.app-supplier-variant-field {
    display: grid;
    gap: 7px;
    margin: 12px 0 14px;
}

.app-supplier-variant-field > label {
    font-weight: 700;
}

.app-supplier-variant-static {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid var(--fx-line, #d4d9df);
    border-radius: 12px;
    background: var(--fx-panel-2, #f5f6f8);
    color: var(--fx-text, #17191c);
    font-weight: 650;
    line-height: 1.35;
}

.app-supplier-variant-help {
    color: var(--fx-muted, #687281);
    line-height: 1.4;
}

html[data-theme="dark"] .app-supplier-variant-static {
    border-color: var(--fx-line, rgba(161, 183, 214, .18));
    background: var(--fx-panel-2, #151d29);
    color: var(--fx-text, #f5f8fc);
}

@media (max-width: 600px) {
    .app-supplier-variant-static {
        min-height: 48px;
    }
}


/* fixonic-detail-info-polish.css */
/* 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;
    }
}


/* fixonic-equipment-card-v2.css */
/* Customer-facing specialist equipment card.
   Replaces the long admin-style key/value table with compact marketplace tiles. */
.app-route-detail .product-main-copy > .app-detail-card:has(> .app-detail-label),
.app-route-detail .fx-ebay-detail-section .app-detail-card:has(> .app-detail-label) {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(20px, 2.6vw, 30px) !important;
    overflow: hidden !important;
    border: 1px solid var(--fx-line, rgba(127,145,170,.22)) !important;
    border-radius: 22px !important;
    background: var(--fx-panel, #fff) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.06) !important;
}

.app-route-detail .product-main-copy > .app-detail-card:has(> .app-detail-label)::after,
.app-route-detail .fx-ebay-detail-section .app-detail-card:has(> .app-detail-label)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-blue, #3665f3), #6aa7ff 55%, transparent);
    pointer-events: none;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .app-detail-label {
    margin: 0 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--fx-blue, #5792ff) !important;
    font-size: .72rem !important;
    font-weight: 850 !important;
    letter-spacing: .11em !important;
    text-transform: uppercase !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > h2 {
    margin: 0 0 20px !important;
    color: var(--fx-text, #15171a) !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list > div {
    display: flex !important;
    min-width: 0 !important;
    min-height: 86px !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 14px 15px !important;
    border: 1px solid var(--fx-line, rgba(127,145,170,.18)) !important;
    border-radius: 14px !important;
    background: var(--fx-panel-2, #f7f8fb) !important;
    box-shadow: none !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list dt,
.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list dd {
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list dt {
    color: var(--fx-muted, #667085) !important;
    font-size: .72rem !important;
    font-weight: 650 !important;
    letter-spacing: .02em !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list dd {
    color: var(--fx-text, #15171a) !important;
    font-size: .94rem !important;
    font-weight: 780 !important;
    line-height: 1.3 !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > h3 {
    margin: 20px 0 9px !important;
    font-size: .86rem !important;
    font-weight: 800 !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .tag-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .tag-list > span {
    padding: 7px 10px !important;
    border: 1px solid var(--fx-line, rgba(127,145,170,.18)) !important;
    border-radius: 999px !important;
    background: var(--fx-panel-2, #f7f8fb) !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .warning-box {
    margin: 14px 0 0 !important;
    padding: 13px 15px 13px 18px !important;
    border: 1px solid var(--fx-line, rgba(127,145,170,.18)) !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--fx-blue, #3665f3) 7%, var(--fx-panel-2, #f7f8fb)) !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .warning-box strong {
    margin-bottom: 3px !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .text-link {
    display: inline-flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 16px !important;
    padding: 9px 14px !important;
    border: 1px solid var(--fx-line-strong, rgba(127,145,170,.32)) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--fx-text, #15171a) !important;
    font-size: .82rem !important;
    font-weight: 760 !important;
    text-decoration: none !important;
}

.app-route-detail .app-detail-card:has(> .app-detail-label) > .text-link:hover {
    border-color: var(--fx-blue, #3665f3) !important;
    color: var(--fx-blue, #3665f3) !important;
}

html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) {
    border-color: rgba(161,183,214,.18) !important;
    background: var(--fx-panel, #101620) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
}

html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) > h2,
html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list dd,
html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) > .text-link {
    color: var(--fx-text, #f5f8fc) !important;
}

html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list > div,
html[data-theme="dark"] body.app-route-detail .app-detail-card:has(> .app-detail-label) > .tag-list > span {
    border-color: rgba(161,183,214,.15) !important;
    background: var(--fx-panel-2, #151d29) !important;
}

@media (max-width: 760px) {
    .app-route-detail .app-detail-card:has(> .app-detail-label) {
        padding: 18px !important;
        border-radius: 18px !important;
    }
    .app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 430px) {
    .app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .app-route-detail .app-detail-card:has(> .app-detail-label) > .detail-list > div {
        min-height: 0 !important;
    }
}


/* fixonic-professional-description.css */
/* Customer product descriptions should read like catalogue copy, not a supplier feed. */
.app-route-detail .product-main-copy > .app-detail-card:first-child {
    padding: clamp(22px, 3vw, 32px) !important;
    border-radius: 20px !important;
}

.app-route-detail .product-main-copy > .app-detail-card:first-child > h2 {
    margin: 0 0 18px !important;
}

.app-route-detail .product-main-copy > .app-detail-card:first-child .prose {
    max-width: 78ch !important;
    color: var(--fx-text, #202733) !important;
    font-size: clamp(.96rem, 1.1vw, 1.04rem) !important;
    line-height: 1.72 !important;
    letter-spacing: .002em !important;
    overflow-wrap: anywhere !important;
}

.app-route-detail .product-main-copy > .app-detail-card:first-child .prose p {
    margin: 0 !important;
}

.app-route-detail .product-main-copy > .app-detail-card:first-child .prose p + p {
    margin-top: 18px !important;
}

/* Cleaned supplier descriptions use plain-text section names followed by
   line-separated specification rows. Give line breaks enough visual breathing
   room while retaining copy/paste-friendly text. */
.app-route-detail .product-main-copy > .app-detail-card:first-child .prose br {
    display: block !important;
    content: "" !important;
    margin-top: 6px !important;
}

html[data-theme="dark"] body.app-route-detail .product-main-copy > .app-detail-card:first-child .prose {
    color: var(--fx-text, #eef4fb) !important;
}

@media (max-width: 760px) {
    .app-route-detail .product-main-copy > .app-detail-card:first-child {
        padding: 18px !important;
        border-radius: 17px !important;
    }

    .app-route-detail .product-main-copy > .app-detail-card:first-child .prose {
        max-width: none !important;
        font-size: .96rem !important;
        line-height: 1.68 !important;
    }
}

/* The live detail page moves sections into an accordion. The old selectors
   above targeted the pre-JavaScript grid, leaving a nested dark rectangle
   around supplier descriptions and collapsing compatibility spacing. */
body.app-route-detail .product-main-copy > .app-detail-card:first-child,
body.app-route-detail .fx-ebay-detail-section[data-fx-section="description"] .fx-ebay-detail-panel > .app-detail-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

body.app-route-detail .fx-ebay-detail-section[data-fx-section="description"] .prose,
body.app-route-detail .fx-ebay-detail-section[data-fx-section="description"] .prose p,
body.app-route-detail .product-main-copy > .app-detail-card:first-child .prose,
body.app-route-detail .product-main-copy > .app-detail-card:first-child .prose p {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 85ch !important;
}

body.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .fx-ebay-detail-panel > .app-detail-card {
    margin-top: 24px !important;
    padding: clamp(18px, 2.5vw, 28px) !important;
    border: 1px solid var(--fx-line, rgba(150,170,195,.25)) !important;
    border-radius: 20px !important;
    background: var(--fx-panel, #121722) !important;
    box-shadow: none !important;
}

body.app-route-detail .product-main-copy > .app-detail-card:not(:first-child) {
    margin-top: 24px !important;
    border-radius: 20px !important;
}

@media (max-width: 760px) {
    body.app-route-detail .fx-ebay-detail-section[data-fx-section="about"] .fx-ebay-detail-panel > .app-detail-card {
        margin-top: 18px !important;
        border-radius: 16px !important;
        padding: 18px !important;
    }
    body.app-route-detail .product-main-copy > .app-detail-card:not(:first-child) {
        margin-top: 18px !important;
        border-radius: 16px !important;
    }
}


/* fixonic-equipment-spacing.css */
/* Keep the specialist-equipment panel visually separate from the card above it.
   This deliberately loads after the older equipment-card stylesheet so legacy
   margin:0 rules cannot collapse the two rounded containers together. */
body.app-route-detail .product-main-copy > .app-detail-card:has(> .app-detail-label),
body.app-route-detail .fx-ebay-detail-section .app-detail-card:has(> .app-detail-label) {
    margin-top: 22px !important;
}

@media (max-width: 760px) {
    body.app-route-detail .product-main-copy > .app-detail-card:has(> .app-detail-label),
    body.app-route-detail .fx-ebay-detail-section .app-detail-card:has(> .app-detail-label) {
        margin-top: 16px !important;
    }
}


/* fixonic-fontawesome-actions.css */
/* Use Font Awesome only for generic marketplace controls. Fixonic branding,
   theme artwork and product-specific icons remain untouched. The Save, Share
   and More controls are populated by fixonic-fontawesome-controls.js, so do
   not also draw the same icons with CSS pseudo-elements. */
.app-route-detail .app-listing-actions > a:first-child::before {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}

.app-route-detail .app-listing-actions > a:first-child { font-size: 0 !important; }
.app-route-detail .app-listing-actions > a:first-child::before { content: "\f060"; font-size: 20px; font-weight: 900; }
.app-route-detail .app-listing-actions [data-share-listing] svg,
.app-route-detail .app-listing-actions [data-watch-button] svg,
.app-listing-card .watch-button svg { display: none !important; }
.app-card-menu { font-size: 0 !important; }

@media (max-width: 767px) {
    .app-route-detail .app-listing-actions.mobile-only {
        position: relative !important;
        inset: auto !important;
        z-index: 12 !important;
        display: flex !important;
        width: min(100% - 28px, 760px) !important;
        min-height: 52px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 10px auto 12px !important;
        padding: 0 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    .app-route-detail .app-listing-actions > div {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        min-width: 0 !important;
    }
    .app-route-detail .app-listing-actions > a,
    .app-route-detail .app-listing-actions button,
    .app-route-detail .app-listing-actions .fx-theme-toggle {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    /* Phone cards keep the primary Save control only. The overflow menu is a
       desktop affordance; hiding the wrapper also prevents an empty 38px hitbox. */
    .app-listing-card .app-card-actions {
        display: none !important;
    }
}

/* Listing cards: Save stays top-right. More remains directly underneath on
   desktop/tablet layouts where the overflow menu is intentionally available. */
.app-listing-card {
    position: relative !important;
    isolation: isolate !important;
}
.app-listing-card .listing-card-media {
    position: relative !important;
    isolation: isolate !important;
}
.app-listing-card .watch-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 20 !important;
    display: inline-flex !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(127,145,170,.32) !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--fx-panel, #fff) 92%, transparent) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(8px);
}

.app-listing-card .listing-card-title-row {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
}
.app-listing-card .listing-card-title-row h3,
.app-listing-card .listing-card-title-row h3 a {
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 0 !important;
}

.app-listing-card .app-card-actions {
    position: absolute !important;
    top: 52px !important;
    right: 8px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 21 !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    pointer-events: auto !important;
}
.app-listing-card .app-card-menu {
    position: relative !important;
    inset: auto !important;
    z-index: 22 !important;
    display: inline-flex !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--fx-text, #191919) !important;
    border: 1px solid rgba(127,145,170,.32) !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--fx-panel, #fff) 92%, transparent) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(8px);
}
.app-listing-card .app-card-menu:hover,
.app-listing-card .app-card-menu[aria-expanded="true"] {
    background: var(--fx-panel-2, #f1f4f8) !important;
}
.app-listing-card .app-card-popover {
    top: 44px !important;
    right: 0 !important;
    z-index: 80 !important;
}
.app-listing-card.has-open-card-menu { z-index: 70 !important; }

html[data-theme="dark"] body .app-listing-card .watch-button,
html[data-theme="dark"] body .app-listing-card .app-card-menu {
    color: var(--fx-text, #f5f8fc) !important;
    border-color: rgba(161,183,214,.28) !important;
    background: rgba(16,22,32,.9) !important;
}

@media (max-width: 430px) {
    .app-listing-card .watch-button,
    .app-listing-card .app-card-menu {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
}


/* fixonic-control-icon-regression.css */
/* Regression guard: action icons must remain visible even when the optional
   JavaScript icon-polish layer is delayed or unavailable. Earlier rules hid
   every SVG inside Save/Share controls and accidentally hid the replacement
   SVGs too. */
.app-route-detail .app-listing-actions [data-share-listing] svg,
.app-route-detail .app-listing-actions [data-watch-button] svg,
.app-listing-card .watch-button svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.app-listing-card .watch-button.is-saved svg path,
.app-route-detail .app-listing-actions [data-watch-button].is-saved svg path,
.app-route-detail .app-listing-actions [data-watch-button][aria-pressed="true"] svg path {
    fill: currentColor;
}

.app-listing-card .watch-button [data-fx-heart-icon],
.app-route-detail .app-listing-actions [data-watch-button] [data-fx-heart-icon] {
    display: block !important;
}


/* fixonic-card-actions-final.css */
/* Final collision-proof card action placement.
   Desktop keeps More beside the title in its own grid column. Narrow cards keep
   the compact overlay placement so Save and More remain vertically separated. */
.app-listing-card .listing-card-title-row {
    position: static !important;
}

/* The media and Save control share an explicit positioning container. This
   keeps Save on the photo when result cards switch to a side-by-side layout. */
.app-listing-card .listing-card-media-shell {
    position: relative !important;
    isolation: isolate !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
}

.app-listing-card .listing-card-media-shell > .listing-card-media {
    width: 100% !important;
}

.app-listing-card .watch-button {
    top: 8px !important;
    right: 8px !important;
    z-index: 31 !important;
}

.app-listing-card .app-card-menu {
    z-index: 32 !important;
}

.app-listing-card .app-card-popover {
    z-index: 90 !important;
}

@media (min-width: 761px) {
    .app-listing-card .listing-card-title-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 54px !important;
        gap: 10px !important;
        align-items: start !important;
        overflow: visible !important;
    }

    .app-listing-card .app-card-actions {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: grid !important;
        place-items: start center !important;
        width: 54px !important;
        min-width: 54px !important;
        min-height: 44px !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 30 !important;
    }

    .app-listing-card .app-card-menu {
        display: grid !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        color: var(--fx-text, #191919) !important;
        border: 1px solid var(--fx-line, #d8d8d8) !important;
        border-radius: 999px !important;
        background: var(--fx-panel-2, #f3f4f6) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .app-listing-card .app-card-menu:hover,
    .app-listing-card .app-card-menu[aria-expanded="true"] {
        color: var(--fx-blue, #3665f3) !important;
        border-color: var(--fx-blue, #3665f3) !important;
        background: color-mix(in srgb, var(--fx-blue, #3665f3) 8%, var(--fx-panel-2, #f3f4f6)) !important;
    }

    [data-theme="dark"] .app-listing-card .app-card-menu {
        color: #f5f7fb !important;
        border-color: var(--fx-line-strong, #354153) !important;
        background: var(--fx-panel-2, #151d29) !important;
    }

    [data-theme="dark"] .app-listing-card .app-card-menu:hover,
    [data-theme="dark"] .app-listing-card .app-card-menu[aria-expanded="true"] {
        color: var(--fx-cyan, #65dfff) !important;
        border-color: var(--fx-cyan, #65dfff) !important;
        background: color-mix(in srgb, var(--fx-cyan, #65dfff) 9%, var(--fx-panel-2, #151d29)) !important;
    }
}

@media (max-width: 760px) {
    .app-listing-card .listing-card-title-row {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .app-listing-card .listing-card-title-row h3 {
        width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
    }

    /* A phone card has one clear Save action. The desktop overflow menu is
       deliberately absent so no duplicate icon or invisible hitbox can sit
       over the title. */
    .app-listing-card .app-card-actions {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .app-listing-card .watch-button {
        display: inline-flex !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
}


/* fixonic-listing-card-copy-spacing.css */
/* Final shared listing-card text rhythm.
   Keep customer copy away from the card border on every catalogue surface. */
.app-listing-card .listing-card-body,
.listing-card .listing-card-body,
.app-product-rail-item .listing-card-body {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px 14px 14px !important;
    gap: 7px !important;
}

.app-listing-card .listing-card-title-row,
.listing-card .listing-card-title-row {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.app-listing-card .app-card-meta,
.app-listing-card .fault-summary,
.app-listing-card .listing-card-footer,
.listing-card .app-card-meta,
.listing-card .fault-summary,
.listing-card .listing-card-footer {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.app-listing-card .app-card-meta,
.listing-card .app-card-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.app-listing-card .app-card-meta > span,
.listing-card .app-card-meta > span {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.app-listing-card .app-card-meta > span + span::before,
.listing-card .app-card-meta > span + span::before {
    content: "· ";
    color: var(--fx-muted, #8fa0b5);
}

.app-listing-card .fault-summary,
.listing-card .fault-summary {
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.42 !important;
}

.app-listing-card .listing-card-footer,
.listing-card .listing-card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    overflow: visible !important;
}

.app-listing-card .listing-card-footer > *,
.listing-card .listing-card-footer > * {
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
}

.app-listing-card .price,
.listing-card .price {
    line-height: 1.2 !important;
}

@media (max-width: 760px) {
    .app-listing-card .listing-card-body,
    .listing-card .listing-card-body,
    .app-product-rail-item .listing-card-body {
        padding: 11px 12px 13px !important;
        gap: 6px !important;
    }
}

@media (max-width: 430px) {
    .app-listing-card .listing-card-body,
    .listing-card .listing-card-body,
    .app-product-rail-item .listing-card-body {
        padding-inline: 11px !important;
    }
}


/* fixonic-right-to-repair-promo.css */
.fx-rtr-promo {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 24px;
    padding: 22px 24px;
    border: 1px solid rgba(91, 143, 249, .28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 15%, rgba(78, 208, 180, .16), transparent 32%),
        linear-gradient(135deg, rgba(32, 53, 88, .96), rgba(18, 27, 43, .98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
    color: #f6f8fc;
    overflow: hidden;
}

.fx-rtr-promo__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #79e2c0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fx-rtr-promo h2 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.fx-rtr-promo p {
    margin: 10px 0 0;
    max-width: 850px;
    color: #c9d3e4;
    line-height: 1.55;
}

.fx-rtr-promo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.fx-rtr-promo__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
}

.fx-rtr-promo__button--primary {
    border-color: transparent;
    background: #72e0bd;
    color: #071b19 !important;
}

.fx-rtr-promo__button:hover,
.fx-rtr-promo__button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

html[data-theme="light"] .fx-rtr-promo,
body[data-theme="light"] .fx-rtr-promo {
    background:
        radial-gradient(circle at 90% 15%, rgba(42, 174, 145, .14), transparent 32%),
        linear-gradient(135deg, #eef5ff, #f7fafc);
    border-color: #c7d7f2;
    color: #142033;
    box-shadow: 0 14px 36px rgba(40, 68, 109, .12);
}

html[data-theme="light"] .fx-rtr-promo p,
body[data-theme="light"] .fx-rtr-promo p {
    color: #536279;
}

html[data-theme="light"] .fx-rtr-promo__button,
body[data-theme="light"] .fx-rtr-promo__button {
    border-color: #c7d7f2;
    background: #fff;
    color: #1d3557 !important;
}

html[data-theme="light"] .fx-rtr-promo__button--primary,
body[data-theme="light"] .fx-rtr-promo__button--primary {
    border-color: transparent;
    background: #176b58;
    color: #fff !important;
}

@media (max-width: 640px) {
    .fx-rtr-promo {
        width: calc(100% - 20px);
        margin: 12px auto 18px;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .fx-rtr-promo__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fx-rtr-promo__button {
        width: 100%;
    }
}


/* fixonic-results-toolbar-polish.css */
/* Final marketplace results-toolbar polish.
 * Keep the count and sort control comfortably inside the panel on narrow
 * screens, and replace the low-contrast native select chevron.
 */
.app-results-toolbar {
    box-sizing: border-box;
    width: 100%;
    padding: 12px clamp(20px, 2.4vw, 28px) !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
}

.app-results-toolbar > div:first-child {
    flex: 0 1 auto;
    min-width: max-content;
    white-space: nowrap;
    line-height: 1.25;
}

.app-results-toolbar .results-toolbar-actions {
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: auto;
}

.app-results-toolbar .results-toolbar-actions form {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 0;
}

.app-results-toolbar .results-toolbar-actions form::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-68%) rotate(45deg);
    opacity: .72;
    pointer-events: none;
}

.app-results-toolbar select {
    width: clamp(160px, 18vw, 196px);
    max-width: 100%;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0;
    padding: 0 44px 0 16px !important;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    .app-results-toolbar {
        min-height: 72px !important;
        padding: 12px 24px !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    .app-results-toolbar > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
    }

    .app-results-toolbar .results-toolbar-actions {
        flex: 0 0 auto;
        margin: 0 0 0 auto !important;
    }

    .app-results-toolbar select {
        width: clamp(150px, 41vw, 172px);
        max-width: 100%;
        min-height: 44px !important;
        padding-inline: 14px 40px !important;
        font-size: 1rem;
    }

    .app-results-toolbar .results-toolbar-actions form::after {
        right: 15px;
    }
}

@media (max-width: 350px) {
    .app-results-toolbar {
        padding-inline: 16px !important;
        gap: 8px !important;
    }

    .app-results-toolbar select {
        width: 140px;
        font-size: .95rem;
    }
}


/* fixonic-repair-recommendations-polish.css */
/* Customer-facing repair recommendations: stable spacing, readable cards and
 * predictable mobile layout. Kept as a late override so older broad theme
 * rules cannot pull the repair feed back against panel/card edges. */
.app-route-detail .app-repair-tools-feed {
    box-sizing: border-box;
    margin-top: clamp(20px, 3vw, 32px);
    margin-bottom: clamp(20px, 3vw, 32px);
    padding-block: clamp(18px, 3vw, 28px);
    padding-inline: clamp(18px, 2vw, 26px);
}

.app-repair-tools-feed > .app-feed-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    margin: 0 0 18px;
}

.app-repair-tools-feed > .app-feed-heading > div {
    min-width: 0;
}

.app-repair-tools-feed .app-feed-heading h2,
.app-repair-tools-feed .app-feed-heading h3 {
    margin: 0;
}

.app-repair-tools-feed .app-feed-heading p {
    max-width: 68ch;
    margin: 7px 0 0;
}

.app-repair-tools-feed .app-feed-heading > a {
    flex: 0 0 auto;
}

.app-repair-tools-feed .app-repair-kit-subheading {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border, var(--line, rgba(127, 127, 127, .24)));
}

.app-repair-tools-feed .app-repair-tool-rail {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.app-repair-tools-feed .app-repair-tool-card {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    border: 1px solid var(--border, var(--line, rgba(127, 127, 127, .24)));
    border-radius: 14px;
}

.app-repair-tools-feed .app-repair-tool-card > a {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.app-repair-tools-feed .app-repair-tool-card > a img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.app-repair-tools-feed .app-repair-tool-card-body {
    display: grid;
    min-width: 0;
    gap: 6px;
    padding: 14px;
}

.app-repair-tools-feed .app-repair-tool-card-body h3,
.app-repair-tools-feed .app-repair-tool-card-body p,
.app-repair-tools-feed .app-repair-tool-card-body small,
.app-repair-tools-feed .app-repair-tool-card-body strong {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.app-repair-tools-feed .app-product-rail {
    margin-top: 0;
}

@media (max-width: 760px) {
    .app-route-detail .app-repair-tools-feed {
        margin-top: 18px;
        margin-bottom: 18px;
        padding-block: 18px;
        padding-inline: 18px;
    }

    .app-repair-tools-feed > .app-feed-heading {
        gap: 10px 14px;
        margin-bottom: 16px;
    }

    .app-repair-tools-feed .app-repair-kit-subheading {
        margin-top: 20px;
        padding-top: 18px;
    }

    .app-repair-tools-feed .app-repair-tool-rail {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .app-repair-tools-feed .app-repair-tool-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .app-repair-tools-feed .app-repair-tool-card-body {
        padding: 14px 16px;
    }
}

@media (max-width: 420px) {
    .app-route-detail .app-repair-tools-feed {
        padding-inline: 16px;
    }

    .app-repair-tools-feed > .app-feed-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .app-repair-tools-feed .app-feed-heading > a {
        align-self: flex-start;
    }
}


/* fixonic-detail-rail-polish.css */
/* Final compact detail-page rails. The title clamp belongs on the h3 itself
 * because the browser acceptance contract measures that rendered box, while
 * the link inherits the same two-line clipping. */
.app-route-detail .app-similar-feed .listing-card-title-row h3 {
    display: -webkit-box !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    height: 2.56em !important;
    min-height: 2.56em !important;
    max-height: 2.56em !important;
}

.app-route-detail .app-similar-feed .listing-card-title-row h3 > a {
    display: contents;
}

@media (max-width: 900px) {
    .app-route-detail .app-similar-feed .app-product-rail {
        scroll-padding-inline: 0 16px;
    }

    /* The global mobile rail uses 4:3 media, but the compact detail-page
       recommendation rail is deliberately square. Keep this late, scoped
       override beside the rest of the detail-rail contract. */
    .app-route-detail .app-similar-feed .app-product-rail .app-listing-card .listing-card-media {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .app-route-detail .app-similar-feed .app-product-rail-item:last-child {
        margin-right: 4px;
    }
}


/* fixonic-independent-repair-links.css */
/* Independent right-to-repair resource links. These sit below Fixonic's own
 * footer navigation and are deliberately separated so they cannot be mistaken
 * for partnerships, endorsements or marketplace services. */
.footer-independent-repair-links {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: 18px 28px;
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px;
}

.footer-independent-repair-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.footer-independent-repair-copy strong {
    color: inherit;
    font-size: .9rem;
}

.footer-independent-repair-copy span {
    color: #aebdb5;
    font-size: .76rem;
    line-height: 1.5;
}

.footer-independent-repair-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    min-width: 0;
}

.footer-independent-repair-nav a {
    color: #aebdb5;
    font-size: .82rem;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-independent-repair-nav a:hover,
.footer-independent-repair-nav a:focus-visible {
    color: inherit;
}

@media (max-width: 760px) {
    .footer-independent-repair-links {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-inline: 18px;
    }

    .footer-independent-repair-nav {
        justify-content: flex-start;
        gap: 10px 16px;
    }
}


/* fixonic-account-hub.css */
/* Canonical My Fixonic account-hub layout and theme treatment. */
.app-account-header {
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid var(--fx-line);
    border-radius: 18px;
    background: var(--fx-panel);
    box-shadow: none;
}

.app-account-identity {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.app-account-identity > span {
    color: var(--fx-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-account-identity h1 {
    margin: 0;
    color: var(--fx-text);
    line-height: 1.15;
}

.app-account-identity p {
    margin: 0;
    max-width: 100%;
    color: var(--fx-muted);
    overflow-wrap: anywhere;
}

.app-account-signout {
    min-width: 132px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 18px;
    color: var(--fx-text) !important;
    border: 1px solid var(--fx-line-strong);
    border-radius: 12px;
    background: var(--fx-panel-2);
    font-size: .94rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
}

.app-account-signout > i {
    flex: 0 0 auto;
    width: 1em;
    text-align: center;
    font-size: .92em;
}

.app-account-signout > span {
    display: block;
    min-width: max-content;
}

.app-account-signout:hover,
.app-account-signout:focus-visible {
    color: var(--fx-blue) !important;
    border-color: var(--fx-blue);
    background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-panel));
}

.app-account-metrics,
.app-account-links > a,
.app-account-theme-control,
.app-account-activity-list > a,
.app-account-order-grid > a {
    color: var(--fx-text);
    border-color: var(--fx-line);
}

.app-account-metrics {
    background: var(--fx-panel);
}

.app-account-metrics a {
    color: var(--fx-text);
    background: transparent;
}

.app-account-metrics strong,
.app-account-links > a strong,
.app-account-theme-control strong,
.app-account-activity-list strong,
.app-account-order-grid strong {
    color: var(--fx-text);
}

.app-account-metrics span,
.app-account-links > a small,
.app-account-theme-control small,
.app-account-activity-list small,
.app-account-order-grid small {
    color: var(--fx-muted);
}

.app-account-links > a,
.app-account-theme-control,
.app-account-activity-list > a,
.app-account-order-grid > a {
    background: var(--fx-panel);
}

.app-account-links > a,
.app-account-theme-control {
    grid-template-columns: 42px minmax(0, 1fr) 18px !important;
    gap: 14px !important;
    padding: 14px 14px !important;
}

.app-account-link-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    border-radius: 12px;
    color: var(--fx-blue);
    background: var(--fx-panel-2);
    font-size: 1rem;
    line-height: 1;
}

.app-account-link-icon > i {
    width: 1.1em;
    text-align: center;
    line-height: 1;
}

.app-account-links > a > .app-account-chevron,
.app-account-theme-control > .app-account-chevron {
    justify-self: end;
    width: 18px;
    color: var(--fx-muted);
    font-size: .9rem;
    text-align: center;
}

/* Order-state chips must remain legible in both themes. */
.app-account-order-grid .status-pill,
.app-account-activity-list .status-pill {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    color: var(--fx-text-soft) !important;
    border: 1px solid var(--fx-line-strong);
    border-radius: 999px;
    background: var(--fx-panel-2) !important;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
}

.app-account-order-grid .status-pending_payment {
    color: #704700 !important;
    border-color: #e9c268;
    background: #fff0bf !important;
}

.app-account-order-grid .status-expired {
    color: #4f5967 !important;
    border-color: #d2d7df;
    background: #eef1f5 !important;
}

html[data-theme="dark"] .app-account-header {
    color: var(--fx-text);
    border-color: var(--fx-line-strong);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fx-blue) 9%, transparent), transparent 58%),
        var(--fx-panel) !important;
}

html[data-theme="dark"] .app-account-header :is(h1, strong),
html[data-theme="dark"] .app-account-metrics :is(strong, a),
html[data-theme="dark"] .app-account-links > a strong,
html[data-theme="dark"] .app-account-theme-control strong,
html[data-theme="dark"] .app-account-activity-list strong,
html[data-theme="dark"] .app-account-order-grid strong {
    color: var(--fx-text) !important;
}

html[data-theme="dark"] .app-account-header :is(p, small),
html[data-theme="dark"] .app-account-metrics span,
html[data-theme="dark"] .app-account-links > a small,
html[data-theme="dark"] .app-account-theme-control small,
html[data-theme="dark"] .app-account-activity-list small,
html[data-theme="dark"] .app-account-order-grid small {
    color: var(--fx-muted) !important;
}

html[data-theme="dark"] .app-account-identity > span {
    color: var(--fx-cyan) !important;
}

html[data-theme="dark"] :is(
    .app-account-metrics,
    .app-account-links > a,
    .app-account-theme-control,
    .app-account-activity-list > a,
    .app-account-order-grid > a
) {
    border-color: var(--fx-line) !important;
    background: var(--fx-panel) !important;
}

html[data-theme="dark"] .app-account-link-icon {
    color: var(--fx-cyan) !important;
    background: var(--fx-panel-2) !important;
}

html[data-theme="dark"] .app-account-signout {
    color: var(--fx-text) !important;
    border-color: var(--fx-line-strong);
    background: var(--fx-panel-2);
}

html[data-theme="dark"] .app-account-signout:hover,
html[data-theme="dark"] .app-account-signout:focus-visible {
    color: var(--fx-cyan) !important;
    border-color: var(--fx-cyan);
    background: color-mix(in srgb, var(--fx-cyan) 8%, var(--fx-panel));
}

html[data-theme="dark"] .app-account-order-grid .status-pill,
html[data-theme="dark"] .app-account-activity-list .status-pill {
    color: var(--fx-text) !important;
    border-color: var(--fx-line-strong) !important;
    background: var(--fx-panel-2) !important;
}

html[data-theme="dark"] .app-account-order-grid .status-pending_payment {
    color: #ffd57f !important;
    border-color: rgba(255, 213, 127, .38) !important;
    background: rgba(255, 193, 70, .12) !important;
}

html[data-theme="dark"] .app-account-order-grid .status-expired {
    color: var(--fx-text-soft) !important;
    border-color: var(--fx-line-strong) !important;
    background: var(--fx-panel-3) !important;
}

@media (min-width: 901px) {
    .app-account-header {
        width: fit-content;
        max-width: 100%;
        grid-template-columns: auto minmax(280px, 460px) auto;
        justify-content: start;
    }

    .app-account-signout {
        margin-left: 4px;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .app-account-header {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px 14px;
        padding: 18px;
    }

    .app-account-signout {
        grid-column: 2;
        justify-self: start;
        margin: 4px 0 0;
    }
}

@media (max-width: 760px) {
    .app-account-links > a,
    .app-account-theme-control {
        grid-template-columns: 40px minmax(0, 1fr) 16px !important;
        gap: 12px !important;
        padding: 13px 10px !important;
    }

    .app-account-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
}

@media (max-width: 420px) {
    .app-account-header {
        padding: 16px;
    }

    .app-account-signout {
        min-width: 128px;
        min-height: 40px;
        padding-inline: 15px;
    }
}


/* fixonic-dark-mode-audit.css */
/* Site-wide dark-mode and seller-workspace audit layer.
   Loaded last so shared controls stay readable and compact after all legacy themes. */

/* Compact status treatment everywhere. */
.status-pill {
    width: fit-content !important;
    max-width: 100%;
    min-height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: start;
    align-self: start;
    padding: 0 11px !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
}

html[data-theme="dark"] .status-pill {
    color: #e9f0f8 !important;
    border-color: #3a4759 !important;
    background: #253142 !important;
}
html[data-theme="dark"] :is(.status-active,.status-paid,.status-completed,.fulfilment-dispatched,.fulfilment-completed) {
    color: #b9f6ce !important;
    border-color: #2f7650 !important;
    background: #153b29 !important;
}
html[data-theme="dark"] :is(.status-ended,.status-expired,.status-closed,.status-cancelled,.fulfilment-cancelled) {
    color: #dbe4ef !important;
    border-color: #445265 !important;
    background: #293442 !important;
}
html[data-theme="dark"] :is(.status-pending,.status-pending_payment,.status-draft,.status-awaiting_dispatch,.fulfilment-awaiting_dispatch,.fulfilment-pending) {
    color: #ffe8a3 !important;
    border-color: #80652e !important;
    background: #453715 !important;
}
html[data-theme="dark"] :is(.status-blocked,.status-rejected,.status-disputed) {
    color: #ffc3cb !important;
    border-color: #8b3d49 !important;
    background: #48212a !important;
}
html[data-theme="dark"] :is(.status-refunded,.status-partially_refunded) {
    color: #d7c8ff !important;
    border-color: #665292 !important;
    background: #302548 !important;
}

/* Seller workspace cards: compact, grouped and easy to scan. */
.app-selling-card-list {
    display: grid !important;
    gap: 12px !important;
    margin-top: 14px;
}
.app-selling-card-list > article {
    display: grid !important;
    grid-template-columns: 132px minmax(0,1fr) 48px !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 16px 18px !important;
    border: 1px solid var(--fx-line) !important;
    border-radius: 16px !important;
    background: var(--fx-panel) !important;
    overflow: hidden;
}
.app-selling-card-media {
    width: 132px !important;
    height: 104px !important;
    aspect-ratio: auto !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden;
    color: var(--fx-text);
    border: 1px solid var(--fx-line) !important;
    border-radius: 13px !important;
    background: var(--fx-panel-2) !important;
}
.app-selling-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.app-selling-card-list article > div {
    min-width: 0;
    display: grid !important;
    align-content: center;
    gap: 6px !important;
}
.app-selling-card-list h2 {
    margin: 0 !important;
    color: var(--fx-text) !important;
    font-size: 1.02rem !important;
    line-height: 1.32 !important;
}
.app-selling-card-list h2 a { color: inherit !important; }
.app-selling-card-list p,
.app-selling-card-list small { color: var(--fx-muted) !important; }
.app-selling-card-list article > div > strong { color: var(--fx-text) !important; font-size: 1rem; }
.app-selling-card-list .text-link { width: fit-content; color: var(--fx-cyan) !important; font-weight: 750; }
.app-selling-card-list .status-pill { margin-bottom: 1px; }
.app-selling-card-arrow {
    width: 44px;
    height: 44px;
    display: grid !important;
    place-items: center;
    justify-self: end !important;
    color: var(--fx-text) !important;
    border: 1px solid var(--fx-line-strong);
    border-radius: 999px;
    background: var(--fx-panel-2);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
}
.app-selling-card-arrow:hover,
.app-selling-card-arrow:focus-visible {
    color: var(--fx-cyan) !important;
    border-color: var(--fx-cyan);
    background: color-mix(in srgb, var(--fx-cyan) 9%, var(--fx-panel));
    outline: none;
}

html[data-theme="dark"] .app-selling-card-list > article {
    border-color: var(--fx-line) !important;
    background: #111824 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
html[data-theme="dark"] .app-selling-card-media {
    color: #f5f8fc !important;
    border-color: #334154 !important;
    background: #182232 !important;
}
html[data-theme="dark"] .app-selling-card-arrow {
    color: #f5f8fc !important;
    border-color: #3a485b !important;
    background: #182232 !important;
}

/* Selling status tabs and management table. */
.app-selling-status-tabs { gap: 8px !important; }
.app-selling-status-tabs a {
    color: var(--fx-muted) !important;
    border: 1px solid var(--fx-line) !important;
    border-radius: 999px !important;
    background: var(--fx-panel) !important;
}
.app-selling-status-tabs a.is-active {
    color: var(--fx-accent-ink) !important;
    border-color: var(--fx-blue) !important;
    background: var(--fx-blue) !important;
}
.dashboard-table-wrap {
    overflow: auto;
    border: 1px solid var(--fx-line);
    border-radius: 14px;
    background: var(--fx-panel);
}
html[data-theme="dark"] .dashboard-table { color: var(--fx-text) !important; background: var(--fx-panel) !important; }
html[data-theme="dark"] .dashboard-table :is(th,td) { color: var(--fx-text-soft) !important; border-color: var(--fx-line) !important; }
html[data-theme="dark"] .dashboard-table th { color: var(--fx-text) !important; background: var(--fx-panel-2) !important; }
html[data-theme="dark"] .dashboard-table a { color: var(--fx-cyan) !important; }

/* Native controls: dark means dark, including the opened option list where supported. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] :is(
    select,
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    textarea
) {
    color: #f5f8fc !important;
    border-color: #3a485b !important;
    background-color: #0f1621 !important;
    caret-color: #f5f8fc;
}
html[data-theme="dark"] select {
    color-scheme: dark;
    accent-color: var(--fx-blue);
}
html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup {
    color: #f5f8fc !important;
    background: #101720 !important;
}
html[data-theme="dark"] select option:disabled { color: #7f8b9d !important; }
html[data-theme="dark"] :is(input,textarea)::placeholder { color: #718096 !important; opacity: 1; }
html[data-theme="dark"] :is(select,input,textarea):focus {
    border-color: var(--fx-cyan) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(101,223,255,.14) !important;
}
html[data-theme="dark"] :is(select,input,textarea):disabled {
    color: #7f8b9d !important;
    background: #121923 !important;
    opacity: 1;
}

/* Custom menus/popovers share one dark palette. */
html[data-theme="dark"] :is(
    .app-card-popover,
    .dropdown-menu,
    .menu-panel,
    .filter-menu,
    .sort-menu,
    .app-filter-sheet,
    .app-card-actions-menu,
    [role="menu"]
) {
    color: #f5f8fc !important;
    border-color: #354153 !important;
    background: #101720 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.38) !important;
}
html[data-theme="dark"] :is(
    .app-card-popover,
    .dropdown-menu,
    .menu-panel,
    .filter-menu,
    .sort-menu,
    .app-filter-sheet,
    .app-card-actions-menu,
    [role="menu"]
) :is(a,button,[role="menuitem"],label) {
    color: #f5f8fc !important;
}
html[data-theme="dark"] :is(
    .app-card-popover,
    .dropdown-menu,
    .menu-panel,
    .filter-menu,
    .sort-menu,
    .app-filter-sheet,
    .app-card-actions-menu,
    [role="menu"]
) :is(a,button,[role="menuitem"]):hover,
html[data-theme="dark"] :is(
    .app-card-popover,
    .dropdown-menu,
    .menu-panel,
    .filter-menu,
    .sort-menu,
    .app-filter-sheet,
    .app-card-actions-menu,
    [role="menu"]
) :is(a,button,[role="menuitem"]):focus-visible {
    color: #fff !important;
    background: #1b2635 !important;
}

/* Common dark surfaces that still inherit light-era colours. */
html[data-theme="dark"] :is(
    .empty-state,
    .dashboard-section,
    .dashboard-table-wrap,
    .form-section,
    .filters-panel,
    .results-toolbar,
    .results-header,
    .app-results-toolbar,
    .app-search-save-row
) {
    color: var(--fx-text) !important;
    border-color: var(--fx-line) !important;
}
html[data-theme="dark"] :is(
    .empty-state,
    .form-section,
    .filters-panel,
    .results-toolbar,
    .results-header,
    .app-results-toolbar,
    .app-search-save-row
) { background: var(--fx-panel) !important; }
html[data-theme="dark"] :is(.empty-state,.dashboard-section,.form-section) :is(h1,h2,h3,strong) { color: var(--fx-text) !important; }
html[data-theme="dark"] :is(.empty-state,.dashboard-section,.form-section) :is(p,small,.helptext) { color: var(--fx-muted) !important; }

@media (max-width: 760px) {
    .app-selling-card-list > article {
        grid-template-columns: 88px minmax(0,1fr) 44px !important;
        gap: 12px !important;
        padding: 13px !important;
    }
    .app-selling-card-media {
        width: 88px !important;
        height: 76px !important;
        border-radius: 11px !important;
    }
    .app-selling-card-list h2 { font-size: .92rem !important; }
    .app-selling-card-arrow { width: 40px; height: 40px; font-size: 1.55rem; }
}

@media (max-width: 430px) {
    .app-selling-card-list > article {
        grid-template-columns: 72px minmax(0,1fr) !important;
        align-items: start !important;
    }
    .app-selling-card-media { width: 72px !important; height: 68px !important; }
    .app-selling-card-arrow {
        grid-column: 2;
        justify-self: start !important;
        width: auto;
        min-width: 92px;
        height: 36px;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 0;
    }
    .app-selling-card-arrow::before {
        content: "Manage";
        font-size: .78rem;
        font-weight: 800;
    }
    .app-selling-card-arrow::after {
        content: "›";
        margin-left: 7px;
        font-size: 1.15rem;
    }
}


/* fixonic-account-signout-final.css */
/* Final My Fixonic sign-out correction.
   The older mobile regression layer uses a more-specific account selector and
   was stripping the horizontal padding from this control on iPhone widths. */

.app-route-account_hub .app-account-signout {
    width: auto !important;
    min-width: 128px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    box-sizing: border-box;
    margin: 2px 0 0 !important;
    padding: 0 16px !important;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1 !important;
    white-space: nowrap;
}

.app-route-account_hub .app-account-signout > i {
    width: 1em !important;
    min-width: 1em;
    flex: 0 0 1em;
    margin: 0 !important;
    text-align: center;
    font-size: .9em;
    line-height: 1;
}

.app-route-account_hub .app-account-signout > span {
    display: block;
    min-width: max-content;
    line-height: 1;
}

@media (max-width: 420px) {
    .app-route-account_hub .app-account-signout {
        min-width: 124px !important;
        min-height: 40px !important;
        padding-inline: 14px !important;
    }
}


/* fixonic-icon-system-final.css */
/* Final site-wide icon treatment. Loaded after legacy/regression layers. */

.fx-fa-glyph,
.fx-fa-glyph > i,
.app-sell-type-icon > i,
.app-draft-arrow > i,
.app-selling-card-arrow > i {
    display: inline-block;
    width: 1em;
    text-align: center;
    line-height: 1;
}

.app-sell-type-icon {
    width: 44px !important;
    height: 44px !important;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box;
    padding: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: var(--fx-blue) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.app-sell-type-icon > i {
    font-size: 1.02rem;
}

.app-draft-arrow,
.app-selling-card-arrow {
    color: var(--fx-muted) !important;
    font-size: .88rem !important;
    line-height: 1 !important;
}

.app-draft-arrow {
    width: 18px;
    display: inline-grid;
    place-items: center;
}

/*
 * Draft cards follow a marketplace-style mobile pattern: the whole content row
 * resumes the draft, while secondary/destructive actions live behind a quiet
 * three-dot overflow control instead of occupying a permanent action column.
 */
.app-draft-card {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.app-draft-card > .app-draft-main {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px;
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    padding: 18px 62px 18px 18px !important;
    border-radius: inherit;
    color: inherit;
    text-decoration: none !important;
}

.app-draft-card > .app-draft-main:hover {
    background: color-mix(in srgb, var(--fx-blue) 4%, transparent);
}

.app-draft-card .app-draft-thumb {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px;
    border-radius: 13px;
}

.app-draft-card .app-draft-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.app-draft-card .app-draft-copy > strong {
    margin: 0;
    color: var(--fx-text);
    font-size: 1rem;
    line-height: 1.25;
}

.app-draft-card .app-draft-copy > small {
    margin: 0;
    color: var(--fx-muted);
    line-height: 1.38;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.app-draft-card .app-draft-progress {
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
}

.app-draft-menu {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 20 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.app-draft-menu > summary {
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--fx-muted) !important;
    background: transparent !important;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.app-draft-menu > summary::-webkit-details-marker {
    display: none;
}

.app-draft-menu > summary::marker {
    content: "";
}

.app-draft-menu > summary:hover,
.app-draft-menu > summary:focus-visible,
.app-draft-menu[open] > summary {
    color: var(--fx-text) !important;
    background: var(--fx-panel-2) !important;
    outline: none;
}

.app-draft-menu > summary > i {
    width: 1em;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
}

.app-draft-menu-popover {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    z-index: 30 !important;
    width: 184px !important;
    padding: 6px !important;
    border: 1px solid var(--fx-line-strong) !important;
    border-radius: 12px !important;
    background: var(--fx-panel) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24) !important;
}

.app-draft-menu-popover form {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.app-draft-menu-delete {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 11px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #d84555 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-size: .86rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    cursor: pointer;
}

.app-draft-menu-delete:hover,
.app-draft-menu-delete:focus-visible {
    color: #c72f42 !important;
    background: rgba(255, 93, 108, .08) !important;
    outline: none !important;
}

.app-draft-menu-delete > i {
    width: 18px;
    flex: 0 0 18px;
    text-align: center;
}

html[data-theme="dark"] .app-draft-menu-delete {
    color: #ff929f !important;
}

html[data-theme="dark"] .app-draft-menu-delete:hover,
html[data-theme="dark"] .app-draft-menu-delete:focus-visible {
    color: #ffb1ba !important;
    background: rgba(255, 93, 108, .09) !important;
}

/* Decorative chevrons converted from legacy text glyphs should never inherit giant text sizing. */
:is(.hub-breadcrumbs,.equipment-breadcrumbs,.app-notification-list,.app-notification-center,.app-saved-search-main,.app-review-list) .fx-fa-glyph {
    width: 1em;
    color: var(--fx-muted);
    font-size: .72em;
}

/*
 * Bottom Account used to give every direct <i> inside its wrapper the unread-dot
 * treatment. The Font Awesome conversion also uses an <i>, so explicitly restore
 * the user glyph to the same geometry as the other bottom navigation icons.
 */
.app-bottom-nav .app-bottom-account-icon.fx-bottom-nav-account-icon {
    position: static !important;
    width: 1em !important;
    min-width: 1em !important;
    height: 1em !important;
    min-height: 1em !important;
    display: inline-grid !important;
    place-items: center !important;
    overflow: visible !important;
}

.app-bottom-nav .app-bottom-account-icon.fx-bottom-nav-account-icon > .fx-bottom-nav-icon {
    position: static !important;
    inset: auto !important;
    width: 1em !important;
    min-width: 1em !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 1.18rem !important;
    line-height: 1 !important;
    text-align: center !important;
}

@media (max-width: 760px) {
    .app-draft-card > .app-draft-main {
        min-height: 104px;
        grid-template-columns: 60px minmax(0, 1fr) !important;
        gap: 13px !important;
        padding: 15px 56px 15px 15px !important;
    }

    .app-draft-card .app-draft-thumb {
        width: 60px !important;
        height: 60px !important;
        flex-basis: 60px;
        border-radius: 12px;
    }

    .app-draft-menu {
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 520px) {
    .app-sell-type-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 11px !important;
    }

    .app-draft-card > .app-draft-main {
        min-height: 96px;
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 13px 52px 13px 13px !important;
    }

    .app-draft-card .app-draft-thumb {
        width: 54px !important;
        height: 54px !important;
        flex-basis: 54px;
        border-radius: 11px;
    }

    .app-draft-card .app-draft-copy {
        gap: 5px;
    }

    .app-draft-card .app-draft-copy > strong {
        font-size: .94rem;
    }

    .app-draft-card .app-draft-copy > small {
        font-size: .78rem;
    }

    .app-draft-menu {
        top: 8px !important;
        right: 8px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .app-draft-menu > summary {
        width: 38px !important;
        height: 38px !important;
    }

    .app-draft-menu-popover {
        width: 172px !important;
    }
}


/* fixonic-launch-polish.css */
/* Final launch polish: shared controls, icon sizing, touch targets and theme parity. */

:root {
    --fx-control-radius: 12px;
    --fx-touch-target: 44px;
    --fx-control-gap: 10px;
}

/* Font Awesome theme toggle: moon means switch to dark, sun means switch to light. */
.fx-theme-icon {
    width: 1em !important;
    height: 1em !important;
    fill: currentColor !important;
    stroke: none !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
}

.fx-theme-icon-sun { display: none !important; }
html[data-theme="dark"] .fx-theme-icon-moon { display: none !important; }
html[data-theme="dark"] .fx-theme-icon-sun { display: inline-block !important; }

/* Header icon controls share one geometry instead of page-specific glyph sizing. */
.app-mobile-header-actions .app-icon-button,
.app-mobile-header-actions .fx-theme-toggle {
    width: var(--fx-touch-target) !important;
    min-width: var(--fx-touch-target) !important;
    height: var(--fx-touch-target) !important;
    min-height: var(--fx-touch-target) !important;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border-radius: 999px !important;
}

.app-mobile-header-actions .fx-mobile-chrome-icon,
.app-mobile-header-actions .fx-theme-icon {
    width: 1em !important;
    font-size: 1.06rem !important;
    line-height: 1 !important;
    text-align: center;
}

.app-mobile-search > .fx-mobile-search-leading,
.app-mobile-search .fx-mobile-search-submit {
    width: 1em !important;
    font-size: 1.14rem !important;
    line-height: 1 !important;
    color: currentColor;
}

.app-mobile-search > .fx-mobile-search-leading {
    margin-inline: 2px 4px;
}

.app-search-submit {
    width: var(--fx-touch-target) !important;
    min-width: var(--fx-touch-target) !important;
    height: var(--fx-touch-target) !important;
    min-height: var(--fx-touch-target) !important;
    display: inline-grid !important;
    place-items: center !important;
}

/* Bottom navigation icons use one Font Awesome family and aligned optical size. */
.app-bottom-nav .fx-bottom-nav-icon {
    width: 1em !important;
    min-width: 1em;
    font-size: 1.18rem !important;
    line-height: 1 !important;
    text-align: center;
}

.app-bottom-nav a {
    min-height: 56px;
}

/* The legacy account wrapper also uses a bare <i> as its unread dot. Once the
   SVG is replaced by Font Awesome, that old selector must not turn fa-user
   into the notification dot. Keep the user icon in the same geometry as the
   other bottom-nav icons and leave only the bare marker positioned as a dot. */
.app-bottom-nav .app-bottom-account-icon {
    position: relative !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
}

.app-bottom-nav .app-bottom-account-icon > i.fa-solid,
.app-bottom-nav .app-bottom-account-icon > i.fx-bottom-nav-icon {
    position: static !important;
    inset: auto !important;
    width: 1em !important;
    min-width: 1em !important;
    height: 1em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 1.18rem !important;
    line-height: 1 !important;
    text-align: center !important;
}

.app-bottom-nav .app-bottom-account-icon > i:not(.fa-solid) {
    position: absolute !important;
    top: -1px !important;
    right: -3px !important;
    width: 8px !important;
    min-width: 8px !important;
    height: 8px !important;
    border: 2px solid #090b0d !important;
    border-radius: 50% !important;
    background: #c8ff63 !important;
}

/* Shared interactive states: clear but quiet. */
:is(
    a,
    button,
    summary,
    input,
    select,
    textarea
):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--fx-blue) 34%, transparent);
    outline-offset: 2px;
}

button,
.button,
.app-header-link,
.app-search-saved-button,
.app-report-login-link {
    -webkit-tap-highlight-color: transparent;
}

.button,
button.button,
a.button {
    min-height: 44px;
    box-sizing: border-box;
    border-radius: var(--fx-control-radius);
}

/* Keep icon-only controls finger-friendly and stop inherited text padding. */
:is(
    .app-icon-button,
    .fx-theme-toggle,
    .app-draft-menu > summary,
    .app-search-submit,
    .fx-image-zoom-trigger
) {
    touch-action: manipulation;
}

/* Standard compact destructive action when it appears inside an overflow menu. */
.app-draft-menu-delete {
    min-height: 44px !important;
}

/* Marketplace cards: predictable image behavior and no accidental crop for product evidence. */
:is(
    .order-row img,
    .order-summary-card img,
    .app-account-order-grid img,
    .app-selling-card-media img,
    .app-draft-thumb img,
    .app-saved-card img
) {
    max-width: 100%;
}

.order-row img,
.order-summary-card img,
.app-account-order-grid img {
    object-fit: contain !important;
}

/* Status pills should stay compact and never stretch entire cards on phones. */
.status-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
}

/* Form feedback and empty states use the same readable width and rhythm. */
.empty-state,
.warning-box,
.message {
    overflow-wrap: anywhere;
}

.empty-state .button,
.warning-box .button {
    min-height: 44px;
}

/* Mobile search keeps only the functional submit magnifier on the right. */
@media (max-width: 900px) {
    .app-mobile-search {
        grid-template-columns: minmax(0, 1fr) 42px !important;
        column-gap: 8px !important;
        padding-left: 18px !important;
    }

    .app-mobile-search > svg:first-child,
    .app-mobile-search > .fx-mobile-search-leading {
        display: none !important;
    }
}

/* Prevent fixed mobile chrome from covering the final actionable row. */
@media (max-width: 900px) {
    body:not(.app-route-checkout) main {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .app-mobile-header-actions {
        gap: 8px !important;
    }
}

@media (max-width: 430px) {
    .app-mobile-header-actions .app-icon-button,
    .app-mobile-header-actions .fx-theme-toggle {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    .app-mobile-search {
        grid-template-columns: minmax(0, 1fr) 40px !important;
        column-gap: 7px !important;
        padding-left: 16px !important;
    }

    .app-bottom-nav .fx-bottom-nav-icon {
        font-size: 1.12rem !important;
    }

    .app-bottom-nav .app-bottom-account-icon > i.fa-solid,
    .app-bottom-nav .app-bottom-account-icon > i.fx-bottom-nav-icon {
        font-size: 1.12rem !important;
    }
}

@media (max-width: 350px) {
    .app-mobile-search {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        column-gap: 6px !important;
        padding-left: 14px !important;
    }
}


/* fixonic-mods-navigation-final.css */
.fx-mods-home-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid var(--fx-line-strong, #c7c7c7);
    border-radius: 20px;
    background: var(--fx-panel, #fff);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}
.fx-mods-home-banner-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}
.fx-mods-home-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fx-blue, #3665f3);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fx-mods-home-banner h2 {
    margin: 0;
    color: var(--fx-text, #191919);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.12;
}
.fx-mods-home-banner p {
    max-width: 760px;
    margin: 0;
    color: var(--fx-muted, #686868);
    font-size: .92rem;
    line-height: 1.55;
}
.fx-mods-home-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fx-mods-home-banner .fx-mods-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: var(--fx-blue, #3665f3);
}
.fx-mods-home-banner .fx-mods-primary:hover,
.fx-mods-home-banner .fx-mods-primary:focus-visible {
    filter: brightness(.96);
}
.fx-mods-category-link .app-category-disc,
.app-category-rail .fx-mods-disc {
    display: grid;
    place-items: center;
    font-size: 1rem;
}
.fx-mods-category-link .app-category-disc i,
.app-category-rail .fx-mods-disc i {
    width: 1em;
    text-align: center;
}
.market-category-row .fx-global-mods-link,
.market-utility-left .fx-global-mods-link {
    font-weight: 800;
}
.market-category-row .fx-global-mods-link i,
.market-utility-left .fx-global-mods-link i {
    margin-right: 6px;
}
.app-shortcuts .fx-home-mods-shortcut .shortcut-icon {
    display: inline-grid;
    place-items: center;
}
html[data-theme="dark"] .fx-mods-home-banner {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}
@media (max-width: 760px) {
    .fx-mods-home-banner {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 14px 16px 18px;
        padding: 18px;
        border-radius: 17px;
    }
    .fx-mods-home-banner-actions,
    .fx-mods-home-banner .fx-mods-primary {
        width: 100%;
    }
    .fx-mods-home-banner .fx-mods-primary {
        min-height: 48px;
    }
    .fx-mods-home-banner p {
        font-size: .88rem;
    }
}


/* fixonic-product-image-contain.css */
/* Keep product artwork fully visible in compact marketplace surfaces.
   Product photos should never be cropped simply to fill a thumbnail. */

.order-product-thumb,
.order-canary-thumb,
.app-draft-thumb,
.app-selling-card-media,
.fx-seller-preview-media {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* Order/purchase thumbnails are intentionally square so portrait and landscape
   supplier artwork has predictable breathing room on mobile. */
.order-product-thumb {
    aspect-ratio: 1 / 1 !important;
    padding: 6px !important;
}

.order-canary-thumb,
.app-draft-thumb,
.fx-seller-preview-media {
    padding: 5px !important;
}

.order-product-thumb img,
.order-canary-thumb img,
.app-draft-thumb img,
.app-selling-card-media img,
.fx-seller-preview-media img,
.listing-card-media img,
.app-main-image img,
.app-thumbnail-row img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
}

.order-product-thumb img,
.order-canary-thumb img,
.app-draft-thumb img,
.fx-seller-preview-media img {
    border-radius: inherit;
}

/* Listing grids keep their established card size while showing the entire photo. */
.listing-card-media {
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* Prevent the image itself from zooming/cropping on hover. */
.listing-card:hover .listing-card-media img {
    transform: none !important;
}

@media (max-width: 620px) {
    .order-product-thumb {
        padding: 4px !important;
    }
    .order-canary-thumb,
    .app-draft-thumb,
    .fx-seller-preview-media {
        padding: 4px !important;
    }
}


/* fixonic-basket-delivery-hotfix.css */
/* Basket/reservation access and badge geometry — 2026-09-19 */
.app-cart-button,
.app-detail-cart {
    position: relative !important;
    overflow: visible !important;
}

.app-cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -2px !important;
    z-index: 8 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    border: 2px solid var(--fx-bg, #050608) !important;
    border-radius: 999px !important;
    background: var(--fx-danger, #ff5f70) !important;
    color: #fff !important;
    font: 800 11px/1 Inter, system-ui, sans-serif !important;
    pointer-events: none !important;
}

.app-mobile-brand-row,
.app-mobile-header-actions {
    overflow: visible !important;
}

@media (max-width: 900px) {
    .app-route-detail .app-listing-actions > div > .app-detail-cart {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        display: grid !important;
        place-items: center !important;
        flex: 0 0 40px !important;
        padding: 0 !important;
        border: 1px solid var(--fx-line-strong, #344153) !important;
        border-radius: 999px !important;
        color: var(--fx-text, #f5f7fa) !important;
        background: var(--fx-bg, #050608) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .app-route-detail .app-listing-actions > div > .app-detail-cart svg {
        width: 20px !important;
        height: 20px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .app-route-detail .app-listing-actions > div {
        overflow: visible !important;
    }
}

@media (max-width: 430px) {
    .app-cart-count {
        top: -4px !important;
        right: -1px !important;
    }
}

