/* Namespaced so these controls also work independently of Flutter's canvas. */
.terra-consent {
  font:
    400 14px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2c2c2c;
}
.terra-consent *,
.terra-consent *::before,
.terra-consent *::after {
  box-sizing: border-box;
}
.terra-consent [hidden] {
  display: none !important;
}
.terra-consent-panel {
  position: fixed;
  z-index: 2147483647;
  right: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 22px;
  background: #fff8f0;
  border: 1px solid #bfa797;
  border-radius: 14px;
  box-shadow: 0 5px 28px #0003;
  text-align: left;
  color-scheme: light;
}
.terra-consent-panel h2 {
  margin: 0 0 10px;
  font: 700 19px/1.3 system-ui, sans-serif;
  color: #2c2c2c;
}
.terra-consent-panel p {
  margin: 10px 0;
  font: inherit;
  color: inherit;
}
.terra-consent-panel a {
  color: #8a3a24;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terra-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.terra-consent-button {
  display: inline-block;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #8a3a24;
  border-radius: 8px;
  background: #fff8f0;
  color: #8a3a24;
  font: 600 14px/1.4 system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
.terra-consent-actions .terra-consent-button {
  flex: 1 1 180px;
}
.terra-consent-button:hover {
  background: #f9e9dd;
}
.terra-consent-button:focus-visible,
.terra-consent-panel a:focus-visible {
  outline: 3px solid #075ac5;
  outline-offset: 3px;
}
.terra-consent-close {
  margin-top: 12px;
}
.terra-consent-settings {
  position: fixed;
  z-index: 2147483647;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 2px 10px #0002;
  color-scheme: light;
}
.terra-consent-panel .terra-consent-notice {
  font-size: 13px;
}
.terra-consent-notice:empty {
  display: none;
}
@media (max-width: 360px) {
  .terra-consent-panel {
    padding: 16px;
  }
}

/* Compact Flutter shell has a 70px bottom bar + 16px margin + safe area. */
@media (max-width: 719px) {
  .terra-consent-app .terra-consent-settings {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .terra-consent-app .terra-consent-panel {
    bottom: calc(156px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 176px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 176px - env(safe-area-inset-bottom, 0px));
  }
}
