/* Legalofe v224 - picker custom compatto; select nativo nascosto da JS. */
@media (max-width: 800px), (pointer: coarse) {
  html body #lofe-main .lofe-nav-picker,
  html body #lofe-main .mobile-match-choice,
  html body #lofe-main .result-mobile-match-choice,
  html body #lofe-main .live-mobile-match-choice {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    margin:8px 0 11px !important;
    padding:7px 9px !important;
    border:1px solid rgba(85,185,239,.55) !important;
    border-radius:14px !important;
    background:linear-gradient(180deg,#082d49 0%,#06263f 100%) !important;
    box-shadow:0 8px 22px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04) !important;
    overflow:visible !important;
  }

  html body #lofe-main .lofe-nav-picker > span:first-child {
    display:block !important;
    margin:0 !important;
    padding:0 3px !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-size:11px !important;
    font-weight:750 !important;
    line-height:1.2 !important;
    letter-spacing:.06em !important;
    text-transform:uppercase !important;
  }

  /* Il select resta disponibile finche' JS non ha costruito il picker. */
  html body #lofe-main .lofe-nav-picker > select {
    width:100% !important;
    min-height:52px !important;
    box-sizing:border-box !important;
  }

  html body #lofe-main .lofe-nav-picker.lofe-picker-ready > select {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-height:0 !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
    border:0 !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  html body #lofe-main .lofe-picker-trigger {
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    width:100% !important;
    min-height:46px !important;
    box-sizing:border-box !important;
    padding:7px 9px 7px 12px !important;
    border:1.5px solid #9edcf8 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#102b3d !important;
    -webkit-text-fill-color:#102b3d !important;
    box-shadow:0 3px 10px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
    font:inherit !important;
    text-align:left !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
    touch-action:manipulation !important;
  }

  html body #lofe-main .lofe-picker-trigger:active {
    transform:translateY(1px) !important;
    background:#f4fbff !important;
  }

  html body #lofe-main .lofe-picker-trigger__text {
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:13px !important;
    font-weight:650 !important;
    line-height:1.2 !important;
    color:#102b3d !important;
  }

  html body #lofe-main .lofe-picker-trigger__arrow {
    flex:0 0 30px !important;
    width:30px !important;
    height:30px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:50% !important;
    background:#0a466f !important;
    box-shadow:0 2px 6px rgba(0,0,0,.16) !important;
  }

  html body #lofe-main .lofe-picker-trigger__arrow::before {
    content:"" !important;
    width:7px !important;
    height:7px !important;
    border-right:2px solid #fff !important;
    border-bottom:2px solid #fff !important;
    transform:rotate(45deg) translate(-1px,-1px) !important;
  }

  html body.lofe-picker-open { overflow:hidden !important; }

  .lofe-picker-overlay {
    position:fixed !important;
    inset:0 !important;
    z-index:2147483000 !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    padding:0 !important;
    background:rgba(0,16,29,.58) !important;
    backdrop-filter:blur(3px) !important;
    -webkit-backdrop-filter:blur(3px) !important;
  }

  .lofe-picker-sheet {
    width:100% !important;
    max-width:640px !important;
    max-height:min(78vh,720px) !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    border-radius:22px 22px 0 0 !important;
    border:1px solid rgba(117,205,248,.45) !important;
    border-bottom:0 !important;
    background:#f7fbfe !important;
    box-shadow:0 -12px 34px rgba(0,0,0,.30) !important;
    animation:lofePickerUp .18s ease-out both !important;
  }

  @keyframes lofePickerUp {
    from { transform:translateY(24px); opacity:.35; }
    to { transform:translateY(0); opacity:1; }
  }

  .lofe-picker-sheet__grab {
    width:42px !important;
    height:5px !important;
    border-radius:99px !important;
    background:#a9bbc7 !important;
    margin:9px auto 5px !important;
  }

  .lofe-picker-sheet__head {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:10px 16px 12px !important;
    background:linear-gradient(180deg,#0a3859,#082c48) !important;
    color:#fff !important;
  }

  .lofe-picker-sheet__title {
    margin:0 !important;
    font-size:14px !important;
    font-weight:750 !important;
    letter-spacing:.02em !important;
    color:#fff !important;
  }

  .lofe-picker-close {
    flex:0 0 36px !important;
    width:36px !important;
    height:36px !important;
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.35) !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    font-size:25px !important;
    line-height:1 !important;
    font-family:Arial,sans-serif !important;
  }

  .lofe-picker-list {
    overflow:auto !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    padding:8px 10px calc(10px + env(safe-area-inset-bottom)) !important;
    background:#eef7fc !important;
  }

  .lofe-picker-option {
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    width:100% !important;
    min-height:47px !important;
    margin:0 0 7px !important;
    padding:9px 10px !important;
    border:1px solid #c5e3f3 !important;
    border-radius:13px !important;
    background:#fff !important;
    color:#173246 !important;
    text-align:left !important;
    font:inherit !important;
    font-size:clamp(11px,3vw,13px) !important;
    font-weight:500 !important;
    line-height:1.15 !important;
    letter-spacing:-.015em !important;
    box-shadow:0 2px 6px rgba(15,63,92,.08) !important;
    -webkit-tap-highlight-color:transparent !important;
    touch-action:manipulation !important;
  }

  .lofe-picker-option:last-child { margin-bottom:0 !important; }

  .lofe-picker-option.is-selected {
    border-color:#238dca !important;
    background:#dff3ff !important;
    box-shadow:0 0 0 1px rgba(35,141,202,.14), 0 3px 9px rgba(15,63,92,.10) !important;
  }

  .lofe-picker-option__label {
    flex:1 1 auto !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  .lofe-picker-option__check {
    flex:0 0 21px !important;
    width:21px !important;
    height:21px !important;
    display:grid !important;
    place-items:center !important;
    border:2px solid #8fb8cf !important;
    border-radius:50% !important;
    color:transparent !important;
    font-size:14px !important;
    font-weight:900 !important;
  }

  .lofe-picker-option.is-selected .lofe-picker-option__check {
    border-color:#167ab3 !important;
    background:#167ab3 !important;
    color:#fff !important;
  }
}
