/* Cookie banner + preferences panel */
.mh-consent[hidden] { display: none !important; }

.mh-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
  color: #1f2020;
}

.mh-consent__banner {
  margin: 16px;
  background: rgba(242, 239, 232, 0.98);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .mh-consent__banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 18px 20px;
    max-width: 1100px;
    margin: 18px auto;
  }
}

.mh-consent__title {
  margin: 0 0 4px 0;
  font-weight: 800;
  letter-spacing: .02em;
}

.mh-consent__desc {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
  color: #2b2b2b;
}

.mh-consent__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mh-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .mh-consent__actions { justify-content: flex-end; }
}

.mh-consent__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  background: #1f2020;
  color: #fff;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
}

.mh-consent__btn:hover { transform: translateY(-1px); opacity: .95; }

.mh-consent__btn--ghost {
  background: transparent;
  color: #1f2020;
  border: 2px solid rgba(0,0,0,0.22);
}

.mh-consent__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: auto;
}

.mh-consent__panel {
  position: fixed;
  inset: auto 16px 16px 16px;
  background: rgba(242, 239, 232, 0.99);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  max-height: min(80vh, 680px);
  overflow: auto;
  outline: none;
}

@media (min-width: 768px) {
  .mh-consent__panel {
    inset: auto 0 18px 0;
    margin: 0 auto;
    max-width: 720px;
  }
}

.mh-consent__panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mh-consent__panelTitle {
  margin: 0;
  font-weight: 900;
}

.mh-consent__iconBtn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

.mh-consent__panelBody {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.mh-consent__panelDesc {
  margin: 0 0 6px 0;
  color: #333;
  font-size: 14px;
}

.mh-consent__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
}

.mh-consent__optTitle {
  margin: 0;
  font-weight: 900;
}

.mh-consent__optDesc {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #444;
}

.mh-consent__panelFoot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Toggle switch */
.mh-switch { position: relative; display: inline-flex; align-items: center; }
.mh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mh-switch__ui {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  position: relative;
  transition: background .2s ease;
}
.mh-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform .2s ease;
}
.mh-switch input:checked + .mh-switch__ui { background: #1f2020; }
.mh-switch input:checked + .mh-switch__ui::after { transform: translateX(22px); }
.mh-switch input:disabled + .mh-switch__ui { opacity: .5; }
