/* DigitalGampaha global UI/UX polish — presentation only */
.gsp-cc-header-actions>.dg-lang-switcher{display:inline-flex!important;flex:0 0 auto!important}
.gsp-cc-nav-languages{display:none!important}
.gsp-cc-header-inner{min-width:0}
.gsp-cc-brand{min-width:0;flex:0 1 auto}
.gsp-cc-brand-text{min-width:0}
.gsp-cc-header-actions{margin-left:auto;flex:0 0 auto;min-width:0}
.gsp-cc-header-actions>.dg-lang-switcher{border-color:#d9e4e8;background:#f8fbfb;box-shadow:none}
.gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn{width:auto;min-width:32px;padding:0 7px}
.gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn.active{background:#071d31;color:#fff}
.gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn[data-dg-lang="si"]{font-family:"Noto Sans Sinhala",system-ui,sans-serif}
.gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn[data-dg-lang="ta"]{font-family:"Noto Sans Tamil",system-ui,sans-serif}
.gsp-location-field,#case-location-summary,.case-location-summary-text{min-width:0}
body.dg-lang-si #case-location-summary,body.dg-lang-ta #case-location-summary{grid-template-columns:minmax(0,1fr)!important}
body.dg-lang-si #case-location-open,body.dg-lang-ta #case-location-open{width:100%!important;min-width:0!important}
.gsp-confirm-actions>a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.3}
body.dg-lang-si .gsp-field label,body.dg-lang-ta .gsp-field label{line-height:1.6}
body.dg-lang-si .gsp-field-hint,body.dg-lang-ta .gsp-field-hint{line-height:1.55}
.gsp-confirm-lead,.gsp-confirm-note,.gsp-confirm-summary-item{overflow-wrap:anywhere}
.gsp-cc-footer-grid>*{min-width:0}
@media(max-width:991px){
 .gsp-cc-header-actions>.dg-lang-switcher{display:inline-flex!important}
 .gsp-cc-nav-languages{display:none!important}
}
@media(max-width:767px){
 .gsp-cc-header-inner{gap:7px!important;flex-wrap:nowrap!important}
 .gsp-cc-brand-mark{width:38px!important;height:38px!important}
 .gsp-cc-brand-text{font-size:.94rem!important;white-space:nowrap}
 .gsp-cc-header-actions{gap:4px!important}
 .gsp-cc-header-actions>.dg-lang-switcher{padding:2px!important;gap:1px!important;border-radius:8px!important}
 .gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn{min-width:27px!important;height:28px!important;padding:0 4px!important;font-size:.64rem!important;border-radius:6px!important}
 .gsp-cc-icon-btn{width:36px!important;height:36px!important;border-radius:9px!important}
 #case-location-summary{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 #case-location-open{width:100%!important;min-width:0!important}
 .gsp-confirm-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important}
 .gsp-confirm-actions>a{width:100%!important;margin:0!important;min-height:48px!important}
 .gsp-confirm-card{padding:28px 20px!important}
 .gsp-confirm-note{margin-bottom:20px!important}
 .gsp-cc-footer{padding-top:14px!important}
 .gsp-cc-help-bar{margin-bottom:20px!important}
}
@media(max-width:420px){
 .gsp-cc-brand-mark{width:36px!important;height:36px!important}
 .gsp-cc-brand-text{font-size:.86rem!important}
 .gsp-cc-brand-domain{display:none!important}
 .gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn{min-width:25px!important;padding:0 3px!important;font-size:.61rem!important}
 .gsp-cc-icon-btn{width:34px!important;height:34px!important}
}
@media(max-width:360px){
 .gsp-cc-brand-text{display:none!important}
 .gsp-cc-brand{flex:0 0 36px!important}
 .gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn{min-width:27px!important;font-size:.63rem!important}
}
@media(min-width:768px) and (max-width:1024px){
 .gsp-cc-header-inner{gap:14px!important}
 .gsp-cc-brand-text{font-size:1.05rem!important}
 .gsp-cc-header-actions>.dg-lang-switcher .dg-lang-btn{min-width:30px!important;padding:0 6px!important}
}
@media(min-width:992px){
 .gsp-cc-nav{gap:24px!important}
 .gsp-cc-header-actions>.dg-lang-switcher{display:inline-flex!important}
}

/* Final precedence guards v20260919-2 */
html body.case-public-issue-page .gsp-cc-header .gsp-cc-header-actions > .dg-lang-switcher{
  display:inline-flex!important; visibility:visible!important; opacity:1!important;
}
html body.case-public-issue-page .gsp-cc-header .gsp-cc-nav-languages{display:none!important}
html body.case-public-issue-page .gsp-cc-header .gsp-cc-header-actions > .dg-lang-switcher .dg-lang-btn{
  width:auto!important;
}
@media(max-width:767px){
  html body.case-public-issue-page .gsp-cc-header .gsp-cc-header-actions > .dg-lang-switcher .dg-lang-btn{
    width:auto!important; min-width:27px!important; padding:0 4px!important;
  }
}
@media(max-width:420px){
  html body.case-public-issue-page .gsp-cc-header .gsp-cc-header-actions > .dg-lang-switcher .dg-lang-btn{
    min-width:24px!important; padding:0 3px!important; font-size:.60rem!important;
  }
}

@media(max-width:1024px){
  .gsp-confirm-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
  }
  .gsp-confirm-actions>a{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    min-height:48px!important;
  }
}
html body .case-location-permission-overlay .case-location-permission-actions button.case-location-permission-later,
html body .case-location-permission-overlay .case-location-permission-actions button.case-location-permission-later:focus,
html body .case-location-permission-overlay .case-location-permission-actions button.case-location-permission-later:active{
  background:#fff!important;
  background-color:#fff!important;
  background-image:none!important;
  color:#0f9488!important;
  border:1.5px solid #8fd3cd!important;
  box-shadow:none!important;
}

/* Final real-phone location summary override v33 */
@media(max-width:767px){
  html body.case-public-issue-page .gsp-location-field #case-location-summary{
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:10px!important;
    min-height:0!important;
    padding:12px!important;
  }
  html body.case-public-issue-page .gsp-location-field #case-location-open{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:46px!important;
    padding:10px 14px!important;
    border-radius:10px!important;
    font-size:.88rem!important;
    justify-self:stretch!important;
  }
}

/* Location CTA icon alignment — UI only v34 */
.case-location-permission-allow{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
}
.case-location-permission-allow > span{order:1!important;}
.case-location-permission-allow > i{
  order:2!important;
  margin:0!important;
}
#case-location-confirm-btn[data-action="locate"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
}
#case-location-confirm-btn[data-action="locate"]::after{
  content:"\f05b";
  font-family:FontAwesome;
  font-style:normal;
  font-weight:normal;
  line-height:1;
  display:inline-block;
}
