/* Menu module. The bar and its panels; the drawer that menu.js builds from the same markup on
   phones and tablets when it is first opened. The bar with a burger and the items that fit is in
   menu-mobile.css (up to 991px; the module links it after this file). The bar has no background of its own: it sits on the theme's header strip, so
   the item text is white. A theme changes the colours by setting these variables on .dmenu and
   .dmenu-drawer (the drawer lives at the end of the page, outside the header). */
.dmenu,
.dmenu-drawer {
  --dm-bar-text: #fff;
  --dm-bar-hover: #ff7800;
  --dm-bar-separator: rgba(255, 255, 255, 0.3);
  --dm-accent: #d55316;
  --dm-accent-hover: #b8400f;
  --dm-ink: #1f1f1f;
  --dm-muted: #8a8a8a;
  --dm-soft: #f6f5f3;
  --dm-line: #ebe8e4;
  --dm-highlight: #d0102b;
  --dm-highlight-bar-bg: #ffe14d;
  --dm-highlight-bar-text: #1f1f1f;
}

.dmenu {
  position: relative;
  display: flex;
}

.dmenu ul,
.dmenu ol,
.dmenu-drawer ul,
.dmenu-drawer ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dmenu a,
.dmenu a:hover,
.dmenu a:focus,
.dmenu-drawer a,
.dmenu-drawer a:hover,
.dmenu-drawer a:focus {
  text-decoration: none;
}

.dmenu-icon {
  flex-shrink: 0;
  max-width: none;
  vertical-align: middle;
}

.dmenu-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  transition: transform 0.15s;
}

/* The bar: the items share it equally, a thin line between them */
.dmenu-bar {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0 0;
}

.dmenu-top {
  flex: 1 1 0;
  min-width: max-content;
}

.dmenu-top + .dmenu-top {
  border-left: 1px solid var(--dm-bar-separator);
}

.dmenu-top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px 13px;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: none;
  color: var(--dm-bar-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.dmenu-top-link:hover,
.dmenu-top-link:focus {
  background: var(--dm-bar-hover);
  color: var(--dm-bar-text);
  outline: none;
}

.dmenu-top-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--dm-bar-text);
}

/* The open item turns into a white tab that the panel hangs from */
.dmenu-top.is-open > .dmenu-top-link {
  background: #fff;
  color: var(--dm-accent);
}

.dmenu-top.is-open > .dmenu-top-link .dmenu-chevron {
  transform: rotate(180deg);
}

.dmenu-burger {
  display: none;
}

/* Panels */
.dmenu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: auto;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(32, 20, 12, 0.18);
  color: var(--dm-ink);
  text-align: left;
}

.dmenu-panel[hidden] {
  display: none;
}

/* A short branch hangs under its own item */
.dmenu-top.is-list {
  position: relative;
}

.dmenu-top.is-list > .dmenu-panel {
  right: auto;
  width: max-content;
  min-width: 280px;
  max-width: calc(100vw - 120px);
  border-radius: 0 6px 6px 6px;
}

.dmenu-top.is-list:last-child > .dmenu-panel {
  left: auto;
  right: 0;
  border-radius: 6px 0 6px 6px;
}

/* Sections on the left, the groups of the chosen section on the right. The panel is as tall as
   the window lets it (menu.js); the sections and the groups scroll each on its own, and the page
   stays put when either comes to its end. */
.dmenu-top.is-sections > .dmenu-panel:not([hidden]) {
  display: flex;
  overflow: hidden;
}

.dmenu-sections {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 260px minmax(0, 1fr);
  min-width: 0;
  min-height: 320px;
}

.dmenu-rail,
.dmenu-panes {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The line between the rail and the groups is a shadow inside the rail, under its items: the
   chosen section's white row covers it and merges with the groups (a border would need the row to
   reach past the rail, and that is a sideways scroll now that the rail scrolls) */
.dmenu-rail {
  padding: 16px 0 !important;
  background: var(--dm-soft);
  box-shadow: inset -1px 0 0 var(--dm-line);
}

