/*
 * Mnuolaidos kodai – front-end styles
 *
 * Source of truth: the Mnuolaidos.lt brand book (tokens.json, components/bundle.css,
 * components/DealCard). Change values there first, then here.
 * Colors are fixed brand values on purpose (not theme presets), so coupon pages
 * look the same on the Local copy and on the live site.
 *
 * 1. Tokens and base        6. Coupon text (post content)
 * 2. Components             7. Code window overlay
 * 3. Deal card              8. Legacy – to be redone
 * 4. Breadcrumbs            9. Store page
 * 5. Coupon page layout
 */

/* ========== 1. Tokens and base ========== */

.mnuo {
  /* colors */
  --paper: #f3f6f2;
  --surface: #ffffff;
  --paper-sunk: #e6ece7;
  --line: #d5ded8;
  --line-strong: #6f7f77;
  --ink: #12241c;
  --ink-muted: #4f5f57;
  --spruce: #1b4d3e;
  --spruce-hover: #143b30;
  --spruce-soft: #e1eee6;
  --on-spruce: #ffffff;
  --amber: #f5a623;
  --amber-hover: #e8941a;
  --amber-edge: #b86e00;
  --amber-soft: #fff1d6;
  --amber-text: #8a4e00;
  --on-amber: #12241c;
  --link: #1b4d3e;
  /* type */
  --font-sans: var(--wp--preset--font-family--manrope, Manrope, "Segoe UI", system-ui, -apple-system, sans-serif);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* spacing, radius, shadow, size */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 9999px;
  --shadow-card: 0 1px 2px #12241c14;
  --shadow-pop: 0 2px 6px #12241c1f, 0 16px 40px -12px #12241c47;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #1b4d3e;
  --control-h: 44px; --notch: 10px; --list-w: 760px;
  /* page: follows the theme's wide width and side padding, so edges line up with the header */
  --page-w: var(--wp--style--global--wide-size, 1200px);
  --page-pad-l: var(--wp--style--root--padding-left, 32px);
  --page-pad-r: var(--wp--style--root--padding-right, 32px);

  font: 400 16px/1.625 var(--font-sans);
  color: var(--ink);
}

.mnuo,
.mnuo-cards, .mnuo-card, .mnuo-btn, .mnuo-tag, .mnuo-reveal, .mnuo-vote,
.mnuo-stores, .mnuo-store, .mnuo-chips, .mnuo-chip, .mnuo-notice, .mnuo-news {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
[class^="mnuo-"], [class*=" mnuo-"],
[class^="mnuo-"]::before, [class*=" mnuo-"]::before,
[class^="mnuo-"]::after, [class*=" mnuo-"]::after { box-sizing: border-box; }

/* Icons: inline SVG, inherit the text color */
.mnuo-icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ========== 2. Components (brand book bundle.css) ========== */

/* ---------- Buttons ---------- */
.mnuo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: 700 15px/20px var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mnuo-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
/* links as buttons: no underline from the theme's link styles */
.mnuo a.mnuo-btn,
.mnuo a.mnuo-btn:hover,
.mnuo a.mnuo-btn:focus { text-decoration: none; }

/* amber – the one main action in a block */
.mnuo-btn--primary,
.mnuo-btn--code {
  background: var(--amber); color: var(--on-amber);
  border-color: var(--amber-edge); border-bottom-width: 3px;
}
.mnuo-btn--primary:hover,
.mnuo-btn--code:hover { background: var(--amber-hover); color: var(--on-amber); }

/* "Rodyti kodą" with the code peek */
.mnuo-btn--code { align-items: stretch; gap: 0; padding-right: 0; overflow: hidden; }
.mnuo-btn__label { display: inline-flex; align-items: center; padding-right: var(--space-4); }
.mnuo-btn__peek {
  display: inline-flex; align-items: center; padding: 0 var(--space-3);
  background: var(--surface); color: var(--ink);
  border-left: 2px dashed var(--amber-edge);
  font: 700 15px/20px var(--font-mono); letter-spacing: .08em;
}

/* spruce – offers and links to the store */
.mnuo-btn--offer { background: var(--spruce); color: var(--on-spruce); }
.mnuo-btn--offer:hover { background: var(--spruce-hover); color: var(--on-spruce); }

/* secondary actions */
.mnuo-btn--ghost { background: var(--surface); color: var(--spruce); border-color: var(--line-strong); }
.mnuo-btn--ghost:hover { background: var(--spruce-soft); color: var(--spruce); }
.mnuo-btn--ghost[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--on-spruce); }

