/* ===========================================================================
   OCMOD.NET storefront UI  -  v1.4
   ---------------------------------------------------------------------------
   One shared look for every block an OCMOD.NET module puts on a storefront.
   Path: catalog/view/theme/default/stylesheet/ocmod/ocmod-ui-1.4.css

   What 1.4 changes in 1.3 - every part is drawn by the measures of the
   reference canvas (skill ocmod-module-storefront, storefront-reference):
   - one height for every module: a button is 40px, small 34, large 46; a
     field and a select 42; a pill 32; a page cell 40; a product tab 44; a
     carousel arrow 34. Heights, paddings and the font sizes of controls are
     px, not variables: a theme file gives colours, corners and the font,
     never sizes. --ocm-ctl-h of a theme file made for 1.1-1.3 is ignored;
   - roles of buttons, not colours of modules: .ocm-btn (= --primary) is the
     accent fill; --line, --outline and --quiet are one outline button
     (surface, grey line, text colour; the accent line and name on hover);
     --soft is the grey fill of the theme (--ocm-btn, --ocm-btn-ink); --link
     is a text action; a pressed toggle is the accent fill;
   - .ocm-seg is a row of separate buttons 4px apart, not a joined bordered
     control: the pressed item is the accent fill, the others the soft fill;
   - a chip is the label of the canvas (3px 9px, 12px bold, a tint with its
     own line); a pill is the chip of the canvas (32px, 14px);
   - block title 17px, heading above a block 26px, the head row of a
     section holds the title, the count, "All ..." and the arrows: the arrows
     of every carousel stand there and nowhere else;
   - tables by the canvas: a 13px grey head without capitals, soft lines;
     .ocm-size is the size grid (centred cells, every border, the chosen row
     tinted and bold);
   - new: .ocm-panel and .ocm-h, .ocm-section, .ocm-tabs and .ocm-tab,
     .ocm-size, .ocm-btn--lg, .ocm-btn--link, .ocm-btn--primary,
     .ocm-btn--outline; tokens --ocm-btn, --ocm-btn-ink, --ocm-line-soft,
     --ocm-icon and the lines of the tints (--ocm-good-line and the like);
   - focus: a ring only for the keyboard (:focus-visible). A mouse click or a
     dialog that opens leaves no ring and no dark button behind; an open
     dialog keeps the page under it from scrolling;
   - the defaults are the light theme of the canvas = the default theme of
     OpenCart: 4px corners, #222 headings, #333 text.

   What 1.3 adds to 1.2:
   - markup carries no Bootstrap class any more: no .btn, .form-control,
     .table, .progress, .alert, .close. A button, a field, a table, a link
     button, a brand item, a segment, a choice card and a floating button
     have the library's own look with the weight of one class - a{},
     button{}, input{}, label{}, th{} and td{} of a theme outrank :where(),
     a class does not. An element that still carries .btn, .form-control or
     .table - markup made for 1.2 - keeps the theme's look, as before;
   - a shield at the top of the file: line height, underline, the 12px label
     of the default theme, the corner and the font of a bare control stop at
     every element that carries a class of the library;
   - the button reads three more values of the theme's own main button:
     --ocm-btn-weight, --ocm-btn-case, --ocm-btn-ls; its label stands in the
     middle by its capitals in any font;
   - .ocm-btn--soft, .ocm-btn--icon and a pressed toggle; .ocm-chip--ink and
     .ocm-chip--accent-fill for labels on a photo;
   - .ocm-alert--good, --bad, --warn and --info instead of .alert-success
     and the like; .ocm-pages--cells: the core pagination as a row of cells
     in any theme; .ocm-switch; .ocm-skeleton;
   - the catalog layer: .ocm-wall and .ocm-head, .ocm-pill, .ocm-cats
     (tiles, --mosaic, --rows, --promo) and .ocm-cat (tile, lead, row, mini,
     promo), .ocm-catnav, .ocm-cards and .ocm-card (grid and list; the foot
     of a card goes by the width of the card), .ocm-carousel--auto.
   Looks that differ from 1.2 on purpose, in markup made for 1.2 too:
   - the carousel arrow takes the corner of the theme's buttons
     (--ocm-r-ctl) instead of a circle;
   - a brand item keeps the surface background in Bootstrap 3, whose a{}
     made it transparent;
   - choice cards, swatches, facet options and the upload area keep the font
     size of their block in the default theme of OpenCart, whose label{}
     made them 12px; a link chip is not underlined in Bootstrap 5;
   - the title of a dialog and other headings of the library take the line
     height of their block, not the 1.1 or 1.2 of the theme's headings.

   Rules of the file:
   - every selector starts with an .ocm- class or with [class*="ocm-"]: no
     bare tag, a theme class only inside :not() and on markup made for 1.2;
   - no !important, no shadows, no gradients, no translucency, no motion
     that moves a block up or down;
   - every colour, corner, font size, padding and control height is a
     variable on .ocm. Three layers set them, the later one wins:
       1. this file - Bootstrap 3 defaults, a block looks like a stock theme;
       2. ocmod-ui-theme.css - the shop theme, written by the theme probe
          ("Match the theme") for every module of the shop at once;
       3. style="--ocm-..." on the block root - the module's own colours,
          chosen by the owner on the module's "Look on the site" tab;
   - a superset of 1.2, 1.1 and 1.0: markup made for them works unchanged;
   - no text under 12px: --ocm-fs and --ocm-fs-sm are used through
     max(12px, ...), so a theme file made for 1.1 cannot go smaller;
   - a released file is never edited: new rules ship as the next version.
   =========================================================================== */

/* ---------- root: every block of every module carries class="ocm ..." ---- */
.ocm {
  --ocm-accent:      #337ab7;  /* brand action colour = Bootstrap brand-primary */
  --ocm-accent-ink:  #ffffff;  /* text on the accent fill */
  --ocm-accent-dark: #286090;  /* hover of the accent, accent text on light fills */
  --ocm-accent-tint: #eaf2f9;  /* solid light fill, mixed into the block background */
  --ocm-accent-line: #c8dbee;  /* 1.4: the line around an accent tint (info alert, label) */
  --ocm-link:        var(--ocm-accent-dark);  /* links inside text = the theme's link colour */

  --ocm-good:        #2f6b36;  /* money back, saving, in stock, done */
  --ocm-good-tint:   #eef7ef;
  --ocm-good-line:   #c9e3cc;  /* 1.4: the line around a tint */
  --ocm-bad:         #a12622;  /* deadline, error */
  --ocm-bad-tint:    #fbeeee;
  --ocm-bad-line:    #efc9c8;
  --ocm-sale:        #c9302c;  /* discount figure and sale price = the theme's special price */
  --ocm-sale-ink:    #ffffff;  /* text on the sale fill */
  --ocm-warn:        #6b4f00;  /* almost gone, pending, check this */
  --ocm-warn-tint:   #fdf6e3;
  --ocm-warn-line:   #f0dca6;
  --ocm-star:        #d48806;  /* rating stars = the theme's stars */

  --ocm-ink:         #222222;  /* headings, figures, dark fills */
  --ocm-text:        #333333;  /* running text = Bootstrap text-color */
  --ocm-muted:       #666666;  /* conditions, dates, captions: 4.5:1 on white and on --ocm-subtle */
  --ocm-line:        #dddddd;  /* every border = Bootstrap table-border-color */
  --ocm-line-soft:   #eeeeee;  /* 1.4: rows of a table, separators inside a block */
  --ocm-line-strong: #cccccc;  /* inputs, the plus between set items = Bootstrap input-border */
  --ocm-surface:     #ffffff;  /* block background = the theme's card, not its page */
  --ocm-subtle:      #f4f4f4;  /* head and foot rows, the offer panel, hover */
  --ocm-icon:        #9a9a9a;  /* 1.4: a decorative icon, an empty photo */
  --ocm-btn:         #eeeeee;  /* 1.4: the soft button and the idle segment = the theme's .btn-default */
  --ocm-btn-ink:     var(--ocm-text);
  --ocm-progress:    var(--ocm-accent);  /* progress fill = the theme's .progress-bar if it styled one */
  --ocm-progress-track: var(--ocm-line);

  --ocm-r:           4px;      /* blocks = the theme's card corner */
  --ocm-r-ctl:       var(--ocm-r);  /* buttons, fields, pills, labels = the theme's .btn corner */
  --ocm-r-sm:        3px;      /* inner parts: alerts, thumbs, timer cells */
  --ocm-gap:         12px;     /* the spacing step between parts of a block */
  --ocm-pad:         16px;     /* inside a block = the theme's card padding */
  --ocm-ctl-h:       40px;     /* 1.4: kept for markup of 1.3; heights are fixed px, a theme does not set them */
  --ocm-fs-sm:       .93em;    /* terms, dates, captions */
  --ocm-fs-title:    17px;     /* block title - 1.4: the title rules use 17px itself */
  --ocm-fs-h:        26px;     /* heading above a block - 1.4: the heading rule uses 26px itself */
  --ocm-font-num:    inherit;  /* figures; a theme may set a tabular face */
  --ocm-btn-weight:  700;      /* 1.3: the weight of the theme's main button */
  --ocm-btn-case:    none;     /* 1.3: its text-transform (uppercase in many themes) */
  --ocm-btn-ls:      normal;   /* 1.3: its letter-spacing */
  /* set on a component, not here: --ocm-brand, --ocm-brand-ink, --ocm-brand-logo
     and --ocm-brand-mark (Ui12 prints them), --ocm-swatch, --ocm-per,
     --ocm-lines, --ocm-media, --ocm-dock-x, --ocm-dock-y */
  /* --ocm-fs is not set here on purpose: without the theme file the block
     inherits the size of the place it stands in, as in 1.0, never under 12px */

  font-size: max(12px, var(--ocm-fs, 1em));
  box-sizing: border-box;
  color: var(--ocm-text);
  line-height: 1.45;
}
/* 1.4: the new tokens follow the colours of the theme and of the module.
   The probe of 1.3 and theme files made for 1.1-1.3 do not write them, so a
   dark theme would keep the light greys above: where the browser mixes
   colours, each one is mixed from the theme's own - a solid colour, no
   translucency. A theme file that sets them still wins: it comes later. */
@supports (color: color-mix(in srgb, red, blue)) {
  .ocm {
    --ocm-btn:         color-mix(in srgb, var(--ocm-surface) 92.3%, var(--ocm-ink));
    --ocm-line-soft:   color-mix(in srgb, var(--ocm-surface) 50%, var(--ocm-line));
    --ocm-icon:        color-mix(in srgb, var(--ocm-muted) 60%, var(--ocm-surface));
    --ocm-accent-line: color-mix(in srgb, var(--ocm-accent-tint) 80%, var(--ocm-accent));
    --ocm-good-line:   color-mix(in srgb, var(--ocm-good-tint) 80%, var(--ocm-good));
    --ocm-bad-line:    color-mix(in srgb, var(--ocm-bad-tint) 80%, var(--ocm-bad));
    --ocm-warn-line:   color-mix(in srgb, var(--ocm-warn-tint) 80%, var(--ocm-warn));
  }
}
.ocm *, .ocm *:before, .ocm *:after { box-sizing: border-box; }
.ocm-num { font-family: var(--ocm-font-num); font-variant-numeric: tabular-nums; }

/* ---------- 1.3: what a theme says about bare tags stops here ------------
   A theme styles tags, not classes: p and li get its line height, label is
   12px in the default theme of OpenCart, a link is underlined in Bootstrap
   5, a button or a field takes a round corner, capitals or the font of the
   browser. An element that carries a class of the library takes these from
   its block instead. The rules weigh one class and stand first in the file,
   so every rule of a component below still has the last word; a button, a
   field or a label that carries .btn, .form-control or .control-label -
   markup made for 1.2 - is left to the theme, as before. Headings keep the family and the case of the
   theme's headings on purpose: the title of a block is a heading of the page. */
