/* Campaign Manager — front office */
.cm-badges { display: inline-flex; gap: .35rem; flex-wrap: wrap; vertical-align: middle; }
.cm-badge {
  display: inline-block;
  padding: .15em .55em;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  border-radius: 3px;
  text-transform: uppercase;
}
.cm-badge--outline { background: transparent !important; border: 1px solid currentColor; }

/* Product-flag badges (colors are injected per badge id in <head>) */
.product-flag[class*="cm-badge-"] { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }

/* Campaign page */
.cm-campaign-page { max-width: 100%; }
/* --- Campaign / launch landing page ------------------------------------- */
.cm-campaign-page { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.cm-page-hero { text-align: center; margin: 8px 0 40px; }
/* Banner: full width, scales vertically, capped at 650px. */
.cm-page-banner {
  width: 100%; margin: 0 0 32px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(17, 19, 17, .08);
}
.cm-page-banner img { width: 100%; height: auto; max-height: 650px; object-fit: cover; display: block; }
.cm-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: #111311; }
.cm-page-desc { color: rgba(17, 19, 17, .60); max-width: 680px; margin: 0 auto; line-height: 1.6; font-size: 1.05rem; }
.cm-page-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0; }
.cm-filter-chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(17, 19, 17, .16); color: #111311; text-decoration: none;
  font-size: .9rem; font-weight: 600; transition: border-color .15s ease, background-color .15s ease;
}
.cm-filter-chip:hover { border-color: #111311; text-decoration: none; }
.cm-filter-chip--active { background: #111311; border-color: #111311; color: #fff; }
.cm-page-section { margin-bottom: 40px; }
/* Product grid — gap so miniatures don't merge together. */
.cm-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.cm-products .product-miniature,
.cm-products .js-product-miniature,
.cm-products > article,
.cm-products > .product { width: auto !important; margin: 0 !important; float: none !important; }
.cm-section-title {
  font-size: 1.4rem; font-weight: 700; margin: 0 0 20px; padding-bottom: 8px;
  border-bottom: 2px solid #79d7c3; display: inline-block; color: #111311;
}
.cm-product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem;
}
.cm-product-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid rgba(0,0,0,.08); border-radius: 8px; padding: .85rem;
  background: #fff; transition: box-shadow .15s ease, border-color .15s ease;
}
.cm-product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); border-color: rgba(0,0,0,.16); text-decoration: none; }
.cm-product-image img { width: 100%; height: auto; margin-bottom: .6rem; }
.cm-product-name { font-size: .9rem; margin-bottom: .35rem; line-height: 1.35; }
.cm-product-prices { display: flex; align-items: baseline; gap: .45rem; margin-top: auto; }
.cm-product-price { font-weight: 700; font-size: 1.02rem; }
.cm-product-old { text-decoration: line-through; color: #9aa2a9; font-size: .85rem; }
.cm-page-empty { color: #6c868e; padding: 2rem 0; }
/* "Extra product highlighting" toggle: the launch products area stands out. */
.cm-page-section--highlight { background: rgba(121,215,195,.12); border: 1px solid rgba(121,215,195,.5); border-radius: 12px; padding: 16px; }

/* ------------------------------------------------------------------ */
/* Licznik odliczający do końca kampanii (Teklano)                    */
/* ------------------------------------------------------------------ */
.cm-countdown {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 24px auto 8px; padding: 20px 24px; max-width: 520px;
  border: 1px solid rgba(17, 19, 17, .12); border-radius: 16px; background: #fff;
  text-align: center;
}
.cm-countdown-label {
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(17, 19, 17, .56);
  text-transform: uppercase;
}
.cm-countdown-clock { display: inline-flex; align-items: flex-start; gap: 8px; }
.cm-cd-unit {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 64px; padding: 12px 8px; border-radius: 12px; background: #79d7c3;
}
.cm-cd-num { font-size: 28px; font-weight: 700; line-height: 1; color: #111311; font-variant-numeric: tabular-nums; }
.cm-cd-cap { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(17, 19, 17, .64); }
.cm-cd-sep { font-size: 24px; font-weight: 700; color: rgba(17, 19, 17, .24); align-self: center; padding-top: 8px; }
.cm-countdown-ended { font-size: 18px; font-weight: 700; color: #111311; }

/* ------------------------------------------------------------------ */
/* Product Launch — teaser, notify form, placeholders                 */
/* ------------------------------------------------------------------ */
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cm-launch-notify {
  max-width: 520px; margin: 24px auto 32px; padding: 24px;
  border: 1px solid rgba(17, 19, 17, .12); border-radius: 16px; background: #fff; text-align: center;
}
.cm-launch-notify-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #111311; }
.cm-launch-notify-text { color: rgba(17, 19, 17, .56); margin: 0 0 16px; }
.cm-notify-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cm-notify-input {
  flex: 1 1 240px; height: 48px; padding: 0 16px; border: 1px solid rgba(17, 19, 17, .24);
  border-radius: 8px; font-size: 15px; background: #fff; color: #111311;
}
.cm-notify-input:focus { outline: 2px solid rgba(121, 215, 195, .64); outline-offset: -2px; border-color: #79d7c3; }
.cm-notify-btn {
  height: 48px; padding: 0 24px; border: 0; border-radius: 8px; cursor: pointer;
  background: #79d7c3; color: #111311; font-weight: 700; font-size: 15px;
}
.cm-notify-consent { flex: 1 1 100%; margin: 8px 0 0; font-size: 12px; color: rgba(17, 19, 17, .48); }
.cm-notify-msg { flex: 1 1 100%; margin: 8px 0 0; font-weight: 600; }
.cm-notify-msg.is-ok { color: #111311; }
.cm-notify-msg.is-err { color: #111311; }

.cm-launch-placeholders { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cm-teaser-tile { border: 1px solid rgba(17, 19, 17, .12); border-radius: 12px; padding: 12px; }
.cm-teaser-thumb {
  height: 160px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #f3f3f1, #f3f3f1 12px, #ececea 12px, #ececea 24px);
}
.cm-teaser-line { height: 10px; border-radius: 6px; background: rgba(17, 19, 17, .10); margin-top: 12px; }
.cm-teaser-line.is-short { width: 55%; }
.cm-launch-cta { text-align: center; margin: 24px 0; }
.cm-launch-cta-btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  background: #111311; color: #fff; font-weight: 700; text-decoration: none;
}
