/* Vantimo Consent — style w pełni odizolowane od motywu / Elementora.
   Wszystko jest zakotwiczone w ID baneru (front: #vantimo-consent, podgląd w panelu: #vca-banner),
   dzięki czemu: (1) motyw nie nadpisze stylów wtyczki, (2) wtyczka nie wpływa na resztę strony. */

/* ---- reset: root + wszystkie elementy wewnątrz ---- */
:is(#vantimo-consent,#vca-banner){all:unset;box-sizing:border-box}
:is(#vantimo-consent,#vca-banner) :is(div,section,h2,p,span,a,img,label,strong,small,button,input){all:unset;box-sizing:border-box}
:is(#vantimo-consent,#vca-banner) :is(div,section,h2,p,label){display:block}
:is(#vantimo-consent,#vca-banner) :is(span,a,strong){display:inline}
:is(#vantimo-consent,#vca-banner) :is(small){display:block}
:is(#vantimo-consent,#vca-banner) button{display:inline-block;cursor:pointer}
:is(#vantimo-consent,#vca-banner) a{cursor:pointer}
:is(#vantimo-consent,#vca-banner) strong{font-weight:700}
:is(#vantimo-consent,#vca-banner) [hidden],
:is(#vantimo-consent,#vca-banner)[hidden]{display:none!important}

/* ---- kontener ---- */
:is(#vantimo-consent,#vca-banner).vc-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:15px;line-height:1.5;font-weight:400;text-align:left;color:var(--vc-text,#172033);-webkit-font-smoothing:antialiased}
:is(#vantimo-consent,#vca-banner).vc-position-bottom{align-items:flex-end;justify-content:center;padding:16px;pointer-events:none}
:is(#vantimo-consent,#vca-banner).vc-position-center{align-items:center;justify-content:center;padding:16px;background:rgba(8,10,24,var(--vc-overlay,.45));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* ---- panel ---- */
:is(#vantimo-consent,#vca-banner) .vc-panel{pointer-events:auto;position:relative;display:flex;flex-direction:column;gap:14px;width:min(100%,var(--vc-width,640px));max-height:calc(100vh - 32px);overflow:auto;padding:28px;border-radius:var(--vc-radius,22px);background:linear-gradient(145deg,var(--vc-surface,#fff),var(--vc-surface-end,var(--vc-surface,#fff)));border:1px solid rgba(128,128,128,.2)}
:is(#vantimo-consent,#vca-banner).vc-shadow-soft .vc-panel{box-shadow:0 12px 40px rgba(15,18,40,.14)}
:is(#vantimo-consent,#vca-banner).vc-shadow-strong .vc-panel{box-shadow:0 30px 80px -10px rgba(15,18,60,.38),0 8px 24px rgba(15,18,60,.12)}
:is(#vantimo-consent,#vca-banner).vc-shadow-none .vc-panel{box-shadow:none}
:is(#vantimo-consent,#vca-banner) .vc-block{margin:0}

/* ---- elementy ---- */
:is(#vantimo-consent,#vca-banner) .vc-logo{display:block;max-height:40px;max-width:180px;object-fit:contain}
:is(#vantimo-consent,#vca-banner) .vc-logo-ph{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border:1.5px dashed rgba(128,128,128,.6);border-radius:10px;font-size:13px;opacity:.7}
:is(#vantimo-consent,#vca-banner) .vc-eyebrow{font-size:13px;font-weight:600;color:var(--vc-accent)}
:is(#vantimo-consent,#vca-banner) .vc-title{margin:0;padding:0;font-size:24px;line-height:1.2;font-weight:700;letter-spacing:-.015em;color:inherit;font-family:inherit}
:is(#vantimo-consent,#vca-banner) .vc-desc{opacity:.8}
:is(#vantimo-consent,#vca-banner) .vc-policy{color:var(--vc-accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
:is(#vantimo-consent,#vca-banner) .vc-categories{display:grid;gap:8px}
:is(#vantimo-consent,#vca-banner) .vc-category{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:calc(var(--vc-radius,22px)*.55);background:rgba(128,128,128,.1);cursor:pointer;text-align:left}
:is(#vantimo-consent,#vca-banner) .vc-cat-text{display:grid;gap:2px}
:is(#vantimo-consent,#vca-banner) .vc-cat-text small{font-size:13px;opacity:.7}

/* ---- przełączniki ---- */
:is(#vantimo-consent,#vca-banner) .vc-switch{appearance:none;-webkit-appearance:none;position:relative;display:block;flex:none;width:44px;height:26px;margin:0;border:0;border-radius:999px;background:rgba(128,128,128,.45);cursor:pointer;transition:background .2s}
:is(#vantimo-consent,#vca-banner) .vc-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
:is(#vantimo-consent,#vca-banner) .vc-switch:checked{background:var(--vc-accent)}
:is(#vantimo-consent,#vca-banner) .vc-switch:checked::after{transform:translateX(18px)}
:is(#vantimo-consent,#vca-banner) .vc-switch:disabled{opacity:.55;cursor:not-allowed}
:is(#vantimo-consent,#vca-banner) .vc-switch:focus-visible,
:is(#vantimo-consent,#vca-banner) .vc-btn:focus-visible,
:is(#vantimo-consent,#vca-banner) .vc-close:focus-visible{outline:3px solid var(--vc-accent);outline-offset:2px}

/* ---- przyciski ---- */
:is(#vantimo-consent,#vca-banner) .vc-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:is(#vantimo-consent,#vca-banner) .vc-btn{display:inline-block;font-family:inherit;font-size:15px;line-height:1.4;font-weight:600;letter-spacing:normal;text-transform:none;text-align:center;text-decoration:none;padding:11px 20px;border:2px solid transparent;border-radius:calc(var(--vc-radius,22px)*.55);box-shadow:none;cursor:pointer;transition:transform .15s,filter .15s}
:is(#vantimo-consent,#vca-banner).vc-btns-pill .vc-btn{border-radius:999px}
:is(#vantimo-consent,#vca-banner) .vc-btn:hover,
:is(#vantimo-consent,#vca-banner) .vc-btn:focus{filter:brightness(1.07);text-decoration:none;box-shadow:none}
:is(#vantimo-consent,#vca-banner) .vc-btn:active{transform:translateY(1px)}
:is(#vantimo-consent,#vca-banner) .vc-btn-primary,
:is(#vantimo-consent,#vca-banner).vc-reject-equal .vc-btn-secondary{background:var(--vc-accent);border-color:var(--vc-accent);color:var(--vc-on-accent,#fff)}
:is(#vantimo-consent,#vca-banner) .vc-btn-secondary{background:transparent;border-color:rgba(128,128,128,.5);color:var(--vc-text)}
:is(#vantimo-consent,#vca-banner).vc-reject-equal .vc-btn-secondary:hover,
:is(#vantimo-consent,#vca-banner).vc-reject-equal .vc-btn-secondary:focus{background:var(--vc-accent);border-color:var(--vc-accent);color:var(--vc-on-accent,#fff)}
:is(#vantimo-consent,#vca-banner) .vc-btn-primary:hover,
:is(#vantimo-consent,#vca-banner) .vc-btn-primary:focus{background:var(--vc-accent);border-color:var(--vc-accent);color:var(--vc-on-accent,#fff)}
:is(#vantimo-consent,#vca-banner) .vc-btn-secondary:hover,
:is(#vantimo-consent,#vca-banner) .vc-btn-secondary:focus{background:transparent;color:var(--vc-text)}
:is(#vantimo-consent,#vca-banner) .vc-btn-text{background:none;border-color:transparent;color:var(--vc-text);padding-inline:8px;text-decoration:underline;text-underline-offset:3px}
:is(#vantimo-consent,#vca-banner) .vc-btn-text:hover,
:is(#vantimo-consent,#vca-banner) .vc-btn-text:focus{background:none;color:var(--vc-text);text-decoration:underline}
:is(#vantimo-consent,#vca-banner) .vc-footer{font-size:12.5px;opacity:.6}
:is(#vantimo-consent,#vca-banner) .vc-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(128,128,128,.15);color:inherit;font-size:20px;line-height:1;cursor:pointer}
:is(#vantimo-consent,#vca-banner) .vc-close:hover,
:is(#vantimo-consent,#vca-banner) .vc-close:focus{background:rgba(128,128,128,.15);color:inherit}

/* ---- wyrównanie ---- */
:is(#vantimo-consent,#vca-banner).vc-align-center .vc-panel{align-items:center;text-align:center}
:is(#vantimo-consent,#vca-banner).vc-align-center .vc-actions{justify-content:center}
:is(#vantimo-consent,#vca-banner).vc-align-center .vc-categories{width:100%}

/* ---- jedyne reguły poza banerem: blokada scrolla (tylko gdy modal otwarty) i przycisk z shortcode ---- */
html.vc-lock{overflow:hidden}
/* :where() = zerowa specyficzność, więc to motyw decyduje o wyglądzie przycisku z shortcode */
:where(.vc-reopen){font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline}

@media (max-width:560px){
  :is(#vantimo-consent,#vca-banner) .vc-panel{padding:22px 18px}
  :is(#vantimo-consent,#vca-banner) .vc-actions .vc-btn{flex:1 1 100%}
  :is(#vantimo-consent,#vca-banner) .vc-title{font-size:21px}
}
@media (prefers-reduced-motion:reduce){
  :is(#vantimo-consent,#vca-banner) .vc-switch,
  :is(#vantimo-consent,#vca-banner) .vc-switch::after,
  :is(#vantimo-consent,#vca-banner) .vc-btn{transition:none}
}