/* Responsive popup layout v10.6.93
 * Phone: compact popups use top + bottom zones so they stay fully visible.
 * Tablet/desktop: compact popups split left + right.
 * The derivatives disclosure remains a centered modal, but is compact enough
 * to fit short phone screens with internal scrolling.
 */

:root{
  --gt-popup-edge:14px;
  --gt-popup-gap:10px;
  --gt-popup-phone-w:min(292px,calc(100vw - 24px));
  --gt-popup-desktop-w:min(320px,calc(50vw - 28px));
}

/* ---------- compact install popup ---------- */
.gt-mini-install,
.gt-mini-install.gt-admin-mini-install{
  box-sizing:border-box!important;
  width:min(286px,calc(100vw - 24px))!important;
  max-width:286px!important;
  min-width:0!important;
  min-height:0!important;
  padding:8px 9px!important;
  gap:7px!important;
  border-radius:12px!important;
  z-index:10044!important;
}
.gt-mini-install .gt-mini-install-logo{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  border-radius:9px!important;
}
.gt-mini-install .gt-mini-install-btn{
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 10px!important;
  border-radius:9px!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
.gt-mini-install .gt-mini-install-close{
  flex:0 0 27px!important;
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  font-size:19px!important;
  line-height:1!important;
}

/* ---------- compact KYC reminder ---------- */
.gt-kyc-alert.gt-kyc-popup-v10651{
  box-sizing:border-box!important;
  position:fixed!important;
  width:min(320px,calc(100vw - 24px))!important;
  max-width:320px!important;
  max-height:min(190px,42dvh)!important;
  overflow:auto!important;
  padding:10px 36px 10px 10px!important;
  gap:8px!important;
  border-radius:12px!important;
  z-index:10043!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-alert-icon{
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  font-size:13px!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-alert-copy{
  min-width:0!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-alert-copy strong{
  font-size:12px!important;
  line-height:1.2!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-alert-copy span{
  font-size:10.5px!important;
  line-height:1.28!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-alert-btn{
  min-height:32px!important;
  padding:7px 9px!important;
  border-radius:8px!important;
  font-size:10.5px!important;
  line-height:1.15!important;
}
.gt-kyc-alert.gt-kyc-popup-v10651 .gt-kyc-popup-close-v10651{
  top:6px!important;
  right:6px!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  font-size:18px!important;
}

/* ---------- desktop/tablet: left + right ---------- */
@media(min-width:721px){
  .gt-kyc-alert.gt-kyc-popup-v10651{
    top:auto!important;
    right:auto!important;
    bottom:var(--gt-popup-edge)!important;
    left:var(--gt-popup-edge)!important;
    width:var(--gt-popup-desktop-w)!important;
  }
  .gt-mini-install,
  .gt-mini-install.gt-admin-mini-install{
    top:auto!important;
    right:var(--gt-popup-edge)!important;
    bottom:var(--gt-popup-edge)!important;
    left:auto!important;
  }
}

/* ---------- phone: one at top + one at bottom ---------- */
@media(max-width:720px){
  :root{--gt-popup-edge:10px}

  .gt-kyc-alert.gt-kyc-popup-v10651{
    top:calc(env(safe-area-inset-top,0px) + 10px)!important;
    right:50%!important;
    bottom:auto!important;
    left:auto!important;
    width:var(--gt-popup-phone-w)!important;
    max-height:min(180px,35dvh)!important;
    transform:translateX(50%)!important;
  }

  .gt-mini-install,
  .gt-mini-install.gt-admin-mini-install{
    top:auto!important;
    right:50%!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 68px)!important;
    left:auto!important;
    width:var(--gt-popup-phone-w)!important;
    max-width:292px!important;
    transform:translateX(50%)!important;
  }

  /* Keep entrance visibility controlled by the existing popup scripts. */
  .gt-mini-install:not(.is-open){pointer-events:none}

  /* The mandatory risk disclosure stays modal but becomes compact and scrollable. */
  .gt-risk-backdrop{
    padding:10px!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .gt-risk-dialog{
    width:min(324px,calc(100vw - 20px))!important;
    max-height:calc(100dvh - 20px)!important;
    margin:auto!important;
