/* Cookie Consent — US / CCPA-style preference center */
.bz-cookie-banner-mask {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: none;
}

.bz-cookie-banner-mask.is-open {
  display: block;
  animation: bzCookieFadeIn 0.22s ease;
}

@keyframes bzCookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bz-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
  padding: 22px 24px 18px;
  color: #1e293b;
  display: none;
}

.bz-cookie-banner.is-open {
  display: block;
  animation: bzCookieIn 0.28s ease;
}

@keyframes bzCookieIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bz-cookie-banner__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.bz-cookie-banner__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 16px;
}

.bz-cookie-banner__body p {
  margin: 0 0 10px;
}

.bz-cookie-banner__body a {
  color: #2563eb;
  text-decoration: underline;
}

.bz-cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bz-cookie-btn {
  appearance: none;
  border: none;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: #2f80ed;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}

.bz-cookie-btn:hover {
  background: #2563eb;
}

.bz-cookie-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.bz-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bz-cookie-overlay.is-open {
  display: flex;
}

.bz-cookie-manager {
  width: min(860px, 100%);
  max-height: min(640px, 92vh);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1e293b;
}

.bz-cookie-manager__header {
  padding: 18px 22px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.bz-cookie-manager__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.bz-cookie-manager__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 320px;
  flex: 1;
  overflow: hidden;
}

.bz-cookie-nav {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  padding: 8px 0;
}

.bz-cookie-nav button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #334155;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-weight: 500;
}

.bz-cookie-nav button:hover {
  background: #f1f5f9;
}

.bz-cookie-nav button.is-active {
  background: #eef2f7;
  border-left-color: #2f80ed;
  color: #0f172a;
  font-weight: 600;
}

.bz-cookie-panel {
  padding: 22px 24px;
  overflow-y: auto;
}

.bz-cookie-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bz-cookie-panel__head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.bz-cookie-panel p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

.bz-cookie-panel a {
  color: #2563eb;
  text-decoration: underline;
}

.bz-cookie-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: #ccfbf1;
  text-transform: uppercase;
}

.bz-cookie-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.bz-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.bz-cookie-switch span {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bz-cookie-switch span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bz-cookie-switch input:checked + span {
  background: #2f80ed;
}

.bz-cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

.bz-cookie-switch input:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
}

.bz-cookie-manager__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.bz-cookie-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10070;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: none;
}

.bz-cookie-toast.is-open {
  display: block;
  animation: bzCookieIn 0.25s ease;
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.footer-legal-links a,
.footer-legal-links button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal-bar .copyright {
  margin: 0;
  text-align: left;
}

@media (max-width: 720px) {
  .bz-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }

  .bz-cookie-banner__actions,
  .bz-cookie-manager__footer {
    grid-template-columns: 1fr;
  }

  .bz-cookie-manager__body {
    grid-template-columns: 1fr;
  }

  .bz-cookie-nav {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
  }

  .bz-cookie-nav button {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .bz-cookie-nav button.is-active {
    border-left-color: transparent;
    border-bottom-color: #2f80ed;
  }

  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}