.dmenu-rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 24px;
  border: 1px solid transparent;
  border-width: 1px 0;
  color: var(--dm-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dmenu-rail-link .dmenu-chevron {
  margin-left: auto;
  color: var(--dm-muted);
  transform: rotate(-90deg);
}

.dmenu-rail-link:hover,
.dmenu-rail-link:focus {
  color: var(--dm-accent);
  outline: none;
}

.dmenu-rail-item.is-active > .dmenu-rail-link {
  background: #fff;
  border-color: var(--dm-line);
  color: var(--dm-accent);
}

.dmenu-rail-item.is-active > .dmenu-rail-link .dmenu-chevron {
  color: var(--dm-accent);
}

.dmenu-pane {
  padding: 22px 30px 28px;
}

.dmenu-pane[hidden] {
  display: none;
}

.dmenu-pane-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dm-line);
}

.dmenu-pane-title {
  color: var(--dm-ink);
  font-size: 20px;
  font-weight: 700;
}

.dmenu-all {
  color: var(--dm-accent);
  font-size: 14px;
  font-weight: 500;
}

.dmenu-all:hover {
  color: var(--dm-accent-hover);
}

/* Groups flow down newspaper columns (as many as the template computed from the data): a long
   group continues in the next column, a short one stays whole */
.dmenu-columns {
  padding: 24px 30px 28px;
}

.dmenu-groups {
  column-gap: 34px;
}

.dmenu-cols-2 { column-count: 2; }
.dmenu-cols-3 { column-count: 3; }
.dmenu-cols-4 { column-count: 4; }
.dmenu-cols-5 { column-count: 5; }

/* A panel of groups is as wide as its columns and hangs under its item */
.dmenu-top.is-columns > .dmenu-panel {
  right: auto;
}

.dmenu-columns .dmenu-groups { width: 230px; }
.dmenu-columns .dmenu-cols-2 { width: 494px; }
.dmenu-columns .dmenu-cols-3 { width: 758px; }
.dmenu-columns .dmenu-cols-4 { width: 1022px; }
.dmenu-columns .dmenu-cols-5 { width: 1286px; max-width: calc(100vw - 120px); }

.dmenu-group {
  break-inside: avoid;
}

.dmenu-group-long {
  break-inside: auto;
}

.dmenu-group + .dmenu-group {
  margin-top: 20px;
}

