/* ==========================================================================
   CookieYes – styl zgodny z resztą strony (ostre krawędzie, czerń i biel, Inter Tight)
   Ładowany na każdej stronie (także w kasie), po stylach wtyczki.
   ========================================================================== */

/* Krój pisma i odstępy: wyzerowanie dziedziczonego letter-spacing motywu (-0.5px), który zlewał litery. */
body .cky-consent-container, body .cky-modal, body .cky-btn-revisit-wrapper,
body .cky-consent-container *, body .cky-modal *, body .cky-btn-revisit-wrapper * {
	font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
	letter-spacing: 0 !important;
	-webkit-font-smoothing: antialiased;
}

/* ---- Baner ---- */
body .cky-consent-container { width: 420px; max-width: calc(100vw - 24px); border-radius: 0 !important; }
body .cky-box-bottom-left { bottom: 20px; left: 20px; }
body .cky-consent-bar {
	margin: 0 !important; padding: 22px 24px !important; border: 1px solid #000 !important; border-radius: 0 !important;
	background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .16) !important;
}
body .cky-notice .cky-title { display: none !important; }
body .cky-notice-des, body .cky-notice-des p { margin: 0 0 16px; font-size: 14px !important; line-height: 1.55 !important; font-weight: 400 !important; color: #000 !important; }
body .cky-notice-des a, body .cky-preference-content-wrapper a, body .cky-show-desc-btn { color: #000 !important; text-decoration: underline !important; text-underline-offset: 2px; font-weight: 500 !important; }
body .cky-notice-btn-wrapper { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 8px !important; align-items: stretch !important; justify-content: flex-start !important; margin: 0 !important; padding: 0 !important; }

/* ---- Przyciski ---- */
body .cky-btn {
	margin: 0 !important; padding: 0 18px !important; min-height: 44px; border: 1px solid #000 !important; border-radius: 0 !important;
	font-size: 14px !important; font-weight: 500 !important; line-height: 1.2 !important; text-transform: none !important;
	box-shadow: none !important; transition: background-color .2s ease, color .2s ease, border-color .2s ease !important; cursor: pointer;
}
body .cky-btn-accept { order: 1; background: #000 !important; color: #fff !important; border-color: #000 !important; }
body .cky-btn-accept:hover { background: #4b4b4b !important; border-color: #4b4b4b !important; }
body .cky-btn-reject, body .cky-btn-customize, body .cky-btn-preferences { background: #fff !important; color: #000 !important; border-color: #000 !important; }
body .cky-btn-reject:hover, body .cky-btn-customize:hover, body .cky-btn-preferences:hover { background: #f2f2f2 !important; }
body .cky-btn-reject { order: 2; }
body .cky-btn-customize { order: 3; border-color: #d0d0d0 !important; }
body .cky-btn:focus-visible, body .cky-btn-close:focus-visible, body .cky-accordion-btn:focus-visible { outline: 2px solid #000 !important; outline-offset: 2px !important; }

/* ---- Okno preferencji ---- */
body .cky-overlay { background: rgba(0, 0, 0, .4) !important; opacity: 1 !important; }
body .cky-modal { border-radius: 0 !important; width: 720px !important; max-width: calc(100vw - 24px) !important; }
body .cky-preference-center { border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: 0 20px 60px rgba(0, 0, 0, .25) !important; color: #000 !important; }
body .cky-preference-header { padding: 22px 28px !important; border-bottom: 1px solid #e6e6e6 !important; }
body .cky-preference-title { font-size: 20px !important; font-weight: 600 !important; line-height: 1.2 !important; color: #000 !important; }
body .cky-btn-close { opacity: 1 !important; }
body .cky-btn-close img { width: 18px; height: 18px; filter: grayscale(1) brightness(0); }
body .cky-preference-body-wrapper { padding: 8px 28px 4px !important; }
body .cky-preference-content-wrapper, body .cky-accordion-body, body .cky-accordion-header-des { font-size: 14px !important; line-height: 1.6 !important; font-weight: 400 !important; color: #4e4e4e !important; }
body .cky-preference-content-wrapper p { margin: 0 0 12px; }
body .cky-accordion { border-bottom: 1px solid #e6e6e6 !important; margin: 0 !important; padding: 16px 0 !important; }
body .cky-accordion-btn { font-size: 16px !important; font-weight: 600 !important; color: #000 !important; background: none !important; border: 0 !important; }
body .cky-accordion-chevron-hide { display: none; }
body .cky-accordion-chevron i, body .cky-accordion-chevron .cky-chevron-right { border-color: #000 !important; }
body .cky-always-active { font-size: 13px !important; font-weight: 600 !important; color: #000 !important; text-transform: none; }
body .cky-audit-table { border-radius: 0 !important; background: #f2f2f2 !important; border: 0 !important; }
body .cky-audit-table * { color: #000 !important; }

/* przełączniki kategorii */
body .cky-switch input[type="checkbox"] { background: #cfcfcf !important; border-radius: 0 !important; }
body .cky-switch input[type="checkbox"]::before, body .cky-switch input[type="checkbox"]::after { border-radius: 0 !important; }
body .cky-switch input[type="checkbox"]:checked { background: #000 !important; }

/* stopka okna */
body .cky-footer-wrapper { border-top: 1px solid #e6e6e6; background: #fff !important; }
body .cky-footer-shadow { display: none !important; }
body .cky-prefrence-btn-wrapper { display: flex !important; gap: 8px !important; padding: 18px 28px 22px !important; flex-wrap: wrap; }
body .cky-prefrence-btn-wrapper .cky-btn { flex: 1 1 0; min-width: 140px; }
body .cky-prefrence-btn-wrapper .cky-btn-accept { order: 3; }
body .cky-prefrence-btn-wrapper .cky-btn-reject { order: 1; }
body .cky-prefrence-btn-wrapper .cky-btn-preferences { order: 2; }

/* ---- Przycisk ponownego otwarcia zgód ---- */
body .cky-btn-revisit-wrapper { border-radius: 0 !important; background: #000 !important; width: 44px !important; height: 44px !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
body .cky-btn-revisit-wrapper img { filter: brightness(0) invert(1); width: 22px !important; height: 22px !important; }

@media (max-width: 767px) {
	body .cky-box-bottom-left { bottom: 12px; left: 12px; right: 12px; }
	body .cky-consent-container { width: auto; }
	body .cky-consent-bar { padding: 18px 16px !important; }
	body .cky-notice-btn-wrapper .cky-btn { flex: 1 1 calc(50% - 4px); }
	body .cky-notice-btn-wrapper .cky-btn-accept { flex-basis: 100%; }
	body .cky-preference-header, body .cky-preference-body-wrapper, body .cky-prefrence-btn-wrapper { padding-left: 16px !important; padding-right: 16px !important; }
	body .cky-prefrence-btn-wrapper .cky-btn { flex-basis: 100%; }
}
