.mqmtc-root,
.mqmtc-root *,
.mqmtc-root *::before,
.mqmtc-root *::after,
.mqmtc-manage-button { box-sizing: border-box; }

.mqmtc-root[hidden] { display: none !important; }

.mqmtc-open body { pointer-events: none; }

.mqmtc-root {
  position: fixed;
  inset: auto 0 0;
  z-index: 999998;
  padding: var(--mqmtc-spacing, 10px);
  font-family: var(--mqmtc-font, Inter, Arial, sans-serif);
  pointer-events: auto;
}

.mqmtc-root--center {
  inset: 50% auto auto 50%;
  width: min(var(--mqmtc-width, 526px), 100%);
  transform: translate(-50%, -50%);
}

.mqmtc-banner {
  width: min(var(--mqmtc-width, 526px), 100%);
  margin: 0 auto;
  padding: 15px 20px;
  border: 0 solid var(--mqmtc-border, #e7d8cb);
  border-radius: var(--mqmtc-radius, 12px);
  background: var(--mqmtc-bg, #fffdf8);
  color: var(--mqmtc-text, #6f6258);
  box-shadow: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.23);
  outline: none;
}

.mqmtc-copy h2 {
  margin: 0 0 10px;
  color: inherit;
  font-family: var(--mqmtc-title-font, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.mqmtc-copy p {
  margin: 0;
  color: inherit;
  font: 400 12px/1.5 var(--mqmtc-font, Inter, Arial, sans-serif);
}

.mqmtc-policy {
  display: inline-block;
  margin-top: 10px;
  color: var(--mqmtc-accent, #9e5c43);
  font: 400 12px/1.4 var(--mqmtc-font, Inter, Arial, sans-serif);
  text-underline-offset: 2px;
}

.mqmtc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mqmtc-button,
.mqmtc-manage-button {
  min-height: 45px;
  padding: 10px;
  border: 1px solid var(--mqmtc-accent, #9e5c43);
  border-radius: var(--mqmtc-button-radius, 6px);
  font: 600 15px/1.2 var(--mqmtc-font, Inter, Arial, sans-serif);
  cursor: pointer;
}

.mqmtc-button--accept,
.mqmtc-manage-button {
  background: var(--mqmtc-accent, #9e5c43);
  color: #fff;
}

.mqmtc-button--reject {
  background: var(--mqmtc-bg, #fffdf8);
  color: var(--mqmtc-accent, #9e5c43);
}

.mqmtc-button:hover,
.mqmtc-manage-button:hover { filter: brightness(.94); }

.mqmtc-button:focus-visible,
.mqmtc-manage-button:focus-visible,
.mqmtc-policy:focus-visible {
  outline: 3px solid #fec503;
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .mqmtc-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    width: calc(100% - 20px);
    max-width: none;
  }
  .mqmtc-actions { min-width: 320px; margin-top: 0; }
}

@media (max-width: 768px) {
  .mqmtc-root { padding: 10px; }
  .mqmtc-banner { width: 100%; }
  .mqmtc-actions { grid-template-columns: 1fr; }
}

@media (max-width: 425px) {
  .mqmtc-copy h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mqmtc-root { scroll-behavior: auto; }
}
