.consent-manager[hidden],
.consent-banner[hidden],
.consent-preferences[hidden],
.consent-reopen[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000010;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid rgba(15, 42, 82, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 42, 82, 0.2);
}

.consent-banner__content {
  max-width: 720px;
}

.consent-banner__content h2,
.consent-preferences__header h2 {
  margin: 0 0 8px;
  color: #0f2a52;
  font-size: 1.15rem;
}

.consent-banner__content p,
.consent-category p,
.consent-category span {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.consent-link {
  display: inline-block;
  margin-top: 8px;
  color: #0f766e;
  font-weight: 600;
}

.consent-banner__actions,
.consent-preferences__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-button,
.consent-reopen,
.consent-preferences__close {
  font: inherit;
  cursor: pointer;
}

.consent-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.consent-button--primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.consent-button--secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f2a52;
}

.consent-preferences {
  position: fixed;
  inset: 0;
  z-index: 1000020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 42, 82, 0.56);
}

.consent-preferences__box {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 42, 82, 0.28);
}

.consent-preferences__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.consent-preferences__close {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  color: #0f2a52;
  font-size: 1.5rem;
}

.consent-category {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
}

.consent-category strong {
  display: block;
  margin-bottom: 4px;
  color: #0f2a52;
}

.consent-category input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.consent-category__required {
  color: #0f766e !important;
  font-weight: 700;
  white-space: nowrap;
}

.consent-preferences__actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.consent-reopen {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1000005;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2a52;
  box-shadow: 0 8px 24px rgba(15, 42, 82, 0.16);
  font-weight: 700;
}

@media (max-width: 768px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: block;
    padding: 18px;
  }

  .consent-banner__actions {
    margin-top: 16px;
  }

  .consent-button {
    width: 100%;
  }

  .consent-preferences {
    align-items: flex-end;
    padding: 12px;
  }

  .consent-preferences__box {
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
  }

  .consent-category {
    align-items: flex-start;
  }

  .consent-preferences__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-reopen {
    left: 12px;
    bottom: 12px;
  }
}
