/* Planet Search storefront styles. Palette and type from the Kadence theme; mobile-first. */
:root {
  --ps-blue: #55a4db;
  --ps-blue-dark: #1f5f8b;
  --ps-navy: #1b3a4b;
  --ps-slate: #2c4f60;
  --ps-gray: #56778a;
  --ps-muted: #7e97a4;
  --ps-tint: #eaf3fb;
  --ps-tint-2: #f5fafd;
  --ps-white: #ffffff;
  --ps-alert: #c0392b;
  --ps-alert-tint: #fbeeec;
  --ps-success: #1b7a52;
  --ps-radius: 10px;
  --ps-shadow: 0 8px 24px rgba(27, 58, 75, 0.12);
  --ps-font-head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ps-font-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
}
.planet-search {
  color: var(--ps-navy);
  font-family: var(--ps-font-body);
  line-height: 1.5;
  box-sizing: border-box;
}
.ps-panel, .ps-panel * { box-sizing: border-box; font-family: var(--ps-font-body); }
.planet-search *, .planet-search *::before, .planet-search *::after { box-sizing: inherit; }
.planet-search h2, .planet-search h3, .planet-search .ps-button, .planet-search .ps-card-title { font-family: var(--ps-font-head); }
.ps-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.planet-search :focus-visible, .ps-panel :focus-visible, .ps-clear:focus-visible { outline: 3px solid var(--ps-blue-dark); outline-offset: 2px; border-radius: 4px; }
.ps-clear, .ps-clear:hover, .ps-clear:focus { box-shadow: none !important; }
/* Theme heading/list rules such as `.single-content h3 { margin: 1.5em 0 .5em }` outrank component classes; reset them at zero specificity. */
:where(.planet-search, .ps-sheet) :where(h1, h2, h3, h4, p, li) { margin: 0 !important; }
:where(.planet-search, .ps-sheet) :where(ul) { margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* Opted-in inputs fill their container and stay usable on phones regardless of the host theme's rules. */
input[data-planet-search-attached]:not(.ps-input) { width: 100% !important; min-height: 44px !important; padding-right: 16px !important; font-size: 16px !important; box-sizing: border-box; }
/* The clear button only exists while the field has text, and the placeholder only shows while it does not, so reserving its 48px the rest of the time costs the placeholder a third of a phone-width field. */
input[data-planet-search-attached]:not(.ps-input):not(:placeholder-shown) { padding-right: 48px !important; }
input[data-planet-search-attached]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
input[data-planet-search-attached] { text-overflow: ellipsis; }
input[data-planet-search-attached]:focus, input[data-planet-search-attached]:focus-visible { outline: 3px solid var(--ps-blue-dark) !important; outline-offset: 2px !important; }
input[data-planet-search-attached]::placeholder { text-overflow: ellipsis; }
@media (max-width: 599px) { input[data-planet-search-attached]:not(.ps-input)::placeholder { font-size: 13px; letter-spacing: 0; } }
.ps-clear[hidden] { display: none !important; }

/* Search form + panel */
.ps-form { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.ps-input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.ps-icon { position: absolute; left: 14px; color: var(--ps-gray); pointer-events: none; }
.planet-search input.ps-input[type="search"] { width: 100%; min-height: 48px; margin: 0; padding: 10px 44px 10px 44px; border: 1.5px solid var(--ps-muted); border-radius: 999px; background: var(--ps-white); box-shadow: none; font: inherit; font-family: var(--ps-font-body); font-size: 16px; line-height: 1.4; color: var(--ps-navy); -webkit-appearance: none; appearance: none; }
.planet-search input.ps-input[type="search"]::placeholder { color: var(--ps-gray); opacity: 1; }
.planet-search input.ps-input[type="search"]:focus { border-color: var(--ps-blue); outline: none; box-shadow: 0 0 0 3px rgba(85, 164, 219, 0.25); }
.planet-search input.ps-input[type="search"]::-webkit-search-cancel-button { display: none; }
.planet-search button.ps-submit, .planet-search button.ps-button, .planet-search button.ps-page, .planet-search button.ps-chip, .planet-search button.ps-link, .planet-search button.ps-facet-toggle, .planet-search button.ps-clear, .planet-search button.ps-icon-button { box-shadow: none; text-transform: none; letter-spacing: normal; }
.ps-clear { position: absolute; top: 50%; right: 8px; width: 32px; height: 32px; margin: 0; padding: 0; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ps-gray); font-size: 16px; line-height: 1; cursor: pointer; }
.ps-clear:focus { background: transparent; color: var(--ps-gray); }
.ps-clear:hover, .ps-clear:active { background: var(--ps-tint); color: var(--ps-navy); }
.ps-clear:active { transform: translateY(-50%) scale(0.94); }
.ps-submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ps-blue-dark); color: var(--ps-white); font: 600 15px var(--ps-font-head); cursor: pointer; }
.ps-submit:focus { background: var(--ps-blue-dark); color: var(--ps-white); }
.ps-submit:hover, .ps-submit:active { background: var(--ps-navy); color: var(--ps-white); }
.ps-panel { position: fixed; z-index: 100000; max-height: min(70vh, 640px); overflow-y: auto; overflow-x: hidden; container-type: inline-size; color: var(--ps-navy); font-size: 15px; line-height: 1.5; background: var(--ps-white); border: 1px solid var(--ps-tint); border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); padding: 6px 0 0; text-align: left; }
.ps-panel-body { display: block; }
.ps-group { padding: 6px 0; border-bottom: 1px solid var(--ps-tint); }
.ps-group-title { padding: 6px 16px 4px; font: 700 12px var(--ps-font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ps-gray); }
.ps-group-count { margin-left: 6px; color: var(--ps-gray); letter-spacing: 0; }
.ps-panel-body .ps-group:last-child, .ps-panel-side .ps-group:last-child, .ps-panel-main .ps-group:last-child { border-bottom: 0; }
.ps-panel-foot { position: sticky; bottom: 0; z-index: 1; background: var(--ps-white); border-top: 1px solid var(--ps-tint); }
.ps-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; cursor: pointer; color: var(--ps-navy); font-size: 15px; }
.ps-option svg { color: var(--ps-muted); flex: none; }
.ps-option:hover { background: var(--ps-tint-2); }
.ps-option.is-active { background: var(--ps-tint-2); box-shadow: inset 0 0 0 2px var(--ps-blue); }
.ps-option { scroll-margin-top: 8px; scroll-margin-bottom: 56px; }
@media (hover: hover) and (pointer: fine) { .ps-option { min-height: 40px; } }
@media (pointer: coarse) { .ps-check { min-height: 44px; } .ps-chip { min-height: 40px; } .ps-link { min-height: 44px; display: inline-flex; align-items: center; } .ps-icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } .planet-search input.ps-facet-search[type="search"] { font-size: 16px; } .ps-clear { width: 44px; height: 44px; right: 2px; } .ps-option-remove { min-width: 44px; min-height: 44px; } }
@media (max-width: 599px) { .ps-pagination { gap: 4px; } .ps-page { min-width: 36px; padding: 0 8px; } }
.ps-option mark { background: transparent; color: inherit; font-weight: 700; }
.ps-option-text { flex: 1; min-width: 0; }
.ps-option-count { font-size: 13px; color: var(--ps-gray); }
.ps-option-remove { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; border: 0; background: transparent; color: var(--ps-gray); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.ps-option-remove:focus { background: transparent; color: var(--ps-gray); }
.ps-option-remove:hover, .ps-option-remove:active { background: var(--ps-tint); color: var(--ps-navy); }
.ps-option--all { font-weight: 600; color: var(--ps-blue-dark); }
.ps-product-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 4px 16px 12px; }
.ps-product { min-width: 0; min-height: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px; border-radius: 8px; }
.ps-product-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--ps-tint-2); }
.ps-product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ps-product-thumb-empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--ps-tint) 0%, var(--ps-tint-2) 100%); }
.ps-product-title { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-product-price { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ps-panel-note { padding: 12px 16px; color: var(--ps-gray); font-size: 14px; }
.ps-keys { display: none; padding: 6px 16px 8px; font-size: 12px; color: var(--ps-gray); }
.ps-keys kbd { font: inherit; padding: 1px 5px; border: 1px solid var(--ps-tint); border-radius: 4px; background: var(--ps-tint-2); }
@media (min-width: 1024px) { .ps-keys { display: block; } }
@container (min-width: 720px) {
  .ps-panel-body--split { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
  .ps-panel-body--split .ps-panel-side { border-right: 1px solid var(--ps-tint); }
  .ps-panel-body--split .ps-group { border-bottom: 0; }
  .ps-panel-body--split .ps-panel-side, .ps-panel-body--split .ps-panel-main { position: relative; overflow-y: auto; max-height: var(--ps-main-max, 60vh); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ps-muted) transparent; }
  .ps-panel-body--split .ps-product-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Labels (New, Exclusive, Package) sit inline to the right of the price; the sale pill stays top-right of the card. */
.ps-labels { display: inline-flex; flex-flow: row wrap; align-items: center; gap: 4px; pointer-events: none; }
.ps-label { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 11px var(--ps-font-head); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; }
.ps-label--new { background: var(--ps-blue-dark); color: var(--ps-white); }
.ps-label--exclusive { background: var(--ps-navy); color: var(--ps-white); }
.ps-label--bundle { background: var(--ps-white); color: var(--ps-navy); border: 1px solid var(--ps-gray); }
@media (max-width: 420px) { .ps-labels { gap: 3px; } .ps-labels .ps-label { padding: 1px 6px; font-size: 10px; } .ps-card-pill { top: 6px; right: 6px; padding: 1px 6px; font-size: 11px; } }
.ps-product-thumb { position: relative; }
.ps-labels--small { gap: 3px; }
.ps-labels--small .ps-label { padding: 1px 6px; font-size: 10px; }

/* Pills */
.ps-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 12px var(--ps-font-head); letter-spacing: 0.02em; }
.ps-pill--sale { background: var(--ps-alert-tint); color: var(--ps-alert); border: 1px solid rgba(192, 57, 43, 0.25); }
.ps-price { color: var(--ps-navy); }
.ps-price del { color: var(--ps-gray); font-weight: 400; margin-right: 4px; }
.ps-price ins { text-decoration: none; }

/* Results layout */
.ps-header { margin: 0 0 20px; }
.ps-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
.ps-sidebar { display: none; }
.ps-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ps-count { margin: 0; font-size: 20px; font-weight: 600; color: var(--ps-navy); }
/* The count is a programmatic announcement target, not a tab stop; Cooper asked for no ring after Enter. */
.planet-search .ps-count:focus, .planet-search .ps-count:focus-visible { outline: none; }
.ps-count-q { color: var(--ps-blue-dark); }
.ps-toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.ps-filters-button { white-space: nowrap; }
.ps-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ps-gray); white-space: nowrap; }
@media (max-width: 599px) { .ps-toolbar .ps-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .ps-toolbar { align-items: flex-start; } .ps-count { width: 100%; } }
.ps-select { min-height: 40px; padding: 0 32px 0 12px; border: 1.5px solid var(--ps-muted); border-radius: 8px; background: var(--ps-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2356778a' d='M7.4 8.6 12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 8px center / 18px; font: inherit; font-size: 14px; color: var(--ps-navy); -webkit-appearance: none; appearance: none; }
.ps-button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ps-blue-dark); color: var(--ps-white); font: 600 15px var(--ps-font-head); cursor: pointer; }
.ps-button:focus { background: var(--ps-blue-dark); color: var(--ps-white); }
.ps-button:hover, .ps-button:active { background: var(--ps-navy); color: var(--ps-white); }
.ps-button--secondary { background: var(--ps-white); color: var(--ps-navy); border: 1.5px solid var(--ps-muted); }
.ps-button--secondary:focus { background: var(--ps-white); color: var(--ps-navy); }
.ps-button--secondary:hover, .ps-button--secondary:active { background: var(--ps-tint-2); color: var(--ps-navy); }
.ps-link { border: 0; background: transparent; padding: 4px 0; color: var(--ps-blue-dark); font: 600 14px var(--ps-font-head); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ps-link:focus { color: var(--ps-blue-dark); background: transparent; }
.ps-link:hover, .ps-link:active { color: var(--ps-navy); background: transparent; }
.ps-facet-toggle:hover, .ps-facet-toggle:focus, .ps-facet-toggle:active { color: var(--ps-navy); background: transparent; }
.ps-select:hover { border-color: var(--ps-blue); }
.ps-icon-button { border: 0; background: transparent; padding: 8px; border-radius: 50%; color: var(--ps-navy); cursor: pointer; }
.ps-icon-button:focus { background: transparent; color: var(--ps-navy); }
.ps-icon-button:hover, .ps-icon-button:active { background: var(--ps-tint); color: var(--ps-navy); }

/* Chips */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 6px; margin-bottom: 12px; }
.ps-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ps-tint); border-radius: 999px; background: var(--ps-tint-2); color: var(--ps-navy); font: 500 13px var(--ps-font-body); cursor: pointer; }
.ps-chip svg { color: var(--ps-gray); }
.ps-chip:focus { border-color: var(--ps-tint); color: var(--ps-navy); background: var(--ps-tint-2); }
.ps-chip:hover, .ps-chip:active { border-color: var(--ps-blue); color: var(--ps-navy); background: var(--ps-tint); }
.ps-clear-all { flex: none; }

