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

   Rules of the file:
   - every selector starts with an .ocm- class: no theme class, no bare tag;
   - 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.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 ocmod-ui-1.3.css.
   =========================================================================== */

/* ---------- 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: #d9edf7;  /* solid light fill, mixed into the block background */
  --ocm-link:        var(--ocm-accent-dark);  /* links inside text = the theme's link colour */

  --ocm-good:        #3c763d;  /* money back, saving, in stock, done */
  --ocm-good-tint:   #dff0d8;
  --ocm-bad:         #a94442;  /* deadline, error */
  --ocm-bad-tint:    #f2dede;
  --ocm-sale:        var(--ocm-bad);  /* discount figure and sale price = the theme's special price */
  --ocm-sale-ink:    #ffffff;  /* text on the sale fill */
  --ocm-warn:        #8a6d3b;  /* almost gone, pending, check this */
  --ocm-warn-tint:   #fcf8e3;
  --ocm-star:        #f0ad4e;  /* rating stars = the theme's stars */

  --ocm-ink:         #333333;  /* headings, figures, dark fills = Bootstrap text-color */
  --ocm-text:        #555555;  /* running text = Bootstrap input-color */
  --ocm-muted:       #707070;  /* conditions, dates, captions: 4.5:1 on white and on --ocm-subtle */
  --ocm-line:        #dddddd;  /* every border = Bootstrap table-border-color */
  --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:      #f5f5f5;  /* head and foot rows, the offer panel, hover */
  --ocm-progress:    var(--ocm-accent);  /* progress fill = the theme's .progress-bar if it styled one */
  --ocm-progress-track: var(--ocm-line);

  --ocm-r:           8px;      /* blocks = the theme's card corner */
  --ocm-r-ctl:       var(--ocm-r);  /* buttons and fields = the theme's .btn corner */
  --ocm-r-sm:        4px;      /* chips, 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:       auto;     /* button and field height = the theme's .form-control */
  --ocm-fs-sm:       .93em;    /* terms, dates, captions */
  --ocm-fs-title:    1.14em;   /* block title */
  --ocm-fs-h:        1.57em;   /* heading above a block */
  --ocm-font-num:    inherit;  /* figures; a theme may set a tabular face */
  /* 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;
}
.ocm *, .ocm *:before, .ocm *:after { box-sizing: border-box; }
.ocm-num { font-family: var(--ocm-font-num); font-variant-numeric: tabular-nums; }

/* ---------- 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: var(--ocm-gap);
  padding: var(--ocm-gap) var(--ocm-pad);
  border-bottom: 1px solid var(--ocm-line);
}
.ocm-block__title {
  margin: 0;
  color: var(--ocm-ink);
  font-size: var(--ocm-fs-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ocm-block__aside { margin-left: auto; color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-block__body { padding: var(--ocm-pad); }
.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 var(--ocm-gap);
  color: var(--ocm-ink);
  font-size: var(--ocm-fs-h);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* ---------- 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 -------------- */
.ocm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-sm);
  background: var(--ocm-surface);
  color: var(--ocm-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: middle;
}
.ocm-chip--accent { border-color: var(--ocm-accent-tint); background: var(--ocm-accent-tint); color: var(--ocm-accent-dark); }
.ocm-chip--good   { border-color: var(--ocm-good-tint);   background: var(--ocm-good-tint);   color: var(--ocm-good); }
.ocm-chip--bad    { border-color: var(--ocm-bad-tint);    background: var(--ocm-bad-tint);    color: var(--ocm-bad); }
.ocm-chip--warn   { border-color: var(--ocm-warn-tint);   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-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 ------------------------------------------------------- */
/* layout stays ours even on a Bootstrap .btn: icon and text in one row */
.ocm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* as tall as the theme's own fields and buttons; auto until the probe ran */
  min-height: var(--ocm-ctl-h);
}
.ocm-btn--sm,
.ocm-bar .ocm-btn { min-height: 0; }
/* the look is the theme's when the button also carries .btn .btn-primary */
:where(.ocm-btn) {
  margin: 0;
  padding: 9px 18px;
  border: 1px solid var(--ocm-accent);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-accent);
  color: var(--ocm-accent-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
:where(.ocm-btn:hover,
.ocm-btn:focus) { 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-dark); outline-offset: 2px; }
:where(.ocm-btn--line) { background: var(--ocm-surface); color: var(--ocm-accent-dark); }
:where(.ocm-btn--line:hover,
.ocm-btn--line:focus) { background: var(--ocm-accent-tint); color: var(--ocm-accent-dark); }
:where(.ocm-btn--quiet) { border-color: var(--ocm-line-strong); background: var(--ocm-surface); color: var(--ocm-text); }
:where(.ocm-btn--quiet:hover,
.ocm-btn--quiet:focus) { border-color: var(--ocm-muted); background: var(--ocm-subtle); color: var(--ocm-ink); }
:where(.ocm-btn--sm) { padding: 6px 14px; font-size: max(12px, var(--ocm-fs-sm)); }
.ocm-btn--wide { display: flex; width: 100%; }
:where(.ocm-btn[disabled],
.ocm-btn--busy) { border-color: var(--ocm-line); background: var(--ocm-subtle); color: var(--ocm-muted); cursor: default; }
.ocm-actions { display: flex; flex-wrap: wrap; 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 { max-width: 100%; }
.ocm-btn__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ocm-btn.ocm-btn--wrap { white-space: normal; overflow-wrap: anywhere; }
/* .btn-sm and .btn-xs of OpenCart's default theme are 10.2px and 9px */
.ocm-btn.btn-sm,
.ocm-btn.btn-xs { font-size: max(12px, var(--ocm-fs-sm)); }
/* 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); }

/* ---------- 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: 4px; color: var(--ocm-ink); font-weight: 600; }
:where(.ocm-input) {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  font: inherit;
}
.ocm-input { min-height: var(--ocm-ctl-h); }
:where(.ocm-input:focus) { border-color: var(--ocm-accent); outline: 3px solid var(--ocm-accent-tint); outline-offset: 0; }
:where(.ocm-field__hint) { margin-top: 4px; color: var(--ocm-muted); font-size: 12px; }
:where(.ocm-field--error .ocm-input) { border-color: var(--ocm-bad); }
:where(.ocm-field--error .ocm-field__hint) { 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: 16px; height: 16px; margin: 2px 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 { padding: 4px 12px; }

/* ---------- close button: one look for bar, dialog and toast ------------- */
.ocm-close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  border-radius: var(--ocm-r-sm);
  background: none;
  color: var(--ocm-muted);
  font: inherit;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
}
.ocm-close:hover { background: var(--ocm-subtle); color: var(--ocm-ink); }

