/* YELLA Fishing v1.2.78 — Post a Fish close button + scroll chrome refinement.
   Visual-only change. The existing file pickers, form and submission handlers remain untouched. */

/* Hide the native scrollbar TRACK on both modal stages without disabling scrolling.
   The scrollbar previously painted beneath the sticky close control on Android. */
html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active),
html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active){
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important; /* Firefox + modern Chromium */
  -ms-overflow-style: none !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active)::-webkit-scrollbar,
html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active)::-webkit-scrollbar{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Smaller, understated, square close control. It remains sticky and operable
   while the form scrolls — no layout changes to the posting stages. */
html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active) > button.close-modal,
html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active) > button.close-modal{
  box-sizing: border-box !important;
  position: sticky !important;
  top: 10px !important;
  left: auto !important;
  right: auto !important;
  z-index: 65 !important;
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 10px 2px -44px auto !important;
  border-radius: 9px !important;
  border: 1px solid #4b92b1 !important;
  background: #04273b !important;
  box-shadow: 0 1px 7px #00172285, inset 0 1px 0 #b0ebff21 !important;
  color: #eaf7fc !important;
  font: 750 23px/1 system-ui, sans-serif !important;
  text-align: center !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transform: none !important;
  transition: border-color .15s ease, background-color .15s ease !important;
}
html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active) > button.close-modal:hover,
html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active) > button.close-modal:hover{
  border-color: #84d5f5 !important;
  background: #08384e !important;
  box-shadow: 0 1px 7px #00172285, inset 0 1px 0 #b0ebff21 !important;
}
html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active) > button.close-modal:focus-visible,
html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active) > button.close-modal:focus-visible{
  outline: 2px solid #ffd56b !important;
  outline-offset: 3px !important;
}
@media (max-width: 440px){
 html body #catch-modal .modal-box:has(#yella-quicklog-stage-photo.is-active) > button.close-modal,
 html body #catch-modal .modal-box:has(#yella-quicklog-stage-details.is-active) > button.close-modal{
  margin-right: 2px !important;
 }
}
@media (prefers-reduced-motion:reduce){
 html body #catch-modal .modal-box > button.close-modal{transition:none !important}
}
