/* Convertion Mega Menu v1.0.0 — Tools panel in the header. */
.main-navigation {
  position: relative;
}

.cmm-tools-item {
  position: static;
}

.cmm-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: inherit;
}

.cmm-toggle:hover,
.cmm-toggle[aria-expanded="true"] {
  color: #c81e3a;
}

.cmm-arrow {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.cmm-toggle[aria-expanded="true"] .cmm-arrow {
  transform: rotate(180deg);
}

.cmm-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 9999;
  background: #181113;
  color: #faf1e2;
  border-top: 3px solid #c81e3a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 26px 30px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 32px;
  max-height: 80vh;
  overflow: auto;
  text-align: left;
}

.cmm-panel[hidden] {
  display: none;
}

.cmm-group-title {
  color: #d8b464;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cmm-link {
  display: block;
  color: #ece4e2;
  text-decoration: none;
  font-size: 14.5px;
  padding: 4px 0;
}

.cmm-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .cmm-panel {
    position: static;
    grid-template-columns: 1fr 1fr;
    max-height: 70vh;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .cmm-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* v1.0.1: Kadence styles <button> with its theme button background; force a plain nav-link look. */
.main-navigation .cmm-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* v1.0.2: theme colours <a> nav links white, but a <button> inherits dark body text — set it explicitly. */
.main-navigation .cmm-toggle {
  color: #ffffff !important;
}
