.hap-menu {
  display: flex;
  flex-direction: column;
  border-radius: var(--hap-radius-minimal);
  overflow: hidden;
  background: var(--hap-color-surface-primary-default);
  box-shadow: var(--hap-shadow-first-level-x, 0px)
    var(--hap-shadow-first-level-y, 2px) var(--hap-shadow-first-level-blur, 4px)
    0 var(--hap-shadow-first-level-color);
}

button.hap-menu-item {
  text-align: left;
  border: none;
}

.hap-menu-item {
  --hap-menu-item-border-width: var(--hap-border-width-md);
  --hap-menu-item-border-color: transparent;

  display: flex;
  flex-direction: row;
  gap: var(--hap-spacing-sm);

  text-decoration: none;
  background: var(--hap-color-fill-interaction-on-light-default);
  padding-block: var(--hap-spacing-sm);
  padding-inline: var(--hap-spacing-md);
  & > span {
    flex: 1;
    font-family: var(--hap-typography-font-family-body);
    font-size: var(--hap-typography-font-size-bodytext-s);
    font-weight: var(--hap-typography-font-weight-regular);
    line-height: var(--hap-typography-line-height-bodytext-standard-singleline);
    letter-spacing: var(--hap-typography-letter-spacing-lg);
  }
  color: var(--hap-color-text-secondary-on-light);
  box-shadow: inset 0 0 0 var(--hap-menu-item-border-width)
    var(--hap-menu-item-border-color);

  &:hover,
  &:focus-visible {
    border: none;
    outline: none;
  }
  &:hover {
    background: var(--hap-color-fill-interaction-on-light-hovered);
  }
  &:focus-visible {
    --hap-menu-item-border-color: var(--hap-color-border-focused-default);
  }
  &:active {
    background: var(--hap-color-fill-interaction-on-light-pressed);
  }

  &.hap-menu-item--selected {
    background: var(--hap-color-fill-interaction-on-light-selected);
  }
}
