/*
 * wildmark shell: header, slide-in menu, category bar, breadcrumb, footer and
 * shared base styles. Mobile first; layout changes at 768 px and 1024 px.
 * Colours and fonts come from the existing template: red #cf131e, ink #222/#333,
 * greys #eee/#ddd, Tauri headings, Quicksand text.
 */
:root {
  --wm-red: #cf131e;
  --wm-red-dark: #a50f18;
  --wm-ink: #222;
  --wm-ink2: #555;
  --wm-mute: #6b6b6b;
  --wm-line: #ddd;
  --wm-surface: #f3f3f3;
  --wm-white: #fff;
  --wm-green: #1d7a35;
  --wm-focus: #1a5fb4;
  --wm-head: "Tauri", "Arial Narrow", sans-serif;
  --wm-body: "Quicksand", "Segoe UI", system-ui, sans-serif;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--wm-ink); }
body.wm .centerColumn:not([class*="wm-"]) input::placeholder, body.wm .centerColumn:not([class*="wm-"]) textarea::placeholder { color: transparent; }
.wm-callprice, .wm-card__price .wm-callprice { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--wm-body); color: var(--wm-ink); }
.wm-callprice__icon { width: 18px; height: 18px; }
.wm-pprice .wm-callprice { font-size: 16px; }
.wm-pprice:has(.wm-callprice) .wm-pprice__tax { display: none; } /* no "inkl. moms" without a price */
html.wm-noscroll { overflow: hidden; }
body.wm { margin: 0; background: var(--wm-white); }
body.wm :focus-visible { outline: 3px solid var(--wm-focus); outline-offset: 2px; }
.wm-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wm-skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--wm-ink); color: #fff; padding: 10px 14px; border-radius: 4px; font: 600 15px/1 var(--wm-body); text-decoration: none; }
.wm-skip:focus { top: 8px; }
.wm-wrap { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding-left: 12px; padding-right: 12px; }
@media (min-width: 768px) { .wm-wrap { padding-left: 20px; padding-right: 20px; } }
.wm-i { width: 24px; height: 24px; flex: none; }
#mainContent:focus { outline: none; }
#mainWrapper.wm-page { max-width: none; width: auto; }