[class*="ocm-"]:where(p, li, dt, dd, h1, h2, h3, h4, h5, h6, label, legend, summary) { line-height: inherit; }
[class*="ocm-"]:where(li, form),
[class*="ocm-"] > :where(li) { margin: 0; line-height: inherit; }
[class*="ocm-"]:where(a) { text-decoration: none; }
[class*="ocm-"]:where(label):where(:not(.control-label)) { max-width: none; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
[class*="ocm-"]:where(button, input, select, textarea):where(:not(.btn, .form-control)) { border-radius: 0; font: inherit; letter-spacing: normal; text-transform: none; }

/* ---------- block: bordered box with an optional head and foot ---------- */
.ocm-block {
  container: ocm-block / inline-size;
  margin: 0 0 calc(var(--ocm-gap) * 2);
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-block__head {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  min-height: 40px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ocm-line);
}
/* 1.4: one title size for every module, as on the canvas */
.ocm-block__title {
  margin: 0;
  color: var(--ocm-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.ocm-block__aside { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-block__body { padding: 16px; }
.ocm-block__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px var(--ocm-gap);
  padding: var(--ocm-gap) var(--ocm-pad);
  border-top: 1px solid var(--ocm-line);
  background: var(--ocm-subtle);
  border-radius: 0 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px);
}
/* a block heading that stands above the box rather than inside it */
.ocm-heading {
  margin: 0 0 16px;
  color: var(--ocm-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

/* ---------- 1.4: panel and section - the two shells of a block -----------
   The canvas has two: a panel (a box in a column: 20px inside, a 17px title
   .ocm-h) and a section (a wide block on the page: a 26px heading over the
   content). Both start with one head row - .ocm-section__head: the title,
   a count, and at the end "All ..." and the carousel arrows (34px outline
   buttons). A panel with a ruled head is .ocm-panel--head.
     <section class="ocm ocm-section">
       <div class="ocm-section__head">
         <div class="ocm-section__title"><h2>Reviews</h2><span class="ocm-section__count">197</span></div>
         <div class="ocm-section__act"><a class="ocm-link" href="...">All reviews</a>
           <button class="ocm-btn ocm-btn--outline ocm-btn--icon ocm-btn--sm" data-ocm-scroll="-1">...</button>
           <button class="ocm-btn ocm-btn--outline ocm-btn--icon ocm-btn--sm" data-ocm-scroll="1">...</button></div>
       </div>
       ...</section> */
.ocm-panel {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-h { margin: 0 0 14px; color: var(--ocm-ink); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.ocm-section { container: ocm-section / inline-size; margin: 0 0 32px; }
.ocm-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 40px;
  margin: 0 0 16px;
}
.ocm-section__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.ocm-section__title > :where(h1, h2, h3, h4, p, div) { margin: 0; color: var(--ocm-ink); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.ocm-section__count { color: var(--ocm-muted); font-size: 14px; white-space: nowrap; }
.ocm-section__act { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.ocm-section__act > .ocm-link { margin-right: 8px; font-size: 14px; }
/* in a panel the title is the small one */
.ocm-panel .ocm-section__title > :where(h1, h2, h3, h4, p, div) { font-size: 17px; line-height: 1.3; }
.ocm-panel > .ocm-section__head { margin-bottom: 14px; }
.ocm-panel--head { padding: 0; }
.ocm-panel--head > .ocm-section__head { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--ocm-line); }
.ocm-panel__body { padding: 16px; }
.ocm-panel > :last-child, .ocm-panel__body > :last-child { margin-bottom: 0; }

/* ---------- icon: inline SVG, 18px, stroke follows the text colour ------- */
.ocm-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ocm-icon--sm { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- chip: a short fact on a card or next to a price --------------
   1.4: the label of the canvas - 3px 9px, 12px bold, the corner of the
   controls. A tint carries its own line; a solid fill a line of its colour,
   so every label is the same height. Colour by meaning: "new" the accent,
   a discount the sale fill (--solid), "hit" the heading colour (--ink),
   "almost gone" the warning; a neutral fact the grey fill. */
.ocm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 3px 9px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-subtle);
  color: var(--ocm-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.ocm-chip > .ocm-icon { width: 14px; height: 14px; }
.ocm-chip--accent { border-color: var(--ocm-accent-line); background: var(--ocm-accent-tint); color: var(--ocm-link); }
.ocm-chip--good   { border-color: var(--ocm-good-line);   background: var(--ocm-good-tint);   color: var(--ocm-good); }
.ocm-chip--bad    { border-color: var(--ocm-bad-line);    background: var(--ocm-bad-tint);    color: var(--ocm-bad); }
.ocm-chip--warn   { border-color: var(--ocm-warn-line);   background: var(--ocm-warn-tint);   color: var(--ocm-warn); }
/* the one loud chip: a discount figure on a price */
.ocm-chip--solid  { border-color: var(--ocm-sale);    background: var(--ocm-sale);        color: var(--ocm-sale-ink); }
.ocm-chip--ink         { border-color: var(--ocm-ink);    background: var(--ocm-ink);    color: var(--ocm-surface); }
.ocm-chip--accent-fill { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); }
.ocm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }

/* ---------- note: one offer next to the buy button ------------------------
   A plain bordered box: icon and title on one line, terms and a link under
   the title. No coloured strip or column on the left edge - the colour lives
   in the icon and the figure only. Several notes stack as one list with
   shared borders, not as separate coloured boxes. */
.ocm-note {
  margin: 0 0 var(--ocm-gap);
  padding: calc(var(--ocm-pad) - 2px) var(--ocm-pad);
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-note__title .ocm-icon {
  width: 30px;
  height: 30px;
  margin: -3px 10px 0 0;
  padding: 6px;
  border-radius: var(--ocm-r);
  background: var(--ocm-accent-tint);
  color: var(--ocm-accent);
  vertical-align: middle;
}
.ocm-note--good .ocm-note__title .ocm-icon { background: var(--ocm-good-tint); color: var(--ocm-good); }
.ocm-note--bad  .ocm-note__title .ocm-icon { background: var(--ocm-bad-tint);  color: var(--ocm-bad); }
.ocm-note--warn .ocm-note__title .ocm-icon { background: var(--ocm-warn-tint); color: var(--ocm-warn); }
/* terms and list start under the title text, not under the icon tile */
.ocm-note__title ~ * { margin-left: 0; }
.ocm-note__title {
  margin: 0;
  color: var(--ocm-ink);
  font-weight: 700;
  line-height: 1.35;
}
.ocm-note__title .ocm-num { color: var(--ocm-good); }
.ocm-note--accent .ocm-note__title .ocm-num { color: var(--ocm-accent-dark); }
.ocm-note__text { margin: 2px 0 0; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-note__text a,
.ocm-note__link { color: var(--ocm-link); font-weight: 600; text-decoration: none; }
.ocm-note__text a:hover,
.ocm-note__link:hover { text-decoration: underline; }
/* a list of conditions inside one note: one line each, no bullets */
.ocm-note__list { margin: 6px 0 0; padding: 0; list-style: none; }
.ocm-note__list > li {
  padding: 5px 0;
  border-top: 1px solid var(--ocm-line);
  font-size: max(12px, var(--ocm-fs-sm));
}
.ocm-note__list > li:first-child { border-top: 0; padding-top: 2px; }
.ocm-note__list b { color: var(--ocm-ink); }
.ocm-note__list .ocm-note__when { display: block; color: var(--ocm-muted); font-size: 12px; }
/* notes next to each other share a border and read as one panel */
.ocm-notes > .ocm-note { margin: 0; border-radius: 0; }
.ocm-notes > .ocm-note + .ocm-note { border-top: 0; }
.ocm-notes > .ocm-note:first-child { border-radius: var(--ocm-r) var(--ocm-r) 0 0; }
.ocm-notes > .ocm-note:last-child  { border-radius: 0 0 var(--ocm-r) var(--ocm-r); }
.ocm-notes > .ocm-note:only-child  { border-radius: var(--ocm-r); }
.ocm-notes { margin: 0 0 var(--ocm-gap); }

/* ---------- goal: how far to a gift, free delivery, the next level ------- */
.ocm-goal { margin: 0 0 var(--ocm-gap); }
.ocm-goal__row {
  display: flex;
  align-items: baseline;
  gap: var(--ocm-gap);
  margin-bottom: 6px;
}
.ocm-goal__text { color: var(--ocm-ink); font-weight: 600; }
.ocm-goal__left { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
:where(.ocm-goal__bar) {
  height: 6px;
  border-radius: 3px;
  background: var(--ocm-line);
  overflow: hidden;
}
:where(.ocm-goal__fill) {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--ocm-accent);
}
:where(.ocm-goal--done .ocm-goal__fill) { background: var(--ocm-good); }
/* the steps under the bar: amount marks with a label each */
/* Bootstrap paints .progress-bar #337ab7 even in a theme that never styled
   it; the probe puts the theme's own colours in the two variables, so this
   rule shows the theme's bar where it has one and the accent where not */
.ocm-goal__bar.ocm-goal__bar { background-color: var(--ocm-progress-track); }
.ocm-goal__fill.ocm-goal__fill { background-color: var(--ocm-progress); }
.ocm-goal--done .ocm-goal__fill.ocm-goal__fill { background-color: var(--ocm-good); }
.ocm-goal__steps { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ocm-muted); font-size: 12px; }

/* ---------- price: new, old, saving -------------------------------------- */
.ocm-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ocm-price > * { white-space: nowrap; }
.ocm-price__now { color: var(--ocm-ink); font-size: 1.43em; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ocm-price__old { color: var(--ocm-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.ocm-price__save { color: var(--ocm-sale); font-weight: 600; font-variant-numeric: tabular-nums; }
.ocm-price--sm .ocm-price__now { font-size: 1em; }
.ocm-price--sale .ocm-price__now { color: var(--ocm-sale); }
.ocm-chips + .ocm-price,
.ocm-price + .ocm-goal,
.ocm-price + .ocm-actions,
.ocm-goal + .ocm-actions { margin-top: var(--ocm-gap); }

/* ---------- timer: time left, digits in cells ----------------------------
   Two sizes. The block timer shows days, hours, minutes, seconds in cells.
   The card timer is one line laid over the bottom of the product image, so
   a card with a timer is exactly as tall as a card without one. */
.ocm-timer { display: inline-flex; align-items: flex-start; gap: 4px; }
.ocm-timer__cell {
  min-width: 46px;
  padding: 6px 4px 5px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-surface);
  text-align: center;
}
.ocm-timer__num {
  display: block;
  color: var(--ocm-ink);
  font-family: var(--ocm-font-num);
  font-size: 1.29em;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ocm-timer__unit { display: block; margin-top: 1px; color: var(--ocm-muted); font-size: 12px; line-height: 1.3; }
.ocm-timer__label { align-self: center; margin-right: 4px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-timer--urgent .ocm-timer__num { color: var(--ocm-bad); }
/* one line: "До кінця акції 4 дн 01:04:12" */
.ocm-timer--line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  color: var(--ocm-muted);
  font-size: max(12px, var(--ocm-fs-sm));
}
.ocm-timer--line b { color: var(--ocm-bad); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* on a product card: a strip over the bottom edge of the image */
.ocm-overlay { position: relative; }
.ocm-overlay > .ocm-timer--card {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--ocm-bad);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-surface);
  color: var(--ocm-muted);
  flex-wrap: nowrap;
  font-size: 12px;
  white-space: nowrap;
}

/* on a card there is room for the time only: the clock icon says what it is */
.ocm-overlay > .ocm-timer--card .ocm-timer__label { display: none; }
.ocm-overlay > .ocm-timer--card .ocm-icon { color: var(--ocm-bad); }

/* ---------- button ---------------------------------------------------------
   1.4: the button of the canvas in every module. The size is the library's
   even on a Bootstrap .btn: 40px tall (--sm 34, --lg 46), the label 14px
   (13, 15) in one line, the icon and the label 6px apart. The look is the
   library's when the markup carries no .btn: roles, not colours -
     .ocm-btn, .ocm-btn--primary   the accent fill: one main action of a block
     .ocm-btn--outline, --line,
     --quiet                       surface, grey line, text colour; on hover
                                   the accent line and the accent name
     .ocm-btn--soft                the grey fill of the theme's .btn-default
     .ocm-btn--link                a text action in the row of buttons
     [aria-pressed="true"]         a pressed toggle is the accent fill
   Hover changes colours only. A click leaves no ring and no dark fill: the
   ring is for the keyboard (:focus-visible). */
.ocm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  height: 40px;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}
.ocm-btn > .ocm-icon,
.ocm-btn > svg { flex: 0 0 auto; }
.ocm-btn--sm { height: 34px; font-size: 13px; }
.ocm-btn--lg { height: 46px; font-size: 15px; }
/* the look is the theme's when the button also carries .btn .btn-primary */
:where(.ocm-btn) {
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--ocm-accent);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
:where(.ocm-btn:hover) { border-color: var(--ocm-accent-dark); background: var(--ocm-accent-dark); color: var(--ocm-accent-ink); text-decoration: none; }
:where(.ocm-btn:focus-visible) { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
:where(.ocm-btn--line, .ocm-btn--outline, .ocm-btn--quiet) { border-color: var(--ocm-line); background: var(--ocm-surface); color: var(--ocm-text); }
:where(.ocm-btn--line:hover, .ocm-btn--outline:hover, .ocm-btn--quiet:hover) { border-color: var(--ocm-accent); background: var(--ocm-surface); color: var(--ocm-accent); }
:where(.ocm-btn--sm) { padding: 0 12px; }
:where(.ocm-btn--lg) { padding: 0 22px; }
.ocm-btn--wide { display: flex; width: 100%; }
:where(.ocm-btn[disabled],
.ocm-btn--busy) { border-color: var(--ocm-line-soft); background: var(--ocm-line-soft); color: var(--ocm-muted); cursor: default; }
/* the own look when the markup carries no Bootstrap class, with the weight
   of one class: a{}, a:hover{} and button{} of a theme outrank :where(), a
   class does not. The guard weighs nothing, so a later rule that places a
   button (.ocm-chat__send, .ocm-card__foot > .ocm-btn) still wins by order. */
.ocm-btn:where(:not(.btn)) {
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--ocm-accent);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: var(--ocm-btn-weight);
  line-height: 1;
  letter-spacing: var(--ocm-btn-ls);
  text-align: center;
  text-decoration: none;
  text-transform: var(--ocm-btn-case);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ocm-btn:where(:not(.btn)):hover { border-color: var(--ocm-accent-dark); background: var(--ocm-accent-dark); color: var(--ocm-accent-ink); text-decoration: none; }
.ocm-btn:where(:not(.btn)):focus { outline: 0; }
.ocm-btn:where(:not(.btn)):focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
/* outline: --line and --quiet of 1.3 are this one button now */
.ocm-btn--outline:where(:not(.btn)),
.ocm-btn--line:where(:not(.btn)),
.ocm-btn--quiet:where(:not(.btn)) { border-color: var(--ocm-line); background: var(--ocm-surface); color: var(--ocm-text); }
.ocm-btn--outline:where(:not(.btn)):hover,
.ocm-btn--line:where(:not(.btn)):hover,
.ocm-btn--quiet:where(:not(.btn)):hover { border-color: var(--ocm-accent); background: var(--ocm-surface); color: var(--ocm-accent); }
/* soft: the grey fill, the idle button of a pair and of a segment */
.ocm-btn--soft:where(:not(.btn)) { border-color: var(--ocm-btn); background: var(--ocm-btn); color: var(--ocm-btn-ink); font-weight: 600; }
.ocm-btn--soft:where(:not(.btn)):hover { border-color: var(--ocm-accent); background: var(--ocm-btn); color: var(--ocm-btn-ink); }
/* link: a text action that stands in a row of buttons */
.ocm-btn--link:where(:not(.btn)) { padding: 0 6px; border-color: var(--ocm-surface); background: var(--ocm-surface); color: var(--ocm-link); font-weight: 600; }
.ocm-btn--link:where(:not(.btn)):hover { border-color: var(--ocm-surface); background: var(--ocm-surface); color: var(--ocm-link); text-decoration: underline; }
/* a pressed toggle is the one coloured button of its group */
.ocm-btn[aria-pressed="true"]:where(:not(.btn)),
.ocm-btn[aria-pressed="true"]:where(:not(.btn)):hover { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); font-weight: 700; }
.ocm-btn--sm:where(:not(.btn)) { padding: 0 12px; font-size: 13px; }
.ocm-btn--lg:where(:not(.btn)) { padding: 0 22px; font-size: 15px; }
/* an icon alone: a square as wide as the button is tall */
.ocm-btn--icon { width: 40px; min-width: 40px; }
.ocm-btn--icon.ocm-btn--sm { width: 34px; min-width: 34px; }
.ocm-btn--icon.ocm-btn--lg { width: 46px; min-width: 46px; }
.ocm-btn--icon:where(:not(.btn)) { padding: 0; }
.ocm-btn[disabled]:where(:not(.btn)),
.ocm-btn[disabled]:where(:not(.btn)):hover,
.ocm-btn--busy:where(:not(.btn)),
.ocm-btn--busy:where(:not(.btn)):hover { border-color: var(--ocm-line-soft); background: var(--ocm-line-soft); color: var(--ocm-muted); text-decoration: none; cursor: default; }
/* a label cut with "..." keeps its tails: only its sides are clipped */
.ocm-btn:where(:not(.btn)) > .ocm-btn__text { overflow: clip visible; }
/* a label in two lines: the button grows from 40px, never shrinks */
.ocm-btn.ocm-btn--wrap { height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.ocm-btn--wrap.ocm-btn--sm { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.ocm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* a label that comes from data (a product, an article) never pushes the
   button out of its column: cut with "..." in .ocm-btn__text, or wrapped */
.ocm-btn__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a theme that underlines links in its text (.rich-text a) underlines a link
   button too: these rules weigh more than "a class + a" of a theme */
.ocm a.ocm-btn, .ocm a.ocm-btn:hover, .ocm a.ocm-btn:focus,
a.ocm.ocm-btn, a.ocm.ocm-btn:hover, a.ocm.ocm-btn:focus,
.ocm a.ocm-brand, .ocm a.ocm-brand:hover, .ocm a.ocm-brand:focus { text-decoration: none; }
.ocm a.ocm-btn--link:hover { text-decoration: underline; }
/* The module's own colours (Ui11::attr() prints data-ocm-own with them): the
   owner chose a colour for this module on purpose, so its main and outline
   buttons take it over the theme's .btn-primary. Without data-ocm-own the
   theme's buttons stay as they are. Shape, size and font stay the theme's. */
.ocm[data-ocm-own] .ocm-btn.btn-primary,
.ocm[data-ocm-own].ocm-btn.btn-primary {
  border-color: var(--ocm-accent);
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
}
.ocm[data-ocm-own] .ocm-btn.btn-primary:hover,
.ocm[data-ocm-own] .ocm-btn.btn-primary:focus,
.ocm[data-ocm-own].ocm-btn.btn-primary:hover,
.ocm[data-ocm-own].ocm-btn.btn-primary:focus {
  border-color: var(--ocm-accent-dark);
  background: var(--ocm-accent-dark);
  color: var(--ocm-accent-ink);
}
.ocm[data-ocm-own] .ocm-btn--line.btn-default { border-color: var(--ocm-accent); color: var(--ocm-accent-dark); }
.ocm[data-ocm-own] .ocm-btn--line.btn-default:hover,
.ocm[data-ocm-own] .ocm-btn--line.btn-default:focus { border-color: var(--ocm-accent-dark); background: var(--ocm-accent-tint); color: var(--ocm-accent-dark); }
/* Own block background, theme text: a module whose owner picked its own block
   background keeps the theme's text colours, and on a dark theme a white
   block gets light text (AI chat on Astra dark). The text follows the picked
   background instead: a light background (#c..#f) gets dark text and lines,
   a dark one (#0..#4) light text and lines. */
.ocm[data-ocm-own][style*="--ocm-surface:#c"],
.ocm[data-ocm-own][style*="--ocm-surface: #c"],
.ocm[data-ocm-own][style*="--ocm-surface:#d"],
.ocm[data-ocm-own][style*="--ocm-surface: #d"],
.ocm[data-ocm-own][style*="--ocm-surface:#e"],
.ocm[data-ocm-own][style*="--ocm-surface: #e"],
.ocm[data-ocm-own][style*="--ocm-surface:#f"],
.ocm[data-ocm-own][style*="--ocm-surface: #f"],
.ocm[data-ocm-own][style*="--ocm-surface:#C"],
.ocm[data-ocm-own][style*="--ocm-surface: #C"],
.ocm[data-ocm-own][style*="--ocm-surface:#D"],
.ocm[data-ocm-own][style*="--ocm-surface: #D"],
.ocm[data-ocm-own][style*="--ocm-surface:#E"],
.ocm[data-ocm-own][style*="--ocm-surface: #E"],
.ocm[data-ocm-own][style*="--ocm-surface:#F"],
.ocm[data-ocm-own][style*="--ocm-surface: #F"] {
  --ocm-ink: #222222; --ocm-text: #333333; --ocm-muted: #666666; --ocm-icon: #9a9a9a;
  --ocm-line: #dddddd; --ocm-line-soft: #eeeeee; --ocm-line-strong: #cccccc;
  --ocm-btn: #eeeeee; --ocm-btn-ink: #333333;
  color: var(--ocm-text);
}
.ocm[data-ocm-own][style*="--ocm-surface:#0"],
.ocm[data-ocm-own][style*="--ocm-surface: #0"],
.ocm[data-ocm-own][style*="--ocm-surface:#1"],
.ocm[data-ocm-own][style*="--ocm-surface: #1"],
.ocm[data-ocm-own][style*="--ocm-surface:#2"],
.ocm[data-ocm-own][style*="--ocm-surface: #2"],
.ocm[data-ocm-own][style*="--ocm-surface:#3"],
.ocm[data-ocm-own][style*="--ocm-surface: #3"],
.ocm[data-ocm-own][style*="--ocm-surface:#4"],
.ocm[data-ocm-own][style*="--ocm-surface: #4"] {
  --ocm-ink: #f2f2f2; --ocm-text: #e2e2e2; --ocm-muted: #a6a6a6; --ocm-icon: #7d848b;
  --ocm-line: #3a3f45; --ocm-line-soft: #2e3338; --ocm-line-strong: #4a5057;
  --ocm-btn: #2e3338; --ocm-btn-ink: #e2e2e2;
  color: var(--ocm-text);
}

/* ---------- set: products bought together --------------------------------
   Items in one row with a plus between them, the offer on the right. On a
   narrow screen items become a list and the offer goes under it. */
.ocm-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-set__items {
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding: var(--ocm-gap);
}
.ocm-set__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.ocm-set__item img { display: block; max-width: 100%; height: auto; margin-bottom: 6px; }
.ocm-set__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ocm-ink);
  font-size: max(12px, var(--ocm-fs-sm));
  font-weight: 600;
  line-height: 1.3;
}
.ocm-set__item .ocm-price { justify-content: center; margin-top: 4px; font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-set__plus {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 24px;
  height: 24px;
  margin: 0 6px 40px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font-weight: 700;
  line-height: 1;
}
.ocm-set__offer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--ocm-pad);
  border-left: 1px solid var(--ocm-line);
  background: var(--ocm-subtle);
  border-radius: 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px) 0;
}
.ocm-set__title { margin: 0; color: var(--ocm-ink); font-weight: 700; letter-spacing: -.01em; }
.ocm-set__sub { margin: -4px 0 0; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-set__offer .ocm-btn { margin-top: auto; }
/* The set follows the width of its block, not of the screen: in a product
   column of 480px on a laptop three items in a row squeeze their prices
   into three lines. .ocm-block is a size container; a browser without
   container queries uses the screen width instead. */
@container ocm-block (max-width: 640px) {
  .ocm-set { grid-template-columns: 1fr; }
  .ocm-set__items { flex-direction: column; gap: 0; padding: 0 var(--ocm-gap); }
  .ocm-set__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: var(--ocm-gap);
    padding: 10px 0;
    border-top: 1px solid var(--ocm-line);
    text-align: left;
  }
  .ocm-set__item:first-child { border-top: 0; }
  .ocm-set__item img { width: 56px; margin: 0; }
  .ocm-set__item .ocm-price { flex-direction: column; align-items: flex-end; gap: 0; margin: 0; }
  .ocm-set__plus { display: none; }
  .ocm-set__offer { border-left: 0; border-top: 1px solid var(--ocm-line); border-radius: 0 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px); }
}
@supports not (container-type: inline-size) {
  @media (max-width: 767px) {
  .ocm-set { grid-template-columns: 1fr; }
  .ocm-set__items { flex-direction: column; gap: 0; padding: 0 var(--ocm-gap); }
  .ocm-set__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: var(--ocm-gap);
    padding: 10px 0;
    border-top: 1px solid var(--ocm-line);
    text-align: left;
  }
  .ocm-set__item:first-child { border-top: 0; }
  .ocm-set__item img { width: 56px; margin: 0; }
  .ocm-set__item .ocm-price { flex-direction: column; align-items: flex-end; gap: 0; margin: 0; }
  .ocm-set__plus { display: none; }
  .ocm-set__offer { border-left: 0; border-top: 1px solid var(--ocm-line); border-radius: 0 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px); }
}
}

/* ---------- stars and score ---------------------------------------------- */
.ocm-stars { display: inline-flex; gap: 1px; color: var(--ocm-star); line-height: 1; vertical-align: middle; }
.ocm-stars .ocm-icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.ocm-stars .ocm-icon--off { fill: var(--ocm-line-strong); }
.ocm-score { display: inline-flex; align-items: center; gap: 8px; }
.ocm-score__value { color: var(--ocm-ink); font-size: 1.43em; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ocm-score__count { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
/* the corner badge: one per page, bottom right, clear of the theme's
   "to top" button */
.ocm-score--corner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  padding: 6px 12px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: inherit;
  text-decoration: none;
}

/* ---------- review: one card for product reviews, store reviews, Google -- */
.ocm-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--ocm-gap);
  margin: 0 0 var(--ocm-gap);
}
.ocm-reviews--list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--ocm-line); border-radius: var(--ocm-r); }
.ocm-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: var(--ocm-pad);
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-reviews--list > .ocm-review { border: 0; border-top: 1px solid var(--ocm-line); border-radius: 0; }
.ocm-reviews--list > .ocm-review:first-child { border-top: 0; }
.ocm-review__top { display: flex; align-items: center; gap: 8px; }
.ocm-review__date { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
.ocm-review__text { margin: 0; color: var(--ocm-ink); font-size: 1.07em; line-height: 1.5; overflow-wrap: anywhere; }
.ocm-review .ocm-stars { gap: 2px; }
.ocm-review .ocm-stars .ocm-icon { width: 21px; height: 21px; }
.ocm-review .ocm-stars .ocm-icon--off { fill: var(--ocm-line); }
.ocm-reviews:not(.ocm-reviews--list) .ocm-review__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}
.ocm-review__author { display: flex; align-items: center; gap: 8px; margin-top: auto; min-width: 0; }
.ocm-review__avatar {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ocm-warn-tint);
  border-radius: 50%;
  background: var(--ocm-warn-tint);
  color: var(--ocm-ink);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.ocm-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ocm-review__name { color: var(--ocm-ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocm-review__meta { color: var(--ocm-good); font-size: 12px; font-weight: 600; }
.ocm-review__source { margin-left: auto; color: var(--ocm-muted); }
.ocm-review__product {
  display: flex;
  align-items: center;
  gap: var(--ocm-gap);
  margin: 4px calc(var(--ocm-pad) * -1) calc(var(--ocm-pad) * -1);
  padding: var(--ocm-gap) var(--ocm-pad);
  border-top: 1px solid var(--ocm-line);
  color: var(--ocm-ink);
  text-decoration: none;
}
.ocm-review__product:hover { color: var(--ocm-link); }
.ocm-review__product img { width: 40px; height: 40px; object-fit: contain; }
.ocm-review__media { display: flex; flex-wrap: wrap; gap: 6px; }
.ocm-review__media img { width: 64px; height: 64px; border: 1px solid var(--ocm-line); border-radius: var(--ocm-r-sm); object-fit: cover; }
.ocm-review__reply { margin: 0; padding: 10px 12px; border: 1px solid var(--ocm-subtle); border-radius: var(--ocm-r); background: var(--ocm-subtle); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-review__actions { display: flex; align-items: center; gap: 12px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-review__vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: var(--ocm-r-sm);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ocm-review__vote:hover { background: var(--ocm-subtle); color: var(--ocm-ink); }
.ocm-review__vote.is-on { color: var(--ocm-accent-dark); }

/* ---------- accordion: FAQ and long conditions, native <details> ---------- */
.ocm-acc { margin: 0 0 var(--ocm-gap); border: 1px solid var(--ocm-line); border-radius: var(--ocm-r); background: var(--ocm-surface); }
.ocm-acc__item + .ocm-acc__item { border-top: 1px solid var(--ocm-line); }
.ocm-acc__q {
  display: flex;
  align-items: center;
  gap: var(--ocm-gap);
  padding: calc(var(--ocm-pad) - 2px) var(--ocm-pad);
  color: var(--ocm-ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.ocm-acc__q::-webkit-details-marker { display: none; }
.ocm-acc__q:after {
  content: "+";
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  color: var(--ocm-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ocm-acc__q:hover:after { border-color: var(--ocm-ink); }
.ocm-acc__item[open] > .ocm-acc__q:after { content: "\2212"; border-color: var(--ocm-ink); }
.ocm-acc__a { padding: 0 var(--ocm-pad) var(--ocm-pad); color: var(--ocm-text); }
.ocm-acc__a > :last-child { margin-bottom: 0; }

/* ---------- list: files, documents, links -------------------------------- */
.ocm-list { margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; border: 1px solid var(--ocm-line); border-radius: var(--ocm-r); }
.ocm-list__row {
  display: flex;
  align-items: center;
  gap: var(--ocm-gap);
  padding: 12px var(--ocm-pad);
  border-top: 1px solid var(--ocm-line);
}
.ocm-list__row:first-child { border-top: 0; }
.ocm-list__main { min-width: 0; }
.ocm-list__name { color: var(--ocm-ink); font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.ocm-list__sub { display: block; color: var(--ocm-muted); font-size: 12px; }
.ocm-list__end { margin-left: auto; white-space: nowrap; }
.ocm-list__icon { width: 36px; height: 36px; padding: 8px; border-radius: var(--ocm-r); background: var(--ocm-accent-tint); color: var(--ocm-accent); }

/* ---------- form: fields and the one-line form (subscribe, coupon) ------- */
.ocm-field { margin: 0 0 var(--ocm-gap); }
:where(.ocm-field__label) { display: block; margin-bottom: 6px; color: var(--ocm-ink); font-size: 14px; font-weight: 600; }
:where(.ocm-input) {
  display: block;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font: inherit;
}
/* 1.4: the field of the canvas in every module - 42px, 15px; a text area
   grows with its rows */
.ocm-input { height: 42px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: 15px; line-height: 1.45; }
textarea.ocm-input { height: auto; min-height: 84px; padding-top: 10px; padding-bottom: 10px; border-radius: var(--ocm-r-sm); resize: vertical; }
select.ocm-input[multiple], select.ocm-input[size] { height: auto; }
:where(.ocm-input:focus) { border-color: var(--ocm-accent); outline: 2px solid var(--ocm-accent); outline-offset: 0; }
:where(.ocm-field__hint) { margin-top: 6px; color: var(--ocm-muted); font-size: 13px; }
:where(.ocm-field--error .ocm-input) { border-color: var(--ocm-bad); }
:where(.ocm-field--error .ocm-field__hint) { color: var(--ocm-bad); }
/* 1.3: the own look of a field without .form-control, .control-label and
   .help-block, with the weight of a class: input{} and label{} of a theme
   (colour, padding and corner in Bootstrap 5 and in hand-made themes, 12px
   in the default theme of OpenCart) do not reach it. A rule of a theme that
   names the type - input[type="text"] - is heavier and still wins: such a
   theme draws every field of the shop itself. The background is set by its
   colour alone, so the arrow a theme paints on select stays. */
.ocm-field__label:where(:not(.control-label)) { display: block; margin: 0 0 6px; color: var(--ocm-ink); font-size: 14px; font-weight: 600; }
.ocm-input:where(:not(.form-control)) {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background-color: var(--ocm-surface);
  color: var(--ocm-text);
  font-family: inherit;
  font-size: 15px;
}
textarea.ocm-input:where(:not(.form-control)) { padding: 10px 12px; border-radius: var(--ocm-r-sm); }
.ocm-input:where(:not(.form-control))::placeholder { color: var(--ocm-muted); opacity: 1; }
.ocm-input:where(:not(.form-control)):focus { border-color: var(--ocm-accent); outline: 2px solid var(--ocm-accent); outline-offset: 0; }
.ocm-input:where(:not(.form-control))[disabled] { background-color: var(--ocm-subtle); color: var(--ocm-muted); cursor: default; }
.ocm-field__hint:where(:not(.help-block)) { margin: 6px 0 0; color: var(--ocm-muted); font-size: 13px; }
.ocm-field--error .ocm-input:where(:not(.form-control)) { border-color: var(--ocm-bad); }
.ocm-field--error .ocm-field__hint:where(:not(.help-block)) { color: var(--ocm-bad); }
.ocm-inline { display: flex; gap: 8px; }
.ocm-inline > .ocm-input { flex: 1 1 auto; min-width: 0; }
.ocm-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.ocm-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ocm-accent); }

/* ---------- coupon: a code to copy --------------------------------------- */
.ocm-coupon {
  display: flex;
  align-items: center;
  gap: var(--ocm-gap);
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--ocm-accent-tint);
  border-radius: var(--ocm-r);
  background: var(--ocm-accent-tint);
}
.ocm-coupon__code {
  display: block;
  margin-top: 2px;
  color: var(--ocm-accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.29em;
  font-weight: 700;
  letter-spacing: .12em;
}
.ocm-coupon .ocm-btn { margin-left: auto; }

/* ---------- bar: one line across the top of the page -------------------- */
.ocm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px var(--ocm-gap);
  padding: 8px 44px 8px 16px;
  position: relative;
  border-bottom: 1px solid var(--ocm-line);
  background: var(--ocm-accent-tint);
  color: var(--ocm-ink);
  font-size: max(12px, var(--ocm-fs-sm));
  text-align: center;
}
.ocm-bar .ocm-btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* ---------- close button: one look for bar, dialog and toast ------------- */
.ocm-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  border: 0;
  border-radius: var(--ocm-r-ctl);
  background: none;
  color: var(--ocm-muted);
  font: inherit;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}
.ocm-close:hover { background: var(--ocm-subtle); color: var(--ocm-ink); }
.ocm-close:focus { outline: 0; }
.ocm-close:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 0; }

/* ---------- dialog: age check, terms, cookies -----------------------------
   Native <dialog> opened by OcmUI.dialog(): one dialog at a time, the next
   waits in a queue. The backdrop is a translucent dark veil: the shop stays visible behind the window. */
.ocm-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-text);
}
/* 1.4: the dialog takes the focus itself when it opens (tabindex="-1"):
   no ring and no dark first button until the buyer uses the keyboard */
.ocm-dialog:focus { outline: 0; }
.ocm-dialog::backdrop { background: var(--ocm-backdrop, rgba(0, 0, 0, .5)); }
.ocm-dialog--hard::backdrop { background: var(--ocm-backdrop, rgba(0, 0, 0, .75)); }
.ocm-dialog__head { position: relative; padding: 16px 52px 14px 20px; border-bottom: 1px solid var(--ocm-line); }
.ocm-dialog__title { margin: 0; color: var(--ocm-ink); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.ocm-dialog__head .ocm-close { top: 50%; margin-top: -17px; }
.ocm-dialog__body { padding: 20px; }
.ocm-dialog__body > :last-child { margin-bottom: 0; }
.ocm-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--ocm-line);
  background: var(--ocm-subtle);
  border-radius: 0 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px);
}
/* an open dialog keeps the page under it still (OcmUI puts the class on <html>) */
.ocm-locked,
.ocm-locked body { overflow: hidden; }
.ocm-dialog__big { margin: 0 0 10px; color: var(--ocm-ink); font-size: 3.14em; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ocm-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- toast: result of an action, bottom left ---------------------- */
.ocm-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
}
.ocm-toast--good { border-color: var(--ocm-good); }
.ocm-toast--bad  { border-color: var(--ocm-bad); }