/* ---------- 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 solid colour, not a translucent veil. */
.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);
}
.ocm-dialog::backdrop { background: var(--ocm-backdrop, #eeeeee); }
.ocm-dialog--hard::backdrop { background: var(--ocm-backdrop, #f5f5f5); }
.ocm-dialog__head { position: relative; padding: 18px 48px 14px 22px; border-bottom: 1px solid var(--ocm-line); }
.ocm-dialog__title { margin: 0; color: var(--ocm-ink); font-size: 1.21em; font-weight: 700; letter-spacing: -.01em; }
.ocm-dialog__head .ocm-close { top: 14px; margin-top: 0; }
.ocm-dialog__body { padding: 18px 22px; }
.ocm-dialog__body > :last-child { margin-bottom: 0; }
.ocm-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  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);
}
.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 -------------------------- */
.ocm-table-wrap { overflow-x: auto; margin: 0 0 var(--ocm-gap); border: 1px solid var(--ocm-line); border-radius: var(--ocm-r); }
:where(.ocm-table) { width: 100%; border-collapse: collapse; }
:where(.ocm-table th) {
  padding: 10px var(--ocm-gap);
  border-bottom: 1px solid var(--ocm-line);
  background: var(--ocm-subtle);
  color: var(--ocm-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
:where(.ocm-table td) { padding: 11px var(--ocm-gap); border-top: 1px solid var(--ocm-line); vertical-align: middle; }
:where(.ocm-table tr:first-child td) { border-top: 0; }
.ocm-table .ocm-num, .ocm-table .is-num { text-align: right; white-space: nowrap; }
.ocm-table tr.is-current td { background: var(--ocm-accent-tint); }

/* ---------- 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-dark); 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; }
.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))); }
.ocm-brand:focus-visible { outline: 2px solid var(--ocm-accent-dark); 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-dark); 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-dark); 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-dark); 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-dark); outline-offset: 2px; }
.ocm-carousel__nav { display: flex; gap: 6px; margin-left: auto; }
:where(.ocm-carousel__btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ocm-line-strong);
  border-radius: 50%;
  background: var(--ocm-surface);
  color: var(--ocm-ink);
  cursor: pointer;
}
:where(.ocm-carousel__btn:hover) { border-color: var(--ocm-ink); }
.ocm-carousel__btn:focus-visible { outline: 2px solid var(--ocm-accent-dark); outline-offset: 2px; }
:where(.ocm-carousel__btn[disabled]) { border-color: var(--ocm-line); cursor: default; }
/* button { color: inherit } of the theme does not grey out the arrow at the end */
.ocm-carousel__btn { color: var(--ocm-ink); }
.ocm-carousel__btn[disabled] { color: var(--ocm-line-strong); }
.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; }
.ocm-seg {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r-ctl);
  background: var(--ocm-surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.ocm-seg::-webkit-scrollbar { display: none; }
:where(.ocm-seg__item) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-left: 1px solid var(--ocm-line-strong);
  background: none;
  font: inherit;
  font-size: max(12px, var(--ocm-fs-sm));
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
:where(.ocm-seg__item:first-child) { border-left: 0; }
:where(.ocm-seg__item:hover) { background: var(--ocm-subtle); }
.ocm-seg__item:focus-visible { outline: 2px solid var(--ocm-accent-dark); outline-offset: -2px; }
/* the sorts of OpenCart are links: a and a:hover of the theme do not recolour them */
.ocm-seg__item,
.ocm-seg__item:hover,
.ocm-seg__item:focus { text-decoration: none; }
.ocm-seg__item { color: var(--ocm-text); font-size: max(12px, var(--ocm-fs-sm)); font-weight: 600; }
.ocm-seg__item:hover,
.ocm-seg__item:focus { color: var(--ocm-ink); }
.ocm-seg__item.is-on,
.ocm-seg__item[aria-current="true"],
.ocm-seg__item[aria-pressed="true"] { background: var(--ocm-accent-tint); color: var(--ocm-accent-dark); }

/* ---------- 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: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ocm-line-strong);
  color: var(--ocm-ink);
  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); }

/* ---------- 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); }
/* 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-dark); 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-dark); outline-offset: 2px; }
.ocm-range__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--ocm-accent-dark); 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-dark); 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); }
.ocm-fab:focus-visible { outline: 2px solid var(--ocm-accent-dark); 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 16px;
  border: 1px solid var(--ocm-line-strong);
  border-radius: var(--ocm-r);
  background: var(--ocm-surface);
  color: var(--ocm-ink);
}
: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;
}

/* ---------- 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; }

/* ---------- 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-qty__input { font-size: max(16px, 1em); }
}

/* 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; }
}
