.mt-consent[hidden],
.mt-consent [hidden],
.mt-consent-dialog:not([open]) {
  display: none;
}

.mt-consent {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 24px;
  align-items: center;
  background: #f1f7f3;
  border-bottom: 1px solid #b8d4c9;
  color: #293d37;
  font: inherit;
}

.mt-consent-copy h2,
.mt-consent-copy p {
  display: inline;
  margin: 0;
  font-family: inherit;
  letter-spacing: normal;
}

.mt-consent-copy {
  font-size: 14px;
  line-height: 1.45;
}

.mt-consent-copy h2 {
  margin-right: 0.2em;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}

.mt-consent-copy p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.mt-consent-actions {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mt-consent-actions button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #426757;
  border-radius: 10px;
  background: #fffdf9;
  color: #244536;
  font: 600 14px/1.25 system-ui, sans-serif;
  cursor: pointer;
}

.mt-consent-actions button:hover {
  background: #dfeee5;
}

.mt-consent-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 13px;
  line-height: 1.4;
}

.mt-consent-links a,
.mt-consent-close,
.mt-cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mt-consent-status {
  grid-column: 1 / -1;
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.mt-cookie-settings {
  min-height: 44px;
}

.mt-consent-status:empty {
  display: none;
}

.mt-consent button:focus-visible,
.mt-consent a:focus-visible,
.mt-cookie-settings:focus-visible {
  outline: 3px solid #923e2a;
  outline-offset: 2px;
}

.mt-consent-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(44rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #a5bfb2;
  border-radius: 16px;
  background: #fffdf9;
  color: #293d37;
  box-shadow: 0 12px 48px #243e3438;
}

.mt-consent-dialog::backdrop {
  background: rgb(21 50 42 / 40%);
}

.mt-consent-dialog .mt-consent {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px;
  border: 0;
  background: inherit;
}

.mt-consent-dialog .mt-consent-actions {
  grid-area: auto;
}

@media (max-width: 760px) {
  .mt-consent {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 16px;
  }

  .mt-consent-copy {
    font-size: 13px;
  }

  .mt-consent-actions {
    grid-area: auto;
  }

  .mt-consent-actions button {
    padding-inline: 5px;
    font-size: 13px;
  }
}