/* Facets */
.ps-facet { border-bottom: 1px solid var(--ps-tint); padding: 4px 0; }
.ps-facet-title { margin: 0; font-size: 15px; }
.ps-facet-toggle { display: flex; width: 100%; align-items: center; gap: 8px; padding: 12px 0; border: 0; background: transparent; color: var(--ps-navy); font: 600 15px var(--ps-font-head); text-align: left; cursor: pointer; }
.ps-facet-toggle svg { margin-left: auto; color: var(--ps-gray); transition: transform 0.15s; }
.ps-facet.is-open .ps-facet-toggle svg { transform: rotate(180deg); }
.ps-facet-badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--ps-blue-dark); color: var(--ps-white); font-size: 12px; }
.ps-facet-body { display: grid; grid-template-rows: 0fr; visibility: hidden; }
.ps-facet.is-open .ps-facet-body { grid-template-rows: 1fr; visibility: visible; }
.ps-facet-body-inner { min-height: 0; overflow: hidden; padding: 4px 4px 0; margin: -4px -4px 0; }
.ps-facet-body-inner::after { content: ''; display: block; height: 12px; }
.planet-search input.ps-facet-search[type="search"] { width: 100%; min-height: 36px; margin: 0 0 8px; padding: 0 10px; border: 1.5px solid var(--ps-muted); border-radius: 8px; background: var(--ps-white); box-shadow: none; font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
.ps-facet-list { list-style: none; margin: 0; padding: 0; }
.ps-facet-list li { margin: 0; }
.ps-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.ps-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ps-blue-dark); flex: none; }
.ps-check-label { flex: 1; min-width: 0; }
.ps-check-count { font-size: 13px; color: var(--ps-gray); }
.ps-facet-empty { color: var(--ps-gray); font-size: 14px; padding: 6px 0; }
.ps-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 4px; }
.ps-sidebar-head h2 { margin: 0; font-size: 18px; }