.mnuo-btn--sm { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }
.mnuo-btn--block { width: 100%; }

/* ---------- Tags ---------- */
.mnuo-tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 22px; padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font: 700 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.mnuo-tag .mnuo-icon { width: 14px; height: 14px; }
.mnuo-tag--type { padding-inline: 0; background: none; color: var(--ink-muted); }
.mnuo-tag--exclusive { background: var(--amber-soft); color: var(--amber-text); }
.mnuo-tag--expired { background: var(--paper-sunk); color: var(--ink-muted); }
.mnuo-tag--checked {
  background: var(--spruce-soft); color: var(--spruce);
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- Coupon card (lists) ---------- */
.mnuo-cards {
  container-type: inline-size;
  display: grid; gap: var(--space-3);
  max-width: var(--list-w); margin: 0; padding: 0; list-style: none;
}
.mnuo-cards__heading {
  margin: var(--space-5) 0 0;
  font: 800 24px/30px var(--font-sans); letter-spacing: -.01em; color: var(--ink);
}
.mnuo-cards__heading + .mnuo-cards { margin-top: var(--space-3); }

.mnuo-card {
  --stub-w: 136px;
  position: relative;
  display: grid;
  grid-template-columns: var(--stub-w) minmax(0, 1fr) auto;
  grid-template-areas: "stub body action";
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  /* two notches at the ends of the perforation */
  -webkit-mask:
    radial-gradient(circle at var(--stub-w) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub-w) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at var(--stub-w) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub-w) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
/* notch edge – a 1 px line continuing the card border */
.mnuo-card::before,
.mnuo-card::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: calc(var(--stub-w) - var(--notch) - 2px);
  width: calc(2 * var(--notch) + 2px); height: calc(2 * var(--notch) + 2px);
  border: 1px solid var(--line); border-radius: 50%;
}
.mnuo-card::before { top: calc(-1 * var(--notch) - 2px); }
.mnuo-card::after { bottom: calc(-1 * var(--notch) - 2px); }

