.sf-pwa-dock{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:1500;font-family:Vazirmatn,system-ui,sans-serif;direction:rtl}.sf-pwa-install{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid #4b726d;border-radius:14px;background:#102d31;color:#e8f7f3;box-shadow:0 8px 30px #0003;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.sf-pwa-install[hidden]{display:none!important}.sf-pwa-install img{width:24px;height:24px}.sf-pwa-install svg{color:#7ce3cb}.sf-pwa-install:hover{background:#1b4144;border-color:#7ce3cb}.sf-pwa-install:disabled{opacity:.6;cursor:wait}.sf-pwa-install:focus-visible,.sf-pwa-dialog button:focus-visible,.sf-pwa-update button:focus-visible{outline:3px solid #7ce3cb;outline-offset:4px}.sf-pwa-live:empty{display:none}.sf-pwa-live{max-width:260px;padding:10px 12px;border:1px solid #436761;border-radius:10px;background:#102d31;color:#dcece7;font-size:11px;line-height:1.9;margin:8px 0 0;box-shadow:0 8px 25px #0002}.sf-pwa-update{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:1501;direction:rtl;width:min(440px,calc(100vw - 36px));padding:18px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;border:1px solid #4d756d;border-radius:16px;background:#102d31;color:#ebf7f1;box-shadow:0 10px 36px #0004;font-family:Vazirmatn,system-ui,sans-serif}.sf-pwa-update>div{width:100%}.sf-pwa-update strong{font-size:13px;font-weight:600}.sf-pwa-update p{color:#b1cac1;font-size:11px;line-height:1.9;margin:7px 0 3px}.sf-pwa-update button{min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:#7ce3cb;color:#092c30;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}.sf-pwa-update .sf-pwa-later{border:1px solid #4d756d;background:transparent;color:#d1e5dc}.sf-pwa-update button:disabled{opacity:.6;cursor:wait}@media(max-width:600px){.sf-pwa-dock{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.sf-pwa-install{padding:10px 11px;gap:8px;min-height:46px}.sf-pwa-update{left:12px;bottom:78px;width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){.sf-pwa-dock *,.sf-pwa-dialog *,.sf-pwa-update *{transition:none!important}}

@media(max-width:600px){.sf-pwa-install{width:48px;min-width:48px;height:48px;padding:12px;justify-content:center;border-radius:15px}.sf-pwa-install img,.sf-pwa-install [data-pwa-label]{display:none}}

/* A centered installation guide on phones, tablets and desktop browsers. */
body.sf-pwa-guide-open{overflow:hidden}
.sf-pwa-dialog{
  position:fixed;inset:0;direction:rtl;box-sizing:border-box;width:min(540px,calc(100% - 32px));max-width:calc(100% - 24px);height:fit-content;
  max-height:calc(100vh - 32px);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));
  margin:auto;padding:26px;border:1px solid #3c5b5c;border-radius:24px;overflow:hidden;
  background:linear-gradient(145deg,#15333a,#10262b 60%);color:#eaf5f0;color-scheme:dark;
  box-shadow:0 24px 80px #0006;font-family:Vazirmatn,system-ui,sans-serif;font-size:12px;text-align:right;
}
.sf-pwa-dialog[open]{display:flex;flex-direction:column}
.sf-pwa-dialog::backdrop{background:#031012b8;backdrop-filter:blur(7px)}
.sf-pwa-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-shrink:0}
.sf-pwa-dialog-top img{width:48px;height:48px;border:1px solid #45615e;border-radius:14px}
.sf-pwa-dialog-top>div{flex:1;min-width:0}
.sf-pwa-dialog h2{margin:0;font-size:22px;line-height:1.8;letter-spacing:-.4px}
.sf-pwa-dialog .sf-pwa-dialog-top p{margin:1px 0 0;font-size:11px;line-height:1.9;color:#afc6bf}
.sf-pwa-dialog-top button{flex:none;width:36px;height:36px;align-self:flex-start;border:1px solid #42605e;border-radius:50%;background:#ffffff08;color:#d1e5dc;font-size:24px;line-height:1;cursor:pointer}
.sf-pwa-dialog-top button:hover{background:#ffffff12}
.sf-pwa-platforms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-shrink:0;margin:23px 0 20px;padding:5px;background:#061d225e;border:1px solid #315154;border-radius:16px}
.sf-pwa-platforms button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:74px;padding:10px 4px;border:1px solid transparent;border-radius:11px;background:transparent;color:#abc3bd;font-family:inherit;font-size:11px;line-height:1.8;font-weight:500;cursor:pointer}
.sf-pwa-platforms button:hover{background:#ffffff08;color:#eaf5f0}
.sf-pwa-platforms button[aria-selected=true]{border-color:#689b8e;background:#254c49;color:#b3f5de;box-shadow:0 3px 12px #0002}
.sf-pwa-platforms svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sf-pwa-guide-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52746c transparent;padding-inline:3px}
.sf-pwa-dialog h3{font-size:15px;line-height:1.9;font-weight:600;margin:0 0 16px;color:#eff7f2}
.sf-pwa-dialog p{font-size:12px;line-height:2.15;margin:10px 0;color:#b5ccc4}
.sf-pwa-steps{list-style:none;counter-reset:pwa-step;padding:0!important;margin:0}
.sf-pwa-steps li{counter-increment:pwa-step;display:flex;align-items:flex-start;gap:12px;padding:0!important;margin:0 0 18px!important}
.sf-pwa-steps li::before{content:counter(pwa-step,persian);display:grid;place-items:center;flex:none;width:28px;height:28px;margin-top:1px;border:1px solid #44675f;border-radius:9px;background:#23443f;color:#a5ebd0;font-size:13px;font-weight:600}
.sf-pwa-steps strong{font-size:13px;font-weight:600;color:#e6f2ec;line-height:2}
.sf-pwa-dialog .sf-pwa-steps p{font-size:12px;line-height:2.15;color:#b5ccc4;margin:3px 0 0;overflow-wrap:anywhere}
.sf-pwa-dialog bdi{font-family:Vazirmatn,system-ui,sans-serif;font-size:.97em;color:#e4f1eb}
.sf-pwa-dialog .sf-pwa-muted{margin:0;font-size:10px;line-height:2;color:#9db6ad}
.sf-pwa-guide-actions{flex-shrink:0}
.sf-pwa-native-install{display:block;width:100%;min-height:46px;margin-top:18px;padding:11px 18px;border:1px solid #99edcf;border-radius:12px;background:#a0ebce;color:#123e35;font-family:inherit;font-size:13px;font-weight:650;cursor:pointer}
.sf-pwa-native-install:hover{background:#b9f6de}
.sf-pwa-native-install:disabled{opacity:.65;cursor:wait}
.sf-pwa-native-install[hidden]{display:none!important}
.sf-pwa-dialog-status:empty{display:none}
.sf-pwa-dialog .sf-pwa-dialog-status{padding:10px 12px;margin:12px 0 0;border:1px solid #4b6c61;border-radius:10px;background:#ffffff05;color:#c6e1d2;font-size:11px;line-height:2}
.sf-pwa-guide-note{flex-shrink:0;border-top:1px solid #35534f;margin-top:18px;padding-top:14px;font-size:10px;line-height:2;color:#93aea4}
@media(max-width:600px){
  .sf-pwa-dialog{width:calc(100% - 24px);padding:20px;border-radius:21px}
  .sf-pwa-dialog h2{font-size:20px}
  .sf-pwa-dialog-top{gap:10px}
  .sf-pwa-dialog .sf-pwa-dialog-top p{font-size:10px}
  .sf-pwa-platforms{margin:19px 0 17px;gap:3px;padding:4px}
  .sf-pwa-platforms button{font-size:10px;min-height:72px;padding:9px 2px}
  .sf-pwa-steps li{gap:10px;margin-bottom:16px!important}
}
@media(max-height:540px){
  .sf-pwa-dialog{padding:16px 20px}
  .sf-pwa-dialog-top img{width:38px;height:38px;border-radius:11px}
  .sf-pwa-platforms{margin:12px 0;min-height:0}
  .sf-pwa-platforms button{flex-direction:row;min-height:40px;padding:6px 3px;gap:6px}
  .sf-pwa-platforms svg{width:18px;height:18px;flex:none}
  .sf-pwa-guide-note{margin-top:10px;padding-top:8px}
  .sf-pwa-native-install{margin-top:10px;min-height:40px}
}
