/* ================================================================
   ItemDetails.css — Item detail page
   All values use Momento design tokens from tokens.css
   ================================================================ */

/* Utility to hide elements (currently the Serial Number spec row and the Chunk 2 descriptions)
   while keeping their markup/selectors intact. The Share Item button no longer uses it. */
.fc-item-hidden {
    display: none !important;
}

.mud-tabs-panels {
    padding-bottom: 0px;
}

.item-detail-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cls_mobile_web_text {
    font-size: var(--text-action-md-size);
}

.cls_mobile_web_text_1 {
    font-size: var(--text-action-md-size);
    color: var(--color-brand-dark);
}

.cls_instore_purchase {
    font-size: 18px;
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: 28px;
    overflow: hidden;
    color: var(--color-brand-primary);
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-family: var(--font-body);
    -webkit-line-clamp: 1;
    align-self: stretch;
}

.responsive-container-UA3-item-detail {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Tablet: 403px–744px ──────────────────────────────────── */
@media (min-width: 403px) and (max-width: 744px) {
    .responsive-container-UA3-item-detail {
        max-width: 100%;
    }

    .hide_links {
        display: none;
    }

    .search_wrapper_ex {
        width: 854px;
    }

    .pad {
        padding: 25px;
    }

    .sp {
        margin: 0 auto;
        margin-right: 1px;
    }

    .cls_mobile_web_text {
        font-size: var(--text-action-md-size);
    }

    .cls_mobile_web_text_1 {
        font-size: var(--text-action-md-size);
        color: var(--color-brand-dark);
    }
}

/* ── Desktop: >744px ──────────────────────────────────────── */
@media (min-width: 768px) {
    .responsive-container-UA3-item-detail {
        max-width: 100%;
    }

    .cls_instore_purchase {
        font-size: 18px;
        font-style: normal;
        font-weight: var(--fw-bold);
        line-height: 28px;
        overflow: hidden;
        color: var(--color-brand-primary);
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        font-family: var(--font-body);
        -webkit-line-clamp: 1;
        align-self: stretch;
    }

    .brd-rds {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .item-detail-container {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1280px;
        margin: 0 auto;
    }

    .item-image-itemdetail, .item-info {
        flex: 1;
    }

    .item-image-itemdetail {
        max-width: 50%;
    }

    .item-info {
        max-width: 40%;
    }

    .hide_links {
        display: block;
    }

    .search_wrapper_ex {
        width: 854px;
    }

    .pad {
        padding: 25px;
    }

    .sp {
        margin: 0 auto;
    }
}

/* ── Item text ────────────────────────────────────────────── */
.cls_item_text {
    font-size: 28px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 1.15;
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
}

.cls_item_text_stack {
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
}

.cls_item_sub_text {
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-normal);
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

.cls_item_sub_text_1 {
    color: var(--color-text-primary);
    font-variant-numeric: lining-nums proportional-nums;
    font-family: var(--font-body);
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: var(--text-action-md-lh);
    letter-spacing: 0.2px;
}

.cls_map_height {
    height: 194px;
}

.cls_price_text {
    font-size: 28px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 48px;
    letter-spacing: 0.2px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
}

.cls_wishlist {
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: var(--text-action-md-lh);
}

.cls_reserve {
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: var(--text-action-md-lh);
    color: var(--color-text-primary);
}

.cls_btn_reserve {
    height: 56px;
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    width: 100%;
    border-color: var(--color-brand-accent);
}

.cls_badge {
    font-size: 12px;
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: 18px;
    letter-spacing: 0.2px;
}

.cls_map_text_1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 32px;
    color: var(--color-text-primary);
}

.cls_map_text_2 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: var(--text-action-md-lh);
    color: var(--color-text-primary);
}

.cls_map_link_text {
    font-family: var(--font-heading);
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: 500;
    line-height: var(--text-action-md-lh);
    border-radius: var(--radius-sm);
    text-decoration: underline !important;
}

.no-header-padding .mud-expand-panel-header {
    padding-top: 0px !important;
    min-height: 0px;
}

.no_header_padding_2 .mud-expand-panel-content.mud-expand-panel-gutters {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.cls_store_text_1 {
    font-family: var(--font-heading);
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: var(--text-action-md-lh);
    color: var(--color-text-primary);
}

.cls_store_text_2 {
    font-family: var(--font-body);
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-normal);
    line-height: var(--text-action-md-lh);
    color: var(--color-text-primary);
}

.cls_more_items {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 32px;
    letter-spacing: -0.12px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0px var(--space-2);
    color: var(--color-text-primary);
}

/* ── Horizontal scroll ────────────────────────────────────── */
.horizontal-scroll-container {
    display: flex;
    width: 100%;
    max-width: 1280px;
    min-width: 0;
    margin: 0 auto;
    overflow-x: auto;
    gap: var(--space-2);
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-container:active {
    cursor: grabbing;
}

.scroll-card {
    flex: 0 0 177px;
    min-height: 265px;
    border-radius: 32px;
}

.horizontal-scroll-container,
.scroll-card,
.scroll-card * {
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Carousel indicators ──────────────────────────────────── */
.custom-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-1);
}

.mud_button_custom:hover {
    background-color: inherit !important;
    color: inherit !important;
}

.custom-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-bullet.active {
    width: 24px;
    height: 8px;
    border-radius: 12px;
    background-color: var(--color-text-primary);
}

/* ── Carousel image ───────────────────────────────────────── */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

.mud-carousel,
.mud-carousel-item {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Let a vertical drag that STARTS ON THE ITEM IMAGE scroll the page.
   MudCarousel wraps its items in a MudSwipeArea, and MudBlazor.min.css gives that
   `.mud-swipearea { touch-action: none }` so it can capture gestures. `none` disables every
   browser pan, not just the horizontal one, so on mobile a swipe begun anywhere on the image was
   swallowed and the page would not move at all (reported 2026-09-03).
   `pan-y` hands VERTICAL panning back to the browser while horizontal movement still reaches the
   component, so next/previous-image swiping is unaffected. Scoped to this gallery so no other
   swipe surface in the app changes behaviour.
   NB the class is `mud-swipearea`, one word — not `mud-swipe-area`. */
.fc-item-main .mud-swipearea,
.fc-item-main .mud-carousel,
.fc-item-main .mud-carousel-item {
    touch-action: pan-y;
}

/* ── More items ───────────────────────────────────────────── */
.cls_more_items_sub_text {
    font-family: var(--font-body);
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-normal);
    line-height: var(--text-action-md-lh);
    letter-spacing: 0.2px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 145px;
    color: var(--color-text-primary) !important;
}