.mnuo-card__stub {
  grid-area: stub;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-1);
  padding: var(--space-4) var(--space-3);
  background: var(--spruce-soft);
  border-right: 2px dashed var(--line-strong);
  /* follow the card's rounded corners */
  border-radius: calc(var(--radius-md) - 1px) 0 0 calc(var(--radius-md) - 1px);
  text-align: center;
}
.mnuo-card__value {
  font: 800 30px/32px var(--font-sans); letter-spacing: -.02em;
  color: var(--spruce); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mnuo-card__value--text { font-size: 18px; line-height: 22px; letter-spacing: 0; white-space: normal; }
/* store logo in the stub while "Nuolaidos dydis" is empty */
.mnuo-card__logo {
  display: block; width: 64px; height: 64px; object-fit: contain;
  border-radius: var(--radius-md); background: var(--surface);
}
.mnuo-card__store { font: 600 13px/18px var(--font-sans); color: var(--ink-muted); overflow-wrap: anywhere; }

.mnuo-card__body {
  grid-area: body;
  display: flex; flex-direction: column; gap: var(--space-1);
  min-width: 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
}
.mnuo-card__labels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.mnuo-card__title { margin: 0; font: 700 18px/24px var(--font-sans); color: var(--ink); text-wrap: balance; }
.mnuo-card__title a { color: inherit; text-decoration: none; }
.mnuo-card__title a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mnuo-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  margin: var(--space-1) 0 0; padding: 0; list-style: none;
  font: 500 14px/20px var(--font-sans); color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.mnuo-card__meta li { display: inline-flex; align-items: center; gap: var(--space-1); }
.mnuo-card__meta .mnuo-icon { width: 16px; height: 16px; }
.mnuo-card__meta .is-checked { color: var(--spruce); font-weight: 700; }

.mnuo-card__action {
  grid-area: action;
  display: flex; align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
}

/* expired */
.mnuo-card.is-expired,
.mnuo-card.is-expired .mnuo-card__stub { background: var(--paper-sunk); }
.mnuo-card.is-expired .mnuo-card__value {
  color: var(--ink-muted);
  text-decoration: line-through; text-decoration-thickness: 2px;
}
.mnuo-card.is-expired .mnuo-card__logo { filter: grayscale(1); opacity: .6; }
.mnuo-card.is-expired .mnuo-card__title { color: var(--ink-muted); }
.mnuo-card.is-expired .mnuo-tag--expired { background: var(--surface); }

/* narrow list (phone): the card stands upright – stub on top, text and button below,
   notches on the side edges at the perforation, as on the deal card */
@container (max-width: 520px) {
  .mnuo-card {
    --stub-h: 88px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stub" "body" "action";
    -webkit-mask:
      radial-gradient(circle at 0 var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
            mask:
      radial-gradient(circle at 0 var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .mnuo-card::before,
  .mnuo-card::after { top: calc(var(--stub-h) - var(--notch) - 2px); bottom: auto; }
  .mnuo-card::before { left: calc(-1 * var(--notch) - 2px); right: auto; }
  .mnuo-card::after { right: calc(-1 * var(--notch) - 2px); left: auto; }
  .mnuo-card__stub {
    box-sizing: border-box; height: var(--stub-h); padding: var(--space-3) var(--space-4);
    border-right: 0; border-bottom: 2px dashed var(--line-strong);
    border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  }
  .mnuo-card__value { font-size: 32px; line-height: 36px; }
  .mnuo-card__value--text { font-size: 18px; line-height: 22px; }
  .mnuo-card__logo { width: 52px; height: 52px; }
  .mnuo-card__body { padding: var(--space-4) var(--space-4) var(--space-3); }
  .mnuo-card__action { padding: 0 var(--space-4) var(--space-4); }
  .mnuo-card__action > .mnuo-btn { width: 100%; }
  .mnuo-card__action .mnuo-btn__label { flex: 1; justify-content: center; }
}

/* ---------- Code window ---------- */
.mnuo-reveal {
  position: relative;
  display: grid; gap: var(--space-3);
  width: min(100%, 440px); padding: var(--space-5);
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
}
.mnuo-reveal__close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--ink-muted); cursor: pointer;
}
.mnuo-reveal__close:hover { background: var(--paper-sunk); color: var(--ink); }
.mnuo-reveal__close:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.mnuo-reveal__eyebrow { margin: 0; padding-right: 40px; font: 600 13px/18px var(--font-sans); color: var(--ink-muted); }
.mnuo-reveal__title { margin: 0; padding-right: 32px; font: 700 18px/24px var(--font-sans); color: var(--ink); text-wrap: balance; }

.mnuo-code {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; min-height: 64px; padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--spruce); border-radius: var(--radius-md);
  background: var(--spruce-soft); color: var(--ink);
  font: 700 22px/28px var(--font-mono); letter-spacing: .08em;
  cursor: copy;
}
.mnuo-code .mnuo-icon { width: 20px; height: 20px; color: var(--spruce); }
.mnuo-code:hover, .mnuo-code.is-copied { border-style: solid; }
.mnuo-code:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

.mnuo-reveal__hint {
  display: flex; align-items: center; justify-content: center; gap: var(--space-1);
  margin: 0; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); text-align: center;
}
.mnuo-reveal__hint.is-done { color: var(--spruce); font-weight: 700; }
.mnuo-reveal__hint .mnuo-icon { width: 16px; height: 16px; }
.mnuo-reveal__footer { padding-top: var(--space-3); border-top: 1px solid var(--line); }

/* ---------- Vote ---------- */
.mnuo-vote {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  font: 500 14px/20px var(--font-sans); color: var(--ink);
}
.mnuo-vote__q { font-weight: 700; }
.mnuo-vote__buttons { display: inline-flex; gap: var(--space-2); }
.mnuo-vote__rate { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.mnuo-vote__thanks { display: inline-flex; align-items: center; gap: var(--space-1); margin: 0; color: var(--spruce); font-weight: 700; }
.mnuo-vote__thanks .mnuo-icon { width: 16px; height: 16px; }

/* ---------- Store grid ---------- */
.mnuo-stores {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3);
  margin: 0; padding: 0; list-style: none;
}
.mnuo-store {
  display: grid; gap: var(--space-2); padding: var(--space-3);
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: border-color .15s ease;
}
.mnuo-store:hover { border-color: var(--spruce); color: var(--ink); }
.mnuo-store:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.mnuo-store__logo {
  display: grid; place-items: center; aspect-ratio: 3 / 2; max-width: 100%;
  border-bottom: 1px solid var(--line);
}
.mnuo-store__logo img { max-width: 72%; max-height: 60%; object-fit: contain; }
.mnuo-store__name { font: 700 15px/20px var(--font-sans); overflow-wrap: anywhere; }

