.ccm-root{
  --ccm-bg:#0b0b0d;
  --ccm-bg-soft:rgba(8,8,10,.95);
  --ccm-surface:#101015;
  --ccm-text:#f0ece6;
  --ccm-text-soft:rgba(240,236,230,.86);
  --ccm-border:rgba(184,12,28,.58);
  --ccm-border-soft:rgba(255,255,255,.10);
  --ccm-accent:#b20f1f;
  --ccm-accent-2:#d02231;
  --ccm-accent-dark:#8a0917;
  --ccm-shadow:0 24px 60px rgba(0,0,0,.48);
  font-family:"Cormorant Garamond", Sans-serif;
  font-weight:400;
  color:var(--ccm-text);
}
.ccm-root *{box-sizing:border-box}
.ccm-banner,.ccm-modal__dialog,.ccm-inline-settings{font-family:"Cormorant Garamond", Sans-serif;font-weight:400}
.ccm-banner{
  position:fixed; z-index:2147483000; right:24px; left:auto; bottom:24px;
  width:min(510px, calc(100vw - 32px)); background:var(--ccm-bg-soft); color:var(--ccm-text);
  border:1px solid var(--ccm-border); border-radius:18px; box-shadow:var(--ccm-shadow); backdrop-filter:blur(10px);
}
.ccm-banner__inner{padding:24px 24px 22px;display:flex;flex-direction:column;gap:18px;align-items:stretch;justify-content:flex-start}
.ccm-banner__content{max-width:none}
.ccm-banner h2,.ccm-modal h2,.ccm-category h3{margin:0 0 10px;line-height:1.15;font-weight:400}
.ccm-banner h2{font-size:30px;letter-spacing:.01em}
.ccm-banner p,.ccm-category p{margin:0;line-height:1.5;color:var(--ccm-text-soft)}
.ccm-banner p{font-size:17px}
.ccm-policy-links,.ccm-modal__legal-links{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.ccm-policy-links{margin-top:12px}
.ccm-policy-link{color:#d5d0c9;text-decoration:none;border-bottom:1px solid rgba(184,12,28,.55);padding-bottom:1px}
.ccm-policy-link:hover,.ccm-policy-link:focus-visible{color:#fff;border-bottom-color:var(--ccm-accent-2);outline:none}
.ccm-banner__actions{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;justify-content:flex-start}
.ccm-btn{
  appearance:none; border:1px solid #cf2633; border-radius:7px; padding:11px 18px;
  font:inherit; font-size:18px; font-weight:400; cursor:pointer; line-height:1.15;
  color:#fff; background:linear-gradient(180deg, #cf2633 0%, #a40f1d 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 2px rgba(255,255,255,.06);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}
.ccm-btn:hover,.ccm-btn:focus-visible{filter:brightness(1.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 0 0 2px rgba(255,255,255,.1);outline:none}
.ccm-btn:active{transform:translateY(1px)}
.ccm-btn--primary{background:linear-gradient(180deg, #cf2633 0%, #a40f1d 100%);color:#fff}
.ccm-btn--secondary{background:linear-gradient(180deg, #c21c2b 0%, #950d1b 100%);color:#fff}
.ccm-btn--link{background:linear-gradient(180deg, #c21c2b 0%, #950d1b 100%); color:#fff; text-decoration:none}
.ccm-modal[hidden],.ccm-banner[hidden]{display:none!important}
.ccm-modal{position:fixed;z-index:2147483100;inset:0;display:flex;align-items:center;justify-content:center;padding:20px}
.ccm-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.76);backdrop-filter:blur(4px)}
.ccm-modal__dialog{
  position:relative; width:min(860px, 100%); max-height:min(820px, 90vh); overflow:auto;
  background:linear-gradient(180deg, rgba(18,18,22,.98) 0%, rgba(10,10,13,.98) 100%); color:var(--ccm-text);
  border-radius:18px; border:1px solid var(--ccm-border); box-shadow:0 30px 90px rgba(0,0,0,.52); outline:none;
}
.ccm-modal__header{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 18px;border-bottom:1px solid var(--ccm-border-soft)}
.ccm-modal__header h2{font-size:34px;margin:0}
.ccm-modal__close{
  display:inline-flex; align-items:center; justify-content:center; width:50px; height:50px;
  border:1px solid #cf2633; background:linear-gradient(180deg, #cf2633 0%, #a40f1d 100%);
  color:#fff; border-radius:7px; font-size:28px; line-height:1; cursor:pointer; padding:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 2px rgba(255,255,255,.06);
}
.ccm-modal__close:hover,.ccm-modal__close:focus-visible{filter:brightness(1.08);outline:none}
.ccm-modal__body{padding:0 22px}
.ccm-category{display:flex;gap:24px;justify-content:space-between;align-items:center;padding:22px 0;border-bottom:1px solid var(--ccm-border-soft)}
.ccm-category__copy{max-width:680px}
.ccm-category h3{font-size:22px}
.ccm-category p{font-size:16px}
.ccm-modal__footer{padding:18px 22px 22px;display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.ccm-modal__footer-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.ccm-switch{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.ccm-switch input{position:absolute;opacity:0;width:1px;height:1px}
.ccm-switch__ui{width:54px;height:30px;border-radius:999px;background:#595a62;position:relative;transition:.18s;border:1px solid rgba(255,255,255,.10)}
.ccm-switch__ui:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.18s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.ccm-switch input:checked+.ccm-switch__ui{background:linear-gradient(180deg, #cf2633 0%, #a40f1d 100%);border-color:#cf2633}
.ccm-switch input:checked+.ccm-switch__ui:after{transform:translateX(24px)}
.ccm-switch input:focus-visible+.ccm-switch__ui{outline:2px solid rgba(207,38,51,.75);outline-offset:3px}
.ccm-switch input:disabled+.ccm-switch__ui{opacity:.88}
.ccm-inline-settings{appearance:none;border:1px solid #cf2633;background:linear-gradient(180deg, #cf2633 0%, #a40f1d 100%);color:#fff;border-radius:7px;padding:10px 14px;font:inherit;font-size:18px;cursor:pointer}
.ccm-modal-open{overflow:hidden}
@media (max-width: 800px){
  .ccm-banner{right:8px;left:8px;width:auto;bottom:8px}
  .ccm-banner__inner{padding:18px 18px 16px;gap:14px}
  .ccm-banner h2{font-size:28px}
  .ccm-banner p{font-size:16px}
  .ccm-banner__actions .ccm-btn{flex:1 1 100%}
  .ccm-modal{padding:10px;align-items:center}
  .ccm-modal__dialog{width:100%;max-height:92vh;border-radius:16px}
  .ccm-modal__header{padding:18px 18px 16px}
  .ccm-modal__header h2{font-size:28px}
  .ccm-modal__body{padding:0 18px}
  .ccm-category{gap:18px;padding:18px 0;align-items:flex-start}
  .ccm-category__copy{max-width:none}
  .ccm-category h3{font-size:21px}
  .ccm-category p{font-size:15px}
  .ccm-modal__footer{padding:18px;flex-direction:column;align-items:stretch}
  .ccm-modal__footer-actions{width:100%;flex-direction:column}
  .ccm-modal__footer .ccm-btn{width:100%}
}

/* v0.1.3 — wymuszenie spójnego stylu przycisków niezależnie od CSS motywu/Elementora */
#ccm-root .ccm-btn,
#ccm-root .ccm-banner .ccm-btn,
#ccm-root .ccm-modal .ccm-btn,
#ccm-root .ccm-modal__footer .ccm-btn,
#ccm-root button.ccm-btn {
  background: #b21725 !important;
  background-image: none !important;
  border: 1px solid #d12a3a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(120,10,24,.35) !important;
  font-family: "Cormorant Garamond", Sans-serif !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
#ccm-root .ccm-btn:hover,
#ccm-root .ccm-btn:focus-visible,
#ccm-root .ccm-modal__footer .ccm-btn:hover,
#ccm-root .ccm-modal__footer .ccm-btn:focus-visible {
  background: #c41b2b !important;
  background-image: none !important;
  border-color: #e13748 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  outline: none !important;
}
#ccm-root .ccm-btn:active {
  background: #9f101e !important;
  border-color: #c82334 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
#ccm-root .ccm-modal__close,
#ccm-root button.ccm-modal__close {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #b21725 !important;
  background-image: none !important;
  border: 1px solid #d12a3a !important;
  border-radius: 7px !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 1 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(120,10,24,.35) !important;
  overflow: hidden !important;
}
#ccm-root .ccm-modal__close::before,
#ccm-root .ccm-modal__close::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  transform-origin: center !important;
}
#ccm-root .ccm-modal__close::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
#ccm-root .ccm-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }
#ccm-root .ccm-modal__close:hover,
#ccm-root .ccm-modal__close:focus-visible {
  background: #c41b2b !important;
  border-color: #e13748 !important;
  opacity: 1 !important;
  filter: none !important;
  outline: none !important;
}
#ccm-root .ccm-modal__close:active { background: #9f101e !important; }
#ccm-root .ccm-switch input:checked + .ccm-switch__ui {
  background: #b21725 !important;
  background-image: none !important;
  border-color: #d12a3a !important;
}
#ccm-root .ccm-policy-link { color: #d8d1ca !important; -webkit-text-fill-color: #d8d1ca !important; }
#ccm-root .ccm-policy-link:hover,
#ccm-root .ccm-policy-link:focus-visible { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

/* v0.1.4 — desktop: trzy akcje banera zawsze w jednej linii */
@media (min-width: 801px) {
  #ccm-root .ccm-banner {
    width: min(570px, calc(100vw - 48px));
  }

  #ccm-root .ccm-banner__actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #ccm-root .ccm-banner__actions .ccm-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 16px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}