.dmenu-group-title {
  display: block;
  break-after: avoid;
  margin-bottom: 10px;
  color: var(--dm-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

a.dmenu-group-title:hover {
  color: var(--dm-accent-hover);
}

.dmenu-links li {
  break-inside: avoid;
}

.dmenu-links a,
.dmenu-links span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--dm-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.dmenu-links a:hover,
.dmenu-links a:focus {
  color: var(--dm-accent);
  outline: none;
}

.dmenu-links .dmenu-links {
  margin: 0 0 4px 14px;
}

/* A numbered list: the number stands before the name, right-aligned, so the names line up; the
   count runs on across newspaper columns */
.dmenu-links.is-numbered {
  counter-reset: dmenu-number;
}

.dmenu-links.is-numbered > li {
  counter-increment: dmenu-number;
}

.dmenu-links.is-numbered > li > a::before,
.dmenu-links.is-numbered > li > span::before {
  content: counter(dmenu-number) ".";
  flex-shrink: 0;
  min-width: 1.5em;
  color: var(--dm-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dmenu-links .dmenu-links a {
  color: #555;
  font-size: 13px;
}

/* A short branch */
.dmenu-list {
  padding: 14px 24px 16px;
}

/* A top item whose subitems are tiles: the panel is as wide as the menu */
.dmenu-tileset {
  padding: 24px 30px 28px;
}

/* Blocks of a panel or a section, in the order of the items: groups, tiles, a list, cards.
   .dmenu in front: the list reset (.dmenu ul) would take the gap away from tiles and lists. */
.dmenu .dmenu-blocks > * + * {
  margin-top: 24px;
}

/* Narrower desktops: a slimmer rail and at most four columns next to it */
@media (max-width: 1199px) {
  .dmenu-sections {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dmenu-rail-link {
    padding-left: 20px;
  }

  .dmenu-pane {
    padding: 20px 22px 24px;
  }

  .dmenu-pane .dmenu-cols-5 {
    column-count: 4;
  }

  .dmenu-groups {
    column-gap: 26px;
  }
}

/* The main list of a branch (its categories), shown before its titled groups */
.dmenu-group-main > .dmenu-links > li > a,
.dmenu-group-main > .dmenu-links > li > span {
  font-size: 15px;
  font-weight: 700;
}

/* Tiles: categories with their pictures, manufacturers with their logos */
.dmenu-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.dmenu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 14px 10px 12px;
  border: 1px solid var(--dm-line);
  border-radius: 6px;
  color: var(--dm-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dmenu-tile:hover,
.dmenu-tile:focus {
  border-color: var(--dm-accent);
  box-shadow: 0 6px 16px rgba(32, 20, 12, 0.1);
  color: var(--dm-accent);
  outline: none;
}

.dmenu .dmenu-tile img {
  width: 120px;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
}

/* Tiles without names (a wall of logos): the picture in the middle; a tile without a picture
   shows its name there */
.dmenu-tiles.is-bare .dmenu-tile {
  justify-content: center;
}

/* A popular filters set: its links as small cards with the set's pictures, in one row when the
   window allows (a panel under its item grows wider for them) */
.dmenu-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dmenu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 104px;
  height: 100%;
  padding: 6px 3px 8px;
  border: 1px solid var(--dm-line);
  border-radius: 6px;
  color: var(--dm-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dmenu-card:hover,
.dmenu-card:focus {
  border-color: var(--dm-accent);
  box-shadow: 0 6px 16px rgba(32, 20, 12, 0.1);
  color: var(--dm-accent);
  outline: none;
}

.dmenu .dmenu-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 84px;
}

/* Items marked "highlight" in the editor: in the bar the name gets a badge, the cell stays as
   the others */
.dmenu-top.is-accent .dmenu-top-text {
  margin: -3px 0;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--dm-highlight-bar-bg);
  color: var(--dm-highlight-bar-text);
}

.dmenu-rail-item.is-accent > .dmenu-rail-link,
.dmenu-group.is-accent > .dmenu-group-title,
.dmenu-links .is-accent > a,
.dmenu-links .is-accent > span,
.dmenu-tiles .is-accent .dmenu-tile,
.dmenu-popular.is-accent .dmenu-group-title,
.dmenu-m-list > .is-accent > .dmenu-m-row {
  color: var(--dm-highlight);
}

.dmenu-links .is-accent > a,
.dmenu-links .is-accent > span {
  font-weight: 700;
}

/* "Button with a drop-down panel" (a menu like "Information" in a row of the theme's header): the
   item takes the row's own text and colour, its panel opens as usual. Not on phones - there the
   main menu's drawer has it all. */
.dmenu--dropdown {
  display: inline-flex;
}

.dmenu--dropdown .dmenu-bar {
  padding: 0;
}

.dmenu--dropdown .dmenu-top {
  flex: none;
  min-width: 0;
}

.dmenu--dropdown .dmenu-top + .dmenu-top {
  margin-left: 20px;
  border-left: 0;
}

.dmenu--dropdown .dmenu-top-link,
.dmenu--dropdown .dmenu-top-link:hover,
.dmenu--dropdown .dmenu-top-link:focus,
.dmenu--dropdown .dmenu-top.is-open > .dmenu-top-link {
  width: auto;
  height: auto;
  padding: 4px 0;
  gap: 6px;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.dmenu--dropdown .dmenu-top-link:hover,
.dmenu--dropdown .dmenu-top-link:focus,
.dmenu--dropdown .dmenu-top.is-open > .dmenu-top-link {
  color: var(--dm-accent);
}

.dmenu--dropdown .dmenu-top-link:focus-visible {
  box-shadow: none;
  text-decoration: underline;
}

.dmenu--dropdown .dmenu-panel {
  top: calc(100% + 6px);
  border-radius: 6px;
}

/* A "dropdown" menu with a title: the title's button (.dmenu-more) at the end of its row takes
   - "fit": the items that do not fit the row, but the kept ones (is-kept). menu.js measures the
     row (hides the rest with is-overflow, then adds is-fitted); until then the row is cut at the
     edge of its room;
   - "width": all the items but the kept ones, up to a width: 991px in menu-mobile.css, a theme
     sets its own (wider there is no button);
   - "all": all the items but the kept ones, on any width (a drop-down menu).
   With data-more-drawer the button opens the menu's drawer instead of its list.
   The menu takes the room its parent gives it: in a theme's flex row, the parent is a flex item
   that can shrink (flex: 1 1 auto; min-width: 0). */
.dmenu--titled {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.dmenu--titled > .dmenu-bar {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: var(--dmenu-gap, 20px);
  min-width: 0;
  height: auto;
  overflow: visible;
}

/* The distance is the bar's gap: items hidden between the shown ones take none */
.dmenu--titled .dmenu-top + .dmenu-top {
  margin-left: 0;
}

.dmenu--fold-fit:not(.is-fitted) > .dmenu-bar {
  overflow: hidden;
}

.dmenu--fold-width > .dmenu-more {
  display: none;
}

/* "all": on any width only the button and the kept items stand in the row; with no kept item the
   button stands alone */
.dmenu--fold-all .dmenu-top:not(.is-kept),
.dmenu--more-only > .dmenu-bar {
  display: none;
}

.dmenu--more-only > .dmenu-more {
  margin-right: 0;
  margin-left: 0;
}

.dmenu--titled .dmenu-top.is-overflow {
  display: none;
}

.dmenu-more {
  position: relative;
  flex: none;
  margin-left: var(--dmenu-gap, 20px);
}

.dmenu-more[hidden] {
  display: none;
}

/* The button before the items that stay in the row */
.dmenu--more-before > .dmenu-more {
  order: -1;
  margin-right: var(--dmenu-gap, 20px);
  margin-left: 0;
}

.dmenu-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.dmenu-title:hover,
.dmenu-title:focus,
.dmenu.is-expanded .dmenu-title {
  color: var(--dm-accent);
  outline: none;
}

.dmenu-title:focus-visible {
  text-decoration: underline;
}

.dmenu.is-expanded .dmenu-title .dmenu-chevron {
  transform: rotate(180deg);
}

.dmenu .dmenu-more-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  display: none;
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 8px 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(32, 20, 12, 0.18);
}

.dmenu.is-expanded .dmenu-more-list {
  display: block;
}

.dmenu-more-link {
  display: block;
  padding: 8px 20px;
  color: var(--dm-ink);
  white-space: nowrap;
}

.dmenu a.dmenu-more-link:hover,
.dmenu a.dmenu-more-link:focus {
  background: var(--dm-soft);
  color: var(--dm-accent);
  outline: none;
}

.dmenu-more-list .is-accent > .dmenu-more-link {
  font-weight: 700;
}

/* "List": the items one under another - a footer column, a sidebar. Nothing hides on any width and
   no script works on it; subitems stand in nested lists. The links take the colours of the page:
   a theme styles the list like its own ones (the menu's CSS class on the list, .dmenu-vlist-title
   for the heading). */
.dmenu--vlist {
  display: block;
}

.dmenu-vlist-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.dmenu--vlist .dmenu-vlist > li > a,
.dmenu--vlist .dmenu-vlist > li > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.dmenu--vlist .dmenu-vlist .dmenu-vlist {
  padding-left: 16px;
}

.dmenu--vlist ol.dmenu-vlist {
  padding-left: 22px;
  list-style: decimal;
}

.dmenu--vlist ol.dmenu-vlist > li > a,
.dmenu--vlist ol.dmenu-vlist > li > span {
  display: inline;
}

.dmenu--vlist .dmenu-vlist .is-accent > a,
.dmenu--vlist .dmenu-vlist .is-accent > span {
  color: var(--dm-highlight);
  font-weight: 700;
}

/* The drawer: built by menu.js on the first open, at the end of the page. The menu's levels open
   one over another, each with "Back"; copies of chosen parts of the page (language, phone, links)
   stand around the list of the top items. */
html.dmenu-locked,
html.dmenu-locked body {
  overflow: hidden;
}

/* The highest layer there is: some page widgets take it too (the OCFilter "Filter" button); with
   an equal z-index the drawer, at the end of the page, covers them */
.dmenu-drawer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  color: var(--dm-ink);
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.dmenu-drawer[hidden] {
  display: none;
}

.dmenu-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.dmenu-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 400px);
  background: #fff;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.dmenu-drawer.is-open .dmenu-drawer-overlay {
  opacity: 1;
}

.dmenu-drawer.is-open .dmenu-drawer-panel {
  transform: none;
}

/* A drawer a theme opens from the right (window.dmenuOpen({side: 'right'})) */
.dmenu-drawer.is-right .dmenu-drawer-panel {
  left: auto;
  right: 0;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
}

.dmenu-drawer.is-right.is-open .dmenu-drawer-panel {
  transform: none;
}

.dmenu-drawer.no-motion,
.dmenu-drawer.no-motion * {
  transition: none !important;
}

.dmenu-drawer-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 6px 8px 16px;
  border-bottom: 1px solid var(--dm-line);
}

.dmenu-drawer-logo,
.dmenu-drawer-title {
  flex: 1 1 auto;
  min-width: 0;
}

/* The drawer of a menu's title button: its title in the head, where the main menu has the logo */
.dmenu-drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.dmenu-drawer-logo > *,
.dmenu-drawer-logo img {
  width: auto;
  margin: 0;
}

.dmenu-drawer-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 44px;
}

.dmenu-drawer-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dm-muted);
  font-size: 30px;
  font-weight: 300;
  line-height: 44px;
  cursor: pointer;
}