/* ---------- Category chips ---------- */
.mnuo-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.mnuo-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-full);
  background: var(--surface); color: var(--ink); text-decoration: none;
  font: 600 14px/20px var(--font-sans);
}
.mnuo-chip:hover { background: var(--paper-sunk); color: var(--ink); }
.mnuo-chip[aria-current="page"] { background: var(--spruce); border-color: var(--spruce); color: var(--on-spruce); }
.mnuo-chip:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* ---------- Notice ---------- */
.mnuo-notice {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); background: var(--paper-sunk); color: var(--ink);
  font: 500 15px/22px var(--font-sans);
}
.mnuo-notice > .mnuo-icon { margin-top: 2px; color: var(--ink-muted); }
.mnuo-notice__text { flex: 1 1 240px; min-width: 0; margin: 0; }
.mnuo-notice__link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  color: var(--link); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.mnuo-notice__link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* ---------- Newsletter block ---------- */
.mnuo-news {
  display: grid; gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--spruce); color: var(--on-spruce);
}
.mnuo-news__title { margin: 0; font: 800 24px/30px var(--font-sans); letter-spacing: -.01em; color: var(--on-spruce); text-wrap: balance; }
.mnuo-news__text { margin: 0; max-width: 52ch; font: 400 16px/26px var(--font-sans); }
.mnuo-news__form { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.mnuo-news__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mnuo-news__input {
  flex: 1 1 220px; min-width: 0; min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: 1px solid var(--surface); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font: 500 16px/24px var(--font-sans);
}
.mnuo-news__input::placeholder { color: var(--ink-muted); }
/* on spruce the focus ring is amber */
.mnuo-news :focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--spruce), 0 0 0 4px var(--amber); }
.mnuo-news__fine { margin: 0; font: 500 13px/18px var(--font-sans); color: var(--on-spruce); }

/* ========== 3. Deal card – vertical coupon on the coupon page ========== */

.mnuo-deal {
  --stub-h: 128px;
  position: relative;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  /* two notches at the ends of the perforation, on the side edges */
  -webkit-mask:
    radial-gradient(circle at 0 var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle at 0 var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--stub-h), #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
}
.mnuo-deal::before,
.mnuo-deal::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--stub-h) - var(--notch) - 2px);
  width: calc(2 * var(--notch) + 2px); height: calc(2 * var(--notch) + 2px);
  border: 1px solid var(--line); border-radius: 50%;
}
.mnuo-deal::before { left: calc(-1 * var(--notch) - 2px); }
.mnuo-deal::after { right: calc(-1 * var(--notch) - 2px); }

/* the stub height is fixed: the notches sit exactly on the perforation */
.mnuo-deal__stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  height: var(--stub-h);
  padding: var(--space-3) var(--space-4);
  background: var(--spruce-soft);
  border-bottom: 2px dashed var(--line-strong);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  text-align: center;
}
.mnuo-deal__value {
  font: 800 48px/52px var(--font-sans); letter-spacing: -.02em;
  color: var(--spruce); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* text benefit ("Nemokamas pristatymas"): smaller, at most two lines */
.mnuo-deal__value--text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 22px; line-height: 26px; letter-spacing: -.01em; white-space: normal;
}
.mnuo-deal__logo {
  display: block; width: 64px; height: 64px; object-fit: contain;
  border-radius: var(--radius-md); background: var(--surface);
}
.mnuo-deal__store { font: 600 14px/20px var(--font-sans); color: var(--ink-muted); }

.mnuo-deal__body { display: grid; gap: var(--space-3); padding: var(--space-5); }
.mnuo-deal__body .mnuo-btn__label { flex: 1; justify-content: center; }
.mnuo-deal__hint { margin: 0; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); text-align: center; }
.mnuo-deal__expired { justify-self: center; }

/* "Trumpos sąlygos": one line per fact, "Label: value" */
.mnuo-deal__facts {
  display: grid; gap: var(--space-2);
  margin: var(--space-1) 0 0; padding: var(--space-4) 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font: 500 14px/20px var(--font-sans);
}
.mnuo-deal__facts li { display: flex; justify-content: space-between; gap: var(--space-3); }
.mnuo-deal__fact-label { color: var(--ink-muted); }
.mnuo-deal__fact-value { font-weight: 700; color: var(--ink); text-align: right; }