.cls_more_items_sub_text_1 {
    font-family: var(--font-body);
    font-size: 18px;
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: var(--text-action-md-lh);
    letter-spacing: 0.2px;
    color: var(--color-text-primary) !important;
}

/* ── Favourites ───────────────────────────────────────────── */
.favorite-active {
    color: var(--color-brand-accent);
}

.spinning {
    animation: spin 1s linear infinite;
}

.favorite-inactive {
    color: var(--color-text-primary);
}

.no-hover {
    transition: none !important;
    box-shadow: none !important;
}

.no-hover:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ── Collapse header/body ─────────────────────────────────── */
.cls_mud_header {
    font-size: 24px;
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: 32px;
    letter-spacing: -0.12px;
}

.cls_mud_body {
    font-size: 14px;
    font-style: normal;
    font-weight: var(--fw-normal);
    line-height: var(--text-action-md-lh);
}

.cls_icon {
    color: var(--color-text-primary);
    font-size: 24px;
    font-style: normal;
    font-weight: var(--fw-normal);
    line-height: 20px;
}

.small-toggle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.small-toggle:hover {
    background: transparent !important;
}

/* ── Viewport drawer ──────────────────────────────────────── */
.viewport-drawer.mud-drawer-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 50vh;
    z-index: 1400 !important;
    transform: none !important;
}

.mud-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Unscoped, so it reaches every MudDrawer's content box (the Profile modals, Sort & Filter, …).
   16px, not 24 (Kelly, 2026-09-29: "change the 24px drawer rule to 16px… Use the Momento Scale"). */
.mud-drawer-content {
    padding: var(--space-2);
    height: 292px;
}

/* ── Badge colours ────────────────────────────────────────── */
.cls_badge_hot {
    background-color: var(--color-brand-accent);
    color: var(--color-surface-default);
    font-size: 14px !important;
    font-weight: var(--fw-bold) !important;
    border-radius: var(--radius-sm) !important;
}

.cls_badge_price {
    background-color: var(--color-brand-accent);
    color: var(--color-text-primary);
    font-size: 12px !important;
    font-weight: var(--fw-bold) !important;
    border-radius: var(--radius-sm) !important;
}

.cls_badge_clearance {
    background-color: var(--color-warning);
    color: var(--color-text-primary);
    font-size: 12px !important;
    font-weight: var(--fw-bold) !important;
    border-radius: var(--radius-sm) !important;
}

/* ── Campaign item detail ─────────────────────────────────── */
.campaign-item-detail {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* ── Custom arrow ─────────────────────────────────────────── */
.custom-arrow-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-2);
    pointer-events: none;
    z-index: 10;
}

.custom-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-arrow:hover:not(.disabled) {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.custom-arrow:active:not(.disabled) {
    transform: scale(0.95);
}

.custom-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.6);
}

.custom-arrow i {
    color: var(--color-text-primary);
    font-size: var(--text-action-md-size);
}

.custom-arrow.disabled i {
    color: var(--color-text-muted);
}

/* ── Drawer confirm buttons ───────────────────────────────── */
.drawer-yes-button {
    position: relative;
    width: 100%;
    height: 56px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-success);
    background-color: var(--color-success);
    color: var(--color-surface-default);
    display: flex;
    align-items: center;
}

.drawer-yes-icon {
    position: absolute;
    left: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-surface-default);
}

.drawer-yes-text {
    position: absolute;
    left: 50%;
    font-size: 14px;
    transform: translate(-35%);
    text-align: center;
    color: var(--color-surface-default);
}

.drawer-no-button {
    position: relative;
    width: 100%;
    height: 56px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-brand-accent);
    background-color: var(--color-brand-accent);
    color: var(--color-surface-default);
}

.drawer-no-icon {
    position: absolute;
    left: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-surface-default);
}

.drawer-no-text {
    position: absolute;
    left: 50%;
    font-size: 14px;
    transform: translate(-50%);
    text-align: center;
    color: var(--color-surface-default);
}

/* ── Drawer scrollable layout ─────────────────────────────── */
.drawer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.drawer-scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-2);
}