/* ---------- empty: nothing here yet -------------------------------------- */
.ocm-empty { padding: calc(var(--ocm-gap) * 2) var(--ocm-gap); color: var(--ocm-muted); text-align: center; }
.ocm-empty .ocm-btn { margin-top: var(--ocm-gap); }

/* ---------- table: order lines, levels, history --------------------------
   1.4: the table of the canvas - a 13px grey head without capitals, rows
   apart by a soft line, figures in tabular digits. The wrapper only scrolls
   a wide table; the box around it is the block's. */
.ocm-table-wrap { overflow-x: auto; margin: 0 0 var(--ocm-gap); }
:where(.ocm-table) { width: 100%; border-collapse: collapse; font-size: 14px; }
:where(.ocm-table th) {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ocm-line);
  color: var(--ocm-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
:where(.ocm-table td) { padding: 10px 12px; border-bottom: 1px solid var(--ocm-line-soft); vertical-align: middle; }
/* the own look of a table without .table: Bootstrap 5 takes the borders of
   every th and td away, Bootstrap 3 their padding; with the tag in the
   selector these rules outweigh both */
.ocm-table:where(:not(.table)) { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0; background: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.ocm-table:where(:not(.table)) th {
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--ocm-line);
  background: none;
  color: var(--ocm-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.ocm-table:where(:not(.table)) td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--ocm-line-soft); color: var(--ocm-text); vertical-align: middle; }
.ocm-table:where(:not(.table)) tr:last-child td { border-bottom: 0; }
.ocm-table .ocm-num, .ocm-table .is-num { text-align: right; white-space: nowrap; }
.ocm-table tr.is-current td,
.ocm-table tr.on td { background: var(--ocm-accent-tint); color: var(--ocm-ink); font-weight: 700; }

/* ---------- 1.4: size - the size grid of the canvas -----------------------
   Every cell centred and ruled, the head on the grey fill, the buyer's row
   tinted and bold. The units are a segment of two small buttons above it.
     <div class="ocm-seg" data-ocm-press>
       <button type="button" class="ocm-btn ocm-btn--soft ocm-btn--sm" aria-pressed="true">cm</button>
       <button type="button" class="ocm-btn ocm-btn--soft ocm-btn--sm" aria-pressed="false">in</button></div>
     <div class="ocm-table-wrap"><table class="ocm-size">...<tr class="on">...</table></div> */
.ocm-size { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0; background: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.ocm-size th,
.ocm-size td { padding: 8px 10px; border: 1px solid var(--ocm-line); color: var(--ocm-text); font-size: 14px; text-align: center; vertical-align: middle; white-space: nowrap; }
.ocm-size th { background: var(--ocm-subtle); color: var(--ocm-ink); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ocm-size tbody th { background: var(--ocm-surface); color: var(--ocm-ink); font-weight: 600; }
.ocm-size tr.on > *,
.ocm-size tr.is-current > * { background: var(--ocm-accent-tint); color: var(--ocm-ink); font-weight: 700; }
.ocm-size tr.is-near > * { background: var(--ocm-warn-tint); color: var(--ocm-ink); }
.ocm-table-wrap > .ocm-size { min-width: max-content; }

/* ---------- social: sign in with a provider ------------------------------ */
.ocm-social { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ocm-social .ocm-btn { justify-content: flex-start; }
.ocm-social .ocm-icon { width: 20px; height: 20px; stroke: none; }

/* ---------- points: two to four short benefits with an icon each ------- */
.ocm-points { margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; }
.ocm-points > li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.ocm-points .ocm-icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ocm-accent-tint); color: var(--ocm-accent); }

/* ===========================================================================
   New in 1.2: components for every case of a shop
   =========================================================================== */

/* ---------- link button: "Reply", "Helpful", "All reviews" ----------------
   A text action that is a button or a link of its own (not a link inside a
   sentence): at least 24px to hit, 32px on a touch screen. */
:where(.ocm-link) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ocm-link);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
:where(.ocm-link:hover,
.ocm-link:focus) { color: var(--ocm-link); text-decoration: underline; }
.ocm-link:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
/* a button inherits the colour of its row and a link takes a:hover of the theme: both stay the link colour */
.ocm-link,
.ocm-link:hover,
.ocm-link:focus { color: var(--ocm-link); }
.ocm-link { font-weight: 600; }
/* 1.3: the own look with the weight of a class. An action link is a control
   of the library, not a link in a sentence: a{} of a theme that underlines
   its links and button{} of a theme that paints every button do not reach it */
.ocm-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.ocm-link:hover,
.ocm-link:focus { background: none; text-decoration: underline; }
.ocm-link .ocm-icon { width: 16px; height: 16px; }
.ocm-block__aside a,
.ocm-block__aside .ocm-link { display: inline-flex; align-items: center; min-height: 24px; }
/* links of their own in the 1.1 rows reach 24px too */
a.ocm-list__name,
.ocm-note__link { display: inline-flex; align-items: center; min-height: 24px; }

/* secondary text on a tinted fill: --ocm-muted keeps 4.5:1 only on white and
   on --ocm-subtle, on the accent or good tint it is --ocm-text */
.ocm-coupon .ocm-list__sub,
.ocm-bar .ocm-close { color: var(--ocm-text); }
.ocm-bar .ocm-close:hover { color: var(--ocm-ink); }

/* ---------- brands: messengers, social networks, shops, sign-in ----------
   One item for share, contact, follow and sign-in rows. Ui12::share(),
   links() and pay() print the logo and the brand colours:
     <a class="ocm-brand ocm-brand--telegram ocm-brand--round" href="..."
        style="--ocm-brand:#26a5e4;--ocm-brand-ink:#111111">
       <svg class="ocm-brand__logo">...</svg>
       <span class="ocm-brand__name">Telegram</span></a>
   The row picks the look, the owner chooses it on the module's settings:
     ocm-brands          the logo in its colour on a plain button;
     ocm-brands--disc    the logo on a disc of the brand colour;
     ocm-brands--mono    the logo in the text colour, its own colour on hover;
     ocm-brands--fill    the button in the brand colour, the text white while
                         the colour keeps 3:1 against white, dark otherwise;
     ocm-brands--icons   logos only, the name stays for screen readers.
   A contact channel without a brand colour (phone, e-mail) takes the accent. */
.ocm-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* a:focus of Bootstrap draws its own ring and a button resets the weight and the line height */
.ocm-brand { position: relative; font-weight: 600; line-height: 1.25; }
:where(.ocm-brand) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
:where(.ocm-brand:hover,
.ocm-brand:focus) { border-color: var(--ocm-brand-mark, var(--ocm-brand, var(--ocm-ink))); }
/* 1.3: the own look with the weight of a class. a{} of Bootstrap 3 makes the
   background of every link transparent, button{} of Bootstrap 5 squares the
   corner: neither reaches the item now */
.ocm-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.ocm-brand:hover,
.ocm-brand:focus { border-color: var(--ocm-brand-mark, var(--ocm-brand, var(--ocm-ink))); background: var(--ocm-surface); }
.ocm-brand:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
/* the item is usually a link: a and a:hover of the theme do not recolour it */
.ocm-brand,
.ocm-brand:hover,
.ocm-brand:focus { color: var(--ocm-ink); text-decoration: none; }
.ocm-brand__logo { flex: 0 0 auto; width: 20px; height: 20px; fill: var(--ocm-brand-mark, var(--ocm-brand, currentColor)); }
.ocm-brand__logo.ocm-icon { fill: none; stroke: var(--ocm-brand-mark, var(--ocm-brand, currentColor)); }
.ocm-brand > .ocm-icon { width: 20px; height: 20px; }
.ocm-brand__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* two lines - the channel and the value: <span class="ocm-brand__text">name, value</span> */
.ocm-brand__text { display: block; min-width: 0; }
.ocm-brand__text > .ocm-brand__name { display: block; }
.ocm-brand__value { display: block; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }

.ocm-brands--disc .ocm-brand { padding-left: 5px; }
.ocm-brands--disc .ocm-brand__logo { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ocm-brand); fill: var(--ocm-brand-logo, #ffffff); }
.ocm-brands--disc .ocm-brand__logo.ocm-icon { fill: none; stroke: var(--ocm-brand-logo, #ffffff); }
.ocm-brands--disc .ocm-brand--plain .ocm-brand__logo { background: var(--ocm-accent-tint); stroke: var(--ocm-accent-dark); }
.ocm-brands--disc .ocm-brand--round .ocm-brand__logo { padding: 0; background: none; fill: var(--ocm-brand-mark, var(--ocm-brand)); }

.ocm-brands--mono .ocm-brand__logo { fill: currentColor; }
.ocm-brands--mono .ocm-brand__logo.ocm-icon { fill: none; stroke: currentColor; }
.ocm-brands--mono .ocm-brand:hover .ocm-brand__logo { fill: var(--ocm-brand-mark, var(--ocm-brand, currentColor)); }
.ocm-brands--mono .ocm-brand:hover .ocm-brand__logo.ocm-icon { fill: none; stroke: var(--ocm-brand-mark, var(--ocm-brand, currentColor)); }

.ocm-brands--fill .ocm-brand { border-color: var(--ocm-brand, var(--ocm-accent)); background: var(--ocm-brand, var(--ocm-accent)); color: var(--ocm-brand-ink, var(--ocm-accent-ink)); }
.ocm-brands--fill .ocm-brand:hover,
.ocm-brands--fill .ocm-brand:focus { border-color: var(--ocm-ink); color: var(--ocm-brand-ink, var(--ocm-accent-ink)); }
.ocm-brands--fill .ocm-brand__logo { fill: currentColor; }
.ocm-brands--fill .ocm-brand__logo.ocm-icon { fill: none; stroke: currentColor; }
.ocm-brands--fill .ocm-brand__value { color: inherit; }

.ocm-brands--icons .ocm-brand { justify-content: center; width: 40px; height: 40px; min-height: 0; padding: 0; }
.ocm-brands--icons .ocm-brand__name,
.ocm-brands--icons .ocm-brand__value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ocm-brands--icons.ocm-brands--disc .ocm-brand { border: 0; border-radius: 50%; background: none; }
.ocm-brands--icons.ocm-brands--disc .ocm-brand:hover { outline: 2px solid var(--ocm-line-strong); outline-offset: 2px; }
.ocm-brands--icons.ocm-brands--disc .ocm-brand:focus-visible { outline-color: var(--ocm-accent-dark); }
.ocm-brands--icons.ocm-brands--disc .ocm-brand__logo { width: 40px; height: 40px; padding: 10px; }
.ocm-brands--icons.ocm-brands--disc .ocm-brand--round .ocm-brand__logo { padding: 0; }

/* share: the networks, "Copy link" and the phone's own share menu
   (button[data-ocm-share], shown by the script only where the phone has one) */
.ocm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--ocm-gap); margin: 0 0 var(--ocm-gap); }
.ocm-share__title { color: var(--ocm-ink); font-weight: 700; }
/* contacts: "Write to us" - the logo, the channel and the value under it */
.ocm-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; }
.ocm-contacts .ocm-brand { display: flex; width: 100%; min-height: 52px; white-space: normal; }
.ocm-contacts .ocm-brand__name { display: block; }
.ocm-contacts .ocm-brand__value { overflow-wrap: anywhere; }
/* follow: "We are on social networks" - a row of logos */
.ocm-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--ocm-gap); margin: 0 0 var(--ocm-gap); }
.ocm-follow__title { color: var(--ocm-ink); font-weight: 700; }
/* sign in with a provider: the 1.1 grid takes brand buttons */
.ocm-social .ocm-brand { justify-content: center; min-height: 40px; }