.mnuo-deal.is-expired .mnuo-deal__stub { background: var(--paper-sunk); }
.mnuo-deal.is-expired .mnuo-deal__value {
  color: var(--ink-muted);
  text-decoration: line-through; text-decoration-thickness: 3px;
}
.mnuo-deal.is-expired .mnuo-deal__logo { filter: grayscale(1); opacity: .6; }

/* ========== 4. Breadcrumbs ========== */

.mnuo-crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-5); padding: 0; list-style: none;
  font: 500 14px/20px var(--font-sans); color: var(--ink-muted);
}
.mnuo-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; }
.mnuo-crumbs li:last-child { flex: 0 1 auto; min-width: 0; }
.mnuo-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.mnuo-crumbs a {
  color: var(--spruce);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.mnuo-crumbs a:hover { color: var(--spruce); text-decoration-color: currentColor; }
.mnuo-crumbs__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 5. Coupon page layout ========== */

.mnuo-page {
  width: 100%;
  max-width: calc(var(--page-w) + var(--page-pad-l) + var(--page-pad-r));
  margin-inline: auto;
  padding: var(--space-5) var(--page-pad-r) var(--space-7) var(--page-pad-l);
}

.mnuo-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "head side"
    "body side"
    "more side";
  column-gap: 56px;
  align-items: start;
}
.mnuo-coupon__head { grid-area: head; display: grid; gap: var(--space-3); padding-bottom: var(--space-6); }
.mnuo-coupon__head > .mnuo-notice { margin-bottom: var(--space-2); }
.mnuo-coupon__labels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.mnuo-coupon__title {
  margin: 0; max-width: 680px;
  font: 800 36px/40px var(--font-sans); letter-spacing: -.02em;
  color: var(--ink); text-wrap: wrap;
}
.mnuo-coupon__meta { margin: 0; }

.mnuo-coupon__side {
  grid-area: side;
  display: grid; gap: var(--space-3);
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--space-5));
}
.mnuo-coupon__vote {
  padding: var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
}

.mnuo-coupon__body { grid-area: body; }

.mnuo-coupon__more { grid-area: more; margin-top: var(--space-7); }
.mnuo-more__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  max-width: var(--list-w);
  margin-bottom: var(--space-4);
}
.mnuo-more__title { margin: 0; font: 800 24px/30px var(--font-sans); letter-spacing: -.01em; color: var(--ink); }
.mnuo-more__all {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font: 700 15px/20px var(--font-sans); color: var(--spruce);
  text-decoration: underline; text-underline-offset: 3px;
}
.mnuo-more__all:hover { color: var(--spruce-hover); }

/* one column: the deal card goes right under the title */
@media (max-width: 920px) {
  .mnuo-coupon {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "side" "body" "more";
  }
  .mnuo-coupon__head { padding-bottom: var(--space-5); }
  .mnuo-coupon__side { position: static; width: 100%; max-width: 480px; margin-bottom: var(--space-6); }
}

/* phone */
@media (max-width: 600px) {
  .mnuo-page { padding-top: var(--space-4); }
  .mnuo-crumbs ol { flex-wrap: nowrap; margin-bottom: var(--space-4); }
  .mnuo-crumbs li:last-child { flex: 1 1 auto; }
  .mnuo-coupon__title { font-size: 28px; line-height: 34px; }
  .mnuo-coupon__side { max-width: none; }
  .mnuo-deal { --stub-h: 112px; }
  .mnuo-deal__value { font-size: 40px; line-height: 44px; }
  .mnuo-deal__logo { width: 56px; height: 56px; }
  .mnuo-deal__body { padding: var(--space-4) var(--space-4) var(--space-5); }
  .mnuo-more__title { font-size: 22px; line-height: 28px; }
}

/* ========== 6. Coupon text (post content) ========== */

.mnuo-prose { max-width: 680px; }
.mnuo-prose > * { margin-top: 0; margin-bottom: 0; }
.mnuo-prose > * + * { margin-top: var(--space-4); }
.mnuo-prose h2 {
  margin-top: 40px;
  font: 800 24px/30px var(--font-sans); letter-spacing: -.01em;
  color: var(--ink); text-wrap: balance;
}
.mnuo-prose h3 {
  margin-top: var(--space-6);
  font: 700 18px/24px var(--font-sans); letter-spacing: 0; color: var(--ink);
}
.mnuo-prose h2 + *,
.mnuo-prose h3 + * { margin-top: var(--space-3); }
.mnuo-prose > :first-child { margin-top: 0; }
.mnuo-prose strong,
.mnuo-prose b { font-weight: 700; }
.mnuo-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.mnuo-prose a:hover { color: var(--spruce-hover); }
.mnuo-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

