.atoz-pwa[hidden], .atoz-pwa__overlay[hidden]{display:none!important}
.atoz-pwa{position:fixed;z-index:99995;bottom:calc(22px + env(safe-area-inset-bottom,0px));inset-inline-start:18px;display:flex;align-items:flex-start;gap:5px;font-family:inherit}
.atoz-pwa__install{display:flex;align-items:center;gap:9px;background:#146b41;color:#fff;border:0;border-radius:999px;padding:9px 16px 9px 10px;box-shadow:0 7px 24px #002c1759;font:700 14px/1.4 inherit;cursor:pointer;white-space:nowrap}
.atoz-pwa__install img{width:30px;height:30px;border-radius:8px}
.atoz-pwa__dismiss{border:0;background:#fff;color:#24513b;border-radius:50%;font:22px/25px Arial,sans-serif;width:27px;height:27px;cursor:pointer;box-shadow:0 2px 8px #0003}
.atoz-pwa__overlay{position:fixed;z-index:99999;inset:0;display:grid;place-items:center;padding:20px;background:#0009;font-family:inherit}
.atoz-pwa__dialog{position:relative;box-sizing:border-box;max-width:390px;width:100%;padding:28px;background:#fff;color:#193b29;border-radius:20px;box-shadow:0 18px 55px #0004;text-align:center}
.atoz-pwa__dialog img{border-radius:13px}
.atoz-pwa__dialog h2{font-size:22px;margin:12px 0}
.atoz-pwa__dialog p{font-size:15px;line-height:1.85;margin:12px 0 22px}
.atoz-pwa__close{position:absolute;top:9px;left:14px;border:0;background:none;font-size:26px;color:#365a46;cursor:pointer}
.atoz-pwa__ok{background:#146b41;color:#fff;padding:12px 30px;border:0;border-radius:12px;font:700 15px inherit;cursor:pointer}
@media(max-width:600px){.atoz-pwa{bottom:calc(84px + env(safe-area-inset-bottom,0px));inset-inline-start:10px}.atoz-pwa__install{padding:7px 13px 7px 8px;font-size:13px}}

/* Mobile-only install entry points: home header icon + footer link. */
.atoz-pwa-home-icon,
.atoz-pwa-footer-cta { display: none; }

@media (max-width: 860px) {
  .atoz-pwa { display: none !important; }

  .atoz-pwa-home-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2ece4;
    border-radius: 12px;
    background: #f1f8f2;
    cursor: pointer;
    flex-shrink: 0;
  }
  .atoz-pwa-home-icon img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: block;
  }
  .atoz-pwa-home-icon-badge {
    position: absolute;
    inset-inline-start: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #146b41;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px #0002;
  }
  .atoz-pwa-home-icon-badge svg { width: 9px; height: 9px; }

  .atoz-pwa-footer-cta {
    display: block;
    max-width: 1200px;
    margin: 26px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .atoz-pwa-footer-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    color: #fff;
    text-align: start;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 8px 24px #0003;
  }
  .atoz-pwa-footer-button img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    flex-shrink: 0;
  }
  .atoz-pwa-footer-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
  }
  .atoz-pwa-footer-text b {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }
  .atoz-pwa-footer-text small {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.5;
  }
  .atoz-pwa-footer-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    flex-shrink: 0;
  }
  .atoz-pwa-footer-arrow svg { width: 18px; height: 18px; }
}

html.atoz-pwa-installed .atoz-pwa-home-icon,
html.atoz-pwa-installed .atoz-pwa-footer-cta { display: none !important; }

/* Show install entry points only when the browser can install natively,
   or on iOS where Safari uses its own Add to Home Screen flow. */
@media (max-width: 860px) {
  html:not(.atoz-pwa-installable):not(.atoz-pwa-ios) .atoz-pwa-home-icon,
  html:not(.atoz-pwa-installable):not(.atoz-pwa-ios) .atoz-pwa-footer-cta {
    display: none !important;
  }
}