.modal {
  max-height: calc(100dvh - 40px);
  overflow: auto;
}

.sunrail-agb {
  width: min(100%, 600px);
}

.sunrail-agb [data-sunrail-terms],
.sunrail-cookie p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sunrail-agb h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.sunrail-agb h3 + p {
  margin-top: 0;
}

.sunrail-cookie {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(390px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  padding: 21px;
  box-shadow: 0 15px 38px #0006;
}

.sunrail-cookie h2 {
  margin: 0;
  font: 700 20px Manrope, sans-serif;
}

.sunrail-cookie p {
  margin: 8px 0 16px;
  color: #c8d3dd;
  font-size: 14px;
  line-height: 1.55;
}

.sunrail-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sunrail-cookie button {
  min-height: 42px;
  border: 1px solid #ffffff40;
  border-radius: 5px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.sunrail-cookie [data-cookie-save] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  font-weight: 700;
}