.mnuo-prose ul { display: grid; gap: 6px; padding-left: 22px; }
.mnuo-prose ul > li::marker { color: var(--spruce); }

/* numbered lists are shown as steps */
.mnuo-prose ol { display: grid; gap: var(--space-3); padding: 0; list-style: none; counter-reset: mnuo-step; }
.mnuo-prose ol > li { position: relative; min-height: 28px; padding-left: 44px; counter-increment: mnuo-step; }
.mnuo-prose ol > li::before {
  content: counter(mnuo-step);
  position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--spruce-soft); color: var(--spruce);
  font: 800 14px/1 var(--font-sans); font-variant-numeric: tabular-nums;
}

/* Rank Math FAQ block: question and answer pairs divided by lines */
.mnuo-prose .rank-math-list { border-top: 1px solid var(--line); }
.mnuo-prose .rank-math-list-item { display: grid; gap: 6px; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.mnuo-prose .rank-math-question { margin: 0; font: 700 18px/24px var(--font-sans); color: var(--ink); }
.mnuo-prose .rank-math-answer > * { margin: 0; }
.mnuo-prose .rank-math-answer > * + * { margin-top: var(--space-2); }

@media (max-width: 600px) {
  .mnuo-prose h2 { margin-top: var(--space-6); font-size: 22px; line-height: 28px; }
}

/* ========== 7. Code window overlay ========== */

.mnuo-reveal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  padding: var(--space-4);
  overflow-y: auto;
  background: rgb(18 36 28 / .55);
}
.mnuo-reveal-overlay[hidden] { display: none; }

/* ========== 8. Legacy – to be redone ========== */
/*
 * Not redone yet: the top of the category and tag pages, the store grid
 * ([mnuo_stores] on ordinary pages) and the category list ([mnuo_categories]).
 * Old rules moved here as they were, only the old --mnuo-* tokens were
 * swapped for the brand tokens above. The store page is section 9.
 */

/* Rank Math breadcrumbs on the category and tag pages */
.mnuo .rank-math-breadcrumb { margin: 0 0 1.25rem; font-size: .8125rem; color: var(--ink-muted); }
.mnuo .rank-math-breadcrumb p { margin: 0; }

/* Store logo box in the store grid, or the store's first letter when there is no logo */
.mnuo-stores__logo {
  display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius-md); background: var(--paper);
  color: inherit; text-decoration: none;
}
.mnuo-stores__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mnuo-logo-letter {
  font-size: 2rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; color: var(--ink-muted);
}

/* The category, tag and "all coupons" header */
.mnuo-archive__title { margin: 0 0 .5rem; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.2; }
.mnuo-archive__desc { margin: 0 0 1rem; color: var(--ink-muted); }
.mnuo-archive__desc > :last-child { margin-bottom: 0; }
.mnuo-archive__head { margin: 0 0 2rem; }

/* Store grid items ([mnuo_stores]); the grid itself is .mnuo-stores above */
.mnuo-stores__item a {
  display: grid; justify-items: center; align-content: start; gap: .6rem;
  box-sizing: border-box; height: 100%; padding: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: inherit; text-align: center; text-decoration: none;
}
.mnuo-stores__item a:hover { border-color: var(--spruce); }
.mnuo-stores__logo { width: 96px; height: 96px; }
.mnuo-stores__name { font-size: .875rem; font-weight: 600; line-height: 1.3; }

/* Category list ([mnuo_categories]) */
.mnuo-categories { margin: 0; padding: 0; list-style: none; columns: 3 220px; column-gap: 2rem; }
.mnuo-categories li { margin: 0 0 .5rem; break-inside: avoid; }
.mnuo-categories > li > a { font-weight: 600; }
.mnuo-categories .children { margin: .4rem 0 0; padding-left: 1rem; list-style: none; }

/* ========== 9. Store page ========== */

.mnuo-shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "head side" "list side";
  /* the sidebar spans both rows: when it is taller than a short list, the
     extra height goes to the list row, not between the head and the list */
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  align-items: start;
}
/* no sidebar pattern: one column */
.mnuo-shop--no-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list"; }

