/* ScriptFabrik-style cookie consent (dark bar + settings modal) */
.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 28, 0.72);
  backdrop-filter: blur(3px);
  z-index: 99997;
}

.cb-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: linear-gradient(135deg, #0b141a 0%, #0f2230 55%, #0d1b26 100%);
  color: #eef4f8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: cbFadeIn 0.35s ease;
}

.cb-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 992px) {
  .cb-bar-inner {
    grid-template-columns: 1.4fr 0.9fr;
    padding: 24px 32px;
  }
}

.cb-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 76, 92, 0.85);
  color: #9fe8f0;
  border: 1px solid rgba(159, 232, 240, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.cb-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.cb-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(238, 244, 248, 0.88);
  margin: 0 0 10px;
  max-width: 720px;
}

.cb-links {
  font-size: 0.85rem;
}

.cb-links a {
  color: #5ec6d8;
  text-decoration: underline;
  font-weight: 600;
}

.cb-links span {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 6px;
}

.cb-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-btn {
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.cb-btn-outline {
  background: transparent;
  color: #eef4f8;
  border-color: rgba(255, 255, 255, 0.35);
}

.cb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
}

.cb-btn-primary {
  background: #0f4c5c;
  color: #fff;
  border-color: #0f4c5c;
}

.cb-btn-primary:hover {
  background: #136678;
}

.cb-btn-accept {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.cb-btn-accept:hover {
  background: #218838;
  border-color: #1e7e34;
}

.cb-btn-save {
  background: #1b5e20;
  color: #fff;
  border-color: #1b5e20;
}

.cb-btn-save:hover {
  background: #144a19;
  border-color: #144a19;
}

.cb-modal .cb-btn-outline {
  background: #fff;
  color: #333;
  border-color: #333;
}

.cb-modal .cb-btn-outline:hover {
  background: #f8f9fa;
  border-color: #111;
  color: #111;
}

.cb-modal-footer .cb-btn {
  min-width: 140px;
}

.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cb-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: cbFadeIn 0.3s ease;
}

.cb-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.cb-modal-panel h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f2a44;
}

.cb-modal-sub {
  font-size: 0.85rem;
  color: #667085;
  margin-bottom: 12px;
}

.cb-modal-intro {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 18px;
}

.cb-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fafbfc;
}

.cb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cb-card-icon {
  margin-right: 6px;
}

.cb-card p {
  font-size: 0.86rem;
  color: #555;
  margin: 0 0 8px;
}

.cb-cookie-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #666;
}

.cb-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.cb-pill-muted {
  background: #eef2f6;
  color: #667085;
}

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

.cb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cb-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.25s;
}

.cb-slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cb-switch input:checked + .cb-slider {
  background: #2563eb;
}

.cb-switch input:checked + .cb-slider:before {
  transform: translateX(20px);
}

.cb-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 8px;
}

#cbFooterBtn {
  cursor: pointer;
  text-decoration: underline;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  font-weight: 600;
}

#cbFooterBtn:hover {
  color: var(--accent-color);
}

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

@media (max-width: 767px) {
  .cb-modal-footer {
    flex-direction: column;
  }
  .cb-modal-footer .cb-btn {
    width: 100%;
  }
}
