


[data-mm-header] { position: relative; }

[data-mm-toggle] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6em;
  min-width: 2.75em;
  min-height: 2.75em;
  margin-left: 0.618em;
  z-index: 1001;
}
[data-mm-toggle] span {
  display: block;
  width: 1.5em;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transition: 0.3s ease;
}

[data-mm-menu] {
  position: fixed;
  top: 0;
  left: 0;
  width: 17.5em;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 3.75em 1.5em 1.5em;
}
[data-mm-menu].mm-open { transform: translateX(0); }

[data-mm-menu] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
[data-mm-menu] ul li a {
  display: block;
  padding: 0.875em 0;
  color: #0f172a;
  text-decoration: none;
  font-size: 1em;
  border-bottom: 1px solid #e2e8f0;
  transition: color 0.3s ease;
}
[data-mm-menu] ul li a:hover { color: #1e3a8a; }

[data-mm-close] {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  background: none;
  border: none;
  font-size: 1.75em;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
  min-width: 2.2em;
  min-height: 2.2em;
  padding: 0.1em 0.25em;
}

[data-mm-overlay] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 18, 32, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
}
[data-mm-overlay].mm-visible { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
  [data-mm-toggle] { display: none !important; }
  [data-mm-menu] {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
    padding: 0 !important;
    overflow: visible !important;
    flex-direction: row !important;
  }
  [data-mm-menu] ul { flex-direction: row; gap: 0; align-items: center; }
  [data-mm-menu] ul li a { padding: 0.5em 1em; border-bottom: none; font-size: inherit; }
  [data-mm-close] { display: none !important; }
  [data-mm-overlay] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-mm-menu], [data-mm-overlay], [data-mm-toggle] span { transition: none !important; }
}


.cc-banner {
  position: fixed;
  left: 1em;
  right: 1em;
  bottom: 1em;
  z-index: 1200;
  max-width: 46em;
  margin: 0 auto;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1.25em;
  box-shadow: 0 1.4em 3em rgba(15, 23, 42, 0.22);
  padding: 1.618em;
  display: none;
}
.cc-banner.cc-open { display: block; }
.cc-banner__title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.cc-banner__text {
  font-size: 0.9em;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1em;
}
.cc-link { color: #1e3a8a; }
.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.618em;
}
.cc-btn {
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5em;
  padding: 0.75em 1.25em;
  border: 1px solid #1e3a8a;
  background: #ffffff;
  color: #1e3a8a;
  flex: 1 1 9em;
  min-height: 2.75em;
}
.cc-btn--accept { background: #1e3a8a; color: #ffffff; }
.cc-btn--accept:hover { background: #1e40af; }
.cc-btn--reject:hover, .cc-btn--config:hover { background: #e2e8f0; }
.cc-panel {
  display: none;
  margin-top: 1em;
  border-top: 1px solid #e2e8f0;
  padding-top: 1em;
}
.cc-panel.cc-open { display: block; }
.cc-group {
  display: flex;
  gap: 0.618em;
  align-items: flex-start;
  padding: 0.618em 0;
  border-bottom: 1px solid #f1f5f9;
}
.cc-group__body { flex: 1; }
.cc-group__name { font-weight: 700; font-size: 0.92em; }
.cc-group__desc { font-size: 0.82em; color: #64748b; line-height: 1.55; }
.cc-group input { margin-top: 0.5em; width: 1.1em; height: 1.1em; }

@media (max-width: 560px) {
  .cc-banner { padding: 1.2em; border-radius: 1em; }
  .cc-banner__actions { flex-direction: column; }
}