.drawer-sticky-footer {
    position: sticky;
    bottom: 0;
    background-color: var(--color-surface-default);
    padding: var(--space-2);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* ── Reserve section typography ───────────────────────────── */
.cls_reserve_header {
    font-size: 22px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 32px;
}

.cls_reserve_body {
    font-size: var(--text-action-md-size);
    font-style: normal;
    font-weight: var(--fw-normal);
    line-height: var(--text-action-md-lh);
}

.cls_fontweight {
    font-weight: var(--fw-bold);
}

.cls_sub_reserve_header {
    font-size: 18px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 28px;
}

/* ── Policy accordion ─────────────────────────────────────── */
.policy-item {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    justify-content: space-between;
}

.arrow {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.arrow.open {
    transform: rotate(180deg);
}

.arrow.closed {
    transform: rotate(0deg);
}

/* ── Mobile carousel arrow adjustments ───────────────────── */
@media (max-width: 768px) {
    .custom-arrow {
        width: 36px;
        height: 36px;
    }

    .custom-arrow i {
        font-size: 14px;
    }

    .custom-arrow-container {
        padding: 0 var(--space-2);
    }

    .sp {
        margin: 0 auto;
        margin-right: 1px;
    }
}

@media (max-width: 480px) {
    .custom-arrow-container {
        display: none;
    }

    .hide_links {
        display: none;
    }

    .search_wrapper_ex {
        width: 100%;
    }

    .pad {
        padding: 25px;
    }
}

/* ── Image carousel container ─────────────────────────────── */
.item-image-itemdetail {
    width: 100%;
}

.carousel-square-container {
    position: relative;
    width: 100%;
    height: 552px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.custom-carousel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-color: var(--color-surface-subtle);
    pointer-events: none;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

.carousel-image1 {
    height: 50px;
    object-fit: contain;
    pointer-events: none;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

@media (max-width: 768px) {
    .carousel-square-container {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .carousel-square-container {
        border-radius: var(--radius-sm);
    }
}

@media (min-width: 768px) {
    .item-image-itemdetail {
        max-width: 58%;
        position: sticky;
        top: 55px;
    }

    .carousel-square-container {
        max-height: 500px;
    }
}

/* ── View store button ────────────────────────────────────── */
.view-store-btn {
    height: 36px;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    text-transform: none;
    border: 2px solid var(--color-brand-primary);
    color: var(--color-brand-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--fw-bold);
    line-height: 18px;
    letter-spacing: 0.2px;
    margin-top: 30px;
    white-space: nowrap;
}

/* No hover rule of its own (v3.0.2, Kelly 2026-09-30): the Secondary group in PressFeedback.css
   gives every Secondary the same surface-subtle fill. v3.1 had an extra info-blue fill + 4px halo here. */

/* ── Back button ──────────────────────────────────────────── */
.back_btn_cls {
    width: 100%;
    padding: var(--space-2);
    height: 52px;
    background: var(--color-surface-default);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-2);
}

.back_cls {
    margin-bottom: var(--space-2);
    padding: var(--space-2);
    background: var(--color-surface-default);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.more_items_section_cls {
    margin-top: var(--space-3);
    background: var(--color-surface-default);
    padding: var(--space-2) 0px 0px 0px;
}

/* ── Old price ────────────────────────────────────────────── */
.price-old {
    font-size: 28px;
    font-style: normal;
    font-weight: var(--fw-xbold);
    line-height: 48px;
    letter-spacing: 0.2px;
    color: var(--color-text-disabled);
    text-decoration: line-through;
    margin-left: var(--space-1);
}

/* ================================================================
   ItemDetail.css — Item Details page (ported from reference
   ItemDetail.css). Tokens only.
   NOTE: the legacy CSS/Components/ItemDetails.css stays loaded —
   WishListItems and LegalInformation still consume it.
   ================================================================ */

/* min-height fills the viewport — a plain 100% doesn't resolve against the
   flex-grown shell, leaving a dead band above the footer. */
.fc-item { min-height: calc(100dvh - var(--fc-appbar-h, 0px)); background: var(--color-surface-subtle); }
/* The Item Details page has NO Set-Location bar. --fc-header-h is declared at :root as
   calc(--fc-appbar-h + --fc-location-h) and its vars resolve against :root (where --fc-location-h keeps
   Home's stale ~42px) — so overriding --fc-location-h here has no effect. Instead REDECLARE --fc-header-h
   on the item root as nav-height only (still collapsing to 0 when the header hides), so the back bar +
   gallery pin flush under the header instead of 42px below it. Desktop-only (≤1024px uses top:0). */
@media (min-width: 1025px) {
    .fc-item { --fc-header-h: var(--fc-appbar-h, 88px); }
    html.fc-header-hidden .fc-item { --fc-header-h: 0px; }
    /* A TABLET IN LANDSCAPE IS WIDER THAN 1024 BUT IS NOT DESKTOP. --fc-appbar-h is a desktop-only
       token and is never set in the native shell, so `var(--fc-appbar-h, 88px)` fell back to the
       literal 88px there: the back bar pinned 88px down the page and the gallery at 88+57=145,
       both floating below where the native header actually ends. The desktop collapse class
       (fc-header-hidden) is never set on native either, so nothing ever returned it to 0. Hold the
       <=1024 value instead; the native header's own height is paid by the scroll container's
       padding, exactly as it is in portrait. */
    html.fc-native-shell .fc-item { --fc-header-h: 0px; }
}

/* Sticky back bar — flat arrow + "Back" label, centered to the 1280 content column. */
/* Back bar sticks just BELOW the global native header at rest (top:0 = the scroll container's
   padded edge), and rides up to the very top via a TRANSFORM when the header collapses on scroll —
   same property/curve as the header so they stay locked (no seam, no "middle" double-offset that
   `top: var(offset)` caused inside the padded scroll container). On web (no global header, no
   padding, class never applies) it stays at top:0 as before. */
.fc-item-bar { position: sticky; top: var(--fc-header-h, 0px); z-index: var(--fc-z-sticky, 1000); background: var(--color-surface-default); border-bottom: 1px solid var(--color-border); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), top 0.42s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
/* When the header is hidden the back bar rides to the very top — clear the iOS notch there.
   DO NOT PUT padding-top IN THE TRANSITION LIST ABOVE. It is tempting, because the inset otherwise
   steps 0 → --fc-safe-top in one frame and the bar reads as snapping rather than sliding. But this
   bar is `position: sticky`, so it stays in NORMAL FLOW: measured, growing its padding takes the bar
   from 41px to 73px and pushes every following element down by the same 32px. Transitioning it does
   not animate the bar, it animates a 32px reflow of the entire page, ~18 times across 300ms, while
   the user is mid-scroll — which showed up on device as the scroll freezing (tried 2026-11-05,
   reverted the same day). Untransitioned it costs exactly one reflow.
   THE GROWTH MUST NOT REACH THE FLOW. This bar is `position: sticky`, so it stays in normal flow
   and the padding above makes it 32px taller the moment the header hides - which pushed every
   following element down by 32px, then back up when the header returned. Measured: bar 41 -> 73px,
   following content 41 -> 73px. On a scroll that toggles the header repeatedly that is the content
   visibly bouncing up and down (reported 2026-11-05).
   An equal NEGATIVE BOTTOM MARGIN cancels it: the border box still grows to 73px, so the bar covers
   the status bar and its "Back" row clears the clock, but its MARGIN box stays 41px, so the flow -
   and therefore every element below it - never moves. Both properties are deliberately left out of
   the transition list above: they are layout, and animating them reflowed the whole page ~18 times
   per slide. They now change in one frame and that frame moves nothing visible, because the two
   cancel exactly. 
   app.css's status-bar scrim comment records the same conclusion from the other direction: paying
   the inset "as padding on its pinned state ... changed its box mid-scroll" is listed there as a
   rejected approach. */
html.fc-native-header-hidden .fc-item-bar { transform: translateY(calc(-1 * var(--native-header-h, 0px))); padding-top: var(--fc-safe-top); margin-bottom: calc(-1 * var(--fc-safe-top)); }
.fc-item-bar-inner { max-width: 1280px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.fc-item-back { display: inline-flex; align-items: center; gap: var(--space-half); padding: var(--space-1) var(--space-2); background: none; border: none; cursor: pointer; }
.fc-item-back i { font-size: 20px; color: var(--color-text-primary); }
.fc-item-back span { font-family: var(--font-heading); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); color: var(--color-text-primary); letter-spacing: 0.2px; line-height: 24px; }

/* Not found */
.fc-item-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-2); text-align: center; }
.fc-item-empty-icon { font-size: 3rem; color: var(--color-border); }
.fc-item-empty-title { font-family: var(--font-heading); font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-item-empty-msg { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-muted); }
.fc-item-cta.mud-button-root { text-transform: none; background-color: var(--color-brand-accent); color: var(--color-surface-default); border-radius: var(--radius-md); font-weight: var(--fw-bold); }

/* Grid: gallery | info */
/* Bottom padding 40 = the 32 it had + the 8 that moved here from .fc-item-info's bottom padding, so the
   sticky gallery's last pinned position (the grid's content edge) is the last accordion's bottom edge
   and the sections below stay exactly where they were (Kelly, 2026-10-07: image and accordions must
   align once the scroll is done). ≤767px sets its own padding. */
.fc-item-grid { max-width: 1280px; margin: 0 auto; width: 100%; display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-3) var(--space-5); box-sizing: border-box; }

/* Gallery */
.fc-item-gallery { flex: 1; min-width: 0; position: sticky; top: calc(var(--fc-header-h, 0px) + 57px); display: flex; flex-direction: column; gap: var(--space-2); transition: top 0.42s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
/* 768–1024px: the gallery pins at the padded edge + 57 (= 231). The back bar above it rides up by
   --native-header-h when the mobile header collapses, so the gallery rides up with it: its sticky top
   drops by the same amount, on the bar's 0.3s curve. A sticky offset only moves the gallery while it is
   pinned; the translateY used before kept shifting it after the pin let go at the end of the scroll,
   which left the image 148px above the accordions' bottom (Kelly, 2026-10-07). Scoped to ≥768px
   because ≤767px overrides position to static. */
/* No max-width cap: fc-native-header-hidden only ever exists in the native shell, so this cannot
   reach desktop web at any width, and a tablet in landscape needs the same compensation portrait
   does. >=768 only because <=767px makes the gallery static. */
@media (min-width: 768px) {
    .fc-item-gallery { transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    /* + --fc-safe-top: while the header is hidden the back bar is the topmost element, so it pays
       the status-bar inset itself (see .fc-item-bar above) and grows by --fc-safe-top. Subtracting
       only --native-header-h moved the gallery up by the header's full height while the bar below
       it got 32px taller, so the gap collapsed from 16px to -16px and the bar painted over the top
       of the image (iPad, reported 2026-11-05). Adding the inset back keeps the 16px gap identical
       in both states. */
    html.fc-native-header-hidden .fc-item-gallery {
        top: calc(var(--fc-header-h, 0px) + 57px - var(--native-header-h, 0px) + var(--fc-safe-top, 0px));
    }
}
.fc-item-main { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-subtle); }
/* contain, not cover: the 4:3 desktop frame cropped the bottom off anything taller than 4:3 — a
   square photo lost 25% and a portrait one nearly half. The frame keeps its own background, so a
   photo that does not match 4:3 is letterboxed instead of cut. The phone frame stays cover (below):
   it is square and full-bleed by design. */
.fc-item-main-img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.5s ease; cursor: zoom-in; }
.fc-item-main:hover .fc-item-main-img { transform: scale(1.05); }
/* Placeholder in the main frame fills it like a photo (Kelly, 2026-09-24). ImageFallback.css keeps
   every item-icon at object-fit: contain so no frame crops its glyph; in this 4:3 frame that left a
   strip of frame colour either side of the square tile (92px each side at 1280px). Cover + centre
   fills the frame and only trims the tile's empty top/bottom margin — all 13 icons put the glyph
   mid-tile and "Image Not Available" at y≈600-640 of 800, which stays visible for any frame up to
   16:10. Centre, not top: top-anchored cover would cut that text off. The phone frame is square,
   so nothing changes there. */
/* The API sends /static/cat/<id>.png as the photo URL for an item with no picture, so that path
   is a placeholder too and gets the same treatment as the local icons - contain would letterbox it
   and bring back the frame-colour strip either side. */
.fc-item-main .fc-item-main-img[src*="/item-icons/"],
.fc-item-main .fc-item-main-img[src*="/static/cat/"] { object-fit: cover; object-position: center; }
/* Click-to-zoom hint — the prev/next arrows' translucent circle (.fc-item-nav), pinned
   bottom-right. Two classes so it outranks Tooltip.css's [data-tooltip] { position: relative }. */
.fc-item-main .fc-item-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; border: none; cursor: zoom-in; backdrop-filter: blur(4px); font-size: 20px; z-index: 3; }

/* ── Fullscreen image viewer (lightbox) — ported design from the reference. Full-viewport canvas
   above every layer; image shown at its true proportions; close + prev/next + a thumbnail rail and a
   phone-width "Close Image Zoom" button. Opened by clicking the gallery photo (OpenLightbox). ── */
.fc-item-lightbox {
    position: fixed; inset: 0; z-index: var(--fc-z-modal, 9990);
    background: var(--color-surface-default);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
    animation: fc-lightbox-in 0.2s ease;
    padding-bottom: 104px;           /* clear the desktop thumbs rail */
}
@keyframes fc-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.fc-item-lightbox-img {
    max-width: 94vw; max-height: calc(100dvh - 140px); width: auto; height: auto;
    object-fit: contain; cursor: zoom-in;
}
/* Zoom inside the expanded image — the gestures live in ScrollPositionHelper.js (fcLightboxZoom).
   touch-action: none makes every pinch and drag in the viewer ours, so the page itself never zooms
   or pans behind it; the thumbnail rail keeps its own sideways scroll. The photo's cursor says what
   a click does: zoom-in at rest, grab (drag to pan) once zoomed. */
.fc-item-lightbox { touch-action: none; -webkit-user-select: none; user-select: none; }
.fc-item-lightbox-thumbs { touch-action: pan-x; }
.fc-item-lightbox-img.fc-zoomed { cursor: grab; }
.fc-item-lightbox-img.fc-dragging { cursor: grabbing; }
/* top pays the safe-area inset so the X clears the notch on native (--fc-safe-top is 0 on web). */
.fc-item-lightbox-close {
    position: fixed; top: calc(var(--fc-safe-top) + var(--space-2)); right: var(--space-2);
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); background: var(--color-surface-default);
    border: 1px solid var(--color-border); box-shadow: var(--elevation-sm);
    color: var(--color-text-primary); font-size: 20px; cursor: pointer;
}
.fc-item-lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; border: none;
    cursor: pointer; backdrop-filter: blur(4px); font-size: 20px;
}
.fc-item-lightbox-nav--prev { left: var(--space-2); }
.fc-item-lightbox-nav--next { right: var(--space-2); }
.fc-item-lightbox-bottom {
    position: fixed; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: var(--space-1); align-items: center;
    padding: var(--space-1) var(--space-2) calc(var(--space-1) + var(--fc-bottom-inset, 0px));
    background: transparent; cursor: default;
}
.fc-item-lightbox-thumbs {
    display: flex; gap: var(--space-1); max-width: 100%;
    overflow-x: auto; scrollbar-width: none; padding: 2px;
}
.fc-item-lightbox-thumbs::-webkit-scrollbar { display: none; }
/* Secondary "Close Image Zoom" button — phone widths only; desktop keeps X / backdrop / Escape. */
.fc-item-lightbox-closebtn {
    display: none;
    width: 100%; height: 56px; align-items: center; justify-content: center; gap: var(--space-1);
    border-radius: var(--radius-lg);
    background: transparent; color: var(--color-brand-primary);
    border: 1px solid var(--color-brand-primary);
    font-family: var(--font-heading); font-size: var(--text-action-md-size); font-weight: var(--fw-bold);
    cursor: pointer;
}
@media (max-width: 767px) {
    .fc-item-lightbox { padding-bottom: 150px; }
    .fc-item-lightbox-img { max-height: calc(100dvh - 180px); }
    .fc-item-lightbox-bottom {
        align-items: stretch;
        background: var(--color-surface-default);
        border-top: 1px solid var(--color-border);
    }
    .fc-item-lightbox-closebtn { display: inline-flex; }
    .fc-item-lightbox-nav { top: calc(50% - 75px); }
}
/* Page scroll is locked while the viewer is open (fcSetLightboxOpen). */
html.fc-lightbox-open, html.fc-lightbox-open body { overflow: hidden; }
html.fc-lightbox-open #main-scroll-container { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) {
    .fc-item-lightbox { animation: none; }
}
/* The gallery keeps the existing MudCarousel (swipe = the only touch nav on MAUI);
   neutralize Mud sizing so it fills the reference frame. */
