/* RM SH App Install - isolated module */
.rm-sh-app-install-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  bottom: auto;
  z-index: 999999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}
body.admin-bar .rm-sh-app-install-banner {
  top: calc(env(safe-area-inset-top, 0px) + 56px);
}
.rm-sh-app-install-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(135deg, #070707, #171717);
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  padding: 8px 9px;
  box-shadow: 0 12px 36px rgba(0,0,0,.34);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.rm-sh-app-install-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.rm-sh-app-install-logo {
  width: 31px !important;
  height: 31px !important;
  max-width: 31px !important;
  max-height: 31px !important;
  object-fit: contain;
  display: block;
}
.rm-sh-app-install-title {
  color: #fff !important;
  font-size: 12.5px;
  line-height: 1.18;
  font-weight: 850;
  margin-bottom: 2px;
}
.rm-sh-app-install-message {
  color: rgba(255,255,255,.88) !important;
  font-size: 10.8px;
  line-height: 1.3;
}
.rm-sh-app-install-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.rm-sh-app-install-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.92) !important;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}
.rm-sh-app-install-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rm-sh-app-install-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #14a866;
  color: #fff !important;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  padding: 8px 10px;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(20,168,102,.22);
}
.rm-sh-app-install-button:hover,
.rm-sh-app-install-button:focus {
  background: #17b970;
  color: #fff !important;
}
.rm-sh-app-install-disable {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.92) !important;
  cursor: pointer;
  font-size: 10.2px;
  line-height: 1;
  font-weight: 800;
  padding: 8px 8px;
  white-space: nowrap;
}
.rm-sh-app-install-disable:hover,
.rm-sh-app-install-disable:focus {
  background: rgba(255,255,255,.16);
  color: #fff !important;
}

.rm-sh-app-install-close {
  appearance: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff !important;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-sh-app-install-close:hover,
.rm-sh-app-install-close:focus {
  background: rgba(255,255,255,.16);
  color: #fff !important;
}
.rm-sh-app-ios-note {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  bottom: auto;
  z-index: 1000000;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid rgba(0,0,0,.08);
}
body.admin-bar .rm-sh-app-ios-note {
  top: calc(env(safe-area-inset-top, 0px) + 122px);
}
.rm-sh-app-ios-note strong {
  display: block;
  margin-bottom: 3px;
  color: #111;
}
.rm-sh-app-shortcode-btn,
.rm-sh-app-icon-btn {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rm-sh-app-shortcode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  padding: 10px 15px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.rm-sh-app-shortcode-btn:hover { background:#168a45; color:#fff!important; }
.rm-sh-app-shortcode-dot { width:8px; height:8px; border-radius:999px; background:#16a34a; box-shadow:0 0 0 4px rgba(22,163,74,.16); }
.rm-sh-app-icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#111;
  color:#fff!important;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  padding:0;
}
.rm-sh-app-icon-btn:hover { background:#168a45; color:#fff!important; }
.rm-sh-app-icon-phone { font-size:15px; line-height:1; color:#fff!important; }
.rm-sh-app-icon-label { font-size:12px; font-weight:800; color:#fff!important; }
.rm-sh-app-icon-btn:has(.rm-sh-app-icon-label){width:auto;padding:0 12px;}
.rm-sh-app-dashboard-card {display:flex;align-items:center;gap:14px;margin:14px 0;padding:15px;border-radius:18px;background:linear-gradient(135deg,#0d0f0e,#171b18);border:1px solid rgba(255,255,255,.10);box-shadow:0 14px 38px rgba(0,0,0,.14);color:#fff;}
.rm-sh-app-dashboard-card strong{display:block;color:#fff!important;font-weight:900;margin-bottom:3px;}
.rm-sh-app-dashboard-card p{margin:0;color:rgba(255,255,255,.82)!important;font-size:13px;line-height:1.45;}
.rm-sh-app-dashboard-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;background:#168a45;color:#fff;font-weight:900;flex:0 0 auto;}
.rm-sh-app-dashboard-card .rm-sh-app-shortcode-btn{margin-left:auto;white-space:nowrap;background:#168a45;}
.rm-sh-app-dashboard-card .rm-sh-app-shortcode-btn:hover{background:#111;}
.rm-sh-app-preview-card{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(135deg,#080808,#171717);border-radius:18px;padding:14px;color:#fff;}
.rm-sh-app-preview-card img{width:44px!important;height:44px!important;object-fit:contain;border-radius:12px;background:#fff;flex:0 0 auto;}
.rm-sh-app-preview-card strong{display:block;color:#fff!important;}
.rm-sh-app-preview-card p{margin:4px 0 8px;color:rgba(255,255,255,.82)!important;font-size:12px;}
.rm-sh-app-preview-card span{display:inline-flex;margin:0 4px 4px 0;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 7px;font-size:10px;color:#fff;}
@media (max-width:420px){
  .rm-sh-app-install-card{grid-template-columns:36px minmax(0,1fr);}
  .rm-sh-app-install-actions{grid-column:1/-1;justify-content:flex-end;}
  .rm-sh-app-install-button{flex:1;padding-top:9px;padding-bottom:9px;}
  .rm-sh-app-install-disable{font-size:10px;padding:9px 8px;}
  .rm-sh-app-dashboard-card{align-items:stretch;flex-direction:column;text-align:center;}
  .rm-sh-app-dashboard-card .rm-sh-app-shortcode-btn{margin:0 auto;}
}
@media (min-width:768px){.rm-sh-app-install-banner.rm-sh-app-mobile-only{display:none!important;}}

/* v0.9.0 - fallback note when native PWA prompt is unavailable */
.rm-sh-app-install-note{
  position:fixed;
  left:12px;
  right:12px;
  top:calc(env(safe-area-inset-top,0px) + 78px);
  z-index:1000001;
  max-width:560px;
  margin:0 auto;
  background:#fff;
  color:#111!important;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:13px 42px 13px 14px;
  box-shadow:0 18px 52px rgba(0,0,0,.28);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.admin-bar .rm-sh-app-install-note{top:calc(env(safe-area-inset-top,0px) + 124px);}
.rm-sh-app-install-note strong{display:block;color:#111!important;font-size:13px;font-weight:900;margin:0 0 5px;line-height:1.25;}
.rm-sh-app-install-note span{display:block;color:rgba(17,17,17,.82)!important;font-size:12.5px;line-height:1.45;font-weight:550;}
.rm-sh-app-install-note-close{position:absolute;right:10px;top:10px;width:26px;height:26px;border:0;border-radius:999px;background:#111;color:#fff!important;display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;cursor:pointer;}
.rm-sh-app-install-note-close:hover{background:#168a45;color:#fff!important;}
@media(max-width:420px){.rm-sh-app-install-note{top:calc(env(safe-area-inset-top,0px) + 118px);font-size:12px;}body.admin-bar .rm-sh-app-install-note{top:calc(env(safe-area-inset-top,0px) + 164px);}}
