/* Mobile menu footer: de-emphasized utility + sticky trust strip */

/* Half the open-drawer gap (was 20% → now 10%) */
:root {
  --mm-width: 90%;
}

/* Stronger Modal-style dim + cheap blur on the visible strip */
.mm-blocker {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#mmenu-left {
  --mmenu-footer-h: 60px;
}

#mmenu-left .mmenu-sticky-spacer {
  height: var(--mmenu-footer-h);
  pointer-events: none;
  list-style: none;
}

#mmenu-left .mmenu-sticky-spacer:before,
#mmenu-left .mmenu-sticky-spacer:after {
  display: none !important;
  content: none !important;
}

/* Belt-and-braces: keep last utility rows above the sticky strip */
#mmenu-left > ul {
  padding-bottom: var(--mmenu-footer-h);
  box-sizing: border-box;
}

#mmenu-left .mmenu-sticky-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 6px 10px 8px;
  background: #f3f3f3;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}

#mmenu-left.mm:not(.mm--main) .mmenu-sticky-footer {
  display: none;
}

#mmenu-left.mm--dark .mmenu-sticky-footer {
  background: #2a2a2a;
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Close button in the drawer title bar (MmenuLight has no close affordance) */
#mmenu-left .mmenu-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  width: var(--mm-item-height, 50px);
  height: var(--mm-item-height, 50px);
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  cursor: pointer;
  line-height: 0;
}

#mmenu-left .mmenu-close:before,
#mmenu-left .mmenu-close:after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.5;
}

#mmenu-left .mmenu-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#mmenu-left .mmenu-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#mmenu-left .mmenu-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

/* Trust marks: single row, evenly distributed */
#mmenu-left .mmenu-trust-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 3px 6px;
  margin-bottom: 4px;
}

/* Undo MmenuLight .mm a/.mm span padding + :after divider.
   Do NOT set width on spans — that would beat the inline
   width:N% on .trust-stars__fill and force a full 5/5 fill. */
#mmenu-left .mmenu-trust-row a,
#mmenu-left .mmenu-trust-row span {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#mmenu-left .mmenu-trust-row a {
  width: auto !important;
  max-width: none !important;
}

#mmenu-left .mmenu-trust-row a:after,
#mmenu-left .mmenu-trust-row span:after,
#mmenu-left .mmenu-trust-row a:before,
#mmenu-left .mmenu-trust-row span:before {
  content: none !important;
  display: none !important;
}

#mmenu-left .mmenu-trust-trygg {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

/* Badge is 367x66; a max-width clamp with a fixed height squeezes it */
#mmenu-left .mmenu-trust-trygg img {
  display: block;
  height: 12px;
  width: auto;
  max-width: none;
}

#mmenu-left .mmenu-trust-link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
  min-width: 0;
  opacity: 0.92;
}

#mmenu-left .mmenu-trust-count {
  font-size: 8.5px;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: #000000;
  flex: 0 0 auto;
}

#mmenu-left.mm--dark .mmenu-trust-count {
  color: rgba(255, 255, 255, 0.78);
}

#mmenu-left .mmenu-trust-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#mmenu-left .mmenu-trust-link img {
  display: block;
  height: 10.5px;
  width: auto;
  flex: 0 0 auto;
}

/* Trustpilot's viewBox is pure wordmark, so at an equal box height its
   lettering reads ~1.4x larger than the Prisjakt icon+wordmark lockup. */
#mmenu-left .mmenu-trust-link--tp img {
  height: 8px;
}

/* Restore overlaid star fill (MmenuLight forces display:block on spans) */
#mmenu-left .mmenu-trust-row .trust-stars {
  position: relative !important;
  display: inline-block !important;
  font-size: 9.5px;
  letter-spacing: -1.5px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

#mmenu-left .mmenu-trust-row .trust-stars__base {
  display: inline-block !important;
  position: static !important;
  white-space: nowrap;
}

#mmenu-left .mmenu-trust-row .trust-stars__fill {
  display: inline-block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

#mmenu-left .mmenu-company-line {
  margin: 0;
  font-size: 9px;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-align: center;
  /* Was opacity 0.55 (~2.8:1 on #f3f3f3). Explicit colors hit AA 4.5:1. */
  opacity: 1;
  color: #555;
}

#mmenu-left.mm--dark .mmenu-company-line {
  color: rgba(255, 255, 255, 0.78);
}

/* Utility rows: subordinate to category nav, same 50px rhythm as nav items */
#mmenu-left > ul > li.mmenu-utility-row > a,
#mmenu-left > ul > li.mmenu-utility-row > span {
  min-height: var(--mm-item-height, 50px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.78;
  color: inherit;
}

#mmenu-left > ul > li.mmenu-utility-row > a:focus-visible,
#mmenu-left > ul > li.mmenu-utility-row > span:focus-visible,
#mmenu-left .mmenu-market-item > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Group boundary without extra height: no spacer row, just a stronger rule
   on the first utility row so its padding matches every other menu item. */
#mmenu-left li.mmenu-footer-divider {
  height: 0;
  padding: 0;
  overflow: hidden;
}

#mmenu-left li.mmenu-footer-divider:before,
#mmenu-left li.mmenu-footer-divider:after {
  display: none !important;
  content: none !important;
}

#mmenu-left li.mmenu-footer-divider + li.mmenu-utility-row {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.16);
}

#mmenu-left.mm--dark li.mmenu-footer-divider + li.mmenu-utility-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Market summary: full-row tap target; children must not steal clicks */
#mmenu-left .mmenu-market-row > span.mmenu-market-summary {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: calc(100% - 50px);
  max-width: calc(100% - 50px);
  min-height: var(--mm-item-height, 50px);
  box-sizing: border-box;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#mmenu-left .mmenu-market-summary > * {
  pointer-events: none;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2;
}

#mmenu-left .mmenu-market-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mmenu-left .mmenu-market-flag {
  display: inline-block;
  width: 18px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  vertical-align: middle;
  padding: 0 !important;
  margin: 0 !important;
}

/* Kill Mmenu's 13x20 padding on nested market spans (root cause of tall/wrapped rows) */
#mmenu-left .mmenu-market-item > a > span,
#mmenu-left .mmenu-market-item > a > img {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2;
}

#mmenu-left .mmenu-market-item > a {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 4px;
  min-height: var(--mm-item-height, 50px);
  box-sizing: border-box;
  width: 100% !important;
  font-size: 12px;
  white-space: nowrap !important;
  overflow: hidden;
}

#mmenu-left .mmenu-market-item > a:after {
  display: none !important;
  content: none !important;
}

#mmenu-left .mmenu-market-sep {
  opacity: 0.45;
  flex: 0 0 auto;
}

#mmenu-left .mmenu-market-country,
#mmenu-left .mmenu-market-lang {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mmenu-left .mmenu-market-cur {
  font-weight: 600;
  flex: 0 0 auto;
  margin-left: 2px !important;
  padding-right: 4px !important;
}

#mmenu-left .mmenu-market-current > a,
#mmenu-left .mmenu-market-current > span {
  font-weight: 600;
  opacity: 0.9;
}

#mmenu-left li.mmenu-market-item:before {
  display: none !important;
  content: none !important;
}