.fc-item-main .mud-carousel { width: 100%; height: 100%; background: transparent; }
.fc-item-main .mud-carousel-item { display: flex; align-items: center; justify-content: center; }
.fc-item-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; border: none; cursor: pointer; backdrop-filter: blur(4px); font-size: 20px; z-index: 3; }
.fc-item-nav--prev { left: 12px; }
.fc-item-nav--next { right: 12px; }
.fc-item-thumbs { display: flex; gap: var(--space-1); overflow-x: auto; padding-bottom: 4px; }
.fc-item-thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--color-border); padding: 0; background: none; cursor: pointer; transition: border-color 0.15s ease; }
.fc-item-thumb--on { border-color: var(--color-brand-primary); }
.fc-item-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Mobile position cue: bullet dots below the image, phones only. */
.fc-item-bullets { display: none; }

/* Info */
/* The info column is split into 3 readability chunks separated by 64px (2× Momento Organism Spacing). */
.fc-item-info { flex: 1; min-width: 0; max-width: 480px; display: flex; flex-direction: column; gap: calc(var(--space-4) * 2); padding: var(--space-1) 0 0; }
/* One chunk (details+actions / descriptions / location+disclaimers) — items inside keep the tight 8px rhythm. */
.fc-item-chunk { display: flex; flex-direction: column; gap: var(--space-1); }
.fc-item-instore { font-family: var(--font-heading); font-size: 18px; font-weight: var(--fw-bold); color: var(--color-brand-primary); }
/* overflow-wrap: anywhere — REQUIRED, and specifically `anywhere`, not `break-word`.
   Item names come from the API as e.g. "ACOUSTIC GUITAR GODIN M/MAHOGANYPARLORLTD", where
   "M/MAHOGANYPARLORLTD" is one unbreakable token. With the default `normal`, this heading's
   min-content width is that token's width — measured 379px at heading-xl/xbold — and the box simply
   refuses to shrink below it, so every viewport narrower than ~412px got HORIZONTAL PAGE SCROLL
   (measured: 18px over at 393, 27 at 384, 36 at 375, 51 at 360, 91 at 320). That is why it only
   showed on some items and only on some devices, and why 412px checks never caught it.
   `break-word` would NOT fix this: it wraps but leaves min-content unchanged, so the box still
   refuses to shrink. `anywhere` reduces min-content too, which is the whole point here.
   reference_project_updated has the identical rule with no wrap — it just never hits the case,
   because its mock data has no model names this long. */
