/* Bloky s uzsim containerem - pokud je potreba predefinovat $line-width
====================================================================== */

.container--article .col-text,
.container--article .section--header,
.container--article .section--text,
.container--article .section-blank,
.container--article .section-title,
.container--article .section-header,
.container--article .section-cta,
.container--article .col-text.section-bg-light>*,
.container--article .col-text.section-bg>*,
.container--article .section--header.section-bg-light>*,
.container--article .section--header.section-bg>*,
.container--article .section--text.section-bg-light>*,
.container--article .section--text.section-bg>*,
.container--article .section-blank.section-bg-light>*,
.container--article .section-blank.section-bg>*,
.container--article .section-title.section-bg-light>*,
.container--article .section-title.section-bg>*,
.container--article .section-header.section-bg-light>*,
.container--article .section-header.section-bg>*,
.container--article .section-cta.section-bg-light>*,
.container--article .section-cta.section-bg>*,
.section--3-col-text-bottom h3,
.section--3-col-text-bottom p,
.section--3-col-text-top h3,
.section--3-col-text-top p,
.comments,
.top-products__title,
.active-category__title,
.perex,
.section-perex,
.sitemap,
.product-page__description .section-dynamic[data-dynamic-type="folder"],
.col-text.section-bg-light>*,
.col-text.section-bg>*,
.section--header.section-bg-light>*,
.section--header.section-bg>*,
.section--text.section-bg-light>*,
.section--text.section-bg>*,
.section-blank.section-bg-light>*,
.section-blank.section-bg>*,
.section-title.section-bg-light>*,
.section-title.section-bg>*,
.section-header.section-bg-light>*,
.section-header.section-bg>*,
.section-cta.section-bg-light>*,
.section-cta.section-bg>*,
.section-pricelist.section-bg-light>*,
.section-pricelist.section-bg>*,
.col-text,
.section--header,
.section--text,
.section-blank,
.section-title,
.section-header,
.section-cta,
.section-pricelist,
.section-3-col-bottom-text h3,
.section-3-col-bottom-text .h3,
.section-3-col-bottom-text p,
.section-3-col-top-text h3,
.section-3-col-top-text .h3,
.section-3-col-top-text p {
  max-width: unset;
}

@media (min-width: 768px) {

  .user-form,
  .form-row--center .form-row__text,
  .account-form__fieldset,
  .form-row--center .form-row__text {
    max-width: 100%;
  }
}

@media (min-width: 992px) {

  .section-3-col-bottom-text h3,
  .section-3-col-bottom-text .h3,
  .section-3-col-bottom-text p,
  .section-3-col-top-text h3,
  .section-3-col-top-text .h3,
  .section-3-col-top-text p {
    max-width: unset;
  }
}
/* ==== WHATS UP === */


    /* DŮLEŽITÉ: widget je v HTML skrytý (display:none),
       JS ho zobrazí až po vyřešení cookies modalu.        */
    #wa-bubble {
      display: none;
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 1040;   /* pod Bootstrap modalem (z-index: 1055) */
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      font-family: 'Segoe UI', Arial, sans-serif;
    }
    /* Jakmile JS přidá třídu .wa-ready, widget se stane viditelným */
    #wa-bubble.wa-ready {
      display: flex;
    }

    /* === Pop-up karta === */
    #wa-card {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(0,0,0,.14);
      padding: 20px 20px 16px;
      width: 270px;
      transform-origin: bottom right;
      transform: scale(0) translateY(10px);
      opacity: 0;
      transition: transform .28s cubic-bezier(.34,1.56,.64,1),
                  opacity .22s ease;
      pointer-events: none;
      position: relative;
    }
    #wa-card.open {
      transform: scale(1) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .wa-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .wa-avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: #25d366;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(37,211,102,.35);
    }
    .wa-avatar svg { display: block; }
    .wa-name { font-weight: 700; font-size: .95rem; color: #111; line-height: 1.2; }
    .wa-status {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: .75rem;
      color: #25d366;
      margin-top: 2px;
    }
    .wa-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #25d366;
      animation: waPulse 2s infinite;
    }
    @keyframes waPulse {
      0%,100% { opacity: 1; }
      50%      { opacity: .4; }
    }

    .wa-message-bubble {
      background: #f0f4f8;
      border-radius: 12px 12px 12px 4px;
      padding: 10px 14px;
      font-size: .85rem;
      color: #333;
      line-height: 1.45;
      margin-bottom: 14px;
    }

    .wa-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 11px 0;
      background: #25d366;
      color: #fff;
      font-weight: 700;
      font-size: .9rem;
      border-radius: 50px;
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(37,211,102,.4);
      transition: background .18s, transform .15s, box-shadow .15s;
      cursor: pointer;
      border: none;
      box-sizing: border-box;
    }
    .wa-cta:hover {
      background: #1fba58;
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(37,211,102,.5);
    }
    .wa-cta:active { transform: translateY(0); }

    #wa-close-card {
      position: absolute;
      top: 12px; right: 14px;
      width: 26px; height: 26px;
      border: none; background: none;
      cursor: pointer;
      color: #bbb;
      font-size: 1rem;
      line-height: 1;
      padding: 0;
      transition: color .15s, background .15s;
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
    }
    #wa-close-card:hover { color: #555; background: #f0f0f0; }

    /* === FAB tlačítko === */
    #wa-fab {
      width: 60px; height: 60px;
      border-radius: 50%;
      background: #25d366;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(37,211,102,.5);
      transition: transform .2s, box-shadow .2s;
      position: relative;
      flex-shrink: 0;
    }
    #wa-fab:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 26px rgba(37,211,102,.6);
    }
    #wa-fab:active { transform: scale(.96); }

    #wa-fab .icon-wa { transition: opacity .2s, transform .2s; }
    #wa-fab .icon-close {
      position: absolute;
      opacity: 0;
      transform: rotate(-90deg) scale(.6);
      transition: opacity .2s, transform .2s;
      color: #fff;
      font-size: 1.4rem;
      font-weight: 300;
      line-height: 1;
    }
    #wa-fab.open .icon-wa    { opacity: 0; transform: rotate(90deg) scale(.6); }
    #wa-fab.open .icon-close { opacity: 1; transform: rotate(0) scale(1); }

    #wa-badge {
      position: absolute;
      top: -3px; right: -3px;
      width: 18px; height: 18px;
      border-radius: 50%;
      background: #ff3b30;
      color: #fff;
      font-size: .65rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #f0f4f8;
      animation: waBadgePop .4s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes waBadgePop {
      from { transform: scale(0); opacity: 0; }
      to   { transform: scale(1); opacity: 1; }
    }
    #wa-badge.hidden { display: none; }

    #wa-tooltip {
      position: absolute;
      right: 70px;
      bottom: 50%;
      transform: translateY(50%);
      background: #111;
      color: #fff;
      font-size: .78rem;
      white-space: nowrap;
      padding: 6px 12px;
      border-radius: 8px;
      pointer-events: none;
      opacity: 0;
      transition: opacity .18s;
    }
    #wa-tooltip::after {
      content: '';
      position: absolute;
      right: -6px; top: 50%;
      transform: translateY(-50%);
      border: 5px solid transparent;
      border-left-color: #111;
      border-right: none;
    }
    #wa-bubble:hover #wa-tooltip:not(.hidden) { opacity: 1; }
    #wa-tooltip.hidden { display: none; }
/* ===================================================== */