/* ZA U Z M I – service options: narrow-screen layout fix, Oct 2026.
   The previous desktop flex-basis rule squeezed the long availability description
   into a ~60px column on phones. Keep the two choices full width. */
@media (max-width:760px){
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-body,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-body{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-grid,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-grid{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-options,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    grid-auto-flow:row!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    gap:9px!important;
    flex:none!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-options > label,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options > label{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:stretch!important;
    gap:11px!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:48px!important;
    height:auto!important;
    margin:0!important;
    padding:12px 13px!important;
    box-sizing:border-box!important;
    border:1px solid #dce6ef!important;
    border-radius:12px!important;
    background:#f7fafc!important;
    white-space:normal!important;
    text-align:left!important;
    font-size:12px!important;
    line-height:1.4!important;
    overflow:visible!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability{
    align-items:flex-start!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability > span,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability > span{
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    gap:5px!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability strong,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability strong{
    display:block!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.35!important;
    white-space:normal!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability small,
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability small{
    display:block!important;
    font-size:11px!important;
    font-weight:450!important;
    line-height:1.45!important;
    color:#6c8094!important;
    white-space:normal!important;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-options input[type="checkbox"],
  html body #settings #serviceSettingsCard details.service-manage-row .service-edit-options input[type="checkbox"]{
    display:block!important;
    flex:0 0 19px!important;
    position:static!important;
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    min-height:19px!important;
    max-width:19px!important;
    max-height:19px!important;
    margin:0!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    accent-color:#2f80ed;
  }
  html body[class] #settings #serviceSettingsCard details.service-manage-row .service-edit-use-availability input[type="checkbox"]{
    margin-top:2px!important;
  }
  /* New-service editor uses the same availability toggle: keep it readable. */
  html body #settings #serviceSettingsCard .service-add-duration{
    min-width:0!important;
  }
  html body #settings #serviceSettingsCard .service-add-duration .service-duration-toggle{
    display:flex!important;
    align-items:flex-start!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    white-space:normal!important;
    box-sizing:border-box!important;
  }
  html body #settings #serviceSettingsCard .service-add-duration .service-duration-toggle > span{
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
}