/* buttons */
.wm-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0; font: 700 15px/1.2 var(--wm-body); text-decoration: none; cursor: pointer; background: var(--wm-red); color: #fff; }
.wm-btn .wm-i { width: 18px; height: 18px; }
.wm-btn--dark { background: var(--wm-ink); }
.wm-btn--light { background: #fff; color: var(--wm-ink); }
.wm-btn--ghost { background: transparent; color: var(--wm-ink); border: 1.5px solid var(--wm-ink); }
.wm-btn--outline { background: transparent; color: #fff; border: 1px solid #666; }

/* icon buttons */
.wm-iconbtn { box-sizing: border-box; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--wm-ink); text-decoration: none; cursor: pointer; font: 600 14px var(--wm-body); }
.wm-iconbtn:hover { background: var(--wm-surface); }

/* ---------- header ---------- */
.wm-topbanner { text-align: center; }
.wm-topbanner:empty { display: none; }
.wm-header { position: sticky; top: 0; z-index: 50; background: var(--wm-white); border-bottom: 1px solid var(--wm-line); font-family: var(--wm-body); }
.wm-header__bar { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo tools" "search search search"; align-items: center; column-gap: 4px; row-gap: 8px; padding-top: 6px; padding-bottom: 10px; }
.wm-header__menu { grid-area: menu; margin-left: -6px; }
.wm-header__logo { grid-area: logo; display: block; justify-self: start; line-height: 0; }
.wm-header__logo img { height: 34px; width: auto; max-width: 100%; }
.wm-header__tools { grid-area: tools; display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.wm-header__phone { display: none; }
.wm-header__count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--wm-red); color: #fff; font: 700 11px/18px var(--wm-body); text-align: center; }
.wm-header__total { display: none; }

.wm-search { grid-area: search; display: flex; height: 44px; margin: 0; border: 1.5px solid #8a8a8a; border-radius: 8px; background: #fff; position: relative; }
.wm-search:focus-within { border-color: var(--wm-ink); box-shadow: 0 0 0 2px var(--wm-focus); }
.wm-header .wm-search input[type="search"], .wm-404 .wm-search input[type="search"] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: transparent; font: 500 16px var(--wm-body); color: var(--wm-ink); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.wm-header .wm-search input::placeholder, .wm-404 .wm-search input::placeholder { color: #707070; opacity: 1; }
.wm-search__btn { width: 52px; border: 0; border-radius: 0 6px 6px 0; background: var(--wm-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.wm-search__btn .wm-i { width: 20px; height: 20px; }
/* search suggestions (jscript_suggestionbox.php) hang below the field */
.wm-search #suggestions { position: absolute; top: 46px !important; left: -1.5px !important; right: -1.5px; width: auto !important; z-index: 70; background: #fff; border: 1px solid var(--wm-line); border-radius: 0 0 8px 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); font: 500 14px/1.4 var(--wm-body); }

.wm-ship { background: #fff8e6; border-top: 1px solid #f0e0b0; font: 500 13px/1.3 var(--wm-body); color: var(--wm-ink); }
.wm-ship__inner { display: grid; gap: 4px; padding-top: 6px; padding-bottom: 7px; }
.wm-ship b { font-weight: 700; }
.wm-ship__track { display: block; height: 5px; background: #eadfc4; border-radius: 3px; overflow: hidden; }
.wm-ship__track i { display: block; height: 100%; background: var(--wm-green); }

/* category bar (1024 px and up); dropdowns come from stylesheet_header_menu.css */
.wm-catnav { display: none; }

@media (min-width: 1024px) {
  .wm-header { position: relative; }
  .wm-header__bar { grid-template-columns: auto minmax(280px, 560px) 1fr; grid-template-areas: "logo search tools"; column-gap: 28px; padding-top: 14px; padding-bottom: 14px; }
  .wm-header__menu { display: none; }
  .wm-header__logo img { height: 56px; }
  .wm-header__tools { justify-self: end; gap: 6px; margin-right: 0; }
  .wm-header__phone { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font: 600 15px var(--wm-body); color: var(--wm-ink); text-decoration: none; }
  .wm-header__phone .wm-i { width: 20px; height: 20px; color: var(--wm-red); }
  .wm-header__cart { background: var(--wm-red); color: #fff; padding: 0 14px; }
  .wm-header__cart:hover { background: var(--wm-red-dark); }
  .wm-header__total { display: inline; font-weight: 700; }
  .wm-header__count { position: static; background: #fff; color: var(--wm-red); }
  .wm-catnav { display: block; position: relative; z-index: 2; border-top: 1px solid var(--wm-line); background: #fff; }
  .wm-catnav .wm-wrap { display: flow-root; }
  .wm-catnav #dropMenu a { text-decoration: none; }
  .wm-catnav #dropMenu { width: auto; float: none; margin: 0; }
  .wm-catnav #dropMenu ul.level1 { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
  .wm-catnav #dropMenu ul.level1 > li { float: none; }
  .wm-catnav #dropMenu ul.level1 > li > a { display: block; padding: 13px 12px; font: 15px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); }
  .wm-catnav #dropMenu ul.level1 > li:first-child > a { padding-left: 0; }
  .wm-catnav #dropMenu ul.level1 > li.kampanjMenu > a { color: var(--wm-red); }
  .wm-catnav #dropMenu ul.level1 > li > a:hover { color: var(--wm-red); background: none; }
  .wm-catnav #dropMenu ul.level2 { z-index: 60; }
}

/* ---------- breadcrumb ---------- */
.wm-crumbs { font: 500 14px/1.4 var(--wm-body); margin: 10px 0 4px; }
.wm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.wm-crumbs li { display: none; }
.wm-crumbs li.wm-crumbs__back { display: block; }
.wm-crumbs li.wm-crumbs__back a::before { content: "‹ "; }
.wm-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--wm-ink2); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .wm-crumbs li { display: flex; align-items: center; }
  .wm-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--wm-mute); }
  .wm-crumbs li.wm-crumbs__back a::before { content: none; }
  .wm-crumbs li[aria-current] span { color: var(--wm-ink); }
}

/* ---------- slide-in menu ---------- */
.wm-drawer { position: fixed; inset: 0; z-index: 100; font-family: var(--wm-body); }
.wm-drawer[hidden] { display: none; }
.wm-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.2s; }
.wm-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.2s ease-out; box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2); }
.wm-drawer.is-open .wm-drawer__backdrop { opacity: 1; }
.wm-drawer.is-open .wm-drawer__panel { transform: none; }
.wm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--wm-line); }
.wm-drawer__title { margin: 0; font: 22px/1.2 var(--wm-head); text-transform: uppercase; color: var(--wm-ink); }
.wm-drawer__body { flex: 1; overflow-y: auto; padding: 4px 0 24px; -webkit-overflow-scrolling: touch; }
.wm-drawer__label { margin: 18px 16px 4px; font: 700 12px/1.2 var(--wm-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--wm-mute); }
.wm-drawer__contact { padding: 18px 16px 0; }
.wm-drawer__contact .wm-btn { width: 100%; }
.wm-tree { list-style: none; margin: 0; padding: 0; }
.wm-tree li { margin: 0; padding: 0; border: 0; }
.wm-tree__row { display: flex; align-items: stretch; border-bottom: 1px solid #eee; }
.wm-tree__row a { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 0 16px; font: 600 16px/1.25 var(--wm-body); color: var(--wm-ink); text-decoration: none; }
.wm-tree__toggle { width: 52px; border: 0; border-left: 1px solid #eee; background: none; color: var(--wm-ink); cursor: pointer; display: grid; place-items: center; }
.wm-tree__toggle .wm-i { transition: transform 0.15s; }
.wm-tree__toggle[aria-expanded="true"] .wm-i { transform: rotate(180deg); }
.wm-tree--2 { background: #f7f7f7; }
.wm-tree--2 .wm-tree__row a { padding-left: 28px; font-weight: 500; font-size: 15px; }
.wm-tree--3 { background: #efefef; }
.wm-tree--3 .wm-tree__row a { padding-left: 40px; font-weight: 500; font-size: 15px; }
.wm-tree--4 .wm-tree__row a { padding-left: 52px; font-weight: 500; font-size: 14px; }
.wm-tree--campaigns .wm-tree__row a { color: var(--wm-red); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wm-drawer__panel, .wm-drawer__backdrop, .wm-tree__toggle .wm-i { transition: none; } }

/* ---------- footer ---------- */
.wm-footer { margin-top: 40px; background: #222; color: #ddd; font: 500 15px/1.5 var(--wm-body); clear: both; }
.wm-footer a { color: #fff; }
.wm-news { background: var(--wm-red); color: #fff; }
.wm-news__inner { display: grid; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.wm-news__title { margin: 0; font: 22px/1.2 var(--wm-head); text-transform: uppercase; color: #fff; }
.wm-news__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.wm-footer .wm-news__form input[type="email"] { min-width: 0; height: 46px; margin: 0; padding: 0 12px; border: 0; border-radius: 6px; font: 500 16px var(--wm-body); color: var(--wm-ink); background: #fff; }
.wm-news__info { margin: 0; font-size: 13px; line-height: 1.45; color: #fff; }
.wm-news__info a { color: #fff; text-decoration: underline; }
.wm-footer__grid { display: grid; gap: 28px; padding-top: 26px; padding-bottom: 8px; }
.wm-footer__title { margin: 0 0 10px; font: 19px/1.2 var(--wm-head); text-transform: uppercase; color: #fff; }
.wm-footer__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-footer__buttons .wm-btn { flex: 1 1 auto; white-space: nowrap; }
.wm-footer__mail { margin: 8px 0 0; font-size: 14px; color: #bbb; overflow-wrap: anywhere; }
.wm-footer__link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wm-footer__link .wm-i { width: 20px; height: 20px; }
.wm-footer__addr { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.wm-footer__addr .wm-i { width: 20px; height: 20px; color: var(--wm-red); margin-top: 1px; }
.wm-hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 0 0 4px; }
.wm-hours dt { color: #aaa; }
.wm-hours dd { margin: 0; color: #fff; }
.wm-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wm-footer__links li { margin: 0; padding: 0; list-style: none; }
.wm-footer__links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.wm-footer .mapLoad { box-sizing: border-box; min-height: 200px; border: 1px dashed #666; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; background: repeating-linear-gradient(45deg, #2a2a2a 0 10px, #262626 10px 20px); }
.wm-footer .mapLoad p { margin: 0; font-size: 14px; color: #ccc; }
.wm-footer .mapLoad a { color: #fff; text-decoration: underline; font-size: 14px; }
.wm-footer .wm-map { display: block; width: 100%; height: 260px; border: 0; border-radius: 8px; }
.wm-footer #bannerThree { padding-top: 16px; text-align: center; }
.wm-legal { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid #3a3a3a; margin-top: 18px; font-size: 13px; color: #aaa; }
@media (min-width: 768px) {
  .wm-news__inner { grid-template-columns: auto minmax(0, 460px); align-items: center; column-gap: 28px; }
  .wm-news__info { grid-column: 2; }
  .wm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .wm-footer__grid { grid-template-columns: 1.1fr 1fr 1.4fr 0.9fr; gap: 36px; }
}

/* ---------- start page ---------- */
.wm-hero { margin: 0 0 4px; }
.wm-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wm-hero__track::-webkit-scrollbar { display: none; }
.wm-hero__slide { flex: 0 0 100%; scroll-snap-align: start; line-height: 0; }
.wm-hero__slide img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 650; object-fit: cover; }
.wm-hero__ctl { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 8px 12px 0; font-family: var(--wm-body); }
.wm-hero__dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.wm-hero__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.wm-hero__dot[aria-current="true"]::before { background: var(--wm-ink); }
.wm-hero__pause { margin-left: 8px; min-height: 32px; padding: 0 14px; border: 1px solid var(--wm-line); border-radius: 999px; background: #fff; color: var(--wm-ink); font: 600 13px var(--wm-body); cursor: pointer; }
.wm-home-banners { padding-top: 12px; }

#indexDefault.wm-home { font-family: var(--wm-body); padding: 0 12px; box-sizing: border-box; max-width: 1280px; margin: 0 auto; float: none; width: auto; }
@media (min-width: 768px) { #indexDefault.wm-home { padding: 0 20px; } }
body.wm #contentMainWrapper { padding-top: 0; padding-bottom: 0; }
#indexHomeBody #contentMainWrapper > div { float: none; width: auto; margin: 0; }
.wm-usp { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wm-usp li { margin: 0; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 8px; background: var(--wm-surface); font: 600 12.5px/1.3 var(--wm-body); text-align: center; color: var(--wm-ink); }
.wm-usp .wm-i { width: 22px; height: 22px; color: var(--wm-red); }
@media (min-width: 768px) { .wm-usp li { display: flex; justify-content: center; gap: 10px; font-size: 14px; padding: 12px; } }

.wm-sect { margin-top: 26px; }
.wm-sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wm-home .wm-sect__title { margin: 0; font: 22px/1.15 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); }
.wm-sect__all { font: 600 14px var(--wm-body); color: var(--wm-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.wm-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wm-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wm-chips li { margin: 0; padding: 0; }
.wm-chips .wm-cats__chip a { padding: 0 16px; }
.wm-cats li { margin: 0; padding: 0; }
.wm-cats__tile a, .wm-cats__tile a span { margin: 0; }
.wm-cats__tile a { padding: 0; display: grid; grid-template-rows: 100px auto; height: 100%; border: 1px solid var(--wm-line); border-radius: 8px; overflow: hidden; background: #fff; text-decoration: none; }
.wm-cats__img { display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.wm-cats__img img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.wm-cats__name { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; background: var(--wm-surface); font: 16px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); }
.wm-cats__name::after { content: "›"; font: 600 22px/1 var(--wm-body); color: var(--wm-red); }
.wm-cats__chip a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--wm-line); border-radius: 999px; background: #fff; font: 600 14px/1.2 var(--wm-body); color: var(--wm-ink); text-decoration: none; text-align: center; }
.wm-cats__chip--campaign a { border-color: var(--wm-red); color: var(--wm-red); }
@media (min-width: 768px) {
  .wm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wm-cats__tile a { grid-template-rows: 140px auto; }
  .wm-cats__img img { max-height: 120px; }
}

/* product cards: swipe row on phones, grid from 768 px */
.wm-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scroll-padding-inline: 12px; scrollbar-width: none; }
.wm-row::-webkit-scrollbar { display: none; }
.wm-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .wm-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; margin: 0; padding-left: 0; padding-right: 0; scrollbar-width: thin; } }

.wm-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--wm-line); border-radius: 8px; background: #fff; font-family: var(--wm-body); }
.wm-card__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; }
.wm-card__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wm-card .wm-card__name { margin: 2px 0 0; font: 600 14px/1.3 var(--wm-body); text-transform: none; letter-spacing: 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-card .wm-card__name a { color: var(--wm-ink); text-decoration: none; }
.wm-card .wm-card__name a:hover { text-decoration: underline; }
.wm-card__stock { display: flex; align-items: center; gap: 6px; margin: 0; font: 500 12.5px var(--wm-body); color: var(--wm-ink2); }
.wm-card__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wm-green); flex: none; }
.wm-card__stock.is-low::before { background: #d38a00; }
.wm-card__stock.is-out::before { background: #aaa; }
.wm-card__price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 20px/1.2 var(--wm-head); color: var(--wm-ink); }
.wm-card__price .productSpecialPrice, .wm-card__price .productSalePrice { color: var(--wm-red); }
.wm-card__price .normalprice { order: 2; font: 500 13px var(--wm-body); color: var(--wm-mute); text-decoration: line-through; }
.wm-card__price .productBasePrice, .wm-card__price span { font-size: inherit; }
.wm-card__btn { width: 100%; min-height: 40px; margin-top: 4px; font-size: 14px; }
.wm-card__btn.is-disabled { background: #eee; color: #666; border: 1px dashed #bbb; cursor: not-allowed; }
.wm-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 6px; border-radius: 3px; font: 700 11px/1.4 var(--wm-body); letter-spacing: 0.04em; text-transform: uppercase; }
.wm-badge--license { background: var(--wm-ink); color: #fff; }
.wm-badge--bundle { background: var(--wm-red); color: #fff; }
.wm-badge--inline { position: static; display: inline-block; vertical-align: middle; font-size: 12px; }
.wm-card__img--n2, .wm-card__img--n3 { display: grid; gap: 4px; align-items: center; justify-items: center; }
.wm-card__img--n2 { grid-template-columns: 1fr 1fr; }
.wm-card__img--n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wm-card__img--n3 img:first-child { grid-row: span 2; }
.wm-card__img--n2 img, .wm-card__img--n3 img { max-height: 100%; }
.wm-catbundles { margin: 6px 0 18px; }
.wm-bundlepage__intro { color: var(--wm-ink2); margin: 0 0 14px; }
.wm-bundlepage__grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .wm-bundlepage__grid { grid-template-columns: minmax(300px, 1fr) 2fr; align-items: start; } }
#indexDefaultMainContent { font-size: 15px; }

/* ---------- listings (category, search) ---------- */
.wm-catpage { font-family: var(--wm-body); box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 0 12px; float: none; width: auto; }
@media (min-width: 768px) { .wm-catpage { padding: 0 20px; } }
/* rebuilt pages use the full width */
body.wm #contentMainWrapper:has(.wm-catpage, .wm-home, .wm-cart) { max-width: none; width: auto; margin-left: 0; margin-right: 0; }
body.wm #contentMainWrapper > div:has(> .wm-catpage, > .wm-home, > .wm-cart) { float: none; width: auto; margin: 0; }
.wm-cathead { margin: 4px 0 6px; }
.wm-catpage h1.wm-h1 { margin: 0; padding: 0; font: 28px/1.15 var(--wm-head); text-transform: none; letter-spacing: 0.01em; color: var(--wm-ink); text-align: left; float: none; }
.wm-searchmore { margin: 16px 0 0; font: 600 14px var(--wm-body); }
.wm-searchmore a { color: var(--wm-ink); text-decoration: underline; }
.wm-listtools--sortonly { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .wm-listtools--sortonly { grid-column: 1 / -1; } }
.wm-catdesc { margin-top: 8px; max-width: 70ch; font: 500 15px/1.5 var(--wm-body); color: var(--wm-ink2); }
.wm-catdesc p { margin: 0 0 8px; }

.wm-subcats ul { list-style: none; margin: 8px -12px 0; padding: 2px 12px 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wm-subcats ul::-webkit-scrollbar { display: none; }
.wm-subcats li { margin: 0; padding: 0; flex: none; float: none; width: auto; border: 0; background: none; }
@media (min-width: 768px) { .wm-subcats ul { flex-wrap: wrap; margin: 8px 0 0; padding: 0; overflow: visible; } }
.wm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--wm-line); border-radius: 999px; background: #fff; font: 600 14px/1.2 var(--wm-body); color: var(--wm-ink); text-decoration: none; white-space: nowrap; }
.wm-chip:hover { border-color: var(--wm-ink); }
.wm-chip.is-active { background: var(--wm-ink); border-color: var(--wm-ink); color: #fff; }
.wm-catpage .kampanjBanner, .wm-catpage .kampanjDesc { margin: 10px 0; }
.wm-chip--active { min-height: 34px; background: var(--wm-surface); border-color: transparent; font-size: 13px; }
.wm-i--s { width: 14px; height: 14px; }

/* toolbar: Filtrera + Sortera, sticky under the header on phones */
.wm-listhead { position: sticky; top: var(--wm-head-h, 111px); z-index: 20; margin: 12px -12px 0; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--wm-line); }
.wm-listtools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-toolbtn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--wm-ink); border-radius: 6px; background: #fff; color: var(--wm-ink); font: 700 14px var(--wm-body); cursor: pointer; list-style: none; }
.wm-toolbtn::-webkit-details-marker { display: none; }
.wm-toolbtn .wm-i { width: 18px; height: 18px; }
.wm-toolbtn__n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--wm-red); color: #fff; font: 700 11px/18px var(--wm-body); text-align: center; padding: 0 4px; box-sizing: border-box; }
/* sort menu of the search results (zen_wm_sort_menu()) */
.wm-sort { position: relative; }
.wm-sort__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--wm-line); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.wm-sort__menu li { margin: 0; padding: 0; }
.wm-sort__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font: 500 15px var(--wm-body); color: var(--wm-ink); text-decoration: none; }
.wm-sort__menu a:hover { background: var(--wm-surface); }
.wm-sort__menu a[aria-current] { font-weight: 700; }
.wm-sort__menu a[aria-current]::before { content: "✓"; margin-right: 8px; color: var(--wm-red); }

/* listing filter (tpl_modules_product_filter.php, pages/index/jscript_ajaxload.js): bottom sheet to
   1023 px, a row of dropdowns from 1024 px */
.lf--wm { margin: 0; padding: 0; font: 500 15px var(--wm-body); color: var(--wm-ink); }
.lf--wm * { box-sizing: border-box; }
.lf--wm button { font-family: inherit; }
.lf--wm .lf-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lf--wm .lf-bar:not(:has(.lf-open)) { grid-template-columns: 1fr; }
.lf--wm .lf-sort { position: relative; }
.lf--wm .lf-sort select { width: 100%; margin: 0; padding: 0 12px 0 36px; -webkit-appearance: none; appearance: none; text-align: left; }
.lf--wm .lf-sort__i { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.lf--wm .lf-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wm-red); color: #fff; font: 700 11px/18px var(--wm-body); text-align: center; }
.lf--wm .lf-count { color: var(--wm-mute); font-size: 13px; font-weight: 500; }
.lf--wm .lf-chev { width: 16px; height: 16px; margin-left: auto; transition: transform .15s; }
.lf--wm .lf-facet.is-open > .lf-btn .lf-chev { transform: rotate(180deg); }
.lf--wm .lf-backdrop, .lf--wm .lf-facets { display: none; }
.lf--wm .lf-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 8px 8px 8px 16px; background: #fff; border-bottom: 1px solid var(--wm-line); }
.lf--wm .lf-title { margin: 0; font: 22px/1.2 var(--wm-head); text-transform: uppercase; color: var(--wm-ink); }
.lf--wm .lf-facet { border-bottom: 1px solid #eee; }
.lf--wm .lf-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; margin: 0; padding: 0; border: 0; background: none; font: 700 16px var(--wm-body); color: var(--wm-ink); cursor: pointer; text-align: left; }
.lf--wm .lf-panel { display: none; padding: 0 0 10px; }
.lf--wm .lf-facet.is-open > .lf-panel { display: block; }
.lf--wm .lf-panel ul { list-style: none; margin: 0; padding: 0; }
.lf--wm .lf-panel li { margin: 0; padding: 0; float: none; width: auto; }
.lf--wm .lf-panel li.is-hidden { display: none; }
.lf--wm .lf-panel li.is-empty label { color: var(--wm-mute); }
.lf--wm .lf-panel input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf--wm .lf-panel label { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 500 15px var(--wm-body); color: var(--wm-ink); cursor: pointer; }
.lf--wm .lf-panel li label::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid #777; border-radius: 4px; background: #fff; }
.lf--wm .lf-panel input:checked + label::before { background: var(--wm-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--wm-ink); }
.lf--wm .lf-panel input:checked + label .lf-name { font-weight: 700; }
.lf--wm .lf-panel input:focus-visible + label::before { outline: 3px solid var(--wm-focus); outline-offset: 2px; }
.lf--wm .lf-name { flex: 1; }
.lf--wm .lf-find { width: 100%; height: 40px; margin: 0 0 6px; padding: 0 10px; border: 1px solid var(--wm-line); border-radius: 6px; font: 500 15px var(--wm-body); }
/* Pris */
.lf--wm .lf-range { position: relative; height: 28px; margin: 4px 8px 10px; }
.lf--wm .lf-range::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--wm-line); }
.lf--wm .lf-range input[type=range] { position: absolute; left: 0; top: 4px; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; outline: 0; box-shadow: none; }
.lf--wm .lf-range input[type=range]::-webkit-slider-runnable-track { background: none; height: 20px; }
.lf--wm .lf-range input[type=range]::-moz-range-track { background: none; }
.lf--wm .lf-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--wm-red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wm-red); cursor: pointer; }
.lf--wm .lf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--wm-red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--wm-red); cursor: pointer; }
.lf--wm .lf-price { display: flex; gap: 10px; }
.lf--wm .lf-price label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; min-height: 0; font-size: 13px; color: var(--wm-ink2); }
.lf--wm .lf-price-field { display: flex; align-items: center; gap: 6px; color: var(--wm-ink); }
.lf--wm .lf-price input { flex: 1; width: 100%; min-width: 0; height: 44px; padding: 0 8px; border: 1px solid var(--wm-line); border-radius: 6px; font: 500 16px var(--wm-body); }
/* Endast i lager */
.lf--wm .lf-toggle { display: flex; align-items: center; gap: 10px; min-height: 52px; font: 700 16px var(--wm-body); cursor: pointer; }
.lf--wm .lf-toggle .lf-count { margin-left: auto; }
.lf--wm .lf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf--wm .lf-switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: #bbb; transition: background .15s; }
.lf--wm .lf-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.lf--wm .lf-toggle input:checked + .lf-switch { background: var(--wm-red); }
.lf--wm .lf-toggle input:checked + .lf-switch::after { left: 18px; }
.lf--wm .lf-toggle input:focus-visible + .lf-switch { outline: 3px solid var(--wm-focus); outline-offset: 2px; }
/* sheet footer */
.lf--wm .lf-foot { display: flex; align-items: center; gap: 14px; position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--wm-line); }
.lf--wm .lf-apply { flex: 1; min-height: 48px; font-size: 16px; }
.lf--wm .lf-clear { font: 600 14px var(--wm-body); color: var(--wm-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* chosen filters */
.lf--wm .lf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.lf--wm .lf-clear-all { font: 600 13px var(--wm-body); color: var(--wm-ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
#ajaxPanel.busy .lf-chips, #ajaxPanel.busy .wm-listing { opacity: .55; transition: opacity .1s; }

/* A short window (browser zoom, phone on its side) keeps room for the products */
@media (max-width: 1023px) and (max-height: 600px) {
  .wm-listhead { position: static; }
}
@media (max-width: 1023px) {
  body.lf-drawer-open { overflow: hidden; }
  body.lf-drawer-open .wm-listhead { z-index: 120; }   /* the sheet is inside it: above the sticky header */
  body.lf-drawer-open .lf--wm .lf-backdrop { display: block; position: fixed; inset: 0; z-index: 109; background: rgba(0,0,0,0.45); }
  body.lf-drawer-open .lf--wm .lf-facets { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,0.2); }
}

@media (min-width: 1024px) {
  .wm-listhead { position: static; margin: 14px 0 0; padding: 0; border: 0; }
  .wm-listtools .wm-toolbtn { width: auto; min-height: 40px; border-width: 1px; }
  .lf--wm .lf-bar { display: flex; align-items: flex-start; gap: 8px; }
  .lf--wm .lf-open, .lf--wm .lf-head, .lf--wm .lf-foot, .lf--wm .lf-backdrop { display: none; }
  .lf--wm .lf-facets { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
  .lf--wm .lf-facet { position: relative; border: 0; }
  .lf--wm .lf-btn, .lf--wm .lf-toggle { width: auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--wm-ink); border-radius: 6px; background: #fff; font: 600 14px var(--wm-body); white-space: nowrap; }
  .lf--wm .lf-facet.has-value > .lf-btn, .lf--wm .lf-facet--toggle.has-value .lf-toggle { font-weight: 700; box-shadow: inset 0 0 0 1px var(--wm-ink); }
  .lf--wm .lf-chev { margin-left: 2px; }
  .lf--wm .lf-panel { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: 280px; padding: 8px 14px; background: #fff; border: 1px solid var(--wm-line); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
  .lf--wm .lf-panel ul { max-height: 340px; overflow-y: auto; }
  .lf--wm .lf-facet--price .lf-panel { width: 300px; }
  .lf--wm .lf-sort { flex: none; margin-left: auto; }
  .lf--wm .lf-sort select { width: auto; min-width: 200px; min-height: 40px; border-width: 1px; }
}

/* grid */
.wm-listing { margin-top: 12px; }
.wm-listing__count { margin: 0 0 8px; font: 500 14px var(--wm-body); color: var(--wm-mute); }
.wm-listing__empty { margin: 20px 0; font: 500 16px var(--wm-body); }
.wm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .wm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .wm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wm-card__variants { position: absolute; left: 6px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 12px; background: #333; color: #fff; font: 700 12px/1.2 var(--wm-body); }
.wm-card__variants .wm-i { width: 14px; height: 14px; }
#ajaxPanel.busy .wm-listing { opacity: 0.5; transition: opacity 0.15s; }

/* "Visa fler" */
.wm-more { display: grid; justify-items: center; gap: 10px; margin: 22px 0 8px; font-family: var(--wm-body); }
.wm-more__count { margin: 0; font: 500 14px var(--wm-body); color: var(--wm-mute); }
.wm-more__bar { display: block; width: min(260px, 70%); height: 4px; border-radius: 2px; background: var(--wm-line); overflow: hidden; }
.wm-more__bar i { display: block; height: 100%; background: var(--wm-ink); }
.wm-more__btn { min-width: 200px; }
.wm-more__btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---------- product page ---------- */
body.wm #contentMainWrapper:has(.wm-product) { max-width: none; width: auto; margin-left: 0; margin-right: 0; }
body.wm #contentMainWrapper > div:has(> .wm-product) { float: none; width: auto; margin: 0; }
.wm-product { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 0 12px; float: none; width: auto; font-family: var(--wm-body); }
@media (min-width: 768px) { .wm-product { padding: 0 20px; } }
.wm-product form { margin: 0; }
.wm-pgrid { display: grid; gap: 14px; }
@media (min-width: 900px) { .wm-pgrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 8px; } }

/* gallery: MagicZoom output, capped height on phones */
.wm-pgallery { min-width: 0; float: none; width: auto; margin: 0; text-align: center; }
.wm-pgallery #productMainImage, .wm-pgallery .MagicToolboxContainer { float: none; width: auto; margin: 0 auto; }
.wm-pgallery img { max-width: 100%; height: auto; }
.wm-pgallery .MagicZoom img, .wm-pgallery .MagicZoomPlus img, .wm-pgallery #productMainImage img { max-height: 280px; max-width: 100%; width: auto; object-fit: contain; }
.wm-pgallery #productMainImage { height: auto; }
@media (min-width: 900px) { .wm-pgallery .MagicZoom img, .wm-pgallery .MagicZoomPlus img, .wm-pgallery #productMainImage img { max-height: 351px; } }
.wm-pgallery .MagicToolboxSelectorsContainer { margin-top: 8px; }

/* info column */
.wm-pinfo { min-width: 0; display: grid; gap: 12px; align-content: start; float: none; width: auto; margin: 0; padding: 0; background: none; }
.wm-pbrand { justify-self: start; font: 700 13px var(--wm-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--wm-ink2); text-decoration: underline; text-underline-offset: 3px; }
.wm-product h1.wm-ptitle { margin: 0; padding: 0; font: 26px/1.15 var(--wm-head); text-transform: none; letter-spacing: 0.01em; color: var(--wm-ink); text-align: left; text-wrap: balance; }
@media (min-width: 900px) { .wm-product h1.wm-ptitle { font-size: 32px; } }
.wm-pprice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wm-pprice__amount { font: 32px/1 var(--wm-head); color: var(--wm-ink); background: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wm-pprice__amount .productSpecialPrice, .wm-pprice__amount .productSalePrice { color: var(--wm-red); }
.wm-pprice__amount .normalprice { order: 2; font: 500 15px var(--wm-body); color: var(--wm-mute); text-decoration: line-through; }
.wm-pprice__tax { font: 500 13px var(--wm-body); color: var(--wm-mute); }
.wm-pstock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; background: #eef7f0; font: 600 14px var(--wm-body); color: var(--wm-ink); white-space: nowrap; }
.wm-pstock:empty { display: none; }
.wm-pstock b { font-weight: 600; }
.wm-pstock .fa-cubes { font-size: 0; width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.wm-pstock:has(.fa-cubes[style*="orange"]) { background: #fdf3e2; }
.wm-pstock.is-out, .wm-pstock.is-call { background: #f0f0f0; }
.wm-pstock.is-out::before, .wm-pstock.is-call::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #aaa; }
.wm-pnote { margin: 0; font: 500 14px var(--wm-body); color: var(--wm-ink2); }

/* variant selectors (tpl_modules_variant_selectors.php) */
.wm-pinfo > *, .wm-product #productVariants, .wm-product .pv-dim { min-width: 0; }
.wm-product #productVariants { display: grid; gap: 12px; margin: 0; }
.wm-product .pv-dim { margin: 0; }
.wm-product .pv-label { margin: 0 0 6px; font: 700 14px var(--wm-body); color: var(--wm-ink); }
.wm-product .pv-label .pv-current { font-weight: 500; color: var(--wm-ink2); }
.wm-product .pv-options { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-product .pv-option { box-sizing: border-box; display: inline-grid; place-items: center; gap: 4px; min-width: 64px; min-height: 44px; padding: 6px 12px; border: 1.5px solid #aaa; border-radius: 6px; background: #fff; font: 600 14px/1.2 var(--wm-body); color: var(--wm-ink); text-decoration: none; }
.wm-product .pv-option.is-selected { border: 2.5px solid var(--wm-ink); box-shadow: inset 0 0 0 1px var(--wm-ink); }
.wm-product .pv-option.is-oos, .wm-product .pv-option.is-unavailable { border-style: dashed; color: #666; }
.wm-product .pv-option.is-unavailable { background: repeating-linear-gradient(135deg, #fff 0 6px, #f4f4f4 6px 12px); }
.wm-product .pv-option .pv-swatch { width: 48px; height: 52px; object-fit: contain; }
.wm-product .pv-type-image .pv-option.is-oos .pv-swatch, .wm-product .pv-type-image .pv-option.is-unavailable .pv-swatch { opacity: 0.5; }
/* colour swatches: one swipeable row on phones */
@media (max-width: 899px) {
  .wm-product .pv-type-image .pv-options { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scroll-padding-inline: 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .wm-product .pv-type-image .pv-options::-webkit-scrollbar { display: none; }
  .wm-product .pv-type-image .pv-option { flex: 0 0 88px; scroll-snap-align: start; }
}
.wm-product .pv-select { min-height: 44px; padding: 0 10px; border: 1.5px solid #8a8a8a; border-radius: 6px; font: 500 16px var(--wm-body); background: #fff; }

/* add-ons (Tillval) and quantity discounts */
.wm-pattrs #productAttributes { margin: 0; padding: 0; }
.wm-pattrs .wrapperAttribsOptions { margin: 0 0 10px; }
.wm-pattrs .wrapperAttribsOptions > .back { float: none; }
.wm-pattrs h4.optionName { float: none; margin: 0 0 6px; font: 700 14px var(--wm-body); text-transform: none; }
.wm-pattrs select { min-height: 44px; max-width: 100%; padding: 0 10px; border: 1.5px solid #8a8a8a; border-radius: 6px; font: 500 16px var(--wm-body); background: #fff; }
.wm-pattrs label.attribsRadioButton, .wm-pattrs label.attribsCheckbox { display: inline-flex; align-items: center; min-height: 36px; font: 500 15px var(--wm-body); }
.wm-pattrs br.clearBoth { display: none; }
.wm-pdiscounts table { width: 100%; font: 500 14px var(--wm-body); }

/* notices */
.wm-notice { padding: 10px 12px; border-radius: 8px; background: #fff4f4; border: 1px solid #f1c4c6; font: 500 14px/1.45 var(--wm-body); color: var(--wm-ink); text-align: left; }
.wm-notice--strong { background: #fdeceb; border-color: var(--wm-red); }
.wm-notice a { color: var(--wm-ink); text-decoration: underline; }
.wm-contactbuy { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-contactbuy .wm-btn { flex: 1 1 160px; }

/* buy box */
.wm-cartadd { margin: 0; padding: 0; background: none; border: 0; }
.wm-buy { display: flex; gap: 8px; align-items: stretch; }
.wm-buy__btn { flex: 1; min-height: 50px; font-size: 16px; }
.wm-qty { display: grid; grid-template-columns: 42px 44px 42px; height: 50px; border: 1.5px solid #8a8a8a; border-radius: 6px; overflow: hidden; background: #fff; }
.wm-qty__btn { border: 0; background: var(--wm-surface); font: 600 20px var(--wm-body); color: var(--wm-ink); cursor: pointer; }
.wm-product .wm-qty input { width: 100%; height: 100%; margin: 0; padding: 0; border: 0; text-align: center; font: 700 16px var(--wm-body); color: var(--wm-ink); background: #fff; }
.wm-cartadd .button_sold_out, .wm-cartadd .cssButton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 6px; font: 700 15px var(--wm-body); }
.wm-shipline { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--wm-line); border-radius: 8px; background: var(--wm-white); font: 600 14px/1.4 var(--wm-body); color: var(--wm-ink); }
.wm-shipline .wm-i { flex: none; width: 18px; height: 18px; color: var(--wm-ink2); }
.wm-assure { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; border-radius: 8px; background: var(--wm-surface); font: 500 14px var(--wm-body); color: var(--wm-ink); }
.wm-assure li { display: flex; align-items: center; gap: 8px; margin: 0; }
.wm-assure .wm-i { width: 18px; height: 18px; color: var(--wm-ink2); }

/* fold-out sections */
.wm-pmore { margin-top: 22px; border-top: 1px solid var(--wm-line); }
@media (min-width: 900px) { .wm-pmore { max-width: 860px; } }
.wm-acc { border-bottom: 1px solid var(--wm-line); }
.wm-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font: 18px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); cursor: pointer; list-style: none; }
.wm-acc summary::-webkit-details-marker { display: none; }
.wm-acc summary::after { content: "+"; font: 500 26px/1 var(--wm-body); }
.wm-acc[open] summary::after { content: "–"; }
.wm-acc__body { padding: 0 0 16px; font: 500 15px/1.6 var(--wm-body); color: var(--wm-ink); overflow-x: auto; }
.wm-acc__body p { margin: 0 0 10px; max-width: 70ch; }
.wm-acc__body a { color: var(--wm-ink); text-decoration: underline; white-space: normal; overflow-wrap: anywhere; }
.wm-acc { overflow-x: clip; }
.wm-desc * { max-width: 100%; box-sizing: border-box; }
.wm-desc img { max-width: 100%; height: auto; }
.wm-desc iframe { max-width: 100%; }
.wm-desc h1, .wm-desc h2, .wm-desc h3, .wm-desc h4 { font: 18px/1.3 var(--wm-head); text-transform: none; margin: 14px 0 6px; }
.wm-desc table { max-width: 100%; }
.wm-specs { width: 100%; border-collapse: collapse; font: 500 15px var(--wm-body); }
.wm-specs th, .wm-specs td { padding: 8px 0; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.wm-specs th { width: 42%; padding-right: 12px; font-weight: 600; color: var(--wm-ink2); }
.wm-reviewlink { margin: 12px 0 0; font: 600 14px var(--wm-body); }
.wm-reviewlink a { color: var(--wm-ink); text-decoration: underline; }
.wm-similar { margin-top: 28px; }
.wm-similar .wm-sect__title { margin: 0; font: 22px/1.15 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); }

/* sticky buy bar */
.wm-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: #fff; border-top: 1px solid var(--wm-line); box-shadow: 0 -4px 14px rgba(0,0,0,0.1); transform: translateY(110%); transition: transform 0.2s; visibility: hidden; }
.wm-stickybuy.is-shown { transform: none; visibility: visible; }
.wm-stickybuy__info { flex: 1; min-width: 0; display: grid; }
.wm-stickybuy__name { font: 600 13px var(--wm-body); color: var(--wm-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-cartdrawer__bundle { display: flex; justify-content: space-between; margin: 0 0 4px; font: 600 14px var(--wm-body); color: var(--wm-red); }
.wm-bundle { margin: 16px 0 0; padding: 14px; border: 1px solid var(--wm-line); border-radius: 8px; background: #fff; }
.wm-bundle + .wm-bundle { margin-top: 10px; }
.wm-bundle__title { margin: 0 0 8px; font: 20px var(--wm-head); color: var(--wm-ink); }
.wm-bundle__items { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.wm-bundle__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; font: 500 14px var(--wm-body); color: var(--wm-ink2); }
.wm-bundle__item img { width: 48px; height: 48px; object-fit: contain; }
.wm-bundle__item select { width: 100%; min-height: 44px; padding: 4px 8px; font: inherit; }
.wm-bundle__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.wm-bundle__price { font: 24px var(--wm-head); color: var(--wm-red); }
.wm-bundle__before { font: 500 14px var(--wm-body); color: var(--wm-ink2); text-decoration: line-through; }
.wm-bundle__save { font: 600 14px var(--wm-body); color: var(--wm-red); }
.wm-bundle__note { margin: 8px 0 0; font: 500 13px var(--wm-body); color: var(--wm-ink2); }
.wm-stickybuy__amounts { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.wm-stickybuy__total { font: 600 13px var(--wm-body); color: var(--wm-ink); }
.wm-stickybuy__total:empty { display: none; }
.wm-stickybuy__price { font: 22px/1.1 var(--wm-head); color: var(--wm-ink); }
.wm-stickybuy__price .normalprice { display: none; }
.wm-stickybuy__price .productSpecialPrice { color: var(--wm-red); }
.wm-stickybuy .wm-btn { min-height: 46px; padding: 0 22px; }
body.wm-has-stickybuy .wm-footer { padding-bottom: 70px; }
@media (min-width: 900px) { .wm-stickybuy { display: none; } }
@media (prefers-reduced-motion: reduce) { .wm-stickybuy { transition: none; } }

/* the variant swap needs these ids */
nav.wm-crumbs#navBreadCrumb { float: none; width: auto; margin: 10px 0 4px; padding: 0; background: none; border: 0; text-align: left; font: 500 14px/1.4 var(--wm-body); }
nav.wm-crumbs#navBreadCrumb ol, nav.wm-crumbs#navBreadCrumb li { background: none; border: 0; padding: 0; margin: 0; }
nav.wm-crumbs#navBreadCrumb a { display: inline-flex; padding: 0; background: none; border: 0; border-radius: 0; color: var(--wm-ink2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
nav.wm-crumbs#navBreadCrumb li[aria-current] span { padding: 0; background: none; }
details#productDescription.wm-acc { margin: 0; padding: 0; background: none; border-radius: 0; font-size: inherit; }
.wm-notice.isweapon { margin: 0; width: auto; float: none; box-sizing: border-box; }
.wm-product .pv-name { overflow-wrap: normal; word-break: normal; hyphens: auto; font-size: 12.5px; line-height: 1.2; }
.wm-product .pv-type-image .pv-option { padding: 6px 6px; }
@media (max-width: 899px) { .wm-product .pv-type-image .pv-option { flex-basis: 96px; } }
/* variant products: smaller picture on phones so the choices and price fit */
@media (max-width: 899px) { .wm-product.has-variants .wm-pgallery .MagicZoom img, .wm-product.has-variants .wm-pgallery .MagicZoomPlus img, .wm-product.has-variants .wm-pgallery #productMainImage img { max-height: 210px; } }
.wm-pmore > * { float: none; position: static; width: auto; clear: both; margin: 0; }
details#productSpecs.wm-acc { background: none; padding: 0; border-radius: 0; }
.wm-pgallery .MagicToolboxContainer { text-align: center; }
/* fixed picture frame: nothing below moves when the picture changes. MagicZoom's inline size wins over the image caps, so the picture is up to 351 px. */
.wm-pgallery a.MagicZoom, .wm-pgallery a.MagicZoomPlus { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; max-height: 351px; margin: 0 auto; }
.wm-pgallery .MagicToolboxContainer { width: auto; max-width: 100%; }
.wm-pgallery .mz-figure { display: inline-block; width: auto; max-width: 100%; }
.wm-pgallery #productMainImage { display: block; }

/* ===== step 5: stock Zen pages (login, account, create account, info, EZ pages ...)
   = every .centerColumn without a wm-* class. Full width like the rebuilt pages,
   same gutter as the breadcrumb, stacked form fields, wm buttons. ===== */
body.wm #contentMainWrapper:has(.centerColumn:not([class*="wm-"])) { max-width: none; width: auto; margin-left: 0; margin-right: 0; }
body.wm #contentMainWrapper > div:has(> .centerColumn:not([class*="wm-"])) { float: none; width: auto; margin: 0; }
body.wm .centerColumn:not([class*="wm-"]) { box-sizing: border-box; float: none; width: auto; max-width: 1280px; margin: 0 auto; padding: 8px 12px 40px; font: 500 15px/1.5 var(--wm-body); color: var(--wm-ink); text-align: left; }
@media (min-width: 768px) { body.wm .centerColumn:not([class*="wm-"]) { padding-left: 20px; padding-right: 20px; } }
body.wm .centerColumn:not([class*="wm-"]) h1 { margin: 4px 0 16px; font: 26px/1.15 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); text-align: left; }
@media (min-width: 768px) { body.wm .centerColumn:not([class*="wm-"]) h1 { font-size: 32px; } }
body.wm .centerColumn:not([class*="wm-"]) h2, body.wm .centerColumn:not([class*="wm-"]) h3, body.wm .centerColumn:not([class*="wm-"]) legend { font: 20px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; color: var(--wm-ink); text-align: left; }
body.wm .centerColumn:not([class*="wm-"]) h4 { font: 600 15px/1.45 var(--wm-body); text-transform: none; }
body.wm .centerColumn:not([class*="wm-"]) legend { display: block; width: 100%; margin: 0; padding: 18px 0 6px; float: none; }
body.wm .centerColumn:not([class*="wm-"]) fieldset fieldset { margin: 0; padding: 0; }
body.wm .centerColumn:not([class*="wm-"]) p, body.wm .centerColumn:not([class*="wm-"]) .content, body.wm .centerColumn:not([class*="wm-"]) .information { max-width: 72ch; }
body.wm .centerColumn:not([class*="wm-"]) a { color: var(--wm-ink); text-decoration: underline; }
body.wm .centerColumn:not([class*="wm-"]) img { max-width: 100%; height: auto; }

/* forms */
body.wm .centerColumn:not([class*="wm-"]) form { max-width: 640px; }
body.wm .centerColumn:not([class*="wm-"]) fieldset { float: none; width: auto; margin: 0 0 8px; padding: 0; border: 0; min-width: 0; background: none; }
body.wm .centerColumn:not([class*="wm-"]) .floatingBox { float: none; width: auto; margin: 0 0 24px; }
body.wm .centerColumn:not([class*="wm-"]) label.inputLabel, body.wm .centerColumn:not([class*="wm-"]) label.inputLabelPayment { display: block; float: none; width: auto; margin: 12px 0 4px; padding: 0; font: 600 14px/1.3 var(--wm-body); color: var(--wm-ink); text-align: left; }
body.wm .centerColumn:not([class*="wm-"]) input[type=text], body.wm .centerColumn:not([class*="wm-"]) input[type=email], body.wm .centerColumn:not([class*="wm-"]) input[type=password], body.wm .centerColumn:not([class*="wm-"]) input[type=tel], body.wm .centerColumn:not([class*="wm-"]) input[type=number], body.wm .centerColumn:not([class*="wm-"]) select, body.wm .centerColumn:not([class*="wm-"]) textarea { box-sizing: border-box; display: inline-block; float: none; width: 100%; max-width: 480px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid #949494; border-radius: 6px; background: #fff; font: 500 16px/1.3 var(--wm-body); color: var(--wm-ink); }
body.wm .centerColumn:not([class*="wm-"]) textarea { padding: 10px 12px; min-height: 120px; max-width: 640px; }
body.wm .centerColumn:not([class*="wm-"]) input:focus, body.wm .centerColumn:not([class*="wm-"]) select:focus, body.wm .centerColumn:not([class*="wm-"]) textarea:focus { border-color: var(--wm-ink); }
body.wm .centerColumn:not([class*="wm-"]) input[type=checkbox], body.wm .centerColumn:not([class*="wm-"]) input[type=radio] { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--wm-red); }
body.wm .centerColumn:not([class*="wm-"]) label.checkboxLabel, body.wm .centerColumn:not([class*="wm-"]) label.radioButtonLabel { display: inline-flex; align-items: center; min-height: 44px; margin: 0 16px 0 0; font-weight: 500; vertical-align: middle; }
body.wm .centerColumn:not([class*="wm-"]) .alert { color: var(--wm-red); margin-left: 4px; }
body.wm .centerColumn:not([class*="wm-"]) .inputRequirement, body.wm .centerColumn:not([class*="wm-"]) .forward.alert { float: none; display: block; margin: 4px 0 0; font-size: 13px; color: var(--wm-red); text-align: left; }
body.wm .centerColumn:not([class*="wm-"]) br.clearBoth { display: block; }
body.wm .centerColumn:not([class*="wm-"]) .note { text-transform: none; }

/* buttons: Zen css buttons (input.cssButton / span.cssButton) and button rows */
body.wm .centerColumn:not([class*="wm-"]) .buttonRow { float: none; display: block; margin: 20px 0 0; text-align: left; }
body.wm .centerColumn:not([class*="wm-"]) .buttonRow.back:not(:has(.cssButton, input[type=submit], button)) { margin-top: 12px; }
body.wm .centerColumn:not([class*="wm-"]) .cssButton, body.wm .centerColumn:not([class*="wm-"]) .cssButtonHover, body.wm .centerColumn:not([class*="wm-"]) input[type=submit], body.wm .centerColumn:not([class*="wm-"]) button[type=submit] { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 480px; min-height: 48px; height: auto; margin: 0; padding: 0 20px; border: 0; border-radius: 6px; background: var(--wm-red); color: #fff; font: 700 16px/1.2 var(--wm-body); text-transform: none; text-decoration: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
body.wm .centerColumn:not([class*="wm-"]) .cssButton:hover, body.wm .centerColumn:not([class*="wm-"]) .cssButtonHover, body.wm .centerColumn:not([class*="wm-"]) input[type=submit]:hover { background: var(--wm-red-dark); }
body.wm .centerColumn:not([class*="wm-"]) a:has(> .cssButton), body.wm .centerColumn:not([class*="wm-"]) a:has(> .cssButtonHover) { text-decoration: none; }
body.wm .centerColumn:not([class*="wm-"]) .button_back, body.wm .centerColumn:not([class*="wm-"]) .button_backHover { background: #fff; color: var(--wm-ink); border: 1.5px solid var(--wm-ink); }
@media (min-width: 768px) { body.wm .centerColumn:not([class*="wm-"]) .cssButton, body.wm .centerColumn:not([class*="wm-"]) .cssButtonHover, body.wm .centerColumn:not([class*="wm-"]) input[type=submit], body.wm .centerColumn:not([class*="wm-"]) button[type=submit] { width: auto; min-width: 200px; } }

/* messages */
.messageStackError, .messageStackWarning, .messageStackCaution, .messageStackSuccess, .advisory { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; border: 1px solid #f1c4c6; background: #fff4f4; font: 500 14px/1.45 var(--wm-body); color: var(--wm-ink); text-align: left; }
.messageStackSuccess { border-color: #b9dfc3; background: #eef8f1; }
.messageStackError img, .messageStackWarning img, .messageStackSuccess img, .messageStackCaution img { display: none; }

/* order totals (order view and success page) */
body.wm #orderTotals { display: grid; grid-template-columns: 1fr auto; grid-auto-flow: dense; gap: 4px 16px; max-width: 360px; margin: 12px 0 24px; }
body.wm #orderTotals .lineTitle { grid-column: 1; }
body.wm #orderTotals .amount { grid-column: 2; text-align: right; font-weight: 600; }
body.wm #orderTotals br { display: none; }

.wm-messages { max-width: 1280px; margin: 8px auto; padding: 0 12px; }
.centerColumn .wm-messages { padding: 0; }
.wm-orderdate { margin: 0 0 12px; }

/* the latest orders on Mitt konto: one block per order on phones */
@media (max-width: 599px) {
  body.wm #prevOrders thead, body.wm #prevOrders tr:has(th) { display: none; }
  body.wm #prevOrders, body.wm #prevOrders tbody { display: block; }
  body.wm #prevOrders tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--wm-line); }
  body.wm #prevOrders td { padding: 0; border: 0; }
  body.wm #prevOrders .accountOrderAddress { display: none; }
  body.wm #prevOrders .accountOrderId { font-weight: 700; grid-row: 1; grid-column: 1; }
  body.wm #prevOrders .accountOrderDate { grid-row: 2; grid-column: 1; }
  body.wm #prevOrders .accountOrderStatus { grid-row: 3; grid-column: 1; }
  body.wm #prevOrders .accountOrderTotal { grid-row: 1; grid-column: 2; text-align: right; font-weight: 700; }
  body.wm #prevOrders .accountOrderViewButton { grid-row: 2 / span 2; grid-column: 2; }
}

/* tables (order history, address book ...) */
body.wm .centerColumn:not([class*="wm-"]) table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.wm .centerColumn:not([class*="wm-"]) th { padding: 8px 6px; border-bottom: 2px solid var(--wm-ink); background: none; font-weight: 700; text-align: left; }
body.wm .centerColumn:not([class*="wm-"]) td { padding: 8px 6px; border-bottom: 1px solid var(--wm-line); vertical-align: top; }
body.wm .centerColumn:not([class*="wm-"]) .tableHeading, body.wm .centerColumn:not([class*="wm-"]) .tableHeading th { background: none; }
body.wm .centerColumn:not([class*="wm-"]) ul.list { margin: 0 0 16px; padding: 0; list-style: none; }
body.wm .centerColumn:not([class*="wm-"]) ul.list li { border-bottom: 1px solid var(--wm-line); }
body.wm .centerColumn:not([class*="wm-"]) ul.list li a { display: flex; align-items: center; min-height: 48px; padding: 0; font-weight: 600; text-decoration: none; }
body.wm .centerColumn:not([class*="wm-"]) ul.list li a::after { content: "\203A"; margin-left: auto; font-size: 22px; color: var(--wm-mute); }

/* 404 */
body.wm #contentMainWrapper:has(.wm-404) { max-width: none; width: auto; margin-left: 0; margin-right: 0; }
body.wm #contentMainWrapper > div:has(> .wm-404) { float: none; width: auto; margin: 0; }
.wm-404 { padding-top: 12px; padding-bottom: 48px; font: 500 15px/1.5 var(--wm-body); color: var(--wm-ink); }
.wm-404__title { margin: 4px 0 10px; font: 30px/1.15 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; text-align: left; }
.wm-404__text { max-width: 60ch; margin: 0 0 18px; }
.wm-404__search { max-width: 560px; margin: 0 0 28px; }
.wm-404__h2 { margin: 0 0 10px; font: 20px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: 0.02em; }
.wm-404 .wm-chips { margin-bottom: 28px; }
.wm-404__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* stock pages: small row buttons (edit/delete/view) are secondary */
body.wm .centerColumn:not([class*="wm-"]) h2 { margin: 0; padding: 20px 0 8px; background: none; color: var(--wm-ink); text-align: left; font-size: 20px; }
body.wm .centerColumn:not([class*="wm-"]) .small_edit, body.wm .centerColumn:not([class*="wm-"]) .button_delete_small, body.wm .centerColumn:not([class*="wm-"]) .button_view, body.wm .centerColumn:not([class*="wm-"]) .small_editHover, body.wm .centerColumn:not([class*="wm-"]) .button_delete_smallHover, body.wm .centerColumn:not([class*="wm-"]) .button_viewHover { width: auto; min-width: 0; min-height: 44px; margin: 0 8px 8px 0; padding: 0 16px; background: #fff; color: var(--wm-ink); border: 1.5px solid var(--wm-ink); font-size: 14px; }
body.wm .centerColumn:not([class*="wm-"]) .button_delete_small, body.wm .centerColumn:not([class*="wm-"]) .button_delete_smallHover { color: var(--wm-red-dark); border-color: var(--wm-red-dark); }
body.wm .centerColumn:not([class*="wm-"]) .buttonRow:has(.small_edit, .button_delete_small, .button_view) { margin-top: 12px; }

/* ---------- added-to-cart notice and cart drawer (jscript_wm_cart.js) ---------- */
.wm-notice-toast { position: fixed; z-index: 120; top: calc(var(--wm-head-h, 100px) + 8px); left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--wm-ink); color: #fff; font: 600 14px/1.35 var(--wm-body); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wm-notice-toast[hidden] { display: none; }
.wm-notice-toast button { flex: none; min-height: 40px; padding: 0 12px; border: 1px solid #fff; border-radius: 6px; background: none; color: #fff; font: inherit; cursor: pointer; }
@media (min-width: 768px) { .wm-notice-toast { left: auto; right: 20px; width: 420px; } }
.is-busy { opacity: .6; pointer-events: none; }

.wm-cartdrawer { position: fixed; inset: 0; z-index: 130; }
.wm-cartdrawer[hidden] { display: none; }
.wm-cartdrawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.wm-cartdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box; width: min(420px, 92vw); background: #fff; color: var(--wm-ink); font: 500 15px/1.4 var(--wm-body); transform: translateX(100%); transition: transform .2s; }
.wm-cartdrawer.is-open .wm-cartdrawer__backdrop { opacity: 1; }
.wm-cartdrawer.is-open .wm-cartdrawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .wm-cartdrawer__backdrop, .wm-cartdrawer__panel { transition: none; } }
.wm-cartdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--wm-line); }
.wm-cartdrawer__head button { font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; }
.wm-cartdrawer__title { margin: 0; font: 22px/1.2 var(--wm-head); text-transform: uppercase; letter-spacing: .02em; }
.wm-cartdrawer__body { flex: 1; overflow-y: auto; padding: 0 16px; }
.wm-cartdrawer__empty { margin: 32px 0; text-align: center; }
.wm-cartdrawer__msg { margin: 0; padding: 8px 16px; background: #fdf3e2; font-size: 14px; }
.wm-cartdrawer__msg[hidden] { display: none; }
.wm-cartdrawer__foot { display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wm-line); }
.wm-cartdrawer__foot .wm-btn { width: 100%; }
.wm-cartdrawer__ship, .wm-cartdrawer__total { display: flex; justify-content: space-between; margin: 0; }
.wm-cartdrawer__ship { display: block; font-size: 13px; color: var(--wm-ink2); }
.wm-cartdrawer__total b { font-size: 18px; }
.wm-cartdrawer__row { display: flex; justify-content: space-between; margin: 0; font-size: 14px; color: var(--wm-ink2); }
.wm-cartdrawer__row b { font-weight: 600; color: var(--wm-ink); }
.wm-cartdrawer__row.is-free b { color: var(--wm-green); }
.wm-cartdrawer__row + .wm-cartdrawer__total { padding-top: 6px; border-top: 1px solid var(--wm-line); }
.wm-cartlist { margin: 0; padding: 0; list-style: none; }
.wm-cartline { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wm-line); }
.wm-cartline__img { flex: none; width: 64px; }
.wm-cartline__img img { display: block; width: 64px; height: 64px; object-fit: contain; }
.wm-cartline__main { flex: 1; min-width: 0; }
.wm-cartline__name { display: block; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.wm-cartline__var { font-size: 13px; color: var(--wm-ink2); }
.wm-cartline__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wm-cartline__qty { display: inline-flex; align-items: center; border: 1px solid var(--wm-line); border-radius: 6px; }
.wm-cartline__qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.wm-cartline__qty span { min-width: 24px; text-align: center; }
.wm-cartline__sum { margin-left: auto; font-weight: 700; white-space: nowrap; }
.wm-cartline__del { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--wm-mute); cursor: pointer; }

/* Product request form (Förfrågan) */
.wm-request { box-sizing: border-box; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 0; border-radius: 6px; color: var(--wm-ink); font-family: var(--wm-body); }
.wm-request::backdrop { background: rgba(0, 0, 0, .55); }
.wm-request h2 { margin: 0 0 4px; font: 400 24px var(--wm-head); }
.wm-request form { display: flex; flex-direction: column; gap: 8px; }
.wm-request label { font-weight: 600; }
.wm-request input:not([type=hidden]), .wm-request textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid var(--wm-mute); border-radius: 4px; font: 16px var(--wm-body); }
.wm-request select { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid var(--wm-mute); border-radius: 4px; font: 16px var(--wm-body); background: #fff; }
.wm-request .wm-request__check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.wm-request .wm-request__check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.wm-request__intro { color: var(--wm-ink2); margin: 0 0 6px; }
.wm-request__about { margin: 0 0 4px; color: var(--wm-ink2); }
.wm-request__privacy { margin: 0; color: var(--wm-ink2); font-size: 14px; }
.wm-request__msg { min-height: 20px; margin: 0; font-weight: 600; }
.wm-request__actions { display: flex; gap: 10px; }
.wm-request__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wm-request :focus-visible { outline: 2px solid var(--wm-focus); outline-offset: 2px; }

/* Newsletter consent */
.news-consent { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #fff; cursor: pointer; }
.news-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wm-ink); }
.news-consent a { color: #fff; text-decoration: underline; }
.news-consent input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wm-news__form button:disabled { opacity: .55; cursor: not-allowed; }

/* Footer map: a static image; the button opens the map on another site */
.wm-fmap { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.wm-fmap img { display: block; width: 100%; height: auto; }
.wm-fmap__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 6px; background: var(--wm-ink); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.wm-fmap:hover .wm-fmap__btn, .wm-fmap:focus-visible .wm-fmap__btn { opacity: 1; }
.wm-fmap:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: none) { .wm-fmap__btn { opacity: 1; top: auto; bottom: 34px; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wm-fmap__btn { transition: none; } }

/* Product page: total for the chosen quantity, stock dot */
.wm-pprice__total { font: 600 14px var(--wm-body); color: var(--wm-ink2); }
.wm-pprice__total:empty { display: none; }
.wm-incart { display: block; min-height: 24px; margin: 0 0 8px; padding: 0; border: 0; background: none; font: 500 14px var(--wm-body); color: var(--wm-ink2); text-decoration: underline; cursor: pointer; }
.wm-incart[hidden] { display: none; }
.wm-pstock:not(.is-out)::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wm-green); }
.wm-reqlink { margin: 8px 0 0; }
.wm-reqlink .wm-btn { width: 100%; }

/* Etiketter (Butik > Etiketter, product_labels.php): text on a colour, contrast >= 4.5:1 */
.wm-labels--card { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wm-labels--page { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.wm-label { display: inline-block; padding: 2px 7px; border-radius: 3px; font: 700 11px/1.4 var(--wm-body); letter-spacing: 0.04em; text-transform: uppercase; }
.wm-labels--page .wm-label { font-size: 12px; padding: 3px 9px; }
.wm-label--red { background: var(--wm-red); color: #fff; }
.wm-label--dark { background: var(--wm-ink); color: #fff; }
.wm-label--green { background: #1d6b2f; color: #fff; }
.wm-label--yellow { background: #ffd34d; color: #222; }
.wm-label--blue { background: #1a5fb4; color: #fff; }
/* discount percent (feedback #35): top right of the card image, next to the price on the product page */
.wm-pct { display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--wm-red); color: #fff; font: 700 12px/1.4 var(--wm-body); white-space: nowrap; }
.wm-pct--card { position: absolute; top: 8px; right: 8px; z-index: 1; }
.wm-pct--page { font-size: 14px; padding: 3px 9px; vertical-align: middle; margin-left: 4px; }
/* Lagertak på produktsidan (cart_stock_cap.php) */
.wm-qty__btn[disabled] { color: #b5b5b5; cursor: default; }
.wm-qtymax { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; line-height: 1.35; color: #8a5a00; }
.wm-qtymax::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.wm-qtymax[hidden] { display: none; }

/* Policyer (Butik > Innehåll > Policyer): date line, wide tables scroll in their own box on phones */
.policyUpdated { margin: -4px 0 16px; font-size: 13px; color: var(--wm-mute); }
.policyContent { overflow-wrap: anywhere; }
.policyContent table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.policyContent th, .policyContent td { padding: 6px 10px; border-bottom: 1px solid var(--wm-line, #e3e3e3); text-align: left; vertical-align: top; min-width: 7em; }
.policyContent th { white-space: nowrap; }