/* Grid + cards */
.ps-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ps-tint); border-radius: var(--ps-radius); background: var(--ps-white); text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.ps-card:hover { box-shadow: var(--ps-shadow); transform: translateY(-2px); }
.ps-card-img { position: relative; aspect-ratio: 1; background: var(--ps-tint-2); }
.ps-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ps-card-pill { position: absolute; top: 10px; right: 10px; }
.ps-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ps-card-publisher { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ps-gray); }
.ps-card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ps-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-card-price { margin-top: auto; padding-top: 6px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ps-card--skeleton { pointer-events: none; }
.ps-sk-line { height: 12px; margin: 12px 14px 0; border-radius: 6px; background: var(--ps-tint); }
.ps-sk-line--short { width: 60%; }
.ps-sk-line--price { width: 30%; margin-bottom: 14px; }
.ps-card--skeleton::after { content: ''; display: block; height: 24px; }
.ps-toolbar--skeleton { min-height: 40px; align-items: center; }
.ps-sk-line--count { width: 40%; max-width: 260px; height: 20px; margin: 0; }
.ps-sk-line--sort { width: 164px; height: 40px; margin: 0; border-radius: 8px; }
.ps-sidebar--skeleton .ps-sk-line--head { width: 60px; height: 18px; margin: 0; }
.ps-sidebar--skeleton .ps-sk-line--facet { margin: 26px 0 0; }
.ps-card--skeleton .ps-card-img, .ps-sk-line { animation: ps-pulse 1.2s ease-in-out infinite; }
@keyframes ps-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .ps-card--skeleton .ps-card-img, .ps-sk-line, .ps-card { animation: none; transition: none; } }

