/* Região não modal; o restante da página e o checkout permanecem acessíveis. */
.shp-consent[hidden],
[data-consent-open][hidden],
[data-consent-error][hidden] {
  display: none !important;
}

.shp-consent {
  position: fixed;
  z-index: 100;
  inset: auto 12px max(12px, env(safe-area-inset-bottom));
  width: auto;
  max-width: 620px;
  max-height: 68vh;
  max-height: 68dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid #9fc4b4;
  border-radius: 16px;
  background: #0e1c17;
  color: #f6f1e8;
  box-shadow: 0 10px 48px #0008;
  font-family: var(--ff-body, "Segoe UI", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.shp-consent [data-consent-heading] {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.shp-consent__body {
  overflow-wrap: anywhere;
}

.shp-consent p {
  margin: 0 0 12px;
}

.shp-consent a,
[data-consent-open] {
  color: #f6f1e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shp-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.shp-consent__actions button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9fc4b4;
  border-radius: 8px;
  background: #f6f1e8;
  color: #0e1c17;
  font: inherit;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.shp-consent__actions button:hover {
  background: #dceadf;
}

[data-consent-open] {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.shp-consent :focus-visible,
[data-consent-open]:focus-visible {
  outline: 3px solid #f4c48a;
  outline-offset: 4px;
}

.shp-consent [data-consent-error] {
  color: #ffd5bd;
}

@media (min-width: 680px) {
  .shp-consent {
    inset-inline: auto 24px;
    width: 620px;
    padding: 24px;
  }
}