.mnuo-shop__head {
  grid-area: head;
  display: grid; gap: var(--space-4); justify-items: start;
  max-width: var(--list-w); padding-bottom: var(--space-6);
}
.mnuo-shop__brand { display: flex; align-items: center; gap: var(--space-4); }
.mnuo-shop__logo {
  flex: none; display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.mnuo-shop__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mnuo-shop__titles { display: grid; gap: var(--space-2); min-width: 0; }
.mnuo-shop__title {
  margin: 0;
  font: 800 36px/40px var(--font-sans); letter-spacing: -.02em;
  color: var(--ink); text-wrap: pretty;
}
.mnuo-shop__titles .mnuo-card__meta { margin: 0; }
.mnuo-shop__intro { max-width: 680px; font: 400 16px/26px var(--font-sans); color: var(--ink); }
.mnuo-shop__intro > * { margin: 0; }
.mnuo-shop__intro > * + * { margin-top: var(--space-3); }

.mnuo-shop__list { grid-area: list; }
.mnuo-shop__list > .mnuo-notice { max-width: var(--list-w); }

/* sidebar: the synced pattern "Parduotuvės šoninė juosta" */
.mnuo-shop__side { grid-area: side; display: grid; gap: var(--space-3); }
.mnuo-shop__side > * { margin: 0; }
.mnuo-shop__side .is-style-mnuo-panel {
  padding: var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.mnuo-shop__side .is-style-mnuo-panel > * { margin: 0; }
.mnuo-shop__side .is-style-mnuo-panel > * + * { margin-top: var(--space-4); }
.mnuo-shop__side h2,
.mnuo-shop__side h3 { font: 800 18px/24px var(--font-sans); letter-spacing: 0; color: var(--ink); }
.mnuo-shop__side p,
.mnuo-shop__side ul:not(.mnuo-stores) > li,
.mnuo-shop__side ol > li { font: 400 15px/22px var(--font-sans); color: var(--ink); }
.mnuo-shop__side a:not(.mnuo-store):not(.mnuo-btn) {
  color: var(--spruce); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.mnuo-shop__side a:not(.mnuo-store):not(.mnuo-btn):hover { color: var(--spruce-hover); }
.mnuo-shop__side ul:not(.mnuo-stores) { display: grid; gap: 6px; padding-left: 22px; }
.mnuo-shop__side ul:not(.mnuo-stores) > li::marker { color: var(--spruce); }
/* numbered lists are steps, as in the coupon text */
.mnuo-shop__side ol { display: grid; gap: var(--space-3); padding: 0; list-style: none; counter-reset: mnuo-step; }
.mnuo-shop__side ol > li { position: relative; min-height: 28px; padding-left: 44px; counter-increment: mnuo-step; }
.mnuo-shop__side ol > li::before {
  content: counter(mnuo-step);
  position: absolute; left: 0; top: -3px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--spruce-soft); color: var(--spruce);
  font: 800 14px/1 var(--font-sans); font-variant-numeric: tabular-nums;
}
/* compact store tiles in the sidebar: square, logo only, as many in a row
   as fit (three in the 340px column) */
.mnuo-shop__side .mnuo-stores { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: var(--space-2); }
.mnuo-shop__side .mnuo-store {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; padding: var(--space-2); overflow: hidden;
  border-radius: var(--radius-md); box-shadow: none; text-align: center;
}
.mnuo-shop__side .mnuo-store__logo { display: block; width: 100%; aspect-ratio: 1; border-bottom: 0; }
.mnuo-shop__side .mnuo-store__logo img {
  display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain;
}
.mnuo-shop__side .mnuo-store__name { font: 700 13px/17px var(--font-sans); }
.mnuo-shop__side .mnuo-store:not(.has-logo) .mnuo-store__logo { display: none; }
.mnuo-shop__side .mnuo-store.has-logo .mnuo-store__name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 920px) {
  .mnuo-shop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "side"; }
  /* below the list: the panels side by side while two fit, else one under the other */
  .mnuo-shop__side {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start;
    margin-top: var(--space-6); max-width: var(--list-w);
  }
}
@media (max-width: 600px) {
  .mnuo-shop__logo { display: none; }
  .mnuo-shop__title { font-size: 28px; line-height: 34px; }
  .mnuo-shop__head { gap: var(--space-3); padding-bottom: var(--space-5); }
}
