import styled,{css}from"styled-components";import{Button,DropdownMenuItem}from"@redocly/theme";import{ITEM_WIDTH}from"./constants";export const Container=styled.span`
  display: flex;
  justify-content: space-between;
  align-items: center;
`;export const LanguageTitle=styled.span`
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: ${({active:e})=>e?"var(--font-weight-medium)":"var(--font-weight-regular)"};
`;export const LanguageTitleContainer=styled.span`
  display: inherit;
  gap: inherit;
  flex-direction: inherit;
  justify-content: inherit;
  align-items: inherit;
`;export const LanguageIcon=styled.span`
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
`;export const LanguageListContainer=styled.div`
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
`;export const LanguageListItem=styled.button`
  background: none;
  border: none;
  width: ${ITEM_WIDTH}px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 0.5);
  padding: var(--spacing-xs) 0;
  color: ${({active:e})=>e?"var(--text-color-primary)":"var(--text-color-description)"};
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;

  :hover {
    color: var(--text-color-primary);
  }

  ${({active:e})=>e&&css`
      &::before {
        position: absolute;
        top: -21px;
        border-top: 3px solid var(--text-color-primary);
        width: 100%;
        content: '';
        border-bottom-left-radius: calc(var(--border-radius) / 2);
        border-bottom-right-radius: calc(var(--border-radius) / 2);
      }
    `}
`;export const StyledDropdownMenuItem=styled(DropdownMenuItem)`
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xs);
  padding: calc(var(--spacing-unit) * 1.5) var(--spacing-xs) calc(var(--spacing-unit) * 1.5)
    var(--spacing-sm);
  width: ${({$width:e=204})=>e}px;
  fill: var(--menu-content-color-active);
`;export const DropdownTriggerButton=styled(Button)`
  display: inline-flex;

  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
`;
//# sourceMappingURL=styled.js.map