.newday-cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: none;
  color: #e5edf7;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.newday-cookie-consent.is-visible {
  display: block;
}

.newday-cookie-consent__content {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(7, 10, 15, 0.96);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.newday-cookie-consent__text {
  min-width: 0;
}

.newday-cookie-consent__text h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.newday-cookie-consent__text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.newday-cookie-consent__text a,
.newday-cookie-settings-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.newday-cookie-consent__text a:hover,
.newday-cookie-settings-link:hover {
  color: #5eead4;
  text-decoration: underline;
}

.newday-cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.newday-cookie-consent__button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.newday-cookie-consent__button--primary {
  background: #0d9488;
  color: #ffffff;
}

.newday-cookie-consent__button--primary:hover {
  background: #14b8a6;
}

.newday-cookie-consent__button--secondary {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.35);
  color: #dbeafe;
}

.newday-cookie-consent__button--secondary:hover {
  border-color: rgba(45, 212, 191, 0.55);
  color: #ffffff;
}

.newday-cookie-consent a:focus-visible,
.newday-cookie-consent button:focus-visible,
.newday-cookie-settings-link:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 3px;
}

body.newday-cookie-preferences-open {
  overflow: hidden;
}

.newday-cookie-preferences-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.72);
}

.newday-cookie-preferences-backdrop[hidden] {
  display: none;
}

.newday-cookie-preferences {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 22px;
  color: #e5edf7;
  background: #090f18;
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.newday-cookie-preferences:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 3px;
}

.newday-cookie-preferences__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.newday-cookie-preferences__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
}

.newday-cookie-preferences__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.newday-cookie-preferences__close:hover {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.55);
}

.newday-cookie-preferences__intro {
  margin: 12px 0 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.newday-cookie-preferences__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.newday-cookie-preferences__row-copy {
  min-width: 0;
}

.newday-cookie-preferences__row-copy strong,
.newday-cookie-preferences__row-copy span {
  display: block;
}

.newday-cookie-preferences__row-copy strong {
  color: #f8fafc;
  font-size: 14px;
}

.newday-cookie-preferences__row-copy span {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.newday-cookie-preferences__row.is-disabled .newday-cookie-preferences__row-copy,
.newday-cookie-preferences__row.is-locked .newday-cookie-preferences__row-copy {
  opacity: 0.72;
}

.newday-cookie-preferences__switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.newday-cookie-preferences__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.newday-cookie-preferences__switch-track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: #334155;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.newday-cookie-preferences__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.newday-cookie-preferences__switch input:checked + .newday-cookie-preferences__switch-track {
  background: #0d9488;
  border-color: #2dd4bf;
}

.newday-cookie-preferences__switch input:checked + .newday-cookie-preferences__switch-track::after {
  transform: translateX(22px);
}

.newday-cookie-preferences__switch input:disabled + .newday-cookie-preferences__switch-track {
  cursor: not-allowed;
  opacity: 0.62;
}

.newday-cookie-preferences__switch input:focus-visible + .newday-cookie-preferences__switch-track,
.newday-cookie-preferences__close:focus-visible,
.newday-cookie-preferences__actions button:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 3px;
}

.newday-cookie-preferences__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 700px) {
  .newday-cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .newday-cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .newday-cookie-consent__actions {
    justify-content: stretch;
  }

  .newday-cookie-consent__button {
    flex: 1 1 150px;
  }

  .newday-cookie-preferences-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .newday-cookie-preferences {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .newday-cookie-preferences__row {
    gap: 14px;
  }

  .newday-cookie-preferences__actions .newday-cookie-consent__button {
    width: 100%;
  }
}
