/* "Install the app" sheet (pwa-install.js) */
.pwa-nudge { position: fixed; z-index: 400; inset-inline: 0; bottom: 0; display: flex; justify-content: center; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; font-family: inherit; }
.pwa-nudge.pwa-modal { inset: 0; align-items: flex-end; background: rgba(8,10,16,.55); pointer-events: auto; opacity: 0; transition: opacity .25s; padding-bottom: 0; }
.pwa-nudge.pwa-modal.in { opacity: 1; }
.pwa-card { pointer-events: auto; position: relative; width: min(560px, 100%); display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 18px; border-radius: 22px; background: var(--surface-solid, var(--surface, #fff)); color: var(--text, #14161c); border: 1px solid var(--border, rgba(127,127,127,.25)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); transform: translateY(130%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.25,1.1), opacity .3s; }
.pwa-nudge.in .pwa-card { transform: none; opacity: 1; }
.pwa-nudge.out .pwa-card { transform: translateY(130%); opacity: 0; transition-duration: .25s; }
.pwa-modal .pwa-card { border-radius: 24px 24px 0 0; width: min(560px, 100%); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.pwa-x { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(127,127,127,.14); color: inherit; cursor: pointer; font-size: .85rem; }
.pwa-body h3 { margin: 4px 0 6px; font-size: 1.08rem; line-height: 1.5; padding-inline-end: 30px; }
.pwa-body p { margin: 0 0 12px; font-size: .86rem; line-height: 1.9; opacity: .8; }
.pwa-go { width: 100%; min-height: 46px; border: 0; border-radius: 14px; background: var(--accent, #4f46e5); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 24px -10px var(--accent, #4f46e5); }
.pwa-go:hover { filter: brightness(1.08); }
.pwa-later { display: block; margin: 8px auto 0; border: 0; background: none; color: inherit; opacity: .6; font: inherit; font-size: .82rem; cursor: pointer; padding: 8px 12px; }
.pwa-warn { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, transparent); font-size: .84rem; line-height: 1.9; }
.pwa-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.pwa-step { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(127,127,127,.09); animation: pwa-step 7.2s infinite; }
.pwa-step:nth-child(2) { animation-delay: 2.4s; } .pwa-step:nth-child(3) { animation-delay: 4.8s; }
.pwa-step small { display: block; opacity: .7; font-size: .76rem; margin-top: 2px; }
.pwa-stepic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent, #4f46e5); color: #fff; }
.pwa-stepic svg { width: 20px; height: 20px; } .pwa-addtxt { font-weight: 800; font-size: .78rem; }
@keyframes pwa-step { 0%, 4% { box-shadow: 0 0 0 0 transparent; background: rgba(127,127,127,.09); } 8%, 30% { background: color-mix(in srgb, var(--accent, #4f46e5) 16%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #4f46e5) 60%, transparent); } 36%, 100% { background: rgba(127,127,127,.09); box-shadow: 0 0 0 0 transparent; } }
/* animated phone: an app tile flies into the free slot of the home screen, then a tick */
.pwa-art { display: grid; place-items: center; }
.pwa-phone { width: 104px; height: 170px; border-radius: 22px; border: 3px solid var(--text, #14161c); padding: 8px 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #4f46e5) 22%, #fff), color-mix(in srgb, var(--accent, #4f46e5) 6%, #fff)); position: relative; overflow: hidden; }
.pwa-screen { position: relative; height: 100%; }
.pwa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; padding-top: 14px; }
.pwa-grid i, .pwa-slot { aspect-ratio: 1; border-radius: 9px; background: rgba(20,22,28,.18); display: block; }
.pwa-slot { border: 2px dashed rgba(20,22,28,.35); background: transparent; box-sizing: border-box; animation: pwa-slot 3.6s infinite; }
.pwa-tile { width: 30px; height: 30px; border-radius: 9px; background: var(--accent, #4f46e5); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.pwa-tile img { width: 100%; height: 100%; object-fit: cover; }
.pwa-fly { position: absolute; inset-inline-start: 50%; top: 10px; margin-inline-start: -15px; animation: pwa-fly 3.6s infinite cubic-bezier(.5,.1,.3,1); }
.pwa-ok { position: absolute; inset-inline-end: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: .9rem; animation: pwa-ok 3.6s infinite; }
@keyframes pwa-fly { 0% { transform: translateY(-40px) scale(1.5); opacity: 0; } 12% { opacity: 1; } 50%, 100% { transform: translate(var(--pwa-dx, 0px), var(--pwa-dy, 92px)) scale(.62); opacity: 1; } }
@keyframes pwa-slot { 0%, 45% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes pwa-ok { 0%, 55% { transform: scale(0); } 66%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@media (max-width: 520px) {
  .pwa-card { grid-template-columns: 1fr; gap: 4px; padding: 14px 14px 12px; }
  .pwa-art { height: 128px; }
  .pwa-phone { width: 78px; height: 128px; border-radius: 18px; padding: 6px 5px; }
  .pwa-grid { gap: 6px 5px; padding-top: 8px; } .pwa-tile { width: 24px; height: 24px; margin-inline-start: -12px; }
  .pwa-card.pwa-guide .pwa-art { display: none; }
  .pwa-body h3 { font-size: 1rem; } .pwa-body p { font-size: .8rem; line-height: 1.8; margin-bottom: 8px; }
  .pwa-step { padding: 6px 8px; } .pwa-step b { font-size: .86rem; } .pwa-step small { font-size: .72rem; }
}
body:has(.pwa-nudge:not(.pwa-modal)) :is(.ec-chat-widget, [class*="chat-widget"]) { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pwa-card, .pwa-nudge.pwa-modal { transition: none; } .pwa-fly, .pwa-slot, .pwa-ok, .pwa-step { animation: none; } .pwa-fly { display: none; } .pwa-ok { transform: scale(1); } }
