/* ============ COOKIE CONSENT (Bordo) ============ */
.bc-banner,
.bc-modal-backdrop { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

.bc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 720px;
  margin: 0 auto;
  background: #F8F1E8;
  color: #1A1410;
  border: 1px solid #E8DCC4;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(26, 20, 16, .12);
  padding: 22px 24px 20px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.bc-banner.bc-show { transform: translateY(0); opacity: 1; }

.bc-banner h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: #5C1A1B;
  letter-spacing: .2px;
}
.bc-banner p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #3D332B;
}
.bc-banner a { color: #722F37; text-decoration: underline; text-underline-offset: 2px; }

.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bc-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.bc-btn-primary {
  background: #5C1A1B;
  color: #F8F1E8;
}
.bc-btn-primary:hover { background: #722F37; }
.bc-btn-secondary {
  background: transparent;
  color: #5C1A1B;
  border-color: rgba(92, 26, 27, .35);
}
.bc-btn-secondary:hover { background: rgba(92, 26, 27, .06); border-color: #5C1A1B; }
.bc-btn-link {
  background: transparent;
  color: #6E6353;
  padding: 12px 8px;
  border-radius: 1px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bc-btn-link:hover { color: #5C1A1B; }

/* Modal */
.bc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bc-modal-backdrop.bc-show { display: flex; }

.bc-modal {
  background: #F8F1E8;
  color: #1A1410;
  border: 1px solid #E8DCC4;
  border-radius: 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 48px rgba(26, 20, 16, .28);
}
.bc-modal h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  color: #5C1A1B;
}
.bc-modal > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #3D332B;
}

.bc-cat {
  border: 1px solid #E8DCC4;
  border-radius: 0;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #F0E6D6;
}
.bc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.bc-cat-title {
  font-weight: 600;
  font-size: 14px;
  color: #1A1410;
}
.bc-cat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #6E6353;
  margin: 0;
}

/* Switch */
.bc-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.bc-switch input { opacity: 0; width: 0; height: 0; }
.bc-slider {
  position: absolute;
  inset: 0;
  background: #D4C4A8;
  border-radius: 22px;
  transition: background .2s ease;
  cursor: pointer;
}
.bc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #F8F1E8;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(26, 20, 16, .2);
}
.bc-switch input:checked + .bc-slider { background: #5C1A1B; }
.bc-switch input:checked + .bc-slider::before { transform: translateX(18px); }
.bc-switch input:disabled + .bc-slider { opacity: .6; cursor: not-allowed; }

.bc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* Footer trigger link reuses footer .links style — no extra rules needed */

/* Nad przyklejonym paskiem CTA — baner nigdy nie zasłania przycisku rezerwacji. */
@media (max-width: 760px) {
  .bc-banner { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* Desktop: wąski pasek przy dolnej krawędzi zamiast panelu na środku ekranu.
   Wyśrodkowany panel nachodził na CTA w hero na 1280×720 i 1280×800. */
@media (min-width: 761px) {
  .bc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 40px;
    border: none;
    border-top: 1px solid #E8DCC4;
    box-shadow: 0 -8px 24px rgba(26, 20, 16, .10);
  }
  /* Tytuł żyje w aria-label banera; w wąskim pasku powtarzałby treść akapitu. */
  .bc-banner h3 { display: none; }
  .bc-banner p { margin: 0; flex: 1; max-width: 780px; }
  .bc-actions { flex: none; }
}

@media (max-width: 520px) {
  .bc-banner { left: 10px; right: 10px; padding: 18px 18px 16px; }
  .bc-banner p { margin-bottom: 14px; }
  .bc-actions { gap: 8px; }
  .bc-actions .bc-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 13px 10px; text-align: center; }
  .bc-actions .bc-btn-link { flex: 1 1 100%; min-height: 44px; padding: 10px 8px; }
  .bc-modal { padding: 22px 20px 20px; }
  .bc-modal-actions { gap: 8px; }
  .bc-modal-actions .bc-btn { min-height: 48px; }
  .bc-modal-actions .bc-btn-link { order: 1; margin-right: auto; }
}

/* Ekrany dotykowe niezależnie od szerokości: przyciski zgody też są celem palca. */
@media (pointer: coarse) {
  .bc-btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-banner { transition: none; }
}
