/* CP Cookies — styl zgodny z dane/brand.md */
#cp-cookies, #cp-cookies * { box-sizing: border-box; }
#cp-cookies { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; line-height: 1.5; font-size: 14px; }
#cp-cookies a { color: #C62828; text-decoration: underline; }
.cpc-bar { display: none; position: fixed; z-index: 2147483000; left: 50%; bottom: 16px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 760px; background: #fff; border: 2px solid #FFCDD2; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.18); padding: 18px 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
.cpc-bar.cpc-open { display: block; }
.cpc-h { color: #C62828; font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.cpc-txt { margin: 0 0 14px; font-size: 13px; }
.cpc-small { font-size: 13px; }
.cpc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cpc-btn { flex: 1 1 180px; min-height: 44px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #C62828; border: 2px solid #C62828; border-radius: 50px; cursor: pointer; transition: background .15s; }
.cpc-btn:hover { background: #8E0000; border-color: #8E0000; }
.cpc-btn:focus-visible, .cpc-fab:focus-visible, .cpc-sw input:focus-visible + .cpc-sl { outline: 3px solid #1565C0; outline-offset: 2px; }
.cpc-panel { display: none; position: fixed; z-index: 2147483001; inset: 0; background: rgba(0,0,0,.45); padding: 16px; overflow-y: auto; }
.cpc-panel.cpc-open { display: flex; align-items: flex-start; justify-content: center; }
.cpc-box { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.2); width: 100%; max-width: 620px; padding: 22px; margin: auto 0; }
.cpc-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: #666; cursor: pointer; border-radius: 50%; }
.cpc-x:hover { background: #FFF5F5; color: #C62828; }
.cpc-cat { border: 1px solid #EEE; border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; }
.cpc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cpc-cat-t { font-weight: 700; color: #333; }
.cpc-cat-d { margin: 6px 0 0; font-size: 13px; color: #555; }
.cpc-v { color: #666; font-size: 12px; }
.cpc-always { font-size: 12px; font-weight: 600; color: #2E7D32; white-space: nowrap; }
.cpc-sw { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cpc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cpc-sl { position: absolute; inset: 0; background: #ccc; border-radius: 26px; transition: background .15s; }
.cpc-sl::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cpc-sw input:checked + .cpc-sl { background: #C62828; }
.cpc-sw input:checked + .cpc-sl::before { transform: translateX(20px); }
.cpc-box .cpc-btns { margin-top: 14px; }
.cpc-id { margin: 12px 0 0; font-size: 11px; color: #999; }
.cpc-fab { display: none; position: fixed; z-index: 2147482999; left: 12px; bottom: 12px; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; font: inherit; font-size: 12px; font-weight: 600; color: #C62828; background: #fff; border: 2px solid #FFCDD2; border-radius: 50px; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; opacity: .92; }
.cpc-fab:hover { opacity: 1; background: #FFF5F5; }
.cpc-fab.cpc-open { display: inline-flex; }
/* kasa i koszyk: sama ikonka, żeby nie zasłaniać formularza */
.woocommerce-checkout .cpc-fab span, .woocommerce-cart .cpc-fab span { display: none; }
.woocommerce-checkout .cpc-fab, .woocommerce-cart .cpc-fab { padding: 8px; left: 8px; bottom: 8px; }
@media (max-width: 600px) {
  .cpc-bar { bottom: 8px; width: calc(100% - 16px); padding: 14px; }
  .cpc-txt { font-size: 12px; }
  .cpc-btn { flex-basis: 100%; min-height: 42px; }
  .cpc-fab span { display: none; }
  .cpc-fab { padding: 8px; }
}
@media print { #cp-cookies { display: none !important; } }