/* ---------- payment marks: the cards and wallets the shop takes ---------- */
.ocm-pay { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ocm-pay__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 34px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-surface);
  overflow: hidden;
}
.ocm-pay__mark .ocm-brand__logo { width: 32px; height: 32px; }
.ocm-pay--mono .ocm-pay__mark .ocm-brand__logo { fill: var(--ocm-muted); }
.ocm-pay--sm .ocm-pay__mark { width: 42px; height: 28px; }
.ocm-pay--sm .ocm-pay__mark .ocm-brand__logo { width: 26px; height: 26px; }

/* ---------- distribution: how many reviews each star got ---------------- */
.ocm-dist { margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; }
.ocm-dist__row {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) 3em;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ocm-text);
  font: inherit;
  font-size: max(12px, var(--ocm-fs-sm));
  text-align: left;
  text-decoration: none;
}
.ocm-dist--filter .ocm-dist__row { cursor: pointer; }
.ocm-dist--filter .ocm-dist__row:hover { color: var(--ocm-ink); text-decoration: none; }
.ocm-dist__row.is-on { color: var(--ocm-ink); font-weight: 700; }
.ocm-dist__label { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ocm-dist__label .ocm-icon { width: 13px; height: 13px; fill: var(--ocm-star); stroke: none; }
.ocm-dist__bar { display: block; height: 8px; border-radius: 4px; background: var(--ocm-progress-track); overflow: hidden; }
.ocm-dist__fill { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--ocm-star); }
.ocm-dist__count { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- rate: stars over the five radio buttons of a review form -----
   Radios 1..5 in order, each followed by its label with a star icon; the
   arrows of the keyboard move as the stars do. */
.ocm-rate { min-width: 0; margin: 0 0 var(--ocm-gap); padding: 0; border: 0; }
.ocm-rate__stars { position: relative; display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.ocm-rate__input { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ocm-rate__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  color: var(--ocm-muted);
  cursor: pointer;
}
.ocm-rate__star .ocm-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.ocm-rate__input:checked + .ocm-rate__star { color: var(--ocm-star); }
.ocm-rate__input:checked + .ocm-rate__star .ocm-icon { fill: currentColor; }
.ocm-rate__star:has(~ .ocm-rate__input:checked) { color: var(--ocm-star); }
.ocm-rate__star:has(~ .ocm-rate__input:checked) .ocm-icon { fill: currentColor; }
.ocm-rate__stars:hover .ocm-rate__star { color: var(--ocm-muted); }
.ocm-rate__stars:hover .ocm-rate__star .ocm-icon { fill: none; }
.ocm-rate__stars:hover .ocm-rate__star:hover { color: var(--ocm-star); }
.ocm-rate__stars:hover .ocm-rate__star:hover .ocm-icon { fill: currentColor; }
.ocm-rate__stars:hover .ocm-rate__star:has(~ .ocm-rate__star:hover) { color: var(--ocm-star); }
.ocm-rate__stars:hover .ocm-rate__star:has(~ .ocm-rate__star:hover) .ocm-icon { fill: currentColor; }
.ocm-rate__input:focus-visible + .ocm-rate__star { outline: 2px solid var(--ocm-accent); outline-offset: -2px; border-radius: var(--ocm-r-sm); }
.ocm-rate__note { margin-left: 8px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }

/* ---------- pros and cons of a review ------------------------------------ */
.ocm-pm { display: grid; gap: 8px; margin: 0; }
.ocm-pm__row { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; }
.ocm-pm__row:before {
  content: "+";
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ocm-good-tint);
  color: var(--ocm-good);
  font-weight: 700;
  line-height: 1;
}
.ocm-pm__row--minus:before { content: "\2212"; background: var(--ocm-bad-tint); color: var(--ocm-bad); }
.ocm-pm__label { grid-column: 2; margin: 0; color: var(--ocm-ink); font-weight: 700; }
.ocm-pm__text { grid-column: 2; margin: 0; color: var(--ocm-text); overflow-wrap: anywhere; }

/* ---------- thread: answers and comments under a review or a question ---
   Answers go one step in, on a light panel; no line on the left edge. */
.ocm-thread { margin: 0; padding: 0; list-style: none; }
.ocm-thread .ocm-thread { margin: var(--ocm-gap) 0 0 44px; }
.ocm-post { display: grid; gap: 6px; padding: var(--ocm-gap) 0; border-top: 1px solid var(--ocm-line); }
.ocm-thread > .ocm-post:first-child { padding-top: 0; border-top: 0; }
.ocm-thread .ocm-thread > .ocm-post { padding: 10px 12px; border: 0; border-radius: var(--ocm-r); background: var(--ocm-subtle); }
.ocm-thread .ocm-thread > .ocm-post + .ocm-post { margin-top: 8px; }
.ocm-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ocm-post__head .ocm-review__avatar { flex-basis: 28px; width: 28px; height: 28px; }
.ocm-post__name { color: var(--ocm-ink); font-weight: 700; }
.ocm-post__date { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
.ocm-post__text { margin: 0; color: var(--ocm-ink); overflow-wrap: anywhere; }
.ocm-post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
@container ocm-block (max-width: 480px) {
  .ocm-thread .ocm-thread { margin-left: 12px; }
}

/* ---------- media: photos and videos of a review ------------------------- */
.ocm-media { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ocm-media__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ocm-media, 72px);
  height: var(--ocm-media, 72px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-subtle);
  color: var(--ocm-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}
.ocm-media__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocm-media__item:hover { color: var(--ocm-ink); text-decoration: none; }
.ocm-media__item:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
}
.ocm-media__play .ocm-icon { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.ocm-media--lg { --ocm-media: 96px; }

/* ---------- upload: attach photos or a file ------------------------------ */
.ocm-upload { margin: 0 0 var(--ocm-gap); }
.ocm-upload__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font-weight: 600;
  cursor: pointer;
}
.ocm-upload__drop .ocm-icon { width: 22px; height: 22px; color: var(--ocm-accent); }
.ocm-upload__drop:hover,
.ocm-upload.is-over .ocm-upload__drop { border-color: var(--ocm-accent); background: var(--ocm-subtle); }
.ocm-upload__drop:focus-within { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-upload__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ocm-upload__hint { display: block; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); font-weight: 400; }
.ocm-upload__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.ocm-upload__list:empty { display: none; }
.ocm-upload__file { position: relative; display: flex; flex-direction: column; width: 72px; color: var(--ocm-muted); font-size: 12px; }
.ocm-upload__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-subtle);
  color: var(--ocm-muted);
  object-fit: cover;
}
.ocm-upload__name { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocm-upload__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ocm-upload__remove:hover { border-color: var(--ocm-ink); }

/* ---------- carousel: a row that scrolls, with arrows --------------------
   No library: the track scrolls by itself (scroll-snap) and the arrows of
   ocmod-ui-1.2.js move it by a screen and switch off at the ends. The block
   root carries ocm-carousel, the arrows sit in its head; --ocm-per items
   show at once, never narrower than 200px. */
.ocm-carousel { --ocm-per: 3; }
.ocm-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, max(200px, calc((100% - (var(--ocm-per) - 1) * var(--ocm-gap)) / var(--ocm-per))));
  gap: var(--ocm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ocm-carousel__track::-webkit-scrollbar { display: none; }
.ocm-carousel__track > * { min-width: 0; scroll-snap-align: start; }
.ocm-carousel__track:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-carousel__nav { display: flex; gap: 6px; margin-left: auto; }
/* 1.4: an arrow is the small outline icon button of the canvas - 34px,
   the grey line, the accent line and colour on hover, the soft grey fill
   at the end of the row. Its place is the head row of the block, after
   "All ..." (.ocm-section__act or .ocm-block__head), in every module. */
.ocm-carousel__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ocm-carousel__btn:hover { border-color: var(--ocm-accent); background: var(--ocm-surface); color: var(--ocm-accent); }
.ocm-carousel__btn:focus { outline: 0; }
.ocm-carousel__btn:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-carousel__btn[disabled],
.ocm-carousel__btn[disabled]:hover { border-color: var(--ocm-line-soft); background: var(--ocm-line-soft); color: var(--ocm-muted); cursor: default; }
.ocm-carousel__nav { gap: 8px; }
.ocm-carousel--static .ocm-carousel__nav { display: none; }

/* ---------- sort: up to four orders as segments, more - a select --------- */
.ocm-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--ocm-gap); }
.ocm-sort__label { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
.ocm-sort .ocm-input { width: auto; }
/* 1.4: a segment is the row of separate buttons of the canvas, 4px apart:
   the chosen item is the accent fill, the others the soft grey fill. The
   items of 1.3 (.ocm-seg__item, links of the core sorts too) and buttons
   .ocm-btn inside .ocm-seg look the same; small (34px) by default, the
   modifier .ocm-seg--md makes them 40px. */
.ocm-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.ocm-seg::-webkit-scrollbar { display: none; }
.ocm-seg > * { flex: 0 0 auto; }
.ocm-seg__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ocm-btn);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-btn);
  color: var(--ocm-btn-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
/* the sorts of OpenCart are links: a and a:hover of the theme do not recolour them */
.ocm-seg__item:hover,
.ocm-seg__item:focus { border-color: var(--ocm-accent); background: var(--ocm-btn); color: var(--ocm-btn-ink); text-decoration: none; }
.ocm-seg__item:focus { outline: 0; }
.ocm-seg__item:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-seg__item.is-on,
.ocm-seg__item[aria-current="true"],
.ocm-seg__item[aria-current="page"],
.ocm-seg__item[aria-pressed="true"],
.ocm-seg__item[aria-selected="true"],
.ocm-seg__item.is-on:hover,
.ocm-seg__item[aria-current="true"]:hover,
.ocm-seg__item[aria-pressed="true"]:hover,
.ocm-seg__item[aria-selected="true"]:hover { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); font-weight: 700; }
.ocm-seg__item > .ocm-icon { width: 16px; height: 16px; }
.ocm-seg--md > .ocm-seg__item { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- 1.4: tabs - the product tabs of the canvas --------------------
   A row of 44px tabs over a line; the open tab has the 3px accent line and
   the heading colour. For tabs of content (description, reviews,
   delivery); a switch of product lists is .ocm-seg.
     <div class="ocm-tabs" role="tablist">
       <button type="button" class="ocm-tab" role="tab" aria-selected="true">Description</button>
       <button type="button" class="ocm-tab" role="tab" aria-selected="false">Reviews <span class="ocm-tab__n">24</span></button></div> */
.ocm-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 1px solid var(--ocm-line);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.ocm-tabs::-webkit-scrollbar { display: none; }
.ocm-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin: 0 0 -1px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ocm-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.ocm-tab:hover,
.ocm-tab:focus { background: none; color: var(--ocm-accent); text-decoration: none; }
.ocm-tab:focus { outline: 0; }
.ocm-tab:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: -2px; }
.ocm-tab.is-on,
.ocm-tab[aria-selected="true"],
.ocm-tab[aria-current="page"] { border-bottom-color: var(--ocm-accent); color: var(--ocm-ink); font-weight: 700; }
.ocm-tab__n { color: var(--ocm-muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- pages: the core pagination and "Showing 1 to 10 of 52" ------- */
.ocm-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--ocm-gap); margin: var(--ocm-gap) 0 0; }
.ocm-pages .pagination { margin: 0; }
.ocm-pages__info { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
/* a theme without Bootstrap: the core pagination as a row of 32px cells;
   zero weight, so Bootstrap and the theme's own pagination win */
:where(.ocm-pages .pagination) { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; list-style: none; }
:where(.ocm-pages .pagination > li > a,
.ocm-pages .pagination > li > span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  color: var(--ocm-text);
  font-size: 15px;
  text-decoration: none;
}
:where(.ocm-pages .pagination > .active > a,
.ocm-pages .pagination > .active > span) { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); }

