/* v46 targeted fixes; loaded after previous styles. */
/* Header: placeholder for future personal account. */
.header-tools .mg-account-v46{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:34px;padding:6px 12px;border-radius:999px;
  border:1px solid #cfe9da;background:#f4fbf7;color:#097b38;
  font:700 12px/1.2 'Montserrat',Arial,sans-serif;cursor:pointer;white-space:nowrap;
  flex:0 0 auto;box-sizing:border-box;
}
.header-tools .mg-account-v46 svg{width:17px;height:17px;flex-shrink:0}
.header-tools .mg-account-v46:hover{background:#e9f8ed;border-color:#bce4c8}
.header-tools .mg-account-v46:focus-visible{outline:2px solid #14af4d;outline-offset:2px}
.mg-account-overlay-v46[hidden]{display:none!important}
.mg-account-overlay-v46{position:fixed;inset:0;background:rgba(5,19,12,.52);z-index:3000;display:grid;place-items:center;padding:18px;box-sizing:border-box}
.mg-account-dialog-v46{width:min(100%,420px);box-sizing:border-box;position:relative;background:#fff;border-radius:26px;padding:34px 28px 30px;box-shadow:0 25px 65px rgba(7,27,14,.28);font-family:'Montserrat',Arial,sans-serif}
.mg-account-dialog-v46 h2{margin:0 0 10px;font-size:25px;line-height:1.15;color:#143c28}
.mg-account-dialog-v46 p{margin:0;font-size:14px;line-height:1.5;color:#586e60}
.mg-account-close-v46{position:absolute;right:15px;top:13px;display:grid;place-items:center;width:33px;height:33px;border:0;border-radius:50%;background:#eef8f1;color:#17683b;font-size:22px;cursor:pointer}
/* Desktop: undo legacy side-by-side grid, retain full-width cards in original order */
@media (min-width:901px){
  html body.page-home.air-design main{grid-template-columns:minmax(0,1fr)!important;row-gap:0!important;}
  html body.page-home.air-design main>section{grid-column:1 / -1!important;grid-row:auto!important;}
  html body.page-home.air-design main>.quick-coverage,
  html body.page-home.air-design main>.instagram-section{grid-column:1 / -1!important;grid-row:auto!important;}
  html body.page-home.air-design main>.quick-coverage .quick-panel,
  html body.page-home.air-design main>.instagram-section .instagram-panel{height:auto!important;min-height:160px!important;}
  html body.page-home.air-design main>.quick-coverage #quickCoverageForm{max-width:1040px!important;margin-top:14px!important;}
  html body.page-home.air-design main>.instagram-section .instagram-panel{
    display:grid!important;
    grid-template-columns:minmax(260px,42%) 66px minmax(180px,1fr) auto!important;
    grid-template-rows:1fr!important;column-gap:18px!important;align-items:center!important;
    align-content:center!important;padding:20px 26px!important;
  }
  html body.page-home.air-design main>.instagram-section .instagram-logo{
    grid-column:2!important;grid-row:1!important;width:60px!important;height:60px!important;
    transform:none!important;
  }
  html body.page-home.air-design main>.instagram-section .instagram-copy{
    grid-column:3!important;grid-row:1!important;transform:none!important;
    padding:0!important;margin:0!important;min-width:0!important;
  }
  html body.page-home.air-design main>.instagram-section .instagram-copy h2{font-size:clamp(20px,1.7vw,25px)!important}
  html body.page-home.air-design main>.instagram-section .instagram-button{
    grid-column:4!important;grid-row:1!important;justify-self:end!important;
    transform:none!important;margin:0!important;white-space:nowrap!important;
    min-height:44px!important;padding:12px 17px!important;font-size:11px!important;
  }
  html body.page-home.air-design main>.instagram-section .instagram-panel::after{width:47%!important}
  /* center tariff type selector in both housing categories */
  html body.page-house .house-plan-modes,
  html body.page-apartment .apartment-plan-modes{margin-left:auto!important;margin-right:auto!important;max-width:min(100%,720px)!important;width:100%!important;}
  html body.page-house .page-nav,html body.page-apartment .page-nav{display:none!important}
}
@media (min-width:901px) and (max-width:1150px){
  html body.page-home.air-design main>.instagram-section .instagram-panel{
    grid-template-columns:minmax(190px,36%) 54px minmax(0,1fr) auto!important;column-gap:12px!important;padding:18px 18px!important;
  }
  html body.page-home.air-design main>.instagram-section .instagram-logo{width:52px!important;height:52px!important}
  html body.page-home.air-design main>.instagram-section .instagram-copy h2{font-size:18px!important}
  html body.page-home.air-design main>.instagram-section .instagram-button{padding:10px 12px!important;font-size:10px!important}
}
@media (max-width:900px){
  html body .mg-account-v46{padding:0!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;border-radius:50%!important;}
  html body .mg-account-v46 .mg-account-text-v46{display:none!important;}
  html body .header-tools{gap:5px!important;}
  html body .page-nav{display:none!important;}
  /* keep tariff control centered without suppressing horizontal scrolling on narrow screens */
  html body.page-house .house-plan-modes,
  html body.page-apartment .apartment-plan-modes{margin-left:auto!important;margin-right:auto!important;}
}
@media (max-width:370px){html body .mg-account-v46{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important}}
/* Target form must remain visible above persistent navigation */
#coverageLeadForm{scroll-margin-top:clamp(110px,15vh,170px);scroll-margin-bottom:140px;}
@media (max-width:900px){#coverageLeadForm{scroll-margin-top:95px;scroll-margin-bottom:160px;}}
