/* Cookie consent — local comparison (ported from ConsentBanner.module.css) */

.mmhp-consent-banner[hidden],
.mmhp-consent-overlay[hidden],
#mmhp-consent-root[hidden],
[data-mmhp-gpc-notice][hidden],
[data-mmhp-gpc-modal-note][hidden] {
  display: none !important;
}

.mmhp-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 12px clamp(12px, 3vw, 20px) calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.mmhp-consent-banner__inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: #1e2433;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.18);
  font-size: 14px;
  line-height: 1.5;
}

.mmhp-consent-banner__copy {
  margin: 0 0 14px;
  color: #cbd5e1;
}

.mmhp-consent-banner__copy a {
  color: #a5b4fc;
  text-decoration: underline;
}

.mmhp-consent-banner__copy a:hover {
  color: #c7d2fe;
}

.mmhp-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmhp-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.mmhp-consent-btn--primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.mmhp-consent-btn--primary:hover {
  background: #4338ca;
}

.mmhp-consent-btn--secondary {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.45);
}

.mmhp-consent-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mmhp-consent-btn--ghost {
  background: transparent;
  color: #a5b4fc;
  border-color: transparent;
  text-decoration: underline;
  min-height: 36px;
  padding: 0 8px;
}

.mmhp-consent-btn--ghost:hover {
  color: #c7d2fe;
}

.mmhp-consent-gpc-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(79, 70, 229, 0.18);
  border-radius: 8px;
  color: #e0e7ff;
  font-size: 13px;
}

.mmhp-consent-gpc-note a {
  color: #c7d2fe;
}

.mmhp-consent-gpc-note--modal {
  color: #312e81;
  background: #eef2ff;
}

.mmhp-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
  .mmhp-consent-overlay {
    align-items: center;
  }
}

.mmhp-consent-modal {
  width: min(440px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.mmhp-consent-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.mmhp-consent-modal__lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.mmhp-consent-modal__lead a {
  color: #4f46e5;
  text-decoration: underline;
}

.mmhp-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.mmhp-consent-row__label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}

.mmhp-consent-row__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.mmhp-consent-switch {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #cbd5e1;
  position: relative;
  transition: background 0.15s ease;
}

.mmhp-consent-switch.is-on {
  background: #4f46e5;
}

.mmhp-consent-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mmhp-consent-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.mmhp-consent-switch.is-on .mmhp-consent-switch__knob {
  transform: translateX(18px);
}

.mmhp-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mmhp-consent-btn--modal-secondary {
  color: #334155;
  border-color: #cbd5e1;
}

.mmhp-consent-btn--modal-secondary:hover {
  background: #f8fafc;
}

.mmhp-consent-btn--modal-ghost {
  color: #4f46e5;
}

@media (max-width: 390px) {
  .mmhp-consent-banner__actions {
    flex-direction: column;
  }

  .mmhp-consent-btn {
    width: 100%;
  }
}