/* Motion: hover/active feedback, open/close for the panel and sheet, facet collapse. All gated on reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ps-submit, .ps-button, .ps-link, .ps-icon-button, .ps-chip, .ps-page, .ps-clear, .ps-option, .ps-option-remove, .ps-facet-toggle, .ps-facet-toggle svg, .ps-select, .ps-check, .ps-check input { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease; }
  .ps-submit:active, .ps-button:active, .ps-chip:active, .ps-page:active:not(:disabled), .ps-icon-button:active, .ps-option-remove:active { transform: scale(0.96); }
  .ps-link:active { opacity: 0.7; }
  .ps-card:active { transform: translateY(0) scale(0.99); box-shadow: none; }
  .ps-option:active, .ps-product:active { background: var(--ps-tint); }
  .ps-check:active input { transform: scale(0.9); }
  .ps-panel { animation: ps-panel-in 0.16s ease-out; }
  .ps-panel.is-closing { animation: ps-panel-out 0.14s ease-in forwards; pointer-events: none; }
  .ps-sheet-backdrop { animation: ps-fade-in 0.2s ease-out; }
  .ps-sheet { animation: ps-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .ps-sheet-backdrop.is-closing { animation: ps-fade-out 0.22s ease-in forwards; }
  .ps-sheet.is-closing { animation: ps-sheet-out 0.22s ease-in forwards; pointer-events: none; }
  .ps-facet-body { transition: grid-template-rows 0.22s ease, visibility 0s linear 0.22s; }
  .ps-facet.is-open .ps-facet-body { transition-delay: 0s, 0s; }
}
@keyframes ps-panel-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes ps-panel-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes ps-fade-in { from { opacity: 0; } }
@keyframes ps-fade-out { to { opacity: 0; } }
@keyframes ps-sheet-in { from { transform: translateY(100%); } }
@keyframes ps-sheet-out { to { transform: translateY(100%); } }

/* Pagination */
.ps-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; }
.ps-page { min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--ps-muted); border-radius: 8px; background: var(--ps-white); color: var(--ps-navy); font: 600 14px var(--ps-font-head); cursor: pointer; }
/* Kadence paints `button:hover, button:focus, button:active` with its own dark fill and white
   text, so every state below names its own background; a state that names only a colour ends up
   with the theme's navy behind navy text. Scoped to `button` so the `--gap` span stays flat. */
