.cookie-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 9999;
  display: none;
  max-width: 980px;
  margin: 0 auto;
  color: #1f2937;
  font-family: inherit;
}

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

.cookie-consent__box {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 0px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  padding: 1.25rem;
}

.cookie-consent__header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.cookie-consent__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0.35rem 0 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-consent__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__settings {
  display: none;
  margin: 1rem 0;
  border-top: 1px solid rgba(31, 41, 55, 0.12);
  border-bottom: 1px solid rgba(31, 41, 55, 0.12);
}

.cookie-consent.is-settings-open .cookie-consent__settings {
  display: block;
}

.cookie-consent__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
}

.cookie-consent__category + .cookie-consent__category {
  border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.cookie-consent__category-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.cookie-consent__category-text {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-consent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
}

.cookie-consent__toggle input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #1f2937;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cookie-consent__button {
  border: 0;
  border-radius: 0px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  color: #1f2937;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  filter: brightness(0.97);
}

.cookie-consent__button--primary {
  background: #1f2937;
  color: #ffffff;
}

.cookie-consent__button--ghost {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-consent {
    inset: auto 0.75rem 0.75rem 0.75rem;
  }

  .cookie-consent__box {
    padding: 1rem;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }

  .cookie-consent__header,
  .cookie-consent__category {
    display: block;
  }

  .cookie-consent__toggle {
    margin-top: 0.75rem;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
