/*
 * Catalogue (view/storefront/page/products.html) — /produk and
 * /kategori/{slug}: the design's boards Products (1440 px), TProducts (820 px),
 * MProducts and MFilter (390 px). Ported from the <style> blocks of
 * design/source/src/pages/Products.html and MProducts.html; the markup's
 * style="" attributes became the classes marked "was inline" (the CSP forbids
 * them). The design switches its tablet rules with `.aa.tab`; here they are
 * the `m` media query, as everywhere.
 *
 * The filters exist twice in the markup: the desktop sidebar (`l`) and a
 * native <dialog> sheet for tablets (a side sheet) and phones (a bottom
 * sheet), opened like the drawer (app.js).
 */

/* ---------- Page column ---------- */

/*
 * No scroll anchoring on the catalogue: htmx swaps the whole of #katalog
 * (inserting the new one before removing the old), and Chrome's anchoring
 * then moved the page — to its end in headless Chrome, to its top in the
 * owner's browser — whenever it was scrolled at all. Without it the page
 * stays where the visitor was; nothing here shifts content above the view
 * by itself (the cards' images have fixed boxes). Smoke test: "ticking … keeps
 * the page where it was".
 */
html:has(#katalog) {
  overflow-anchor: none;
}

.aa > main.pr-main {
  display: flex;
  flex-direction: column;
  padding: 32px 0 88px;
}

/* The part htmx swaps: every section of the page, 24 px apart. */
.aa .pr-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Heading band: breadcrumb, heading, intro, bespoke link ---------- */