.fc-item-name { font-family: var(--font-heading); font-size: var(--text-heading-xl-size); font-weight: var(--fw-xbold); color: var(--color-text-primary); line-height: 1.15; margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.fc-item-itemno { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-primary); margin: 0; }
.fc-item-price-row { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; margin-top: 4px; }
.fc-item-hottag { padding: 4px 10px; border-radius: var(--radius-md); background: var(--color-brand-accent); color: #fff; font-family: var(--font-body); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); }
/* Clearance keeps the badge tokens (reference red is HOT-only). */
.fc-item-hottag.cls_badge_clearance { background: var(--color-badge-clear-bg); color: var(--color-badge-clear-text); }
.fc-item-price { font-family: var(--font-heading); font-size: var(--text-heading-xl-size); font-weight: var(--fw-xbold); color: var(--color-text-primary); }
.fc-item-price-orig { font-family: var(--font-heading); font-size: 28px; color: var(--color-text-muted); text-decoration: line-through; }

/* Actions */
.fc-item-actions { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }
.fc-item-interest { height: 56px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-brand-accent); color: #fff; border: none; border-radius: var(--radius-lg); font-family: var(--font-heading); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); cursor: pointer; }
.fc-item-notinterested { height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); background: var(--color-surface-default); color: var(--color-brand-accent); border: 1px solid var(--color-brand-accent); border-radius: var(--radius-lg); font-family: var(--font-heading); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); cursor: pointer; }
.fc-item-wish { height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); background: transparent; color: var(--color-brand-primary); border: 1px solid var(--color-brand-primary); border-radius: var(--radius-lg); font-family: var(--font-heading); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); cursor: pointer; }
.fc-item-wish-heart--on { color: var(--color-brand-accent); }

/* Detail rows */
.fc-item-specrows { display: flex; flex-direction: column; gap: var(--space-half); }   /* chunk 2; spacing above comes from .fc-item-info's gap */
.fc-item-specrow { display: flex; gap: var(--space-1); }
.fc-item-spec-k { font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-bold); color: var(--color-text-primary); min-width: 120px; }
/* Same protection for the spec VALUES (Make / Model / Serial …), which carry the very same
   unbreakable tokens the item name does — "Model: MAHOGANYPARLORLTD" is the reported case. `min-width: 0`
   as well, because this is a flex item next to a 120px-min label: without it the flex base size
   floors at the token's width and the row pushes the page wide exactly like the heading did. */
.fc-item-spec-v { font-family: var(--font-body); font-size: 16px; color: var(--color-text-primary); overflow-wrap: anywhere; min-width: 0; }