/* 1.3: the core pagination drawn by the library in any theme. OpenCart
   prints <ul class="pagination"> itself, so its classes cannot be dropped:
   the wrapper says who draws it. Plain .ocm-pages leaves the pages to the
   theme, as in 1.2; .ocm-pages--cells makes them a row of cells whatever
   the theme does with .pagination - Bootstrap 5 styles .page-link, which
   the core does not print, and leaves bare links. */
.ocm-pages--cells .pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; border-radius: 0; list-style: none; }
.ocm-pages--cells .pagination > li { display: block; float: none; margin: 0; padding: 0; line-height: inherit; }
.ocm-pages--cells .pagination > li > a,
.ocm-pages--cells .pagination > li > span {
  position: static;
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.ocm-pages--cells .pagination > li > a:hover,
.ocm-pages--cells .pagination > li > a:focus { border-color: var(--ocm-accent); background: var(--ocm-surface); color: var(--ocm-accent); text-decoration: none; }
.ocm-pages--cells .pagination > .active > a,
.ocm-pages--cells .pagination > .active > span,
.ocm-pages--cells .pagination > .active > a:hover,
.ocm-pages--cells .pagination > .active > a:focus,
.ocm-pages--cells .pagination > .active > span:hover { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); font-weight: 700; cursor: default; }

