/* Smaller cookie box on every shop (Václav 28. 10. 2026: "hrozně to otravuje"): the same texts, buttons and links, only less
   space - smaller type and padding, the three buttons in one row. Appearance only; consent, categories and the config
   (cookieconsent-config.js) are unchanged. html #cc-main wins over the library styles whatever their order.
   Version 22. 11. 2026 (new file name so Cloudflare and browsers drop the old one; cookieconsent-compact-20261028.css stays
   on the server untouched): same desktop rules, plus the low phone bar at the end of this file. */
html #cc-main .cm {
  width: 360px;
  max-width: calc(100vw - 20px);
  font-size: 12px;
}

html #cc-main .cm__body {
  flex-direction: column;
}

html #cc-main .cm__texts {
  padding: 10px 14px 0;
}

html #cc-main .cm__title {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.3;
}

html #cc-main .cm__desc {
  max-height: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
}

html #cc-main .cm__btns {
  flex-direction: row;
  gap: 6px;
  padding: 8px 14px 10px;
  border-top: 0;
}

html #cc-main .cm__btn-group {
  display: flex;
  flex: 2 1 auto;
  gap: 6px;
  margin: 0;
}

html #cc-main .cm__btn-group:last-child {
  flex: 1 1 auto;
}

html #cc-main .cm__btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.25;
}

/* The library spaces stacked buttons apart; in one row that made "Odmítnout vše" lower than "Přijmout vše" */
html #cc-main .cm__btn + .cm__btn,
html #cc-main .cm__btn-group + .cm__btn-group {
  margin: 0;
}

html #cc-main .cm__footer {
  padding: 4px 14px 8px;
  font-size: 11px;
}

html #cc-main .cm__link-group {
  gap: 12px;
}

/* Phones: the library sets these with !important at 640 px and below */
@media screen and (max-width: 640px) {
  html #cc-main .cm__btns,
  html #cc-main .cm__btn-group {
    flex-direction: row !important;
  }

  html #cc-main .cm__btns,
  html #cc-main .cm__desc,
  html #cc-main .cm__links,
  html #cc-main .cm__title {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  html #cc-main .cm__btns {
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    border-top: 0 !important;
  }

  html #cc-main .cm__texts {
    padding: 10px 0 0;
  }

  html #cc-main .cm__btn {
    flex: 1 1 0 !important;
  }

  html #cc-main .cm__btn + .cm__btn,
  html #cc-main .cm__btn-group + .cm__btn-group {
    margin: 0 !important;
  }
}

/* PHONE BAR (22. 11. 2026, audit SK webu: on a 375 px phone the box covered 22 % of the screen, the price and on apexis.sk the
   "Do košíka" button). Appearance only, the same texts, buttons, order and links: a low bar on the bottom edge,
   - title and description run as one paragraph (one line less), smaller type, the three buttons in one row 44 px high;
   - the right 76 px stay free for the WhatsApp bubble (56 px at right 14 px) and the Smartsupp bubble, so the bar never
     lies over them and they stay clickable;
   - the sticky "Do košíka" bar of the product page (sticky-cart-20261122-3.js) stays hidden while this bar is open, so the
     two never overlap;
   - while the bar is shown the page gets room at its end, so everything it covers can be scrolled out from under it. */
@media screen and (max-width: 640px) {
  html #cc-main .cm,
  html #cc-main .cm--box.cm--bottom.cm--left {
    top: auto !important;
    left: 0 !important;
    right: 76px !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 12px 0 0;
    font-size: 11.5px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  html #cc-main .cm__texts {
    display: block;
    padding: 7px 10px 0;
  }

  html #cc-main .cm__title,
  html #cc-main .cm__desc {
    display: inline;
    padding: 0 !important;
    font-size: 11.5px;
    line-height: 1.35;
  }

  html #cc-main .cm__title {
    margin: 0 4px 0 0;
  }

  html #cc-main .cm__desc {
    max-height: none;
    overflow: visible;
  }

  html #cc-main .cm__btns {
    gap: 5px;
    padding: 6px 10px 4px !important;
  }

  html #cc-main .cm__btn-group {
    gap: 5px;
  }

  html #cc-main .cm__btn {
    min-height: 44px;
    padding: 2px 4px;
    font-size: 11.5px;
    line-height: 1.2;
  }

  html #cc-main .cm__footer {
    padding: 0 10px 2px;
  }

  html #cc-main .cm__links {
    padding: 0 !important;
  }

  html #cc-main .cm__link-group {
    gap: 4px;
    font-size: 11px;
  }

  html #cc-main .cm__link-group > a,
  html #cc-main .cm__link-group > * {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
  }

  html.show--consent body {
    padding-bottom: 190px !important;
  }
}