.mk-consent-center {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-height: 44px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
  font: 800 13px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.mk-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  overflow: auto;
  background: rgba(15, 23, 42, .46);
  padding: 20px;
}

.mk-consent-layer[hidden],
.mk-consent-details[hidden],
.mk-consent-signal[hidden] {
  display: none;
}

.mk-consent-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mk-consent-panel h2 {
  margin: 4px 44px 0 0;
  color: #111827;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.1;
}

.mk-consent-panel > p:not(.mk-consent-eyebrow) {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.mk-consent-eyebrow {
  margin: 0;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mk-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mk-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.mk-consent-actions button,
.mk-consent-details button {
  min-height: 44px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  font: 800 13px/1.25 inherit;
  cursor: pointer;
}

.mk-consent-actions .mk-consent-primary,
.mk-consent-details .mk-consent-primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.mk-consent-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid #e4e4e7;
  padding-top: 16px;
}

.mk-consent-details label {
  display: flex;
  min-height: 52px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}

.mk-consent-details input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #111827;
}

.mk-consent-details strong,
.mk-consent-details small {
  display: block;
}

.mk-consent-details strong {
  font-size: 14px;
}

.mk-consent-details small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.mk-consent-signal {
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46 !important;
  padding: 10px 12px;
  font-weight: 750;
}

.mk-consent-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: #334155;
  font-weight: 750;
}

.mk-consent-live {
  min-height: 20px;
}

.mk-consent-center:focus-visible,
.mk-consent-panel button:focus-visible,
.mk-consent-panel input:focus-visible,
.mk-consent-panel a:focus-visible,
.mk-consent-panel h2:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 3px;
}

@media (min-width: 721px) {
  .mk-consent-layer {
    place-items: center;
  }
}

@media (max-width: 520px) {
  .mk-consent-layer {
    padding: 0;
  }

  .mk-consent-panel {
    width: 100%;
    max-height: min(88vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .mk-consent-actions {
    grid-template-columns: 1fr;
  }

  .mk-consent-center {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-consent-center,
  .mk-consent-panel {
    scroll-behavior: auto;
  }
}