/* 1.4: a page cell of a module's own list (reviews, questions, blog) -
   the cell of the canvas, the same as .ocm-pages--cells */
.ocm-pg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.ocm-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
}
.ocm-pg:hover,
.ocm-pg:focus { border-color: var(--ocm-accent); background: var(--ocm-surface); color: var(--ocm-accent); text-decoration: none; }
.ocm-pg:focus { outline: 0; }
.ocm-pg:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-pg--on,
.ocm-pg[aria-current="page"],
.ocm-pg--on:hover { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); font-weight: 700; cursor: default; }

/* ---------- more: "Show more" and "Show less" ----------------------------
   A long text is cut to --ocm-lines lines, a list hides .ocm-more__extra.
   The script hides the button when the text fits. */
.ocm-more { --ocm-lines: 4; }
.ocm-more:not(.is-open) .ocm-more__body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: var(--ocm-lines);
  -webkit-box-orient: vertical;
}
.ocm-more:not(.is-open) .ocm-more__extra { display: none; }
.ocm-more__toggle { margin-top: 4px; }
.ocm-more.is-open .ocm-more__toggle .ocm-icon { transform: rotate(180deg); }

/* ---------- items: order lines - photo, name, options, quantity, price --- */
.ocm-items { container: ocm-items / inline-size; margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; }
.ocm-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px var(--ocm-gap);
  padding: 10px 0;
  border-top: 1px solid var(--ocm-line);
}
.ocm-item:first-child { padding-top: 0; border-top: 0; }
.ocm-item__img { display: block; width: 56px; height: 56px; border: 1px solid var(--ocm-line); border-radius: var(--ocm-r-sm); background: var(--ocm-surface); overflow: hidden; }
.ocm-item__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ocm-item__main { min-width: 0; }
.ocm-item__name { display: block; color: var(--ocm-ink); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
a.ocm-item__name { display: flex; align-items: center; min-height: 24px; }
.ocm-item__name[href]:hover { color: var(--ocm-link); }
.ocm-item__opts { display: block; margin-top: 2px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-item__qty { color: var(--ocm-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocm-item__price { color: var(--ocm-ink); font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocm-item__price .ocm-price__old { display: block; font-size: max(12px, var(--ocm-fs-sm)); font-weight: 400; }
@container ocm-items (max-width: 400px) {
  .ocm-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ocm-item__img { grid-row: span 2; width: 48px; height: 48px; }
  .ocm-item__qty { grid-column: 2; }
  .ocm-item__price { grid-row: 1; grid-column: 3; }
}

/* ---------- facts: "name - value" pairs of an order or a ticket ---------- */
.ocm-facts { container: ocm-facts / inline-size; margin: 0 0 var(--ocm-gap); }
.ocm-facts__row { display: grid; grid-template-columns: minmax(7em, 38%) minmax(0, 1fr); gap: 2px var(--ocm-gap); padding: 8px 0; border-top: 1px solid var(--ocm-line); }
.ocm-facts__row:first-child { padding-top: 0; border-top: 0; }
.ocm-facts__name { margin: 0; color: var(--ocm-muted); font-weight: 400; }
.ocm-facts__value { margin: 0; color: var(--ocm-ink); font-weight: 600; overflow-wrap: anywhere; }
.ocm-facts--total .ocm-facts__value { text-align: right; font-variant-numeric: tabular-nums; }
.ocm-facts--total .ocm-facts__row:last-child .ocm-facts__name,
.ocm-facts--total .ocm-facts__row:last-child .ocm-facts__value { color: var(--ocm-ink); font-size: 1.14em; font-weight: 700; }
@container ocm-facts (max-width: 320px) {
  .ocm-facts__row { grid-template-columns: minmax(0, 1fr); }
  .ocm-facts--total .ocm-facts__row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- steps: "What happens next" ----------------------------------- */
.ocm-steps { display: grid; gap: var(--ocm-gap); margin: 0 0 var(--ocm-gap); padding: 0; list-style: none; }
.ocm-steps--row { display: flex; flex-wrap: wrap; }
.ocm-steps--row > .ocm-step { flex: 1 1 180px; }
.ocm-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; column-gap: 12px; }
.ocm-step__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ocm-step__mark .ocm-icon { width: 18px; height: 18px; }
.ocm-step.is-done .ocm-step__mark { border-color: var(--ocm-good-tint); background: var(--ocm-good-tint); color: var(--ocm-good); }
.ocm-step.is-now .ocm-step__mark { border-color: var(--ocm-accent); background: var(--ocm-accent); color: var(--ocm-accent-ink); }
.ocm-step__title { display: block; margin: 5px 0 0; color: var(--ocm-ink); font-weight: 700; line-height: 1.35; }
.ocm-step__text { margin: 2px 0 0; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }

/* ---------- choice: delivery, payment, prepayment as cards with a radio --
   The native radio stays: it shows the choice where :has() is missing. */
.ocm-choices { display: grid; gap: 8px; margin: 0 0 var(--ocm-gap); }
.ocm-choices--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
:where(.ocm-choice) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s;
}
:where(.ocm-choice:hover) { border-color: var(--ocm-muted); }
/* 1.3: the own look with the weight of a class: label{} of a theme does not
   recolour or pad the card */
.ocm-choice {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  cursor: pointer;
}
.ocm-choice:hover { border-color: var(--ocm-muted); }
/* the card is a <label>: label of Bootstrap (inline-block, bold, 5px below) does not reach it */
.ocm-choice { display: flex; max-width: none; margin: 0; font-weight: 400; }
.ocm-choice__input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--ocm-accent); cursor: pointer; }
.ocm-choice .ocm-choice__input { margin: 1px 0 0; }
.ocm-choice__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ocm-choice__title { color: var(--ocm-ink); font-weight: 700; line-height: 1.35; }
.ocm-choice__text { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-choice__end { margin-left: auto; padding-left: 8px; color: var(--ocm-ink); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocm-choice .ocm-pay { margin-top: 4px; }
.ocm-choice:has(.ocm-choice__input:checked) { border-color: var(--ocm-accent); outline: 1px solid var(--ocm-accent); outline-offset: -2px; }
.ocm-choice:has(.ocm-choice__input:focus-visible) { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-choice:has(.ocm-choice__input:disabled) { color: var(--ocm-muted); cursor: default; }
.ocm-choice:has(.ocm-choice__input:disabled) :is(.ocm-choice__title, .ocm-choice__end) { color: var(--ocm-muted); }

/* ---------- combo: a field with suggestions (city, branch, search) -------
   OcmUI fires ocm:query while the buyer types and ocm:pick on a choice;
   the module answers ocm:query with OcmUI.fill(combo, items). */
.ocm-combo { position: relative; }
.ocm-combo__list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 280px;
  margin: 0;
  padding: 4px 0;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  list-style: none;
  overflow-y: auto;
}
.ocm-combo__list[hidden] { display: none; }
.ocm-combo__opt { display: flex; flex-direction: column; justify-content: center; min-height: 36px; padding: 6px 12px; color: var(--ocm-ink); cursor: pointer; }
.ocm-combo__opt:hover,
.ocm-combo__opt[aria-selected="true"] { background: var(--ocm-subtle); }
.ocm-combo__sub { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-combo__note { padding: 8px 12px; color: var(--ocm-muted); }

/* ---------- qty: quantity with minus and plus ---------------------------- */
:where(.ocm-qty) {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  vertical-align: middle;
}
.ocm-qty:focus-within { border-color: var(--ocm-accent); outline: 3px solid var(--ocm-accent-tint); outline-offset: 0; }
.ocm-qty__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ocm-ink);
  cursor: pointer;
}
.ocm-qty__btn .ocm-icon { width: 16px; height: 16px; }
.ocm-qty__btn:hover { background: var(--ocm-subtle); }
.ocm-qty__btn[disabled] { background: none; color: var(--ocm-line-strong); cursor: default; }
.ocm-qty__input {
  width: 3em;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid var(--ocm-line);
  border-left: 1px solid var(--ocm-line);
  border-radius: 0;
  background: none;
  color: var(--ocm-ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ocm-qty__input:focus { outline: 0; }
.ocm-qty__input::-webkit-outer-spin-button,
.ocm-qty__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* ---------- range: price from - to, a slider and two fields --------------
   Two range inputs on one track; the script keeps from <= to, mirrors the
   fields and paints the part between them (--ocm-from, --ocm-to). */
.ocm-range { --ocm-from: 0%; --ocm-to: 100%; margin: 0 0 var(--ocm-gap); }
.ocm-range__slider { position: relative; height: 28px; margin: 0 10px; }
.ocm-range__slider:before,
.ocm-range__slider:after {
  content: "";
  position: absolute;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
}
.ocm-range__slider:before { right: 0; left: 0; background: var(--ocm-progress-track); }
.ocm-range__slider:after { right: calc(100% - var(--ocm-to)); left: var(--ocm-from); background: var(--ocm-accent); }
.ocm-range__input {
  position: absolute;
  top: 0;
  left: -10px;
  z-index: 1;
  width: calc(100% + 20px);
  height: 28px;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
/* input[type=range] { display: block; width: 100% } of Bootstrap is 0,1,1: the thumbs would stop 20px short of the end */
.ocm-range .ocm-range__input { width: calc(100% + 20px); }
.ocm-range__input::-webkit-slider-runnable-track { height: 28px; background: none; }
.ocm-range__input::-moz-range-track { height: 28px; background: none; }
.ocm-range__input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border: 2px solid var(--ocm-accent);
  border-radius: 50%;
  background: var(--ocm-surface);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
}
.ocm-range__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ocm-accent);
  border-radius: 50%;
  background: var(--ocm-surface);
  cursor: pointer;
  pointer-events: auto;
}
.ocm-range__input:focus { outline: 0; }
.ocm-range__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-range__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-range__fields { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ocm-range__fields .ocm-input { flex: 1 1 0; min-width: 0; }

/* ---------- swatch: a colour, a picture or a size of a variant ----------- */
.ocm-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* the colour and the memory of a variant one under another: the next caption does not stick to the row */
.ocm-swatches:not(:last-child) { margin-bottom: var(--ocm-gap); }
.ocm-swatch { position: relative; display: inline-flex; margin: 0; font-weight: 400; cursor: pointer; }
.ocm-swatch__input { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ocm-swatch__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font-weight: 600;
  line-height: 1;
}
.ocm-swatch__dot { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--ocm-swatch, var(--ocm-subtle)); }
.ocm-swatch__face img { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ocm-swatch--text .ocm-swatch__face { padding: 0 12px; border-radius: var(--ocm-r-sm); }
.ocm-swatch:hover .ocm-swatch__face { border-color: var(--ocm-muted); }
.ocm-swatch__input:checked + .ocm-swatch__face { border-color: var(--ocm-ink); outline: 1px solid var(--ocm-ink); outline-offset: -2px; }
.ocm-swatch__input:focus-visible + .ocm-swatch__face { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-swatch__input:disabled + .ocm-swatch__face { border-style: dashed; color: var(--ocm-muted); text-decoration: line-through; cursor: default; }

/* ---------- facet: one section of a filter ------------------------------- */
.ocm-facet { border-top: 1px solid var(--ocm-line); }
.ocm-facet:first-child { border-top: 0; }
.ocm-facet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 0;
  color: var(--ocm-ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.ocm-facet__head::-webkit-details-marker { display: none; }
.ocm-facet__head:after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.ocm-facet[open] > .ocm-facet__head:after { margin-top: 4px; transform: rotate(-135deg); }
.ocm-facet__body { padding: 0 0 12px; }
.ocm-facet__opt { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0; color: var(--ocm-text); font-weight: 400; cursor: pointer; }
.ocm-facet__opt input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--ocm-accent); }
.ocm-facet__n { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); font-variant-numeric: tabular-nums; }
.ocm-facet__opt.is-off { color: var(--ocm-muted); cursor: default; }

/* ---------- dock: one corner for floating buttons and windows ------------
   Chat, call back, the reviews badge: a module puts its floating element in
   the dock (data-ocm-dock="<priority>" or OcmUI.dock()); they stack with one
   gap and never cover each other. --ocm-dock-x and --ocm-dock-y move the
   corner clear of the theme's own "to top" button. */
.ocm-dock {
  position: fixed;
  right: var(--ocm-dock-x, 16px);
  bottom: var(--ocm-dock-y, 16px);
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.ocm-dock > * { pointer-events: auto; }
.ocm-dock .ocm-score--corner { position: static; }
.ocm-fab { position: relative; font-weight: 700; }
:where(.ocm-fab) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ocm-accent-dark);
  border-radius: 26px;
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
:where(.ocm-fab:hover,
.ocm-fab:focus) { background: var(--ocm-accent-dark); }
/* 1.3: the own look with the weight of a class: a{} and button{} of a theme
   do not reach the floating button */
.ocm-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ocm-accent-dark);
  border-radius: 26px;
  background: var(--ocm-accent);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-transform: none;
  cursor: pointer;
}
.ocm-fab:hover,
.ocm-fab:focus { background: var(--ocm-accent-dark); }
.ocm-fab:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-fab,
.ocm-fab:hover,
.ocm-fab:focus { color: var(--ocm-accent-ink); text-decoration: none; }
.ocm-fab .ocm-icon,
.ocm-fab .ocm-brand__logo { width: 24px; height: 24px; }
.ocm-fab .ocm-brand__logo { fill: currentColor; }
.ocm-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ocm-sale);
  color: var(--ocm-sale-ink);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ---------- chat: a conversation window ---------------------------------- */
