.ph-drillnav {
  width: 100%;
  max-width: var(--ph-drillnav-max-width, 440px);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  font-family: inherit;
}

.ph-drillnav__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: height 0.28s ease;
}

.ph-panel {
  display: none;
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
}

.ph-panel.is-active {
  display: block;
  animation: phSlideForward 0.24s ease both;
}

.ph-panel.is-active-back {
  display: block;
  animation: phSlideBack 0.24s ease both;
}

.ph-panel__headline {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 10px 14px 14px;
}

.ph-menu-item,
.ph-back {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: transparent;
  color: #111827;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ph-menu-item:hover,
.ph-back:hover,
.ph-menu-item:focus-visible,
.ph-back:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.ph-menu-item:active,
.ph-back:active {
  transform: scale(0.99);
}

.ph-menu-item--current {
  background: #f3f4f6;
  font-weight: 700;
}

.ph-arrow {
  font-size: 1.35rem;
  line-height: 1;
  color: #9ca3af;
}

.ph-back {
  justify-content: flex-start;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 4px;
}

@keyframes phSlideForward {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes phSlideBack {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .ph-drillnav {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .ph-panel {
    padding: 14px;
  }

  .ph-menu-item,
  .ph-back {
    font-size: 1.05rem;
    padding: 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-drillnav__viewport,
  .ph-panel.is-active,
  .ph-panel.is-active-back,
  .ph-menu-item,
  .ph-back {
    animation: none;
    transition: none;
  }
}
