.mth-consent-dialog {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  width: min(920px, calc(100vw - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  margin: 0 auto;
  border: 1px solid #cbd7c8;
  border-radius: 18px;
  color: #172219;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 58, 19, .2);
}
.mth-consent-dialog[hidden],
.mth-consent-settings[hidden] { display: none !important; }
.mth-consent-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 15px;
}
.mth-consent-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #174f1a;
  font-size: 1rem;
}
.mth-consent-copy h2 {
  margin: 0 0 7px;
  color: #172219;
  font-size: 1.08rem;
  line-height: 1.25;
}
.mth-consent-copy p {
  max-width: 620px;
  margin: 0 0 6px;
  color: #536056;
  font-size: .78rem;
  line-height: 1.55;
}
.mth-consent-copy a {
  color: #174f1a;
  font-size: .75rem;
  font-weight: 800;
}
.mth-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.mth-consent-actions button,
.mth-consent-settings {
  min-height: 46px;
  padding: 10px 15px;
  border: 2px solid #174f1a;
  border-radius: 10px;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
.mth-consent-reject {
  color: #174f1a;
  background: #fff;
}
.mth-consent-accept {
  color: #fff;
  background: #174f1a;
}
.mth-consent-actions button:hover,
.mth-consent-actions button:focus-visible {
  outline: 3px solid rgba(161, 212, 148, .55);
  outline-offset: 2px;
}
.mth-consent-settings {
  position: fixed;
  z-index: 99990;
  bottom: 12px;
  left: 12px;
  min-height: 36px;
  padding: 7px 10px;
  border-width: 1px;
  color: #174f1a;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 18px rgba(16, 58, 19, .12);
  font-size: .68rem;
}
@media (max-width: 760px) {
  .mth-consent-dialog {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 18px;
    border-radius: 15px;
  }
  .mth-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 430px) {
  .mth-consent-copy { gap: 11px; }
  .mth-consent-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .mth-consent-actions { grid-template-columns: 1fr; }
  .mth-consent-actions button { width: 100%; }
}

@media (max-width: 650px) {
  .mth-consent-dialog {
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 112px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mth-consent-settings {
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
  }
}
