/* Cookie consent banner — bottom bar + preferences panel */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #1f2933;
  color: #f4f5f7;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
}

.cookie-banner__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-banner__text {
  flex: 1 1 320px;
  min-width: 240px;
}
.cookie-banner__text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #fff;
}
.cookie-banner__text p {
  margin: 0;
  color: #cbd2d9;
}
.cookie-banner__text a {
  color: #fdba74;
  text-decoration: underline;
}
.cookie-banner__text a:hover,
.cookie-banner__text a:focus {
  color: #fed7aa;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cb-btn:focus {
  outline: 2px solid #fdba74;
  outline-offset: 2px;
}
.cb-btn--primary {
  background: #e76f51;
  color: #fff;
  border-color: #e76f51;
}
.cb-btn--primary:hover,
.cb-btn--primary:focus {
  background: #c2410c;
  border-color: #c2410c;
}
.cb-btn--secondary {
  background: transparent;
  color: #f4f5f7;
  border-color: #4a5568;
}
.cb-btn--secondary:hover,
.cb-btn--secondary:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: #7c8694;
}

.cookie-banner__panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.55);
  z-index: 9998;
}
.cookie-banner__panel-overlay[hidden] { display: none !important; }

.cookie-banner__panel {
  max-width: 560px;
  margin: 6vh auto 0;
  background: #1f2933;
  color: #f4f5f7;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 24px 24px 20px;
}
.cookie-banner__panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}
.cookie-banner__panel > p {
  margin: 0 0 16px;
  color: #cbd2d9;
}

.cb-row {
  padding: 12px 0;
  border-top: 1px solid #2d3748;
}
.cb-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.cb-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}
.cb-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cb-toggle input[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}
.cb-cat-desc {
  margin: 4px 0 0 26px;
  color: #a0aec0;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner__panel .cookie-banner__actions {
  margin-top: 20px;
  justify-content: flex-end;
}

.cookie-prefs-trigger {
  display: inline-block;
  background: #e76f51;
  color: #fff;
  border: 1px solid #e76f51;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.cookie-prefs-trigger:hover,
.cookie-prefs-trigger:focus {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .cookie-banner__inner { padding: 14px 14px 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .cb-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .cookie-banner__panel {
    margin: 0;
    border-radius: 0;
    height: 100%;
    overflow-y: auto;
  }
  .cookie-banner__panel-overlay { padding: 0; }
}