.ocm-chat {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 104px));
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  overflow: hidden;
}
.ocm-chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--ocm-line); }
.ocm-chat__who { min-width: 0; }
.ocm-chat__title { margin: 0; color: var(--ocm-ink); font-size: var(--ocm-fs-title); font-weight: 700; line-height: 1.3; }
.ocm-chat__sub { display: block; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-chat__head .ocm-close { position: static; flex: 0 0 auto; margin: 0 0 0 auto; }
.ocm-chat__log { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; overscroll-behavior: contain; }
.ocm-msg { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: var(--ocm-r); background: var(--ocm-subtle); color: var(--ocm-ink); line-height: 1.45; overflow-wrap: anywhere; }
.ocm-msg--me { align-self: flex-end; background: var(--ocm-accent-tint); }
.ocm-msg__time { display: block; margin-top: 2px; color: var(--ocm-text); font-size: 12px; }
.ocm-msg .ocm-chips { margin: 8px 0 0; }
.ocm-typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: var(--ocm-r); background: var(--ocm-subtle); }
.ocm-typing__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ocm-line-strong); animation: ocm-typing 1.2s infinite; }
.ocm-typing__dot:nth-child(2) { animation-delay: .2s; }
.ocm-typing__dot:nth-child(3) { animation-delay: .4s; }
@keyframes ocm-typing {
  0%, 60%, 100% { background-color: var(--ocm-line-strong); }
  30% { background-color: var(--ocm-muted); }
}
.ocm-chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ocm-line); }
.ocm-chat__form .ocm-input { flex: 1 1 auto; min-width: 0; max-height: 120px; resize: none; }
.ocm-chat__send { flex: 0 0 auto; width: 40px; min-height: 40px; padding: 0; }
.ocm-chat__note { padding: 0 12px 8px; color: var(--ocm-muted); font-size: 12px; text-align: center; }

/* ---------- alert: the result of an action --------------------------------
   OcmUI.alert() puts the core alert above #content as OpenCart's common.js
   does: with Bootstrap the theme draws it, without Bootstrap - these rules. */
:where(.ocm-alert) {
  position: relative;
  margin: 0 0 var(--ocm-gap);
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font-size: 14px;
  line-height: 1.4;
}
:where(.ocm-alert.alert-success) { border-color: var(--ocm-good-tint); background: var(--ocm-good-tint); color: var(--ocm-good); }
:where(.ocm-alert.alert-danger) { border-color: var(--ocm-bad-tint); background: var(--ocm-bad-tint); color: var(--ocm-bad); }
:where(.ocm-alert.alert-warning) { border-color: var(--ocm-warn-tint); background: var(--ocm-warn-tint); color: var(--ocm-warn); }
:where(.ocm-alert.alert-info) { border-color: var(--ocm-accent-tint); background: var(--ocm-accent-tint); color: var(--ocm-accent-dark); }
:where(.ocm-alert .close) {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
}

/* 1.3: an alert without the classes of Bootstrap. The kind is a modifier of
   the library, the cross is .ocm-close; an icon may stand first:
     <div class="ocm ocm-alert ocm-alert--good" role="status">
       <svg class="ocm-icon">...</svg><span>Added to the cart.</span>
       <button type="button" class="ocm-close" aria-label="Close">&times;</button></div>
   .alert .alert-success of markup made for 1.2 work as before. */
.ocm-alert--good,
.ocm-alert--bad,
.ocm-alert--warn,
.ocm-alert--info { display: flex; align-items: flex-start; gap: 10px; }
/* 1.4: the alert of the canvas - a tint with its own line, 14px */
.ocm-alert--good,
.ocm-alert--bad,
.ocm-alert--warn,
.ocm-alert--info { padding: 12px 14px; border-radius: var(--ocm-r-sm); font-size: 14px; line-height: 1.4; }
.ocm-alert--good:has(> .ocm-close),
.ocm-alert--bad:has(> .ocm-close),
.ocm-alert--warn:has(> .ocm-close),
.ocm-alert--info:has(> .ocm-close) { padding-right: 48px; }
.ocm-alert--good { border-color: var(--ocm-good-line); background: var(--ocm-good-tint); color: var(--ocm-good); }
.ocm-alert--bad  { border-color: var(--ocm-bad-line);  background: var(--ocm-bad-tint);  color: var(--ocm-bad); }
.ocm-alert--warn { border-color: var(--ocm-warn-line); background: var(--ocm-warn-tint); color: var(--ocm-warn); }
.ocm-alert--info { border-color: var(--ocm-accent-line); background: var(--ocm-accent-tint); color: var(--ocm-link); }
.ocm-alert > .ocm-icon { flex: 0 0 auto; margin-top: 1px; }
.ocm-alert > .ocm-close,
.ocm-alert > .ocm-close:hover { background: none; color: inherit; }

/* ---------- a spinning icon for "busy" ----------------------------------- */
.ocm-icon--spin { animation: ocm-spin 1s linear infinite; }
@keyframes ocm-spin { to { transform: rotate(360deg); } }

/* ---------- compositions ------------------------------------------------- */
.ocm-block > .ocm-set { border: 0; border-radius: 0 0 calc(var(--ocm-r) - 1px) calc(var(--ocm-r) - 1px); }
/* Bootstrap 3 pieces used inside the blocks: drop their outer margins */
.ocm-table-wrap > .ocm-table { margin-bottom: 0; }
.ocm-goal__bar.progress { margin-bottom: 0; }
.ocm-block__body > :last-child,
.ocm-goal:last-child { margin-bottom: 0; }
.ocm-block__body > .ocm-block__title { margin-bottom: 4px; }
.ocm-block__body > .ocm-block__title + p { margin: 0 0 var(--ocm-gap); color: var(--ocm-muted); }
.ocm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--ocm-gap); }
.ocm-toolbar > .ocm-btn:last-child { margin-left: auto; }
.ocm-toolbar > .ocm-input { width: auto; }
.ocm-note > .ocm-inline { margin-top: 8px; }
.ocm-dialog__center { text-align: center; }
.ocm-dialog__center .ocm-dialog__title { margin-bottom: 6px; }
.ocm-dialog__center .ocm-selects { margin: var(--ocm-gap) 0; }
.ocm-dialog__body > .ocm-note__list { margin: 0; }
.ocm-actions + .ocm-actions,
.ocm-actions + .ocm-chips { margin-top: 10px; }

/* ---------- 1.3: parts of 1.2 components that a bare-tag rule still reached */
/* input{} of a theme that frames every field would frame the slider too */
.ocm-range__input { border: 0; }
/* the note under the chat form is a <p>: its margins are the library's, not the theme's */
.ocm-chat__note { margin: 0; }

/* ---------- 1.3: switch - a checkbox drawn as a track with a knob ----------
     <label class="ocm-switch"><input class="ocm-switch__input" type="checkbox">
       <span class="ocm-switch__track"></span>Only in stock</label>
   The checkbox stays in the page for the keyboard and for forms. Off - an
   outlined track, on - the accent fill: the state reads without the colour. */
.ocm-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; cursor: pointer; }
.ocm-switch__input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.ocm-switch__track { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border: 1px solid var(--ocm-muted); border-radius: 11px; background: var(--ocm-surface); }
.ocm-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ocm-muted); transition: left .15s, background-color .15s; }
.ocm-switch__input:checked + .ocm-switch__track { border-color: var(--ocm-accent); background: var(--ocm-accent); }
.ocm-switch__input:checked + .ocm-switch__track::after { left: 20px; background: var(--ocm-accent-ink); }
.ocm-switch__input:focus-visible + .ocm-switch__track { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-switch__input:disabled + .ocm-switch__track { border-color: var(--ocm-line-strong); background: var(--ocm-subtle); }
.ocm-switch__input:disabled + .ocm-switch__track::after { background: var(--ocm-line-strong); }
.ocm-switch:has(.ocm-switch__input:disabled) { color: var(--ocm-muted); cursor: default; }

/* ---------- 1.3: skeleton - the place of a block that is still loading ----
   A still fill of the subtle colour, no shimmer: a line of text, a title, a
   picture. The script of the module swaps it for the block when the answer
   comes; aria-hidden on the skeleton, aria-busy on the block around it. */
.ocm-skeleton { display: block; min-height: 12px; border-radius: var(--ocm-r-sm); background: var(--ocm-subtle); }
.ocm-skeleton--text { height: .8em; margin: .45em 0; }
.ocm-skeleton--title { width: 60%; height: 1.1em; margin: 0 0 var(--ocm-gap); }
.ocm-skeleton--media { aspect-ratio: var(--ocm-ratio, 4 / 3); border-radius: var(--ocm-r); }
.ocm-skeleton--short { width: 40%; }

@media (prefers-reduced-motion: reduce) {
  .ocm-switch__track::after { transition: none; }
}

/* ===========================================================================
   1.3: the catalog layer
   =========================================================================== */

/* ---------- wall: a module's section without a box ------------------------
   A heading row and a grid or a strip under it. The root is a size
   container: tiles and cards rearrange by the width the theme gave the
   module (a full row, a narrow column), not by the width of the screen. */
.ocm-wall {
  container: ocm-wall / inline-size;
  margin: 0 0 calc(var(--ocm-gap) * 2);
}
/* 1.4: the head row of a wall is the head row of a section */
.ocm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 40px;
  margin: 0 0 16px;
}
.ocm-head > .ocm-heading { margin: 0; }
.ocm-head__note { color: var(--ocm-muted); font-size: 14px; }
.ocm-head__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* a heading inside a wall: "More sections" under the main grid */
.ocm-heading--sm { margin-top: 24px; font-size: 17px; line-height: 1.3; }

/* ---------- pill: a link or a filter one tap away -------------------------
   Sub-categories of a tile, the row above a product list. Not a chip: a chip
   states a fact, a pill is pressed. */
.ocm-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* one row that scrolls sideways instead of wrapping */
.ocm-pills--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ocm-pills--scroll::-webkit-scrollbar { display: none; }
.ocm-pills--scroll > * { flex: 0 0 auto; }
/* 1.4: the chip of the canvas - 32px, 14px, the grey line; the accent line
   and name on hover; the chosen one is the accent fill */
