/* ===== Cookie Banner – fixed bar at bottom ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 16px 20px 20px;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12), 0 -1px 0 rgba(0, 0, 0, 0.06);
  font-family: inherit;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner[aria-hidden="true"] {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 24px;
}

.cookie-banner__text {
  flex: 1 1 320px;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
}

.cookie-banner__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #444;
}

.cookie-banner__link {
  margin-left: 0.25em;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: #0b4df5;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner__link:hover {
  color: #093aab;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
}

.cookie-banner__btn--primary {
  background: #1F2F4A;
  color: #fff;
  border-color: #1F2F4A;
}

.cookie-banner__btn--primary:hover {
  background: #162540;
  border-color: #162540;
  color: #fff;
}

.cookie-banner__btn--secondary {
  background: #fff;
  color: #333;
  border-color: #ccc;
}

.cookie-banner__btn--secondary:hover {
  background: #f5f5f5;
  border-color: #999;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: #555;
  border-color: transparent;
}

.cookie-banner__btn--ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner__btn {
    flex: 1;
    min-width: 0;
  }
}

/* ===== Cookie Modal (settings overlay) ===== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: inherit;
}

.cookie-modal.cookie-modal--open {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.cookie-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.cookie-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.cookie-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cookie-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.cookie-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cookie-modal__group {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-modal__group:last-child {
  border-bottom: 0;
}

.cookie-modal__group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal__group-header > div {
  min-width: 0;
}

.cookie-modal__group-header strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cookie-modal__group-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
}

.cookie-modal__badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.25s ease;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #1F2F4A;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.cookie-modal__footer .cookie-banner__btn {
  flex: 1;
  min-width: 120px;
}

.cookie-modal__footer .cookie-banner__btn--primary {
  flex: 1;
  min-width: 140px;
}