/* Where to find */
.fc-item-where { display: flex; flex-direction: column; gap: var(--space-2); }   /* first item of chunk 3 */
.fc-item-where-title { font-family: var(--font-heading); font-size: 20px; font-weight: var(--fw-bold); color: var(--color-text-primary); margin: 0; }
.fc-item-store-name { text-align: center; font-family: var(--font-heading); font-size: 24px; font-weight: var(--fw-xbold); color: var(--color-text-primary); letter-spacing: 0.05em; }
/* Store number line under the brand name/logo (reference .fc-item-store-num). */
.fc-item-store-num { text-align: center; font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-bold); color: var(--color-text-muted); margin-top: calc(-1 * var(--space-1)); }
/* Official brand logo in the "Where to Find" block (falls back to .fc-item-store-name when a store has none). */
.fc-item-store-logo { display: block; max-height: 56px; max-width: 240px; margin: 0 auto; object-fit: contain; }
.fc-item-storelink { display: flex; align-items: center; gap: var(--space-1); text-decoration: none; color: var(--color-info); cursor: pointer; }
.fc-item-storelink i { font-size: 16px; }
.fc-item-storelink span { font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-bold); text-decoration: underline; }
/* Store license rows — informational, not links. */
.fc-item-storelic { color: var(--color-text-primary); cursor: default; }
.fc-item-storelic span { text-decoration: none; font-weight: var(--fw-normal); }
/* Interactive Google Map fills the reference frame (reference used an iframe embed). */
.fc-item-map { width: 100%; height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); }
.fc-item-map > div { width: 100%; height: 100%; }

/* Accordions */
.fc-item-cards { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-2); }
.fc-item-acc { background: var(--color-surface-default); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; }
.fc-item-acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 var(--space-2); background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-item-acc-head i { font-size: 20px; color: var(--color-text-primary); }
/* Animated expand/collapse — slides the panel open (grid-rows 0fr→1fr). */
.fc-item-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fc-item-acc-panel--open { grid-template-rows: 1fr; }
.fc-item-acc-panel-inner { overflow: hidden; }
.fc-item-acc-body { display: flex; flex-direction: column; gap: var(--space-1); padding: 0 var(--space-2) var(--space-2); }
.fc-item-hours-row { display: flex; justify-content: space-between; padding-top: 4px; }
.fc-item-hours-day { font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted); }
.fc-item-hours-val { font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-item-disc { padding-top: var(--space-1); }
.fc-item-disc p { font-family: var(--font-body); font-size: 16px; color: var(--color-text-primary); line-height: 24px; margin: 0; }
.fc-item-disc-link { color: var(--color-info); font-weight: var(--fw-bold); text-decoration: underline; }
/* Backend disclaimer HTML uses plain <a> tags (no .fc-item-disc-link class), so style anchors
   directly to match the reference: link blue (Momento System/Info), bold, underlined. */
.fc-item-disc a { color: var(--color-info); font-weight: var(--fw-bold); text-decoration: underline; }

/* ── EXPERIMENT (Kelly, 2026-09-23/24/25) — About This Item + Specs ──
   About This Item: a plain heading + text (no accordion since 2026-09-25) in a full-width row
   between the Item Details grid and "More Items Like This". Heading like Specs / "Where to Find
   Item", 16px above the text like "Where to Find Item" and "More Items Like This". The row lines up
   with the grid's content edges (24px sides; 16px on phones, matching .fc-item-info). Body copy at
   16/24; pre-line keeps the text's paragraph breaks.
   Specs: a plain table (no accordion) in the info column, in Chunk 2's old spot, headed like
   "Where to Find Item". The label column keeps the old spec rows' 120px + 16px gap, and rows are
   split by 1px dividers. The two swapped places on 2026-09-24. ── */
.fc-item-fullrow-inner { max-width: 1280px; margin: 0 auto; width: 100%; padding: 0 var(--space-3); box-sizing: border-box; }
.fc-item-about { display: flex; flex-direction: column; gap: var(--space-2); }
/* overflow-wrap: anywhere — same bug, and the same reason, as .fc-item-name above: the About copy
   comes from the API and can contain one unbreakable token (a model number, a URL, a run of
   punctuation). Measured on item 2967-2251703845-01 at a 320px viewport: this paragraph sat in a
   288px box with scrollWidth 769, which pushed #main-scroll-container (overflow-x: auto) to 785px
   and let the WHOLE PAGE pan sideways — the "displayed as a web view" report. `break-word` would
   not fix it; only `anywhere` lowers min-content so the box can shrink. */
.fc-item-about-text { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--color-text-primary); white-space: pre-line; overflow-wrap: anywhere; }
.fc-item-specs-title,
.fc-item-about-title { font-family: var(--font-heading); font-size: 20px; font-weight: var(--fw-bold); color: var(--color-text-primary); margin: 0; }
.fc-item-spectable { width: 100%; border-collapse: collapse; }
.fc-item-spectable th,
.fc-item-spectable td { padding: var(--space-1) 0; font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--color-text-primary); text-align: left; vertical-align: top; }
/* The label column hugs the longest label instead of a flat 136px, so every label stays on one
   line and the value column keeps all the rest (client, 2026-10-26). width:1% + nowrap is the
   shrink-to-fit idiom: a max-width cap does NOT work here, because the table layout algorithm
   treats it as a hint and hands the column the surplus instead (it grew to 352px of 480px). */
.fc-item-spectable th { width: 1%; white-space: nowrap; padding-right: var(--space-2); font-weight: var(--fw-bold); }
.fc-item-spectable td { overflow-wrap: anywhere; }
.fc-item-spectable tr + tr > * { border-top: 1px solid var(--color-border); }
/* Phones: the grid loses its 32px bottom padding (only .fc-item-info's 16px remains), so add 16px
   back to keep the row 32px clear of the Store Hours / Disclaimer cards — the same gap as on
   desktop and as "More Items Like This" below. */
@media (max-width: 767px) {
    .fc-item-fullrow-inner { padding: 0 var(--space-2); margin-top: var(--space-2); }
}

/* More Items Like This — full-width */
.fc-item-more { width: 100%; margin-top: var(--space-4); background: var(--color-surface-default); border-top: 1px solid var(--color-border); }
.fc-item-more-inner { max-width: 1280px; margin: 0 auto; width: 100%; padding: var(--space-4) var(--space-3); box-sizing: border-box; }
.fc-item-more-title { font-family: var(--font-heading); font-size: 20px; font-weight: var(--fw-bold); color: var(--color-text-primary); margin: 0 0 var(--space-2); }
.fc-item-more-row { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); }
.fc-item-more-card { flex-shrink: 0; width: 240px; }

/* ── Reserve policy bottom sheet (reference "I'm Interested Policy" design,
      hosted in the existing bottom MudDrawer instead of a MudDialog) ── */
/* .fc-ipol / .fc-rint are the MudDialog Class; content lives in the title/content/actions
   slots (padded by app.css). Cap the policy dialog height so long content scrolls inside. */