.ocm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ocm-pill > .ocm-icon { width: 16px; height: 16px; }
/* a and a:hover of the theme do not recolour a pill */
.ocm-pill,
.ocm-pill:hover,
.ocm-pill:focus { color: var(--ocm-text); text-decoration: none; }
.ocm-pill:hover,
.ocm-pill:focus { border-color: var(--ocm-accent); color: var(--ocm-accent); }
.ocm-pill:focus { outline: 0; }
.ocm-pill:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-pill--sm { height: 32px; padding: 0 10px; font-size: 13px; }
.ocm-pill--lg { height: 40px; padding: 0 16px; font-size: 15px; }
.ocm-pill__n { color: var(--ocm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* "+6": the rest of the list behind one pill */
.ocm-pill--more,
.ocm-pill--more:hover,
.ocm-pill--more:focus { color: var(--ocm-muted); }
/* the chosen one is the only coloured pill of its row */
.ocm-pill.is-on,
.ocm-pill[aria-current="page"],
.ocm-pill[aria-pressed="true"] {
  border-color: var(--ocm-accent);
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
  font-weight: 400;
}
.ocm-pill.is-on .ocm-pill__n,
.ocm-pill[aria-current="page"] .ocm-pill__n,
.ocm-pill[aria-pressed="true"] .ocm-pill__n { color: var(--ocm-accent-ink); }

/* ---------- cats: a grid of categories ------------------------------------
   --ocm-per tiles in a row at most, a tile never narrower than --ocm-min:
   the grid drops columns by itself in a narrow place. The modifier names
   what stands in the grid and sets the smallest column for it. */
.ocm-cats {
  --ocm-per: 4;
  --ocm-min: 200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--ocm-min), calc((100% - (var(--ocm-per) - 1) * var(--ocm-gap)) / var(--ocm-per) - .1px))), 1fr));
  gap: var(--ocm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ocm-cats--mosaic,
.ocm-cats--rows { --ocm-min: 150px; }
.ocm-cats--promo { --ocm-per: 3; --ocm-min: 220px; }

/* ---------- cat: one category - a tile, a lead, a row, a mini, a promo ----
   A tile is an <article> with links inside; a row, a mini and a promo are
   one link each. */
.ocm-cat {
  display: flex;
  flex-direction: column;
  gap: var(--ocm-gap);
  min-width: 0;
  padding: var(--ocm-gap);
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-cat,
.ocm-cat:hover,
.ocm-cat:focus { color: var(--ocm-text); text-decoration: none; }
.ocm-cat:hover,
.ocm-cat:focus-within { border-color: var(--ocm-accent); }
.ocm-cat:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-cat__media {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--ocm-ratio, 4 / 3);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-subtle);
  overflow: hidden;
}
.ocm-cat__media,
.ocm-cat__media:hover,
.ocm-cat__media:focus { color: var(--ocm-line-strong); }
/* the module resizes the picture to the ratio of the box, so nothing is cut */
.ocm-cat__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* no picture: an icon of the library stands in */
.ocm-cat__media .ocm-icon { width: 38%; max-width: 72px; height: auto; stroke-width: 1.25; }
.ocm-cat__media:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-cat__label { position: absolute; top: 8px; left: 8px; }
.ocm-cat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ocm-cat__name { font-size: var(--ocm-fs-title); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ocm-cat__name,
.ocm-cat__name:hover,
.ocm-cat__name:focus { color: var(--ocm-ink); text-decoration: none; }
.ocm-cat:hover .ocm-cat__name,
.ocm-cat__name:hover,
.ocm-cat__name:focus { color: var(--ocm-accent-dark); }
.ocm-cat__name:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-cat__count { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); font-variant-numeric: tabular-nums; }
.ocm-cat__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: var(--ocm-gap);
  border-top: 1px solid var(--ocm-line);
}
.ocm-cat__from { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
.ocm-cat__from b { color: var(--ocm-ink); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.ocm-cat__foot .ocm-link { font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }

/* a row: a small picture, the name and the count in one line */
.ocm-cat--row { flex-direction: row; align-items: center; padding: 8px var(--ocm-gap); }
.ocm-cat--row .ocm-cat__media { width: 44px; aspect-ratio: 1 / 1; }
.ocm-cat--row .ocm-cat__media .ocm-icon { width: 22px; }
.ocm-cat--row .ocm-cat__name { font-size: 1em; font-weight: 600; }

/* a mini: a picture with the name under it, for a strip that scrolls */
.ocm-cat--mini {
  align-items: center;
  gap: 6px;
  width: 108px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}
.ocm-cat--mini .ocm-cat__media { width: 96px; aspect-ratio: 1 / 1; border: 1px solid var(--ocm-subtle); }
.ocm-cat--mini:hover .ocm-cat__media,
.ocm-cat--mini:focus .ocm-cat__media { border-color: var(--ocm-accent); }
.ocm-cat--mini .ocm-cat__name { font-size: max(12px, var(--ocm-fs-sm)); font-weight: 600; line-height: 1.25; }

/* a promo: the name and the price on the left, the picture on the right */
.ocm-cat--promo { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--ocm-pad); }
.ocm-cat--promo .ocm-cat__media { order: 2; width: 64px; aspect-ratio: 1 / 1; }
.ocm-cat--promo .ocm-cat__media .ocm-icon { width: 30px; }

/* a lead: the first tile of a mosaic. The text and the picture stand side by
   side while both fit, and the picture goes on top when they do not: the
   tile wraps in reverse, no width is written down for it. In a mosaic the
   lead takes the whole row, and two columns and two rows of a wide wall. */
.ocm-cat--lead { flex-flow: row wrap-reverse; gap: var(--ocm-pad); padding: var(--ocm-pad); }
.ocm-cat--lead > .ocm-cat__body { flex: 1 1 14em; gap: var(--ocm-gap); }
.ocm-cat--lead > .ocm-cat__media { flex: 1 1 10em; aspect-ratio: 16 / 10; }
.ocm-cat--lead > .ocm-cat__media .ocm-icon { max-width: 140px; stroke-width: 1; }
.ocm-cat--lead .ocm-cat__name { display: block; font-size: calc(var(--ocm-fs-h) * 1.25); line-height: 1.15; letter-spacing: -.02em; }
.ocm-cat--lead .ocm-cat__foot { flex-direction: column; align-items: flex-start; gap: var(--ocm-gap); padding-top: 0; border-top: 0; }
.ocm-cat--lead .ocm-cat__from { font-size: 1em; }
.ocm-cat--lead .ocm-cat__from b { font-size: 1.6em; }
.ocm-cats--mosaic > .ocm-cat--lead { grid-column: 1 / -1; }
/* the tiles beside a lead stay short: a wider picture, the name and the count
   in one line, no rule above the price */
.ocm-cats--mosaic > .ocm-cat:not(.ocm-cat--lead) > .ocm-cat__media { aspect-ratio: var(--ocm-ratio, 16 / 10); }
.ocm-cats--mosaic > .ocm-cat:not(.ocm-cat--lead) > .ocm-cat__body { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.ocm-cats--mosaic > .ocm-cat:not(.ocm-cat--lead) > .ocm-cat__foot { padding-top: 0; border-top: 0; }
@container ocm-wall (min-width: 900px) {
  .ocm-cats--mosaic > .ocm-cat--lead { grid-column: span 2; grid-row: span 2; }
}
/* two tiles in a row on a phone: the picture, the name and the count stay */
@container ocm-wall (max-width: 479px) {
  .ocm-cats:not(.ocm-cats--rows):not(.ocm-cats--promo) { --ocm-min: 136px; }
  .ocm-cat { gap: 8px; padding: 8px; }
  .ocm-cats:not(.ocm-cats--mosaic) > .ocm-cat > .ocm-cat__subs,
  .ocm-cats:not(.ocm-cats--mosaic) > .ocm-cat > .ocm-cat__foot { display: none; }
  .ocm-cat--lead,
  .ocm-cat--promo { padding: var(--ocm-gap); }
}

/* ---------- catnav: categories as a list for a column ---------------------
   Stands in .ocm-block: the head of the block is the title of the list. */
.ocm-catnav__list,
.ocm-catnav__subs { margin: 0; padding: 0; list-style: none; }
.ocm-catnav__list { padding: 4px 0; }
.ocm-catnav__link {
  display: flex;
  align-items: center;
  gap: var(--ocm-gap);
  min-height: 44px;
  padding: 4px var(--ocm-pad);
}
.ocm-catnav__link,
.ocm-catnav__link:hover,
.ocm-catnav__link:focus { color: var(--ocm-ink); text-decoration: none; }
.ocm-catnav__link:hover .ocm-catnav__name,
.ocm-catnav__link:focus .ocm-catnav__name { color: var(--ocm-accent-dark); }
.ocm-catnav__link:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: -2px; }
.ocm-catnav__thumb {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-subtle);
  color: var(--ocm-line-strong);
  overflow: hidden;
}
.ocm-catnav__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocm-catnav__thumb .ocm-icon { width: 20px; height: 20px; }
.ocm-catnav__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ocm-catnav__item.is-open > .ocm-catnav__link .ocm-catnav__name { font-weight: 700; }
.ocm-catnav__n { color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); font-variant-numeric: tabular-nums; }
.ocm-catnav__subs { padding: 0 var(--ocm-pad) 8px calc(var(--ocm-pad) + 36px + var(--ocm-gap)); }
.ocm-catnav__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 2px 0;
}
.ocm-catnav__sub,
.ocm-catnav__sub:hover,
.ocm-catnav__sub:focus { color: var(--ocm-text); text-decoration: none; }
.ocm-catnav__sub:hover,
.ocm-catnav__sub:focus { color: var(--ocm-accent-dark); }
.ocm-catnav__sub:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-catnav__more { margin: 0 var(--ocm-pad) var(--ocm-gap); }

/* ---------- cards: a grid of products ------------------------------------- */
.ocm-cards {
  --ocm-per: 4;
  --ocm-min: 200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--ocm-min), calc((100% - (var(--ocm-per) - 1) * var(--ocm-gap)) / var(--ocm-per) - .1px))), 1fr));
  gap: var(--ocm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ocm-cards--list { grid-template-columns: minmax(0, 1fr); }

/* ---------- card: a product in a grid and in a list -----------------------
   A size container: the foot goes by the width of the card in em, so it
   reads the same at 14px and at 16px of the theme. The card takes its width
   from the grid, a carousel track or a list - it has none of its own. */
.ocm-card {
  container: ocm-card / inline-size;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: var(--ocm-gap);
  /* a card is a dense place: a theme with 16px text sets its cards smaller */
  font-size: min(1em, 15px);
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
}
.ocm-card:hover,
.ocm-card:focus-within { border-color: var(--ocm-accent); }
.ocm-card__media { position: relative; flex: 0 0 auto; }
.ocm-card__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1 / 1;
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-subtle);
  font-size: max(12px, var(--ocm-fs-sm));
  overflow: hidden;
}
.ocm-card__img,
.ocm-card__img:hover,
.ocm-card__img:focus { color: var(--ocm-muted); text-decoration: none; }
.ocm-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocm-card__img .ocm-icon { width: 36%; max-width: 72px; height: auto; color: var(--ocm-line-strong); stroke-width: 1.25; }
.ocm-card__img:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-card__labels {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  /* the wish-list button owns the other corner */
  max-width: calc(100% - 56px);
  pointer-events: none;
}
.ocm-card__labels > .ocm-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* "to the wish list": a button of its own in the corner of the photo */
.ocm-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ocm-line);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-muted);
  cursor: pointer;
}
.ocm-card__fav:hover,
.ocm-card__fav:focus,
.ocm-card__fav[aria-pressed="true"] { border-color: var(--ocm-sale); color: var(--ocm-sale); }
.ocm-card__fav[aria-pressed="true"] .ocm-icon { fill: currentColor; }
.ocm-card__fav:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-card__rating { display: flex; align-items: center; gap: 6px; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); white-space: nowrap; }
.ocm-card__votes { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* two lines, cut with "...": cards of one row keep one height */
.ocm-card__name {
  display: -webkit-box;
  min-height: 2.9em;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ocm-card__name,
.ocm-card__name:hover,
.ocm-card__name:focus { color: var(--ocm-ink); text-decoration: none; }
.ocm-card:hover .ocm-card__name,
.ocm-card__name:hover,
.ocm-card__name:focus { color: var(--ocm-accent-dark); }
.ocm-card__name:focus-visible { outline: 2px solid var(--ocm-accent); outline-offset: 2px; }
.ocm-card__stock { display: flex; align-items: center; gap: 6px; font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
/* the button of a card is compact: the price is the wide part of the row */
.ocm-card__foot > .ocm-btn { flex: 0 0 auto; padding-right: 12px; padding-left: 12px; }
/* the row does not fit a label: the icon alone stays, the label is still
   read out. A button of a card always carries an icon */
@container ocm-card (min-width: 12.5em) and (max-width: 17.49em) {
  .ocm-card__foot > .ocm-btn { width: 40px; min-width: 40px; padding-right: 0; padding-left: 0; }
  .ocm-card__foot > .ocm-btn > .ocm-btn__text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* a narrow card - two in a row on a phone: the price, then the button in
   full width; the count of reviews stays, the word is only read out */
@container ocm-card (max-width: 12.49em) {
  .ocm-card__foot { flex-direction: column; align-items: stretch; }
  .ocm-card__fav { top: 6px; right: 6px; width: 32px; height: 32px; }
  .ocm-card__labels { top: 6px; left: 6px; max-width: calc(100% - 48px); }
  .ocm-card__word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the old price and the saving above the price, not beside it */
.ocm-price--stack { flex-direction: column; align-items: flex-start; gap: 0; }
.ocm-price__was { display: flex; align-items: baseline; gap: 6px; font-size: max(12px, var(--ocm-fs-sm)); }

/* a product as a row of a list: photo, name with short facts, price and action */
.ocm-card--row { flex-direction: row; align-items: center; gap: var(--ocm-pad); padding: var(--ocm-gap) var(--ocm-pad); }
.ocm-card--row > .ocm-card__media { width: 132px; }
.ocm-card__main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-width: 0; }
.ocm-card--row .ocm-card__name { display: block; min-height: 0; font-size: var(--ocm-fs-title); }
.ocm-card__facts { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; list-style: none; font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-card--row > .ocm-card__foot { flex: 0 0 auto; flex-direction: column; align-items: flex-end; margin-top: 0; }
.ocm-card--row .ocm-price--stack { align-items: flex-end; }
@container ocm-wall (max-width: 479px) {
  .ocm-cards:not(.ocm-cards--list) { --ocm-min: 136px; }
  .ocm-cards:not(.ocm-cards--list) > .ocm-card { padding: 8px; }
}
@container ocm-wall (max-width: 599px) {
  .ocm-card--row { flex-wrap: wrap; align-items: flex-start; gap: var(--ocm-gap); padding: var(--ocm-gap); }
  .ocm-card--row > .ocm-card__media { width: 96px; }
  .ocm-card--row > .ocm-card__main { flex: 1 1 0; }
  .ocm-card--row > .ocm-card__foot { flex: 1 1 100%; flex-direction: row; align-items: flex-end; }
  .ocm-card--row .ocm-price--stack { align-items: flex-start; }
}

/* ---------- carousel: items as wide as they are ---------------------------
   For a strip of minis: the track takes the width of an item instead of
   dividing the row into --ocm-per columns. */
.ocm-carousel--auto .ocm-carousel__track { grid-auto-columns: max-content; }

/* a browser without container queries goes by the width of the screen; a
   card keeps the label of its button and lets the foot wrap */
@supports not (container-type: inline-size) {
  @media (min-width: 992px) {
    .ocm-cats--mosaic > .ocm-cat--lead { grid-column: span 2; grid-row: span 2; }
  }
  @media (max-width: 479px) {
    .ocm-cats:not(.ocm-cats--rows):not(.ocm-cats--promo) { --ocm-min: 136px; }
    .ocm-cat { gap: 8px; padding: 8px; }
    .ocm-cats:not(.ocm-cats--mosaic) > .ocm-cat > .ocm-cat__subs,
    .ocm-cats:not(.ocm-cats--mosaic) > .ocm-cat > .ocm-cat__foot { display: none; }
    .ocm-cat--lead,
    .ocm-cat--promo { padding: var(--ocm-gap); }
    .ocm-cards:not(.ocm-cards--list) { --ocm-min: 136px; }
    .ocm-cards:not(.ocm-cards--list) > .ocm-card { padding: 8px; }
    .ocm-cards:not(.ocm-cards--list) .ocm-card__foot { flex-direction: column; align-items: stretch; }
  }
  @media (max-width: 599px) {
    .ocm-card--row { flex-wrap: wrap; align-items: flex-start; gap: var(--ocm-gap); padding: var(--ocm-gap); }
    .ocm-card--row > .ocm-card__media { width: 96px; }
    .ocm-card--row > .ocm-card__main { flex: 1 1 0; }
    .ocm-card--row > .ocm-card__foot { flex: 1 1 100%; flex-direction: row; align-items: flex-end; }
    .ocm-card--row .ocm-price--stack { align-items: flex-start; }
  }
}
/* touch screens: a small pill gets a finger-sized target */
@media (pointer: coarse) {
  .ocm-catnav__sub { min-height: 32px; }
}

/* ---------- utilities the components need -------------------------------- */
.ocm-muted { color: var(--ocm-muted); }
.ocm-good  { color: var(--ocm-good); }
.ocm-bad   { color: var(--ocm-bad); }
.ocm-hide  { display: none; }
.ocm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* a block or a part of it hidden by a module or by the script stays hidden
   even where a component sets its own display */
.ocm[hidden],
.ocm [hidden] { display: none; }

/* ---------- narrow screens ---------------------------------------------- */
@media (max-width: 479px) {
  .ocm-note__title ~ * { margin-left: 0; }
  .ocm-wide { display: none; }
  .ocm-inline { flex-wrap: wrap; }
  .ocm-inline > .ocm-btn { flex: 1 1 auto; }
  .ocm-coupon { flex-wrap: wrap; }
  .ocm-coupon .ocm-btn { margin-left: 0; }
}

/* phones: a field under 16px makes iPhone zoom the page in on focus */
@media (max-width: 767px) {
  .ocm .ocm-input,
  .ocm.ocm-input,
  .ocm .ocm-qty__input { font-size: 16px; }
}

/* touch screens: a small text action gets a finger-sized target */
@media (pointer: coarse) {
  .ocm-review__vote,
  .ocm-link,
  .ocm-block__aside a,
  .ocm-dist__row { min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ocm-btn,
  .ocm-brand,
  .ocm-choice,
  .ocm-acc__q:after { transition: none; }
  .ocm-typing__dot,
  .ocm-icon--spin { animation: none; }
}
