/* 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);}}

/* v0.9.4 - Browser-specific installation instructions */
.rm-sh-app-install-note em {
  display: block;
  margin-top: 7px;
  color: rgba(17,17,17,.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.rm-sh-app-compat-note {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(22,138,69,.18);
  border-radius: 14px;
  background: #f5faf7;
}
.rm-sh-app-compat-note ul {
  margin: 7px 0 0 18px;
}
.rm-sh-app-compat-note li {
  margin: 4px 0;
}

/* v0.9.6 - PWA diagnostic card in admin */
.rm-sh-app-diagnostic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.rm-sh-app-diagnostic > div {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #f7f8f7;
  padding: 10px 12px;
}
.rm-sh-app-diagnostic strong {
  display: block;
  color: #111 !important;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}
.rm-sh-app-diagnostic span,
.rm-sh-app-diagnostic a {
  color: rgba(17,17,17,.78) !important;
  font-size: 12px;
  font-weight: 700;
}
@media(max-width:782px){.rm-sh-app-diagnostic{grid-template-columns:1fr;}}

/* v0.9.6 - App Install Wizard */
.rm-sh-app-install-note {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  z-index: 1000000;
  max-width: 640px;
  margin: 0 auto;
  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) + 122px);
}
.rm-sh-app-install-note-card {
  position: relative;
  border-radius: 18px;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.30);
  padding: 15px;
}
.rm-sh-app-install-note-head {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding-right: 30px;
}
.rm-sh-app-install-note-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
  flex: 0 0 auto;
}
.rm-sh-app-install-note-head strong {
  display: block;
  color: #111111 !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  margin: 0 0 4px;
}
.rm-sh-app-install-note-head p {
  margin: 0;
  color: rgba(17,17,17,.72) !important;
  font-size: 12.5px;
  line-height: 1.42;
}
.rm-sh-app-install-note-native {
  margin: 12px 0 10px;
  border-radius: 13px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}
.rm-sh-app-install-note-native.is-ready {
  background: rgba(22,138,69,.10);
  color: #0f6d36 !important;
  border: 1px solid rgba(22,138,69,.25);
}
.rm-sh-app-install-note-native.is-manual {
  background: #f4f5f4;
  color: rgba(17,17,17,.78) !important;
  border: 1px solid rgba(0,0,0,.08);
}
.rm-sh-app-install-note-steps {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 7px;
}
.rm-sh-app-install-note-steps li {
  color: rgba(17,17,17,.86) !important;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 650;
}
.rm-sh-app-install-note-meta {
  margin-top: 12px;
  color: rgba(17,17,17,.58) !important;
  font-size: 11.5px;
  font-weight: 700;
}
.rm-sh-app-install-note-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.rm-sh-app-help {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 22px;
  background: linear-gradient(135deg,#090b0a,#171b18);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  color: #ffffff;
  padding: 20px;
  max-width: 920px;
}
.rm-sh-app-help-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.rm-sh-app-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #168a45;
  color: #ffffff;
  font-weight: 900;
  flex: 0 0 auto;
}
.rm-sh-app-help h3 {
  margin: 0 0 6px;
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}
.rm-sh-app-help p {
  margin: 0;
  color: rgba(255,255,255,.84) !important;
  font-size: 14px;
  line-height: 1.5;
}
.rm-sh-app-help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.rm-sh-app-help-secondary {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ffffff !important;
  font-weight: 850;
  padding: 10px 14px;
  cursor: pointer;
}
.rm-sh-app-help-secondary:hover { background: rgba(255,255,255,.15); }
.rm-sh-app-help-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}
.rm-sh-app-help-grid div {
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  padding: 13px;
}
.rm-sh-app-help-grid strong {
  display: block;
  color: #ffffff !important;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 900;
}
.rm-sh-app-help-grid span {
  display: block;
  color: rgba(255,255,255,.76) !important;
  font-size: 12px;
  line-height: 1.42;
}
.rm-sh-app-shortcodes-list p {
  margin: 6px 0;
}
.rm-sh-app-admin-wizard-note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7f5;
  border: 1px solid rgba(22,138,69,.18);
  color: #111111;
}
@media (max-width: 760px) {
  .rm-sh-app-help-grid { grid-template-columns: 1fr; }
  .rm-sh-app-help { padding: 16px; }
  .rm-sh-app-help-actions .rm-sh-app-shortcode-btn,
  .rm-sh-app-help-actions .rm-sh-app-help-secondary { width: 100%; justify-content: center; }
}
