/* Optional website measurement is deliberately separate from the app experience. */
.grovio-consent {
  position: fixed;
  right: max(0.7rem, env(safe-area-inset-right));
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  z-index: 1000;
  display: none;
  color: #30271F;
  font-family: Inter, system-ui, sans-serif;
}
.grovio-consent.is-compact { display: block; }
.grovio-consent.is-visible {
  display: block;
  width: min(340px, calc(100vw - 1.4rem));
  padding: 0.9rem;
  background: #FDFBF5;
  border: 1px solid rgba(74, 110, 78, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(44, 34, 24, 0.16);
}
.grovio-consent-tab {
  min-height: 32px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(74, 110, 78, 0.3);
  border-radius: 100px;
  background: rgba(253, 251, 245, 0.96);
  box-shadow: 0 5px 14px rgba(44, 34, 24, 0.1);
  color: #36583D;
  cursor: pointer;
  font: 600 11px/1 Inter, system-ui, sans-serif;
}
.grovio-consent-tab span { display: inline-block; margin-left: 0.2rem; font-size: 13px; transform: translateY(-1px); }
.grovio-consent-tab:hover { background: #F1F5EB; border-color: rgba(74, 110, 78, 0.5); }
.grovio-consent-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.grovio-consent-copy { min-width: 0; }
.grovio-consent-title {
  margin: 0 0 0.25rem;
  color: #30271F;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}
.grovio-consent-copy p {
  margin: 0;
  color: #62574B;
  font-size: 12px;
  line-height: 1.45;
}
.grovio-consent-copy a { color: #36583D; font-weight: 600; }
.grovio-consent-close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: -0.2rem -0.2rem 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #62574B;
  cursor: pointer;
  font: 400 21px/1 Inter, system-ui, sans-serif;
}
.grovio-consent-close:hover { background: #F1F5EB; color: #36583D; }
.grovio-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.grovio-consent-button {
  min-height: 32px;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(74, 110, 78, 0.4);
  border-radius: 5px;
  background: transparent;
  color: #36583D;
  cursor: pointer;
  font: 600 11px/1.1 Inter, system-ui, sans-serif;
}
.grovio-consent-button:hover { border-color: #36583D; background: #F1F5EB; }
.grovio-consent-button--primary { background: #4A6E4E; border-color: #4A6E4E; color: #FDFBF5; }
.grovio-consent-button--primary:hover { background: #3D5C41; border-color: #3D5C41; }
.grovio-consent-button--text { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.grovio-consent-preferences {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(74, 110, 78, 0.16);
}
.grovio-consent-preferences[hidden] { display: none; }
.grovio-consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  align-items: start;
  padding: 0.45rem 0;
  color: #30271F;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
}
.grovio-consent-option input { width: 15px; height: 15px; margin: 0.05rem 0 0; accent-color: #4A6E4E; }
.grovio-consent-option strong { display: block; font-size: 12px; }
.grovio-consent-option span { display: block; margin-top: 0.1rem; color: #6D6258; font-size: 11px; }
.grovio-consent-option--essential { cursor: default; }
.grovio-consent-option--essential input { accent-color: #69806A; }
.grovio-consent-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0.75rem auto 0;
  padding: 0.38rem 0.55rem;
  background: #FDFBF5;
  border: 1px solid rgba(253, 251, 245, 0.65);
  border-radius: 5px;
  color: #36583D;
  cursor: pointer;
  font: 600 11px/1 Inter, system-ui, sans-serif;
}
.grovio-consent-manage:hover { background: #F1F5EB; }
.grovio-consent-tab:focus-visible,
.grovio-consent-button:focus-visible,
.grovio-consent-close:focus-visible,
.grovio-consent-option:focus-within,
.grovio-consent-manage:focus-visible { outline: 2px solid #4A6E4E; outline-offset: 3px; }
@media (max-width: 360px) {
  .grovio-consent.is-visible { width: calc(100vw - 1rem); padding: 0.8rem; }
  .grovio-consent-actions { justify-content: stretch; }
  .grovio-consent-button { flex: 1 1 auto; }
  .grovio-consent-button--text { flex-basis: 100%; }
}
