/* Approved design QA fixes (Nov 2026). Loaded last. */

/* ===== Pickup-only messaging ===== */
.pickup-bar{margin:0;padding:8px 16px;background:#1a2230;color:#fff;box-shadow:inset 0 -2px 0 #c81e2d;
  font-family:inherit;font-size:14px;line-height:20px;font-weight:500;text-align:center;text-wrap:balance}
.pickup-bar strong{font-weight:700}
.pickup-bar a{color:#ffd60a;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;margin-left:6px}
.pickup-bar a:focus-visible{outline:2px solid #ffd60a;outline-offset:2px;border-radius:4px}
@media (max-width:899px){.pickup-bar{padding:6px 12px 7px;font-size:13px;line-height:15px}}

.cart-pay-note{margin:2px 0 0;font-weight:700;font-size:.9rem;color:var(--pk-text,#1a2230)}
.cart-pay-note::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#15803d;vertical-align:1px}
.qv-pay-note{margin:10px 0 0;font-size:.9rem;font-weight:600;color:var(--pk-muted,#4f5b6e)}

.pickup-steps{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:860px;counter-reset:ps}
.pickup-steps li{counter-increment:ps;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--pk-border,rgba(26,34,48,.14));border-radius:12px;
  background:color-mix(in srgb,var(--pk-surface,#ced3de) 70%,#fff);font-weight:600;font-size:15px;line-height:1.25;color:var(--pk-text,#1a2230)}
.pickup-steps li::before{content:counter(ps);flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#c81e2d;color:#fff;font-size:13px;font-weight:700}
@media (max-width:899px){.pickup-steps{gap:6px;margin-top:16px}.pickup-steps li{flex-direction:column;justify-content:flex-start;text-align:center;gap:4px;padding:8px 4px;font-size:13px;line-height:16px}.pickup-steps li::before{width:22px;height:22px;font-size:12px}}
.pickup-steps .nw{white-space:nowrap}
html.theme-dark .pickup-steps li{background:var(--pk-surface-2,#222a34)}

.status-card .receipt-pay{margin-top:12px;font-weight:700;text-wrap:balance}
.status-card .receipt-pay::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#15803d;vertical-align:1px}

.ship-request{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:12px 14px;border:1px dashed color-mix(in srgb,var(--pk-text,#1a2230) 30%,transparent);border-radius:12px;cursor:pointer;line-height:1.4;font-size:.95rem;color:var(--pk-text,#1a2230)}
#checkout .ship-request input{appearance:auto;-webkit-appearance:checkbox;width:20px;height:20px;min-height:0;margin:1px 0 0;padding:0;flex:none;accent-color:#c81e2d}

/* Wide eye + name lockup (expanded rail + footer). Collapsed rail keeps the eye. */
html.theme-light .logo-lockup-dark,
html.theme-dark .logo-lockup-light{display:none !important}
.site-header.site-rail .brand .logo-word{
  width:100%;
  height:auto;
  max-height:32px;
}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.footer-lockup{display:inline-block;line-height:0;text-decoration:none}
.footer-lockup-img{display:block;height:36px;width:auto;max-width:min(340px,78vw)}
.footer-place{font-size:12px;font-weight:600;color:var(--pk-muted,#4f5b6e)}
html.theme-light .footer-lockup-dark,
html.theme-dark .footer-lockup-light{display:none !important}

/* How to order / legal links were #b3d7ff (~1:1 on the grey card). */
html.theme-light body.theme-pokemon:not(.dex-page) :is(.how-order, .legal-prose, .status-card) a:not(.btn){
  color:#14356e;
}

/* Buttons were falling back to Arial. */
button, input, textarea, select{font-family:inherit}

/* Closed cart shadow was painting the right edge of the page. */
.mini-cart:not(.open){box-shadow:none !important}

/* Empty cart badge. */
.icon-btn.cart .cart-count:empty,
.icon-btn.cart .cart-count[hidden]{display:none !important}

/* Wishlist link was ~2:1. */
.site-footer .footer-link-quiet{opacity:1}

/* Short pages: keep the footer at the bottom of the viewport. */
body.theme-pokemon{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.theme-pokemon > .site-footer{margin-top:auto}

/* ===== B8 · Pokédex text legibility ===== */
.dex-card .num{
  font-family:var(--font-display, "Outfit", system-ui, sans-serif);
  font-size:12px;
  line-height:16px;
  font-weight:600;
  letter-spacing:0.02em;
  font-variant-numeric:tabular-nums;
  opacity:1;
  color:#4f5b6e;
  color:color-mix(in srgb, var(--card-type, #4f5b6e) 35%, #1a2230);
}
html.theme-dark .dex-card .num{
  color:color-mix(in srgb, var(--card-type, #9aa4c7) 45%, #ffffff);
}
.dex-card.is-form-letter .num{font-size:12px;opacity:1}
.dex-hero__eyebrow{
  font-family:var(--font-display, "Outfit", system-ui, sans-serif);
  font-size:12px;
  line-height:16px;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#7f111c;
  margin:0 0 4px;
}
@media (max-width:899px){
  .dex-toolbar__top{flex-wrap:nowrap;gap:8px}
  .dex-toolbar__top .dex-search{flex:1 1 auto;min-width:0}
  .dex-search input{padding-right:12px !important}
}
@media (max-width:479px){
  .dex-shiny-btn{width:44px;padding:0;justify-content:center}
  .dex-shiny-btn__label{display:none}
  .dex-shiny-btn__spark{font-size:16px;opacity:1}
}
html.theme-light .dex-shiny-btn:not([aria-pressed="true"]){
  color:#5c4500;
  border-color:rgba(184, 146, 42, 0.55);
  background:rgba(255, 214, 10, 0.16);
}

/* Empty Pokédex toast was a visible blank pill. */
.dex-toast:not(.show){visibility:hidden;opacity:0}

/* ===== B13 · 44px tap targets ===== */
@media (max-width:899px), (pointer:coarse){
  .rail-mobile-brand{
    min-height:44px;
    padding:0 8px;
    margin-left:-8px;
    border-radius:12px;
  }
  #dark-mode-toggle,
  #visitor-prefs-btn,
  .site-header.site-rail .visitor-prefs .visitor-prefs-btn{
    width:44px;height:44px;min-width:44px;min-height:44px;
  }
  #mini-cart-close{width:44px;height:44px}
  .dex-gear-btn,
  #dex-filters-toggle{
    width:44px;height:44px;
    border-radius:12px;
    color:var(--pk-text, #1a2230);
    border-color:var(--pk-border, rgba(26,34,48,.14));
    background:var(--pk-surface-2, #c6ccd8);
  }
  .dex-shiny-btn{height:44px;min-width:44px;border-radius:12px}
  .dex-toolbar-toggle{width:44px;height:44px}
  body.market-page .market-segment .chip{
    min-height:44px;
    min-width:44px;
    padding:0 14px !important;
  }
  .market-tools-gear,
  #market-tools-gear{width:44px;height:44px}
  .site-footer .footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:0;
    margin-left:-8px;
  }
  .site-footer .footer-links a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:0 8px;
    opacity:1;
  }
  body:not(.dex-page) .site-footer .footer-row{gap:4px}
  .home-showcase-dots{gap:0}
  .home-showcase-dot{
    position:relative;
    width:44px;height:44px;
    padding:0;border:0;
    background:transparent !important;
  }
  .home-showcase-dot::before{
    content:"";
    position:absolute;left:50%;top:50%;
    width:8px;height:8px;
    transform:translate(-50%, -50%);
    border-radius:999px;
    background:color-mix(in srgb, var(--pk-text) 30%, transparent);
  }
  .home-showcase-dot.is-active::before{width:21px;background:var(--pk-primary, #c81e2d)}
  main p a, .how-to-order a, .how-order a{
    padding:12px 0;
    margin:-12px 0;
  }
}

/* ===== B10 · landscape Pokédex toolbar ===== */
.dex-filter-drawer{display:contents}
.dex-filter-drawer__head,
.dex-gear-btn__label,
.dex-filter-drawer-backdrop{display:none}

@media (orientation:landscape) and (max-height:500px){
  body.dex-page .dex-hero{padding:6px 0 !important}
  .dex-hero__eyebrow, .dex-hero__tag, .dex-hero__mark{display:none !important}
  body.dex-page .dex-hero__title{font-size:22px !important;line-height:28px}
  body.dex-page .dex-hero__inner{padding-top:6px;padding-bottom:6px}
  .dex-toolbar{
    top:52px;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background:color-mix(in srgb, var(--pk-bg, #c2c8d4) 94%, #fff);
  }
  .dex-toolbar > .container{padding-top:0;padding-bottom:0}
  .dex-toolbar__top,
  .dex-toolbar.is-compact .dex-toolbar__top{
    flex-wrap:nowrap;
    height:56px;
    box-sizing:border-box;
    padding:6px 0;
    gap:8px;
  }
  .dex-toolbar__top .dex-search{flex:1 1 auto;min-width:0}
  .dex-toolbar input[type="search"]{height:44px}
  .dex-toolbar-toggle{display:none !important}
  .dex-shiny-btn{height:44px;padding:0 14px;border-radius:12px}
  #dex-filters-toggle{
    width:auto;height:44px;padding:0 14px;gap:6px;
    display:inline-flex;align-items:center;
    border-radius:12px;
    font:600 14px/1 var(--font-display, "Outfit", system-ui, sans-serif);
    color:var(--pk-text, #1a2230);
    background:var(--pk-surface-2, #c6ccd8);
    border:1px solid var(--pk-border, rgba(26,34,48,.14));
  }
  .dex-gear-btn__label{display:inline}
  .dex-gear-btn__count{
    min-width:18px;height:18px;padding:0 5px;border-radius:999px;
    background:var(--pk-primary, #c81e2d);color:#fff;font-size:11px;line-height:18px;text-align:center;
  }
  body.dex-page .dex-toolbar.is-filters-open{z-index:2300 !important}
  body.dex-page .dex-grid{
    grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap:10px !important;
    padding:10px !important;
  }
  .dex-filter-drawer{
    display:flex;flex-direction:column;gap:12px;
    position:fixed;top:0;right:0;bottom:0;z-index:2300;
    width:min(360px, 46vw);
    padding:12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    padding-right:max(16px, env(safe-area-inset-right, 0px));
    overflow-y:auto;overscroll-behavior:contain;
    background:var(--pk-surface, #ced3de);
    border-left:1px solid var(--pk-border, rgba(26,34,48,.14));
    border-radius:16px 0 0 16px;
    box-shadow:-16px 0 40px rgba(15, 23, 42, 0.22);
    box-sizing:border-box;
    transform:translateX(100%);
    visibility:hidden;
    transition:transform .28s var(--ease-ios, ease), visibility 0s linear .28s;
  }
  .dex-toolbar.is-filters-open .dex-filter-drawer{
    transform:none;visibility:visible;
    transition:transform .28s var(--ease-ios, ease);
  }
  .dex-filter-drawer__head{
    display:flex;align-items:center;justify-content:space-between;
    min-height:44px;font:800 18px/1 var(--font-display, "Outfit", system-ui, sans-serif);
  }
  .dex-filter-drawer__close{
    width:44px;height:44px;border-radius:12px;font-size:22px;
    border:1px solid var(--pk-border);background:var(--pk-surface-2);color:var(--pk-text);
  }
  .dex-filter-drawer .dex-toolbar-extras{
    max-height:none !important;opacity:1 !important;pointer-events:auto !important;
    padding:0 !important;overflow:visible;
  }
  .dex-filter-drawer .dex-toolbar-extras__filters{grid-template-columns:1fr;gap:8px}
  .dex-filter-drawer .dex-toolbar-extras,
  .dex-filter-drawer .dex-toolbar-extras__filters{min-width:0;width:100%}
  .dex-filter-drawer select{height:44px;width:100%;min-width:0;box-sizing:border-box}
  .dex-toolbar.is-filters-open .dex-more-filters__panel[hidden]{display:block !important}
  .dex-toolbar.is-filters-open .dex-filter-drawer-backdrop{
    display:block;position:fixed;inset:0;z-index:2290;background:rgba(15, 23, 42, 0.35);
  }
}

.dex-page > #skip-link:not(:focus){position:absolute !important}
