.cookie-banner[hidden],
.cookie-settings-control[hidden],
.cookie-dialog:not([open]) {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 48rem;
  margin-inline: auto;
  padding: 1rem;
  color: #111a31;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.cookie-banner h2,
.cookie-dialog h2 {
  margin: 0 0 0.35rem;
  color: #111a31;
  font-size: 1.15rem;
}

.cookie-banner p,
.cookie-dialog p {
  margin: 0;
  line-height: 1.5;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.cookie-choice {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  color: #111a31;
  font: inherit;
  font-weight: 700;
  background: #fff;
  border: 2px solid #4f3ee8;
  border-radius: 0.6rem;
  cursor: pointer;
}

.cookie-choice:hover,
.cookie-choice:focus-visible {
  color: #fff;
  background: #4f3ee8;
}

.cookie-dialog {
  width: min(34rem, calc(100% - 2rem));
  padding: 0;
  color: #111a31;
  background: #fff;
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.3);
}

.cookie-dialog::backdrop {
  background: rgba(15, 23, 42, 0.68);
}

.cookie-dialog-inner {
  padding: 1.15rem;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
}

.cookie-category strong {
  display: block;
  margin-bottom: 0.2rem;
}

.cookie-category input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: #4f3ee8;
}

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

.app-cookie-settings {
  position: fixed;
  z-index: 900;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.65rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
}

@media (max-width: 39rem) {
  .cookie-banner {
    bottom: 0.65rem;
    padding: 0.85rem;
  }

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

  .cookie-choice {
    width: 100%;
  }
}

@media print {
  .cookie-banner,
  .cookie-dialog,
  .cookie-settings-control {
    display: none !important;
  }
}
