/* Patoz Defterim v4.1.1 — İşletme başvuru formu evrensel kaydırma düzeltmesi */

/* Başvuru sayfası açıldığında eski giriş/PWA sabitlemelerinin tamamını etkisizleştir. */
html.business-request-open,
html.business-request-open body,
body.business-request-open,
body.business-request-open.patoz-scroll-ready{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  touch-action:pan-x pan-y!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-behavior:auto!important;
}
html.business-request-open body{padding:0!important}

body.business-request-open #app.app-shell,
body.business-request-open .host-main,
body.business-request-open #view.view.host-content{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
  transform:none!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
}
body.business-request-open #view.view.host-content{padding:0!important}

body.business-request-open .business-request-page{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:minmax(260px,32%) minmax(0,68%)!important;
  align-items:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
  background:#f6f4fb!important;
}
body.business-request-open .business-request-visual{
  position:sticky!important;
  top:0!important;
  align-self:start!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:600px!important;
  overflow:hidden!important;
  pointer-events:auto!important;
}
body.business-request-open .business-request-panel{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  padding:clamp(20px,3vw,38px)!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
  background:#f6f4fb!important;
}
body.business-request-open .business-request-card{
  position:relative!important;
  display:block!important;
  width:min(100%,880px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:clamp(20px,3vw,38px)!important;
  overflow:visible!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
  transform:none!important;
  border:1px solid #e4def1!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 14px 40px rgba(41,31,70,.10)!important;
}
body.business-request-open .business-request-form,
body.business-request-open .business-request-form > *,
body.business-request-open .business-address-editor,
body.business-request-open .business-map-preview,
body.business-request-open .business-geocode-candidates{
  position:relative!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  touch-action:manipulation!important;
  pointer-events:auto!important;
}
body.business-request-open .business-request-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;
}
body.business-request-open .business-request-form .full,
body.business-request-open .business-request-form .form-section-title,
body.business-request-open .business-request-actions{grid-column:1/-1!important}
body.business-request-open :is(input,select,textarea,button,a,label){
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
body.business-request-open .business-request-actions{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:flex!important;
  gap:10px!important;
  margin-top:8px!important;
  padding:0!important;
  background:transparent!important;
}
body.business-request-open .business-request-actions .btn{min-height:50px!important}

/* Telefon ve dar tablet: tek sütun, bütün belge kayar. */
@media(max-width:900px){
  body.business-request-open .business-request-page{display:block!important}
  body.business-request-open .business-request-visual{display:none!important}
  body.business-request-open .business-request-panel{
    min-height:100vh!important;
    min-height:100dvh!important;
    padding:calc(14px + env(safe-area-inset-top,0px)) 12px calc(34px + env(safe-area-inset-bottom,0px))!important;
  }
  body.business-request-open .business-request-card{
    width:100%!important;
    margin:0!important;
    padding:18px 14px 26px!important;
    border-radius:18px!important;
  }
  body.business-request-open .business-request-form{grid-template-columns:1fr!important;gap:12px!important}
  body.business-request-open .business-request-form > *{grid-column:1!important}
  body.business-request-open .business-request-actions{flex-direction:column-reverse!important}
  body.business-request-open .business-request-actions .btn{width:100%!important}
}

/* Ekran klavyesi açıkken son alan ve butonların üstte kalmasını sağlar. */
@supports(height:100svh){
  html.business-request-open,
  html.business-request-open body,
  body.business-request-open #app.app-shell,
  body.business-request-open .host-main,
  body.business-request-open #view.view.host-content,
  body.business-request-open .business-request-page,
  body.business-request-open .business-request-panel{min-height:100svh!important}
}