.fc-ipol.mud-dialog, .fc-rint.mud-dialog { max-width: 700px; }
.fc-ipol .mud-dialog-content { max-height: 60vh; overflow-y: auto; }
.fc-ipol-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.fc-ipol-head-title { display: flex; align-items: center; gap: var(--space-half); min-width: 0; }
.fc-ipol-head-icon { font-size: 20px; color: var(--color-text-primary); }
.fc-ipol-title { font-family: var(--font-heading); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); color: var(--color-text-primary); letter-spacing: 0.2px; }
.fc-ipol-body { display: flex; flex-direction: column; gap: var(--space-1); overflow-y: auto; }
.fc-ipol-desc { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-primary); letter-spacing: 0.2px; line-height: 24px; margin: 0; }
.fc-ipol-desc--bold { font-weight: var(--fw-bold); margin-top: var(--space-1); }
.fc-ipol-acc { display: flex; flex-direction: column; }
.fc-ipol-acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: var(--text-body-md-size); font-weight: var(--fw-bold); color: var(--color-text-primary); letter-spacing: 0.2px; }
.fc-ipol-acc-head i { font-size: 24px; color: var(--color-text-primary); }
/* Grid-trick accordion (same standard timing as the rest of the app): body animates 0fr→1fr. */
.fc-ipol-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fc-ipol-acc-panel--open { grid-template-rows: 1fr; }
.fc-ipol-acc-panel-inner { min-height: 0; overflow: hidden; }
.fc-ipol-acc-body { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-primary); letter-spacing: 0.2px; line-height: 24px; padding-bottom: var(--space-2); }
.fc-ipol-acc-intro { margin: 0 0 var(--space-2); }
.fc-ipol-list { margin: 0; padding-left: var(--space-3); list-style: disc; }
.fc-ipol-list li { margin-bottom: 4px; }
.fc-ipol-list li:last-child { margin-bottom: 0; }