.dmenu-drawer-close:hover,
.dmenu-drawer-close:focus {
  color: var(--dm-ink);
  outline: none;
}

.dmenu-screens {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

/* A level of the menu. The next one slides in from the right, the one under it moves aside. */
.dmenu-screen {
  position: absolute;
  inset: 0;
  padding: 0 16px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}

.dmenu-screen.is-current {
  transform: none;
  visibility: visible;
}

.dmenu-screen.is-behind {
  transform: translateX(-30%);
}

.dmenu-screen-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0 -16px;
  padding: 0 8px;
  border-bottom: 1px solid var(--dm-line);
  background: #fff;
}

.dmenu-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--dm-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dmenu-back .dmenu-chevron {
  transform: rotate(90deg);
}

.dmenu-screen-title {
  margin: 16px 0 6px;
  color: var(--dm-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.dmenu-screen .dmenu-all {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 15px;
}

/* The top items, and the sections of an item: rows with an arrow to the next level */
.dmenu-m-list > li {
  border-bottom: 1px solid var(--dm-line);
}

.dmenu-m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--dm-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dmenu-m-row:hover,
.dmenu-m-row:focus {
  color: var(--dm-accent);
  outline: none;
}

.dmenu-m-row .dmenu-chevron {
  margin-left: auto;
  color: var(--dm-muted);
  transform: rotate(-90deg);
}

/* Parts of the page copied into the drawer. A part the theme hides on phones is shown as a
   block; a theme styles the copies as .dmenu-drawer-block > .its-class. */
.dmenu-drawer-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--dm-line);
}

