.analysis-consent[hidden],
.analysis-consent [hidden],
.analysis-consent-reopen[hidden],
.analysis-map-consent[hidden] {
  display: none !important;
}

.analysis-consent {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  color: #162033;
  font: 16px/1.55 "PT Sans", sans-serif;
  box-sizing: border-box;
}

.analysis-consent *,
.analysis-consent *::before,
.analysis-consent *::after,
.analysis-map-consent *,
.analysis-map-consent *::before,
.analysis-map-consent *::after {
  box-sizing: border-box;
}

.analysis-consent__inner {
  max-width: 990px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(22, 32, 51, 0.24);
}

.analysis-consent h2 {
  margin: 0 0 8px;
  color: #162033;
  font: 700 22px/1.25 "PT Sans", sans-serif;
}

.analysis-consent p {
  margin: 0 0 10px;
  padding: 0;
  color: #162033;
  font: 15px/1.55 "PT Sans", sans-serif;
}

.analysis-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
}

.analysis-consent a {
  border: 0;
  color: #314778;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analysis-consent__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 14px 0;
  border-top: 1px solid #cbd5e8;
}

.analysis-consent__category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #cbd5e8;
  color: #162033;
  font-weight: 400;
}

.analysis-consent__category strong,
.analysis-consent__category small {
  display: block;
}

.analysis-consent__category strong {
  color: #162033;
  font-size: 15px;
}

.analysis-consent__category small {
  margin-top: 2px;
  color: #334466;
  font-size: 13px;
  line-height: 1.4;
}

.analysis-consent__badge {
  flex: 0 0 auto;
  color: #314778;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.analysis-consent__category input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #314778;
}

.analysis-consent__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.analysis-consent button,
.analysis-map-consent button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #8ea2c8;
  border-radius: 6px;
  background: #edf2f9;
  color: #162033;
  font: 700 14px/1.2 "PT Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.analysis-consent button[data-action="accept"],
.analysis-consent button[data-action="save"],
.analysis-map-consent button[data-analysis-enable-map] {
  border-color: #314778;
  background: #314778;
  color: #ffffff;
}

.analysis-consent button:hover,
.analysis-map-consent button:hover,
.analysis-consent-reopen:hover {
  text-decoration: underline;
}

.analysis-consent a:focus-visible,
.analysis-consent button:focus-visible,
.analysis-consent input:focus-visible,
.analysis-map-consent button:focus-visible,
.analysis-consent-reopen:focus-visible {
  outline: 3px solid #162033;
  outline-offset: 3px;
}

.analysis-consent__error {
  margin-top: 10px !important;
  color: #9b1c1c !important;
  font-weight: 700 !important;
}

.analysis-consent-reopen {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #314778;
  border-radius: 6px;
  background: #ffffff;
  color: #162033;
  font: 700 13px/1.2 "PT Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.analysis-map-consent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 24px 20px;
  border: 1px solid #cbd5e8;
  background: #f2f5fa;
  color: #162033;
  text-align: center;
  font: 15px/1.5 "PT Sans", sans-serif;
}

.analysis-map-consent__title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #162033 !important;
  font-size: 18px;
}

.analysis-map-consent__text {
  max-width: 58ch;
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #334466 !important;
}

.analysis-map-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.analysis-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 600px) {
  .analysis-consent {
    padding: 0;
  }

  .analysis-consent__inner {
    max-height: 92vh;
    overflow-y: auto;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .analysis-consent h2 {
    font-size: 20px;
  }

  .analysis-consent__details {
    grid-template-columns: 1fr;
  }

  .analysis-consent__actions {
    gap: 8px;
  }

  .analysis-consent button {
    flex: 1 1 0;
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
  }

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