/* Zgody cookies (CMP 2026-12): baner, panel ustawień, przycisk "Ustawienia prywatności", zasłona filmów.
   Kolory serwisu: granat #004a61, morski #1f7f75, tekst #14212d, szary #5f7a82, linie #e6eaea.
   Zasady: przyciski "Akceptuję" i "Odrzucam" zawsze identyczne (kolor, rozmiar, waga) - bez nakłaniania. */

.glc-banner, .glc-modal, .glc-fab, .glc-embed { font-family: inherit; color: #14212d; -webkit-text-size-adjust: 100%; }
.glc-banner *, .glc-modal *, .glc-embed * { box-sizing: border-box; }

/* --- przyciski --- */
.glc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; margin: 0;
  border: 2px solid #004a61; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  text-align: center; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.glc-btn-solid { background: #004a61; color: #fff; }
.glc-btn-solid:hover { background: #00394b; border-color: #00394b; box-shadow: 0 0 0 4px rgba(0, 74, 97, .14); }
.glc-btn-line { background: #fff; color: #004a61; }
.glc-btn-line:hover { background: #e3f3f1; box-shadow: 0 0 0 4px rgba(0, 74, 97, .10); }
.glc-btn:focus { outline: none; }
.glc-btn:focus-visible, .glc-link:focus-visible, .glc-x:focus-visible, .glc-fab:focus-visible, .glc-cat summary:focus-visible {
  outline: 3px solid #7fccc3; outline-offset: 2px; }
.glc-link { color: #004a61; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.glc-link:hover { color: #1f7f75; }

/* --- baner (poziom 1) --- */
.glc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100000; max-width: 1180px; margin: 0 auto;
  background: #fff; border: 1px solid #e6eaea; border-radius: 12px; box-shadow: 0 18px 48px -18px rgba(20, 33, 45, .45);
  animation: glc-up .22s ease-out; }
.glc-banner[hidden] { display: none; }
.glc-banner-in { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 20px 32px; align-items: center; padding: 22px 26px; }
.glc-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: #14212d; }
.glc-banner .glc-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: #004a61; }
.glc-actions { display: grid; gap: 10px; }

/* --- panel ustawień (poziom 2) --- */
.glc-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20, 33, 45, .55); animation: glc-fade .18s ease-out; }
.glc-modal[hidden] { display: none; }
.glc-dialog { display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: min(88vh, 820px);
  background: #fff; border-radius: 14px; box-shadow: 0 24px 64px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.glc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid #e6eaea; }
.glc-head h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; color: #004a61; }
.glc-x { flex: none; width: 44px; height: 44px; margin: -6px -10px -6px 0; border: 0; border-radius: 8px; background: transparent;
  color: #5f7a82; font-size: 28px; line-height: 1; cursor: pointer; }
.glc-x:hover { background: #f2f8f8; color: #004a61; }
.glc-body { padding: 16px 22px 8px; overflow-y: auto; overscroll-behavior: contain; }
.glc-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #4a5f66; }
.glc-cat { padding: 14px 0; border-top: 1px solid #e6eaea; }
.glc-cat:first-of-type { border-top: 0; padding-top: 4px; }
.glc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.glc-cat h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: #14212d; }
.glc-cat > p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #4a5f66; }
.glc-always { flex: none; font-size: 13px; font-weight: 600; color: #1f7f75; white-space: nowrap; }
.glc-cat details { margin-top: 8px; }
.glc-cat summary { display: inline-block; padding: 4px 0; font-size: 13px; font-weight: 600; color: #004a61; cursor: pointer; list-style: none; }
.glc-cat summary::-webkit-details-marker { display: none; }
.glc-cat summary::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 1px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.glc-cat details[open] summary::before { transform: rotate(45deg); }
.glc-cat dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 2px; padding: 12px 14px;
  background: #f7fafb; border: 1px solid #e6eaea; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.glc-cat dt { font-weight: 600; color: #4a5f66; }
.glc-cat dd { margin: 0; color: #14212d; }
.glc-meta { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; color: #5f7a82; overflow-wrap: anywhere; }
.glc-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 22px 18px; border-top: 1px solid #e6eaea; background: #f7fafb; }

/* przełącznik (checkbox role="switch") */
.glc-switch { position: relative; flex: none; display: inline-block; width: 50px; height: 28px; cursor: pointer; }
.glc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.glc-switch span { position: absolute; inset: 0; border-radius: 28px; background: #c3cdd1; transition: background-color .15s; }
.glc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.glc-switch input:checked + span { background: #1f7f75; }
.glc-switch input:checked + span::after { transform: translateX(22px); }
.glc-switch input:focus-visible + span { outline: 3px solid #7fccc3; outline-offset: 2px; }
.glc-state { min-width: 32px; font-size: 13px; font-weight: 600; color: #5f7a82; text-align: right; }

/* --- stały przycisk "Ustawienia prywatności" (lewy dolny róg; #toTop jest po prawej) --- */
.glc-fab { position: fixed; left: 14px; bottom: 14px; z-index: 980; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #e6eaea; border-radius: 50%; background: #fff; color: #004a61;
  box-shadow: 0 4px 14px -4px rgba(20, 33, 45, .35); cursor: pointer; opacity: .9; transition: opacity .15s, box-shadow .15s; }
.glc-fab:hover { opacity: 1; box-shadow: 0 0 0 4px rgba(0, 74, 97, .12), 0 4px 14px -4px rgba(20, 33, 45, .35); }
.glc-fab[hidden] { display: none; }
.glc-fab svg { width: 22px; height: 22px; }
body.has-buybar .glc-fab { bottom: 84px; }

/* --- zasłona filmu YouTube przed zgodą (wewnątrz .yt-popup-content) --- */
.glc-embed { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(16px, 5%, 48px);
  background: #14212d; color: #fff; text-align: left; overflow-y: auto; }
.glc-embed-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; color: #fff; }
.glc-embed p { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.55; color: #dfe8ea; }
.glc-embed .glc-embed-small { font-size: 13px; color: #b9c8cc; }
.glc-embed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.glc-embed .glc-btn-solid { background: #fff; color: #004a61; border-color: #fff; }
.glc-embed .glc-btn-solid:hover { background: #e3f3f1; border-color: #e3f3f1; }
.glc-embed .glc-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.glc-embed .glc-btn-line:hover { background: rgba(255, 255, 255, .1); }

/* strona "Polityka prywatności i cookies" (elements/site/index.php, znacznik [[TABELA_COOKIES]]) */
.policy-page { max-width: 920px; margin: 0 auto 40px; font-size: 16px; line-height: 1.65; color: #14212d; }
.policy-page h2 { margin: 34px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.3; color: #004a61; scroll-margin-top: 140px; }
.policy-page h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; color: #004a61; }
.policy-page ul { padding-left: 22px; list-style: disc outside; }
.policy-page li { display: list-item; margin-bottom: 4px; padding-left: 2px; }
.policy-page .table-responsive { margin: 10px 0 18px; overflow-x: auto; }
.policy-page table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.policy-page th, .policy-page td { padding: 9px 10px; border: 1px solid #e6eaea; text-align: left; vertical-align: top; }
.policy-page th { background: #f2f8f8; font-weight: 600; color: #004a61; }
.policy-page .glc-btn { margin: 4px 0 8px; }
@media (max-width: 599.98px) {
  .policy-page { font-size: 15px; }
  .policy-page table { font-size: 13px; }
  .policy-page th, .policy-page td { padding: 7px 6px; } }

/* link w stopce */
.footer-privacy { margin-top: 8px; }
.footer-privacy a { color: #004a61; font-weight: 600; }
.footer-privacy span { margin: 0 8px; color: #c3cdd1; }

@keyframes glc-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .glc-banner, .glc-modal { animation: none; } .glc-switch span, .glc-switch span::after { transition: none; } }

/* tablet: przyciski w rzędzie pod tekstem */
@media (max-width: 991.98px) {
  .glc-banner-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 22px; }
  .glc-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* telefon: arkusz przy dolnej krawędzi, przyciski jeden pod drugim, panel na cały ekran */
@media (max-width: 599.98px) {
  .glc-banner { left: 0; right: 0; bottom: 0; border-radius: 14px 14px 0 0; border-width: 1px 0 0; max-height: 78vh; overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom); }
  .glc-banner-in { padding: 16px 16px 14px; gap: 14px; }
  .glc-banner .glc-title { font-size: 17px; }
  .glc-banner p { font-size: 13.5px; }
  .glc-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .glc-modal { padding: 0; align-items: stretch; }
  .glc-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .glc-head { padding: 12px 16px 10px; }
  .glc-head h2 { font-size: 19px; }
  .glc-body { padding: 12px 16px 6px; }
  .glc-cat dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .glc-cat dd { margin-bottom: 6px; }
  .glc-foot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .glc-foot .glc-btn-solid { order: -1; }
  .glc-fab { left: 10px; bottom: 10px; width: 40px; height: 40px; } }