.dmenu-drawer-block > .dmenu-shown {
  display: block;
}

/* A level's content: groups in one column, each a block that opens and closes */
.dmenu-drawer .dmenu-blocks > * + * {
  margin-top: 20px;
}

.dmenu-drawer .dmenu-groups {
  column-count: 1;
}

.dmenu-drawer .dmenu-group + .dmenu-group {
  margin-top: 0;
}

.dmenu-acc {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--dm-line);
  background: none;
  color: var(--dm-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.dmenu-acc .dmenu-chevron {
  margin-left: auto;
  color: var(--dm-muted);
}

.dmenu-acc[aria-expanded="true"] .dmenu-chevron {
  transform: rotate(180deg);
}

.dmenu-acc-body {
  padding: 4px 0 10px;
}

.dmenu-acc-body[hidden] {
  display: none;
}

.dmenu-acc-body > .dmenu-all {
  display: block;
  margin: 0;
  padding: 8px 0;
}

.dmenu-drawer .dmenu-links a,
.dmenu-drawer .dmenu-links span {
  display: flex;
  padding: 8px 0;
  font-size: 15px;
}

.dmenu-drawer .dmenu-group-main > .dmenu-links > li {
  border-bottom: 1px solid var(--dm-line);
}

.dmenu-drawer .dmenu-group-main > .dmenu-links > li > a,
.dmenu-drawer .dmenu-group-main > .dmenu-links > li > span {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.dmenu-drawer .dmenu-tiles {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.dmenu-drawer .dmenu-tile {
  gap: 6px;
  padding: 10px 6px;
  font-size: 13px;
}

.dmenu-drawer .dmenu-tile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* Popular filters: cards in two columns, the picture over the name (beside it long names like
   "Чотиристулкові" do not fit a phone's half width) */
.dmenu-drawer .dmenu-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dmenu-drawer .dmenu-card {
  width: auto;
  padding: 8px 6px;
  font-size: 12px;
}

.dmenu-drawer .dmenu-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60px;
}
