.ios-segmented-control {
    --background: rgb(240, 239, 239);
    background: var(--background);
    border-radius: 9px;
    margin-left: 20%;
    margin-right: 20%;
    margin-bottom: 1%;
    padding: 2px;
    border: none;
    outline: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .ios-segmented-control .piloption {
    position: relative;
    cursor: pointer;
  }
  
  .ios-segmented-control .piloption:hover input:not(:checked) + label span, .ios-segmented-control .piloption:active input:not(:checked) + label span, .ios-segmented-control .piloption:focus input:not(:checked) + label span {
    opacity: .2;
  }
  
  .ios-segmented-control .piloption:active input:not(:checked) + label span {
    transform: scale(.95);
  }
  
  .ios-segmented-control .piloption label {
    position: relative;
    display: block;
    text-align: center;
    padding: 3px 6vmin;
    background: rgba(255,255,255,0);
    font-weight: 500;
    color: rgba(0,0,0,1);
    font-size: 11px;
  }
  
  .ios-segmented-control .piloption label::before, .ios-segmented-control .piloption label::after {
    content: '';
    width: 1px;
    background: rgba(142,142,147,.15);
    position: absolute;
    top: 14%;
    bottom: 14%;
    border-radius: 10px;
    will-change: background;
    -webkit-transition: background .2s ease;
    transition: background .2s ease;
  }
  
  .ios-segmented-control .piloption label::before {
    left: 0;
    transform: translateX(-.5px);
  }
  
  .ios-segmented-control .piloption label::after {
    right: 0;
    transform: translateX(.5px);
  }
  
  .ios-segmented-control .piloption:first-of-type {
    grid-column: 1;
    grid-row: 1;
    box-shadow: none;
  }
  
  .ios-segmented-control .piloption:first-of-type label::before {
    opacity: 0;
  }
  
  .ios-segmented-control .piloption:last-of-type label::after {
    opacity: 0;
  }
  
  .ios-segmented-control .piloption input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    opacity: 0;
  }
  
  .ios-segmented-control .selection {
    background: rgba(255,0,1,1);
    border: .5px solid rgba(0,0,0,0.04);
    box-shadow: 0 3px 8px 0 rgba(0,0,0,0.12), 0 3px 1px 0 rgba(0,0,0,0.04);
    border-radius: 7px;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    will-change: transform;
    -webkit-transition: transform .2s ease;
    transition: transform .2s ease;
  }
  
  .ios-segmented-control .piloption label span {
    display: block;
    color: black;
    position: relative;
    z-index: 2;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    will-change: transform;
  }

  /* .ios-segmented-control .selection span  {
    display: block;
    color: white;
    position: relative;
    z-index: 2;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    will-change: transform;
  } */
  
  .ios-segmented-control .piloption input:checked+label::before, .ios-segmented-control .piloption input:checked+label::after {
    background: var(--background);
    z-index: 1;
  }
  
  .ios-segmented-control .piloption input:checked+label {
    cursor: default;
  }