.mh-cookie-banner,
.mh-cookie-dialog,
.mh-cookie-launcher {
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mh-cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  width: min(520px, calc(100vw - 32px));
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mh-cookie-banner h2,
.mh-cookie-dialog h2 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.mh-cookie-banner p,
.mh-cookie-dialog p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.mh-cookie-banner a,
.mh-cookie-dialog a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mh-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.mh-cookie-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

.mh-cookie-button:hover {
  background: #f8fafc;
}

.mh-cookie-button:focus-visible,
.mh-cookie-launcher:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.mh-cookie-button-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.mh-cookie-button-primary:hover {
  background: #1e293b;
}

.mh-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.18);
}

.mh-cookie-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.mh-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
}

.mh-cookie-category strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.mh-cookie-category span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.mh-cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.mh-cookie-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.mh-cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.16s ease;
}

.mh-cookie-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  transition: transform 0.16s ease;
}

.mh-cookie-switch input:checked + span {
  background: #10b981;
}

.mh-cookie-switch input:checked + span::after {
  transform: translateX(18px);
}

.mh-cookie-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.mh-cookie-switch input:disabled + span {
  background: #94a3b8;
  opacity: 0.74;
}

.mh-cookie-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482999;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.mh-cookie-launcher:hover {
  color: #0f172a;
  background: #ffffff;
}

@media (max-width: 560px) {
  .mh-cookie-banner,
  .mh-cookie-launcher {
    right: 12px;
    bottom: 12px;
  }

  .mh-cookie-banner {
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .mh-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mh-cookie-button {
    width: 100%;
  }
}
