/* 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 23. 11. 2026 (new file name so Cloudflare and browsers drop the old one; cookieconsent-compact-20261028.css and
   cookieconsent-compact-20261122.css stay on the server untouched): same desktop rules, plus the phone bar under the header
   at the end of this file (it replaces the low bottom bar of 22. 11.). */
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 UNDER THE HEADER (23. 11. 2026, Václav 23. 11. 2026 "1 až 4 ano": move the bar up or make it shorter, appearance
   only). The bar of 22. 11. lay on the bottom edge and on the product page still covered the price and the "Do košíka" button
   (apexis.sk, 375 x 812: bar 646-812, price 737-767, button 809-853). Now, on screens up to 767 px wide:
   - the bar sits right under the sticky shop header (its lower edge is at 162 px on eletur.cz, eletur.sk, eonboom.cz and at
     176 px on the other five shops, the same at 320-767 px), so the header with the menu, search and cart stays usable and the
     bar covers only the top of the content (picture, title); price, "Do košíka", the WhatsApp and Smartsupp bubbles stay free;
   - the same texts, buttons, order and links as before, three buttons in one row 44 px high, nothing hidden;
   - no room is added at the end of the page any more (the bar no longer lies on the bottom edge);
   - on a low screen (phone on its side, up to 767 px wide and 520 px high) the right 76 px stay free, because there the bar
     reaches down to the WhatsApp and Smartsupp bubbles;
   - wider screens, landscape phones above 767 px and the preferences window keep their look. */
@media screen and (max-width: 767px) {
  html #cc-main .cm,
  html #cc-main .cm--box.cm--bottom.cm--left {
    top: 176px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 176px);
    margin: 0 !important;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    font-size: 11.5px;
  }

  html body.store-eleturcz #cc-main .cm.cm--box,
  html body.store-eletursk #cc-main .cm.cm--box,
  html body.store-eonboomcz #cc-main .cm.cm--box {
    top: 162px !important;
    max-height: calc(100vh - 162px);
  }

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

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

  html #cc-main .cm__title,
  html #cc-main .cm__desc {
    display: inline;
    margin: 0;
    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,
  html #cc-main .cm__btn-group {
    flex-direction: row !important;
  }

  html #cc-main .cm__btns {
    gap: 5px;
    padding: 6px 12px 4px !important;
    border-top: 0 !important;
  }

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

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

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

  html #cc-main .cm__footer {
    padding: 0 12px 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;
  }
}

@media screen and (max-width: 767px) and (max-height: 520px) {
  html #cc-main .cm,
  html #cc-main .cm--box.cm--bottom.cm--left {
    right: 76px !important;
  }
}
