.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 12px;
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 0.35rem;
  box-shadow: 0 -4px 24px rgba(33, 39, 52, 0.12);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  font-size: 1rem;
  font-weight: 600;
  color: #212734;
  margin: 0 0 8px;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a5160;
}

.cookie-consent__text p {
  margin: 0 0 8px;
}

.cookie-consent__text p:last-child {
  margin-bottom: 0;
}

.cookie-consent__text a {
  color: #0078ff;
  text-decoration: underline;
}

.cookie-consent__settings {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ecf2;
}

.cookie-consent__settings[hidden] {
  display: none !important;
}

.cookie-consent__setting {
  margin-bottom: 10px;
}

.cookie-consent__setting-label {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 0.88rem;
  color: #4a5160;
  width: 100%;
}

.cookie-consent__setting-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 3px 0 0;
  padding: 0;
  flex: none;
  justify-self: start;
}

.cookie-consent__setting-label span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.cookie-consent__setting-label strong {
  color: #212734;
  font-weight: 600;
}

.cookie-consent__setting-label small {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #667083;
}

.cookie-consent__settings .cookie-consent__btn {
  margin-top: 6px;
  min-width: 160px;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 180px;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.25s ease-in-out;
  white-space: nowrap;
}

.cookie-consent__btn--primary {
  background-color: #0078ff;
  border: 1px solid #0078ff;
  color: #ffffff;
}

.cookie-consent__btn--primary:hover {
  background-color: #0066d9;
  border-color: #0066d9;
}

.cookie-consent__btn--secondary {
  background-color: #ffffff;
  border: 1px solid #0078ff;
  color: #212734;
}

.cookie-consent__btn--secondary:hover {
  background-color: #0078ff;
  color: #ffffff;
}

.cookie-consent__btn--link {
  background: transparent;
  border: 1px solid transparent;
  color: #0078ff;
  min-height: 34px;
  text-decoration: underline;
}

.cookie-consent__btn--link:hover {
  color: #0066d9;
}

@media (prefers-color-scheme: dark) {
  .cookie-consent__inner {
    background: #1a2030;
    border-color: #3a4255;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  }

  .cookie-consent__title,
  .cookie-consent__setting-label strong {
    color: #ffffff;
  }

  .cookie-consent__text,
  .cookie-consent__setting-label {
    color: #eceff4;
  }

  .cookie-consent__setting-label small {
    color: #c8cdd6;
  }

  .cookie-consent__settings {
    border-top-color: #3a4255;
  }

  .cookie-consent__text a,
  .cookie-consent__btn--link {
    color: #3b8cff;
  }

  .cookie-consent__btn--link:hover {
    color: #6aa6ff;
  }

  .cookie-consent__btn--primary {
    background-color: #3b8cff;
    border-color: #3b8cff;
  }

  .cookie-consent__btn--primary:hover {
    background-color: #2f7aeb;
    border-color: #2f7aeb;
  }

  .cookie-consent__btn--secondary {
    background-color: #232a3b;
    border-color: #3b8cff;
    color: #eceff4;
  }

  .cookie-consent__btn--secondary:hover {
    background-color: #3b8cff;
    color: #ffffff;
  }
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: 8px;
  }

  .cookie-consent__inner {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
  }

  .cookie-consent__actions {
    width: 100%;
    min-width: 0;
  }

  .cookie-consent__btn,
  .cookie-consent__settings .cookie-consent__btn {
    width: 100%;
  }
}
