.mcd-drilldown {
  position: relative;
  width: 100%;
  height: calc(var(--mcd-vh, 1vh) * 100);
  min-height: calc(var(--mcd-vh, 1vh) * 100);
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  color: #111;
  border: 1px solid #eee;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}

.mcd-drilldown * {
  box-sizing: border-box;
}

.mcd-panel {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Fallback if JS does not load */
.mcd-panel {
  display: none;
}

.mcd-panel-root {
  display: block;
}

/* Animated mode */
.mcd-js-ready .mcd-panel {
  display: block;
  position: absolute;
  inset: 0 !important;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s ease, opacity 0.32s ease;
  opacity: 0.98;
  will-change: transform;
  z-index: 1;
}

.mcd-js-ready .mcd-panel.is-active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  z-index: 3;
}

.mcd-js-ready .mcd-panel.is-before {
  transform: translate3d(-100%, 0, 0);
  z-index: 2;
}

.mcd-js-ready .mcd-panel.is-after {
  transform: translate3d(100%, 0, 0);
  z-index: 1;
}

.mcd-panel-header {
  position: sticky;
  top: 0 !important;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-weight: 600;
}

.mcd-title,
.mcd-title-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.mcd-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mcd-panel::after {
  content: "";
  display: block;
  height: calc(120px + env(safe-area-inset-bottom));
}

.mcd-item {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f1f1f1;
}

.mcd-link,
.mcd-forward,
.mcd-view-all a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 15px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  border-radius: 0 !important;
  position: relative;
  z-index: 1;

}

.mcd-forward {
  appearance: none;
  -webkit-appearance: none;
}

.mcd-forward:active,
.mcd-back:active,
.mcd-link:active {
  transform: scale(0.995);
}

.mcd-forward:focus,
.mcd-back:focus,
.mcd-link:focus {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.mcd-arrow {
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mcd-forward:active .mcd-arrow {
  transform: translateX(4px);
}

.mcd-back {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit;
  cursor: pointer;
  padding: 8px 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

.mcd-view-all a {
  font-weight: 700;
    color:#2ca56a !important;
}

.mcd-count {
  opacity: 0.7;
}

.mcd-error,
.mcd-debug {
  padding: 10px;
  border: 1px solid #eee;
  background: #fafafa;
  font-size: 13px;
}

.mcd-debug {
  margin-top: 8px;
  color: #555;
}

@media (prefers-reduced-motion: reduce) {
  .mcd-js-ready .mcd-panel {
    transition: none;
  }
}


.mcd-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcd-title-link {
    padding-left: 12px;
    border-left: 1px solid #ddd;
}

