/* Desktop-only: place the current card actions directly below the main search/navigation row. */
.ccc-desktop-top-actions-host{
  display:none;
}

@media (min-width:781px){
  .ccc-desktop-top-actions-host[hidden]{
    display:none !important;
  }

  .ccc-desktop-top-actions-host:not([hidden]){
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:720px !important;
    min-width:0 !important;
    margin:18px auto 0 !important;
    padding:0 !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions{
    box-sizing:border-box !important;
    display:grid !important;
    grid-auto-flow:column !important;
    grid-template-rows:44px !important;
    align-items:center !important;
    justify-items:center !important;
    justify-content:center !important;
    width:max-content !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 auto !important;
    padding:0 !important;
    gap:10px !important;
    overflow:visible !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions.is-logged-out{
    grid-template-columns:repeat(3,44px) 12px 44px !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions.is-logged-in{
    grid-template-columns:repeat(6,44px) 12px 44px !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions > .comic-cut-main-actions,
  .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav.comic-cut-nav.is-visible,
  .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav.ccc-logged-in-checklist-mode.comic-cut-nav.is-visible{
    display:contents !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav.comic-cut-nav:not(.is-visible){
    display:none !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions #comicCutNavCounters{
    display:none !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .comic-cut-main-actions > .icon-btn,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-desktop-ebay-action{
    appearance:none !important;
    -webkit-appearance:none !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    max-width:44px !important;
    max-height:44px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.22) !important;
    border-radius:14px !important;
    background:var(--panel) !important;
    color:var(--text) !important;
    box-shadow:0 7px 18px rgba(0,0,0,.22),inset 0 0 0 1px rgba(255,255,255,.025) !important;
    overflow:hidden !important;
    opacity:1 !important;
    text-decoration:none !important;
    cursor:pointer !important;
    transform:none !important;
    transition:background .15s ease,border-color .15s ease,box-shadow .15s ease !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .comic-cut-main-actions > .icon-btn::before,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .comic-cut-main-actions > .icon-btn::after,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav button::before,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav button::after,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-desktop-ebay-action::before,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-desktop-ebay-action::after{
    content:none !important;
    display:none !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .material-symbols-outlined{
    display:block !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:inherit !important;
    font-size:24px !important;
    line-height:1 !important;
  }

  /* Comic-cut navigation matches the Browse List control exactly. */
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control){
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    padding:10px !important;
    border:1px solid var(--border) !important;
    border-radius:10px !important;
    background:var(--panel) !important;
    color:var(--text) !important;
    box-shadow:none !important;
    outline:none !important;
    transform:none !important;
    transition:background .15s ease,border-color .15s ease,color .15s ease !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav .material-symbols-outlined{
    font-size:22px !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .comic-cut-main-actions > .icon-btn:hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .comic-cut-main-actions > .icon-btn:focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control):focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control):focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control):focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-desktop-ebay-action:hover,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-desktop-ebay-action:focus-visible{
    border-color:#fff !important;
    background:linear-gradient(180deg,rgba(154,139,255,.044),rgba(255,255,255,.012) 42%,rgba(255,255,255,.008)),radial-gradient(520px 160px at 0% -10%,rgba(154,139,255,.075),transparent 68%) !important;
    box-shadow:var(--cc-panel-glow,0 18px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035)) !important;
    outline:none !important;
    transform:none !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #setChecklistBtn:not(.ccc-shared-icon-control):focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #backToSetBtn:not(.ccc-shared-icon-control):focus-visible,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions > #comicCutNav #nextComicCutBtn:not(.ccc-shared-icon-control):focus-visible{
    border-color:rgba(255,255,255,.6) !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    box-shadow:none !important;
    outline:none !important;
    transform:none !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions button:disabled,
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions button[aria-disabled="true"],
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions button.is-disabled{
    border-color:rgba(180,184,196,.16) !important;
    background:rgba(112,116,128,.14) !important;
    color:rgba(188,192,204,.42) !important;
    box-shadow:none !important;
    opacity:1 !important;
    filter:grayscale(1) !important;
    cursor:not-allowed !important;
    pointer-events:none !important;
  }

  .ccc-desktop-top-actions-host .ccc-main-quick-actions > .ccc-main-action-divider{
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:12px !important;
    min-width:12px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    color:rgba(255,255,255,.72) !important;
    font-size:23px !important;
    font-weight:300 !important;
    line-height:1 !important;
    pointer-events:none !important;
    user-select:none !important;
  }

  /* Keep any refreshed navigation markup icon-only in the top action row. */
  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .ccc-main-action-circle{
    display:contents !important;
  }

  html body .ccc-desktop-top-actions-host .ccc-main-quick-actions .ccc-main-action-label{
    display:none !important;
  }

  /* With actions removed from the card, summary sits above the equal-height panels. */
  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout{
    grid-template-rows:auto 360px !important;
  }

  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout > .ccc-desktop-summary-actions{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
  }

  /* Override the older logged-in placement rule that put the summary in row 2. */
  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout.is-logged-in-layout > .ccc-desktop-summary-actions,
  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout.is-logged-out-layout > .ccc-desktop-summary-actions{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
  }

  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout > .desktop-member-info-left{
    grid-column:1 !important;
    grid-row:2 !important;
  }

  #result .card .desktop-member-tall-info-layout.ccc-desktop-summary-layout > .desktop-member-info-right{
    grid-column:2 !important;
    grid-row:2 !important;
  }
}

/* Logged-out desktop: keep card navigation directly above the thumbnail scroller. */
@media (min-width:781px){
  .searchwrap > #publicEbayTopBtn.icon-btn{
    appearance:none !important;
    -webkit-appearance:none !important;
    box-sizing:border-box !important;
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    padding:10px !important;
    display:inline-flex;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid var(--border) !important;
    border-radius:10px !important;
    background:var(--panel) !important;
    color:var(--text) !important;
    box-shadow:none !important;
  }

  .searchwrap > #publicEbayTopBtn.icon-btn:hover,
  .searchwrap > #publicEbayTopBtn.icon-btn:focus-visible{
    border-color:rgba(255,255,255,.6) !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    outline:none !important;
  }

  #result .card .thumb > .ccc-public-thumb-nav{
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,44px) !important;
    grid-template-rows:44px !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    margin:10px 0 0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  #result .card .thumb > .ccc-public-thumb-nav > #comicCutNav.comic-cut-nav.is-visible{
    display:contents !important;
  }

  #result .card .thumb > .ccc-public-thumb-nav > #comicCutNav.comic-cut-nav:not(.is-visible),
  #result .card .thumb > .ccc-public-thumb-nav #comicCutNavCounters{
    display:none !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav #setChecklistBtn:not(.ccc-shared-icon-control),
  html body #result .card .thumb > .ccc-public-thumb-nav #backToSetBtn:not(.ccc-shared-icon-control),
  html body #result .card .thumb > .ccc-public-thumb-nav #nextComicCutBtn:not(.ccc-shared-icon-control){
    appearance:none !important;
    -webkit-appearance:none !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 44px !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    max-width:44px !important;
    max-height:44px !important;
    margin:0 !important;
    padding:10px !important;
    border:1px solid var(--border) !important;
    border-radius:10px !important;
    background:var(--panel) !important;
    color:var(--text) !important;
    box-shadow:none !important;
    overflow:hidden !important;
    opacity:1 !important;
    cursor:pointer !important;
    transform:none !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav #setChecklistBtn:not(.ccc-shared-icon-control)::before,
  html body #result .card .thumb > .ccc-public-thumb-nav #setChecklistBtn:not(.ccc-shared-icon-control)::after,
  html body #result .card .thumb > .ccc-public-thumb-nav #backToSetBtn:not(.ccc-shared-icon-control)::before,
  html body #result .card .thumb > .ccc-public-thumb-nav #backToSetBtn:not(.ccc-shared-icon-control)::after,
  html body #result .card .thumb > .ccc-public-thumb-nav #nextComicCutBtn:not(.ccc-shared-icon-control)::before,
  html body #result .card .thumb > .ccc-public-thumb-nav #nextComicCutBtn:not(.ccc-shared-icon-control)::after{
    content:none !important;
    display:none !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav .material-symbols-outlined{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:inherit !important;
    font-size:22px !important;
    line-height:1 !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav #setChecklistBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body #result .card .thumb > .ccc-public-thumb-nav #setChecklistBtn:not(.ccc-shared-icon-control):focus-visible,
  html body #result .card .thumb > .ccc-public-thumb-nav #backToSetBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body #result .card .thumb > .ccc-public-thumb-nav #backToSetBtn:not(.ccc-shared-icon-control):focus-visible,
  html body #result .card .thumb > .ccc-public-thumb-nav #nextComicCutBtn:not(.ccc-shared-icon-control):hover:not(:disabled),
  html body #result .card .thumb > .ccc-public-thumb-nav #nextComicCutBtn:not(.ccc-shared-icon-control):focus-visible{
    border-color:rgba(255,255,255,.6) !important;
    background:rgba(255,255,255,.08) !important;
    box-shadow:none !important;
    outline:none !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav button:disabled,
  html body #result .card .thumb > .ccc-public-thumb-nav button[aria-disabled="true"],
  html body #result .card .thumb > .ccc-public-thumb-nav button.is-disabled{
    border-color:rgba(180,184,196,.16) !important;
    background:rgba(112,116,128,.14) !important;
    color:rgba(188,192,204,.42) !important;
    box-shadow:none !important;
    opacity:1 !important;
    filter:grayscale(1) !important;
    cursor:not-allowed !important;
    pointer-events:none !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav .ccc-main-action-circle{
    display:contents !important;
  }

  html body #result .card .thumb > .ccc-public-thumb-nav .ccc-main-action-label{
    display:none !important;
  }
}