/* Shared action rows for both sheets */
.fc-ipol .mud-dialog-actions, .fc-rint .mud-dialog-actions { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.fc-ipol-actions, .fc-rint-actions { display: flex; gap: var(--space-1); padding-top: var(--space-1); }
.fc-ipol-understand, .fc-ipol-cancel, .fc-rint-no, .fc-rint-yes {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
    height: 56px; border-radius: var(--radius-lg); font-family: var(--font-heading);
    font-size: var(--text-body-md-size); font-weight: var(--fw-bold); letter-spacing: 0.2px; cursor: pointer;
}
.fc-ipol-understand i, .fc-ipol-cancel i, .fc-rint-no i, .fc-rint-yes i { font-size: 24px; }
.fc-ipol-understand { background: var(--color-success); color: var(--color-surface-default); border: none; }
.fc-ipol-cancel { background: transparent; color: var(--color-brand-accent); border: 1px solid var(--color-brand-accent); }

/* ── Cancel-reservation confirm bottom sheet (reference "Remove Interest" design) ── */
/* .fc-rint wrapper styling folded into .fc-*.mud-dialog above (slots handle padding). */
.fc-rint-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.fc-rint-title { font-family: var(--font-heading); font-size: var(--text-heading-sm-size); font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-rint-body { font-family: var(--font-body); font-size: var(--text-body-md-size); color: var(--color-text-primary); margin: 0; }
.fc-rint-no { background: var(--color-brand-accent); color: var(--color-surface-default); border: none; }
.fc-rint-yes { background: transparent; color: var(--color-success); border: 2px solid var(--color-success); }

/* ── Address options modal (Kelly, 2026-09-29) ── opened by the store address in Where to Find
   Item. Layout copied from v3.0.1's RenewExtendChoiceModal ("Renew or Extend Loan",
   v3.0.1 CSS/Components/LoanModals.css .fc-lm-*), Kelly's call — values unchanged except:
     · the two 12px gaps, converted per Kelly's 2026-09-23 no-12px rule: 16px between the cards
       (between cards) and 8px between radio and text (controls side by side);
     · the bottom button: v3.0.1's Continue became "✕ Close Modal", styled like the image zoom's
       Close (.fc-item-lightbox-closebtn above), shown at every width;
     · Kelly's second pass: the cards' radio became a blue chevron on the right, copied from
       v3.0.2's Saved page nav cards (SavedItems.css .Arrow_icon), and no selected state.
   Button rules: the cards follow v3.0.2's nav-card rule (Kelly, 2026-08-03 — "These ARE
   buttons"; the press comes from PressFeedback.css's catch-all: 1% shrink + 20% darken); the ✕
   is a .fc-iconbtn (shared icon button, grey hover fill); .fc-addr-closebtn sits in the
   Secondary group beside .fc-item-lightbox-closebtn. Focus: Accessibility.css. */
.fc-addr.mud-dialog { width: 100%; max-width: 480px; max-height: 90vh; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.fc-addr .mud-dialog-content { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.fc-addr-sheet { display: flex; flex-direction: column; gap: var(--space-2); }
/* White space (Kelly, 2026-09-29: "so unnecessarily thick") — trims only the padding that stacked up;
   the cards and the 16px gaps between them stay (her 09-23 spacing rule):
     · top edge → handle 16 → 8: MudBlazor's own 8px margin on .mud-dialog-content is dropped, so the
       handle hugs the top at 8px as the shared .fc-sheet-handle rule intends;
     · handle → title 30 → 16: the handle's 8px bottom margin and the title's 6px top padding go; the ✕
       moves up 6px instead so it stays centred on the title line;
     · below Close Modal 40 → 16 on phones: the content's own 16px bottom padding and that 8px margin
       go, leaving the app-wide sheet rule's 16px + home-indicator inset (app.css). Desktop keeps the
       content's 16px, since the centred dialog has no bottom padding of its own. */
.fc-addr.mud-dialog .mud-dialog-content { margin: 0; }
.fc-addr-sheet > .fc-sheet-handle { margin-bottom: 0; }
@media (max-width: 600px) {
    .fc-addr.mud-dialog .mud-dialog-content { padding-bottom: 0 !important; }
}

.fc-addr-head { display: flex; align-items: flex-start; gap: var(--space-1); }
.fc-addr-headtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-addr-title { font-family: var(--font-heading); font-size: var(--text-action-md-size); font-weight: var(--fw-xbold); color: var(--color-text-primary); letter-spacing: 0.2px; line-height: 24px; }
.fc-addr-sub { font-family: var(--font-body); font-size: var(--text-label-md-size); color: var(--color-text-muted); line-height: 18px; }
/* ✕ = the shared icon button (.fc-iconbtn, app.css — states incl. its hover fill) at v3.0.1's size and
   colour (.fc-lm-hbtn: 36px, 22px glyph, muted grey). Two classes so it outranks app.css's .fc-iconbtn. */
.fc-iconbtn.fc-addr-hbtn { flex-shrink: 0; width: 36px; height: 36px; margin-top: -6px; font-size: 22px; color: var(--color-text-muted); }

.fc-addr-options { display: flex; flex-direction: column; gap: var(--space-2); }
/* Outlined option card — the border is an absolute overlay (v3.0.1's reference button rule), so it
   never shifts the card's content. font/color: inherit are v3.0.2's nav-card chrome strip
   (.favorite-locations-navcard). justify-content: MudBlazor's global
   `button { justify-content: center }` would centre the text; it sits left, chevron right. */
.fc-addr-option { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: var(--space-1); width: 100%; padding: var(--space-2); text-align: left; background: transparent; border: none; border-radius: var(--radius-lg); cursor: pointer; font: inherit; color: inherit; }
.fc-addr-option::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--color-border); border-radius: inherit; pointer-events: none; }
.fc-addr-option-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* The chevron — v3.0.2's nav-card .Arrow_icon: brand blue, 24px (fa-solid supplies the glyph weight). */
.fc-addr-option-arrow { flex-shrink: 0; color: var(--color-brand-primary); font-size: 24px; line-height: normal; text-align: center; }
.fc-addr-option-title { font-family: var(--font-heading); font-size: var(--text-action-md-size); font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-addr-option-sum { font-family: var(--font-body); font-size: var(--text-label-md-size); color: var(--color-text-muted); line-height: 18px; }

/* Close — the image zoom's Close button (.fc-item-lightbox-closebtn), minus its phone-only
   display rule: this is the modal's own dismiss button at every width. */
.fc-addr-closebtn {
    display: inline-flex;
    width: 100%; height: 56px; align-items: center; justify-content: center; gap: var(--space-1);
    border-radius: var(--radius-lg);
    background: transparent; color: var(--color-brand-primary);
    border: 1px solid var(--color-brand-primary);
    font-family: var(--font-heading); font-size: var(--text-action-md-size); font-weight: var(--fw-bold);
    cursor: pointer;
}

/* Phone Number + Address are LINK buttons (Kelly, 2026-09-29): real <button>s dressed as the text links
   they replaced — strip the browser's button look and inherit the text styling the link had, full row
   width. justify-content: MudBlazor's global `button { justify-content: center }` would centre the row.
   (A Momento Tertiary version was tried the same day and reverted at Kelly's request.) */
button.fc-item-storelink {
    appearance: none; -webkit-appearance: none;
    width: 100%; margin: 0; padding: 0; border: 0; background: none;
    font: inherit; letter-spacing: inherit; text-align: start; justify-content: normal;
}

@media (max-width: 767px) {
    /* No inter-block gap on mobile — the image sits flush against the info block; the
       only spacing (16px) comes from .fc-item-info's own padding. */
    /* align-items: stretch — the base rule uses flex-start, which the ROW layout needs so the
       sticky gallery column keeps its own height. Once this turns column, flex-start sizes the
       children to their CONTENT instead of the container: .fc-item-info measured 390px wide inside
       a 320px viewport, overflowing it. Stretch applies only here, in column mode. */
    .fc-item-grid { flex-direction: column; gap: 0; align-items: stretch; }
    .fc-item-gallery { position: static; width: 100%; }
    .fc-item-info { max-width: none; }
}

/* Phones: show ONLY the single full-bleed image — edge-to-edge, square, no rounding,
   no gallery chrome (thumbnail strip and prev/next arrows hidden); bullets appear instead.
   Only the image bleeds to the edges; the info text stays inset with padding. */
@media (max-width: 767px) {
    .fc-item-grid { padding: 0; }
    .fc-item-main { aspect-ratio: 1 / 1; border-radius: 0; }
    .fc-item-main-img { object-fit: cover; object-position: top; }
    .fc-item-info { padding: var(--space-2); }
    .fc-item-thumbs, .fc-item-nav { display: none; }
    .fc-item-bullets { display: flex; justify-content: center; gap: var(--space-1); padding-top: var(--space-1); }
    .fc-item-bullets .fc-item-bullet { width: 10px; height: 10px; border-radius: 100px; border: none; padding: 0; background: var(--color-border); cursor: pointer; }
    .fc-item-bullets .fc-item-bullet--on { background: var(--color-brand-primary); }
}

/* ── KEPT FROM MAIN ──────────────────────────────────────────────
   Rules 3.2 does not have - the lightbox backdrop underlay and the pinch-zoom states.
   Appended after its stylesheet so they still win on equal specificity. */
.view-store-btn:hover {
    background-color: var(--color-surface-info-bg);
    box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.15);
}
/* Carries close-on-tap. First child, so it paints under the image, arrows and thumb rail - only a
   tap on genuinely empty space closes the viewer. Previously the container itself closed on any
   click, which made a near-miss on an arrow exit the image. */
.fc-item-lightbox-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.fc-item-lightbox-img, .fc-item-lightbox-nav, .fc-item-lightbox-close,
.fc-item-lightbox-bottom { position: relative; z-index: 1; }
/* Controls sit explicitly above the image, and opt out of the double-tap-zoom wait: iOS WKWebView
   otherwise holds a tap back looking for a second one, which reads as "the arrow needs several
   presses". `manipulation` keeps scroll/pinch but drops that delay. */
/* ANCHORED TO THE LIGHTBOX, NOT THE VIEWPORT.
   .fc-item-lightbox is already `position: fixed; inset: 0`, so absolute children land in exactly
   the same place - but they stop being viewport-fixed in their own right. That matters on iOS:
   WKWebView keeps stale hit-test rectangles for position:fixed elements after a layout change, so
   the tappable area stays where the control USED to be while it is painted somewhere else. The
   symptom is an arrow that only responds at one particular spot. Blink recomputes correctly, which
   is why Android was unaffected. Do not put `position: fixed` back on these. */
.fc-item-lightbox-nav, .fc-item-lightbox-close,
/* The bottom bar belongs here too. Left out, it kept the `position: relative` set above for
   stacking, so it lost the left/right/bottom pinning, collapsed to its content width and
   wrapped the "Close Image Zoom" label onto three lines. */
.fc-item-lightbox-bottom { position: absolute; }
.fc-item-lightbox-nav, .fc-item-lightbox-close, .fc-item-lightbox-bottom {
    z-index: 2;
    touch-action: manipulation;
}
.fc-item-lightbox-nav i, .fc-item-lightbox-close i { pointer-events: none; }
/* Compositing layer only while actually zoomed. Declaring will-change permanently kept the image
   on its own layer at rest, which on iOS stole taps from the arrows above it. */
.fc-item-lightbox-img.fc-lightbox-zoomed { cursor: grab; will-change: transform; }
.fc-item-lightbox-img.fc-lightbox-zoomed:active { cursor: grabbing; }
