.RepSegment { border-radius: $card-corner; color: $grey-55; cursor: pointer; font-size: 1.4rem; font-weight: $normal; min-width: 100px; &:hover label { background: var(--button-bg); color: var(--text-primary); .Wrapper .Rep { opacity: 1; } } & input { display: none; &:checked + label { background: var(--button-bg); color: var(--text-primary); .Rep { opacity: 1; } } } & label { border-radius: $card-corner; display: block; font-size: $font-small; font-weight: $medium; text-align: center; white-space: nowrap; overflow: hidden; padding: $unit; padding-bottom: $unit * 1.5; text-overflow: ellipsis; cursor: pointer; &:before { background: #fff; } @include breakpoint(phone) { border-radius: 100px; padding-bottom: $unit; } .Wrapper { display: flex; flex-direction: column; gap: $unit; .Rep { transition: $duration-opacity-fade opacity ease-in; opacity: 0.5; } } } @include breakpoint(phone) { min-width: initial; width: 100%; .Rep { display: none; } } }