/* TF Cookie Consent — style banera */

.tf-cc-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99999;
  background: #ffffff;
  color: #1a1a1a;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.5;
}

.tf-cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.tf-cc-text { flex: 1 1 480px; }
.tf-cc-heading { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.tf-cc-desc { margin: 0; }
.tf-cc-desc a { text-decoration: underline; color: inherit; }

.tf-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tf-cc-btn {
  cursor: pointer;
  border: 1px solid #1a1a1a;
  background: #ffffff;
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* „Akceptuję" i „Tylko niezbędne" celowo mają zbliżoną wagę wizualną —
   odmowa nie może być trudniejsza niż zgoda. */
.tf-cc-btn--primary {
  background: #1a1a1a;
  color: #ffffff;
}

.tf-cc-btn--link {
  border: none;
  background: transparent;
  text-decoration: underline;
  font-weight: 400;
}

.tf-cc-btn:hover { opacity: 0.85; }
.tf-cc-btn:focus-visible,
.tf-cc-reopen:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.tf-cc-settings {
  max-width: 1100px;
  margin: 16px auto 0;
  border-top: 1px dashed #d0d0d0;
  padding-top: 16px;
}

.tf-cc-category { margin-bottom: 10px; }

.tf-cc-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.tf-cc-toggle input { margin-top: 3px; }

.tf-cc-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .tf-cc-banner { padding: 16px; }
  .tf-cc-actions { width: 100%; }
  .tf-cc-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .tf-cc-banner:not([hidden]) { animation: tf-cc-slide 0.25s ease-out; }
  @keyframes tf-cc-slide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}