.aa .pr-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* The heading's column (was inline). */
.aa .pr-headtext {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.aa .pr-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.aa .pr-crumbs a {
  display: inline;
  color: var(--on-surface-variant);
}

.aa .pr-crumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.aa .pr-crumbs i {
  --_size: 18px;
  font-size: 18px;
}

.aa .pr-h1 {
  font-size: 44px;
  line-height: 52px;
}

.aa .pr-bespoke {
  flex: none;
}

/* ---------- Category chips ---------- */

.aa .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa .pr-chips .chip {
  height: 36px;
  background: var(--aa-raised);
}

/* The rules above give every chip a white fill; the chosen one keeps the
   selected look (storefront.css → .chip.is-on). */
.aa .pr-chips .chip.is-on,
.aa .mp-cats .chip.is-on,
.aa .pr-scatchips .chip.is-on {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-color: transparent;
}

/* The count in a chip. :where() keeps the selector as specific as the
   filter panel's `.pr-opt .n` below, so the two apply in file order. */
.aa .pr-chips :where(.chip) .n {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

/* ---------- Sidebar and results ---------- */

.aa .pr-body {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.aa .pr-filters {
  padding: 8px 0;
  border-radius: 28px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .pr-filters > form {
  display: flex;
  flex-direction: column;
}

.aa .pr-fhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px 24px;
}

/* One group of the filter panel (license types, price, …). */
.aa .pr-fsec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px 20px;
  border-radius: 0;
}

.aa .pr-fsec + .pr-fsec {
  border-top: 1px solid var(--outline-variant);
}

.aa .pr-fsec h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

/* A checkbox or radio line, its count on the right. */
.aa .pr-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.aa .pr-opt :is(.checkbox, .radio) {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.aa .pr-opt :is(.checkbox, .radio) > span {
  font-size: 14px;
  line-height: 20px;
  white-space: normal;
  padding-inline-start: 12px;
}

.aa .pr-opt .n {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-variant-numeric: tabular-nums;
}

/* The rating choices' stars. */
.aa .pr-stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-inline-end: 6px;
}

.aa .pr-stars i {
  --_size: 16px;
  font-size: 16px;
}

.aa .pr-pricechips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aa .pr-pricechips .chip {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

/* The price slider (was inline). */
.aa .pr-slider {
  margin: 4px 10px 0;
}

.aa .pr-range {
  display: flex;
  gap: 12px;
}

.aa .pr-range .aa-fld {
  flex: 1 1 0;
  min-width: 0;
}

/* "Sedang diskon" and its hint, stacked beside the switch (was inline). */
.aa .pr-switchlabel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.aa .pr-switchname {
  font-weight: 700;
}

/* Without JavaScript nothing applies a change: this button does. With it
   (theme-init.js marks <html class="js">), a change applies at once. */
.aa .pr-filters .pr-fapply {
  padding: 12px 24px 16px;
}

.js .aa .pr-filters .pr-fapply {
  display: none;
}

.aa .pr-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.aa .pr-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

/* "13 produk" over "Menampilkan 1–12" (was inline). */
.aa .pr-count {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Filter button, sort field and view toggle (was inline). */
.aa .pr-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.aa .pr-sort {
  width: 220px;
}

/* The tablet's "Filter" button, with the number of filters on. */
.aa .pr-fbtn {
  display: none;
}

.aa .pr-fcnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 750;
}

.aa .pr-active {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* An active filter's chip. The search's holds what the visitor typed, up to
   100 characters (MAX_SEARCH_CHARS), so its box follows the words, as the
   product page's "Cocok untuk" chips do (9r69): BeerCSS fixes a chip's
   height (32 px, 44 px up to 992 px), and a long search wrapped over the
   chip's border above and below. The chip grows with its lines, and a word
   longer than the row breaks instead of running past the screen. One line
   keeps the chip's size: its ✕ (20 px) and 5 px above and below make 32 px,
   and up to 992 px the tap-target rule's 44 px still holds — this rule sets
   no least height, which here would outweigh that one's. */
.aa .pr-active .chip {
  block-size: auto;
  padding-block: 5px;
  overflow-wrap: anywhere;
  background: var(--aa-raised);
}

.aa .pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- List view ---------- */

.aa .pr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa .pr-row {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 8px 24px 8px 8px;
  border-radius: 24px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .pr-mediabox {
  position: relative;
  min-width: 0;
}

.aa .pr-row .media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  background: var(--surface-container);
}

/* The design's 192 × 120 thumbnail box, filled like the card's. */
.aa .pr-row .media img {
  width: 100%;
  height: auto;
  aspect-ratio: 192 / 120;
  object-fit: cover;
  object-position: left center;
}

.aa .pr-mediabox .aa-pfav {
  top: 8px;
  right: 8px;
}

.aa .pr-row .mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px 0;
}

/* The badge sits in the category line (was inline). */
.aa .pr-rowtag {
  position: static;
  margin-left: 6px;
}

/* A row's title: one size up from the card's, no reserved second line (was inline). */
.aa .pr-rowtitle {
  min-height: 0;
  font-size: 18px;
  line-height: 24px;
}

.aa .pr-row .feat {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.aa .pr-row .feat li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* :where() keeps this as specific as the other icon rules of the page
   (empty state, sort menu), so they all apply in file order. */
.aa .pr-row :where(.feat) i {
  --_size: 16px;
  font-size: 16px;
  color: var(--aa-success);
}

.aa .pr-row .end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: end;
}

/* The price column of a row (was inline). */
.aa .pr-rowprice {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.aa .pr-rowprice .aa-price {
  font-size: 22px;
}

.aa .pr-row .end .aa-pbtns {
  align-self: stretch;
  margin-top: 6px;
}

/* ---------- Pager, empty state ---------- */

.aa .pr-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 16px;
}

.aa .pr-pager .button {
  min-width: 40px;
}

/* Tablets page with these numbers (phones load more instead): tap targets,
   44 px like every button on a touch screen (storefront.css). */
@media (max-width: 992px) {
  .aa .pr-pager .button {
    min-width: 44px;
  }
}

/* The arrow at either end, when there is no page that way. */
.aa .pr-pager [aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

/* "…" between page numbers (was inline). */
.aa .pr-gap {
  padding: 0 6px;
}

.aa .pr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 24px;
  border-radius: 28px;
  background: var(--aa-raised);
  text-align: center;
}

/* The empty state's burst (was inline). */
.aa .pr-emptyicon {
  width: 88px;
  height: 88px;
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.aa .pr-emptyicon > i {
  --_size: 36px;
  font-size: 36px;
}

/* ---------- The filter sheet (tablets: side sheet, phones: bottom sheet) ---------- */

/* A native <dialog> opened with showModal(): focus stays inside, Esc and the
   scrim close it. BeerCSS's own dialog look (centred card) is replaced. */
.aa dialog.pr-sheet {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
  max-width: none;
  max-height: none;
  background: var(--aa-inset);
  color: var(--on-surface);
  box-shadow: var(--elevate3);
  overflow: hidden;
}

.aa dialog.pr-sheet::backdrop {
  background: rgb(0 0 0 / 0.32);
}

.aa.dark dialog.pr-sheet::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.aa dialog.pr-sheet[open]::backdrop {
  opacity: 1;
  visibility: visible;
}

.aa .pr-sheetform {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* The phone sheet's drag handle (decorative). */
.aa .pr-handle {
  display: none;
  width: 32px;
  height: 4px;
  margin: 14px auto 4px;
  border-radius: 2px;
  background: var(--outline);
  opacity: 0.5;
}

.aa .pr-shead {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 12px 8px 16px;
}

.aa .pr-shead .pr-sclear {
  margin-left: auto;
}

.aa .pr-sbody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aa .pr-sfoot {
  display: flex;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--outline-variant);
  border-radius: 0;
  background: var(--aa-inset);
}

.aa .pr-sapply {
  flex: 1 1 auto;
}

.aa .pr-scatchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa .pr-scatchips .chip {
  height: 32px;
  background: var(--aa-raised);
}

/* ---------- Phone parts: the bar, category chips, count, sort menu ---------- */

.aa .mp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.aa .mp-bar .chip {
  height: 36px;
  background: var(--aa-raised);
}

.aa .mp-bar .chip.is-on {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.aa .mp-bar .cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 750;
}

/* The view toggle sits at the end of the bar (was inline). */
.aa .mp-view {
  margin-left: auto;
}

/* "Urutkan": a <details> menu of links — it works without JavaScript. The
   z-index lifts the whole menu above the rows under it (Chrome painted the
   count row over the open menu without it). */
.aa .mp-sort {
  position: relative;
  z-index: 45;
}

.aa .mp-sort > summary {
  list-style: none;
  cursor: pointer;
}

.aa .mp-sort > summary::-webkit-details-marker {
  display: none;
}

.aa .mp-sortmenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  min-width: 232px;
  padding: 8px 0;
  border-radius: 16px;
  background: var(--surface-container);
  box-shadow: var(--elevate2);
}

.aa .mp-sortmenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface);
  border-radius: 0;
}

.aa .mp-sortmenu a.is-on {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 600;
}

.aa .mp-sortmenu a i {
  --_size: 20px;
  font-size: 20px;
}

.aa .mp-cats .chip {
  height: 32px;
  background: var(--aa-raised);
}

/* "248 produk … Menampilkan 1–10" (was inline). */
.aa .mp-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

/* ---------- Desktop widths the design never drew (993–1279 px) ---------- */

/* A narrower sidebar; below 1200 px two cards a row, so a card keeps room
   for its price and buttons. */
@media (min-width: 993px) and (max-width: 1279px) {
  .aa .pr-body {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 24px;
  }

  .aa .pr-grid {
    gap: 16px;
  }

  .aa .pr-row {
    grid-template-columns: 160px minmax(0, 1fr) 188px;
    gap: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  .aa .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Tablet (601–992 px; the design's TProducts board) ---------- */

@media (min-width: 601px) and (max-width: 992px) {
  /* The design's tablet rhythm for every page (theme.css: `.aa.tab > main`
     gap 56 px, bottom padding 64 px); here the gap sits on the swapped part. */
  .aa > main.pr-main {
    padding-bottom: 64px;
  }

  .aa .pr-page {
    gap: 56px;
  }

  .aa .pr-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .aa .pr-h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .aa .pr-chips .chip {
    height: 32px;
  }

  .aa .pr-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .aa .pr-fbtn {
    display: inline-flex;
  }

  .aa .pr-toolbar {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .aa .pr-sort {
    width: 196px;
  }

  .aa .pr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .aa .pr-row {
    grid-template-columns: 150px minmax(0, 1fr) 176px;
    gap: 16px;
    padding-right: 16px;
  }

  .aa .pr-row :is(.feat, .aa-pfav) {
    display: none;
  }

  /* The side sheet: the sidebar's panel, sliding in from the left. */
  .aa dialog.pr-sheet {
    inset: 0 auto 0 0;
    width: min(360px, 100vw - 56px);
    height: 100dvh;
    border-radius: 0 28px 28px 0;
    transform: translateX(-100%);
  }

  .aa dialog.pr-sheet[open] {
    transform: none;
  }

  .aa .pr-sclose {
    margin-left: -8px;
  }

  .aa .pr-sfootclear {
    display: none;
  }
}

/* The narrowest tablets: the toolbar's tools get their own row. */
@media (min-width: 601px) and (max-width: 720px) {
  .aa .pr-tools {
    width: 100%;
  }

  .aa .pr-sort {
    flex: 1 1 auto;
    width: auto;
  }

  .aa .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Phone (≤ 600 px; the design's MProducts and MFilter boards) ---------- */

@media (max-width: 600px) {
  .aa > main.pr-main {
    padding: 0 0 24px;
  }

  .aa .pr-page {
    gap: 14px;
  }

  .aa .pr-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .aa .pr-results {
    gap: 14px;
  }

  .aa .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* A list row: the picture beside the text, price and buttons below. */
  .aa .pr-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
    border-radius: 20px;
  }

  .aa .pr-row :is(.feat, .aa-pfav) {
    display: none;
  }

  .aa .pr-rowtitle {
    font-size: 15px;
    line-height: 21px;
  }

  /* The price, then the buttons — on one line while they fit, the buttons
     wrapping under the price, at the end, where they do not (360 px: Beli,
     the cart button and "Detail" are wider than what the price leaves;
     decision 147). */
  .aa .pr-row .end {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    text-align: start;
  }

  .aa .pr-rowprice {
    align-items: flex-start;
  }

  .aa .pr-row .end .aa-pbtns {
    flex-direction: row;
    align-items: center;
    align-self: auto;
    margin-top: 0;
    margin-inline-start: auto;
    padding-top: 0;
  }

  .aa .pr-empty {
    padding: 40px 20px;
  }

  /* The bottom sheet. */
  .aa dialog.pr-sheet {
    inset: auto 0 0;
    width: 100%;
    max-height: min(720px, 100dvh - 64px);
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }

  .aa dialog.pr-sheet[open] {
    transform: none;
  }

  .aa .pr-handle {
    display: block;
  }

  .aa .pr-shead {
    justify-content: space-between;
    padding: 4px 8px 8px 24px;
  }

  .aa .pr-shead h2 {
    order: -1;
  }

  .aa .pr-shead .pr-sclear {
    display: none;
  }

  /* The phone sheet's groups: compact, without dividers (MFilter). */
  .aa .pr-sbody {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 8px 24px 20px;
  }

  .aa .pr-sbody .pr-fsec {
    gap: 10px;
    padding: 0;
    border-top: 0;
  }

  .aa .pr-sbody .pr-opt .n {
    display: none;
  }

  .aa .pr-sfoot {
    padding: 12px 16px 20px;
  }

  .aa .pr-sfootclear {
    flex: 1 1 0;
  }

  .aa .pr-sapply {
    flex: 2 1 0;
  }
}

/* ---------- The next catalogue on its way (shimmer) ---------- */

/* The owner's request of 2026-09-30: a swap that takes longer than a moment
   shows placeholders in the results' place (app.js marks #katalog
   `is-loading`; the answer replaces it all). They wait out of sight until
   then — the phone's "Muat lebih banyak" has its own (#pr-more `is-loading`). */
.aa .pr-skel,
.aa .pr-skmore {
  display: none;
}

.aa .pr-page.is-loading :is(#pr-items, .pr-empty, .pr-pager, #pr-more) {
  display: none;
}

.aa .pr-page.is-loading .pr-skel.pr-grid,
.aa #pr-more.is-loading > .pr-skmore.pr-grid {
  display: grid;
}

.aa .pr-page.is-loading .pr-skel.pr-list,
.aa #pr-more.is-loading > .pr-skmore.pr-list {
  display: flex;
}

.aa #pr-more.is-loading > a {
  display: none;
}

/* The count belongs to the answer, and so does the heading when the category
   changes (`is-switching`): the band of light runs over their words meanwhile
   (the same as storefront.css → "Loading placeholders"). */
.aa .pr-page.is-loading :is(.pr-count, .mp-count) > *,
.aa .pr-page.is-switching :is(.pr-h1, .pr-headtext > p) {
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(100deg, var(--aa-sk-base) 40%, var(--aa-sk-shine) 50%, var(--aa-sk-base) 60%);
  background-size: 300% 100%;
  animation: aa-shimmer 1.4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .aa .pr-page.is-loading :is(.pr-count, .mp-count) > *,
  .aa .pr-page.is-switching :is(.pr-h1, .pr-headtext > p) {
    animation: none;
  }
}

/* A placeholder row takes the real row's grid (.pr-row, component/skeleton.html). */
.aa .aa-skrow {
  pointer-events: none;
}

.aa .aa-skrow .sk-img {
  aspect-ratio: 192 / 120;
}

.aa .aa-skrow .end {
  align-self: stretch;
  justify-content: center;
}

.aa .aa-skrow .end .sk-price {
  width: 60%;
  margin-top: 0;
}

.aa .aa-skrow .end .sk-btn {
  width: 100%;
}

@media (max-width: 600px) {
  .aa .aa-skrow .end .sk-btn {
    width: 40%;
    margin-top: 0;
  }
}

/* ---------- Without JavaScript ---------- */

/* The sheet cannot open, so on tablets and phones the filters show above
   the results instead (theme-init.js marks <html class="js"> when scripts run). */
@media (max-width: 992px) {
  html:not(.js) .aa dialog.pr-sheet {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 16px;
    border-radius: 28px;
    box-shadow: var(--elevate1);
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  html:not(.js) .aa :is(.pr-fbtn, .mp-bar > .chip.is-on, .pr-sclose, .pr-handle) {
    display: none;
  }

  /* The sheet comes last in the markup; the results move after it. */
  html:not(.js) .aa .pr-body {
    order: 1;
  }
}