button.ps-page:focus { background: var(--ps-white); border-color: var(--ps-muted); color: var(--ps-navy); }
button.ps-page:hover:not(:disabled) { background: var(--ps-tint); border-color: var(--ps-blue); color: var(--ps-navy); }
button.ps-page:active:not(:disabled) { background: var(--ps-tint); border-color: var(--ps-blue-dark); color: var(--ps-navy); }
button.ps-page.is-current, button.ps-page.is-current:focus { background: var(--ps-blue-dark); border-color: var(--ps-blue-dark); color: var(--ps-white); }
button.ps-page.is-current:hover, button.ps-page.is-current:active { background: var(--ps-blue-dark); border-color: var(--ps-blue); color: var(--ps-white); }
button.ps-page:disabled, button.ps-page:disabled:hover, button.ps-page:disabled:focus, button.ps-page:disabled:active { opacity: 0.4; cursor: default; background: var(--ps-white); border-color: var(--ps-muted); color: var(--ps-navy); }
.ps-page--gap { border: 0; background: transparent; color: var(--ps-navy); cursor: default; }

/* Zero state */
.ps-zero { text-align: center; padding: 40px 16px; color: var(--ps-navy); }
.ps-zero svg { color: var(--ps-muted); }
.ps-zero-title { margin: 12px 0 6px !important; font-size: 24px; }
.ps-zero-text { margin: 0 auto 16px !important; max-width: 480px; color: var(--ps-gray); }
.ps-zero-popular { margin-top: 28px; }
.ps-zero-popular h3 { font-size: 16px; margin: 0 0 10px !important; }
.ps-zero-popular .ps-chips { justify-content: center; flex-wrap: wrap; }

/* Mobile sheet */
.ps-sheet-backdrop { position: fixed; inset: 0; background: rgba(27, 58, 75, 0.45); z-index: 90; }
.ps-sheet { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--ps-white); border-radius: 16px 16px 0 0; margin-top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); }
.ps-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ps-tint); }
.ps-sheet-head h2 { margin: 0; font-size: 18px; }
.ps-sheet-body { flex: 1; overflow-y: auto; padding: 8px 16px; }
.ps-sheet-body .ps-sort { margin: 8px 0 12px; }
.ps-sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ps-tint); background: var(--ps-white); }
.ps-sheet-foot .ps-button { flex: 1; justify-content: center; }
body.ps-sheet-open { overflow: hidden; }

@media (min-width: 600px) { .ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .ps-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .ps-sidebar { display: block; }
  .ps-filters-button { display: none; }
  .ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1280px) { .ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.planet-search [hidden], .ps-panel[hidden], .ps-sheet[hidden] { display: none !important; }
