/*
 * TeeRZeT - cookie banner polish (see tz-cmp-compact.js).
 * 1. ALL screens, bug fix: in the "Preferencje" view the category names (Funkcjonalne / Preferencje / Statystyka) were dark grey on the dark banner = invisible,
 *    so the three toggles could not be told apart. They take the banner's own ink colour now.
 * 2. Phones only (the @media block): the compact bottom bar; desktop layout is untouched.
 * Colours come from the existing V2 banner snippet (--tz-* variables on .cmplz-cookiebanner).
 * Target: <= ~21% of an iPhone viewport (was ~60%). The "Preferencje" view (.tz-cmp-open) keeps Complianz's normal layout.
 */
.cmplz-cookiebanner .cmplz-category-title,.cmplz-cookiebanner .cmplz-category-header .cmplz-category-title{color:var(--tz-ink,#F4F1E8) !important}
/* booking page: the cancellation line above the confirm buttons (injected by Tzm_Frontend_P0::inject_booking_note) */
.tz-cal__policy{margin:14px 0 4px;font-size:13.5px;line-height:1.55;color:var(--ink-soft,#AEBDB4)}
.tz-cal__policy a{color:var(--accent,#6FE3A6);text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){
  /* estimate used until the script measures the bar (see Tzm_Frontend_P0::print_cmp_state): 3-line text on narrow phones, 2-line text otherwise */
  html.tz-cmp-pending{--tz-cmp-h:166px}
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open){
    padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px)) !important;
    gap:8px !important;
    border-radius:16px 16px 0 0 !important;
    max-height:none !important;
    overflow:visible !important;
    box-shadow:0 -10px 40px rgba(0,0,0,.5) !important;
  }
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-header,
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-divider,
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-message,
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-documents{display:none !important}
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-body{max-height:none !important;overflow:visible !important;min-width:0 !important}
  .cmplz-cookiebanner.tz-cmp .tz-cmp__text{margin:0;font-size:13px;line-height:1.45;color:var(--tz-soft,#AEBDB4)}
  .cmplz-cookiebanner.tz-cmp.tz-cmp-open .tz-cmp__text{display:none}
  .cmplz-cookiebanner.tz-cmp .tz-cmp__text a{white-space:nowrap}
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-buttons{flex-direction:row !important;flex-wrap:wrap;gap:8px !important}
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-btn.cmplz-accept,
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-btn.cmplz-deny{flex:1 1 0 !important;width:auto !important;min-height:44px !important;padding:8px 10px !important;font-size:14.5px !important}
  .cmplz-cookiebanner.tz-cmp:not(.tz-cmp-open) .cmplz-btn.cmplz-view-preferences{
    order:3;flex:1 1 100% !important;width:100% !important;min-height:40px !important;padding:6px !important;border:0 !important;background:transparent !important;
    color:var(--tz-soft,#AEBDB4) !important;font-size:13px !important;font-weight:500 !important;text-decoration:underline;text-underline-offset:3px;
  }
}
@media (max-width:374px){html.tz-cmp-pending{--tz-cmp-h:186px}}
