.pwa-install {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(0, 139, 76, .18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
  color: #24332b;
  font-family: Arial, sans-serif;
}

.pwa-install[hidden] { display: none !important; }
.pwa-install__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px; }
.pwa-install__content { min-width: 0; flex: 1; }
.pwa-install__title { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; }
.pwa-install__text { display: block; font-size: 12px; line-height: 1.35; color: #66736c; }
.pwa-install__action { min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: #008b4c; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.pwa-install__close { position: absolute; top: -10px; right: -10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #24332b; color: #fff; font-size: 20px; line-height: 36px; cursor: pointer; }

.pwa-instructions {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 27, 19, .68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.pwa-instructions[hidden] { display: none !important; }
.pwa-instructions, .pwa-instructions * { box-sizing: border-box; }
.pwa-modal-open { overflow: hidden !important; }
.pwa-instructions__card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 32px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: #fff;
  color: #24332b;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-family: Arial, sans-serif;
  animation: pwa-sheet-in .28s ease-out both;
}
.pwa-instructions__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef4f0;
  color: #24332b;
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
}
.pwa-instructions__logo { width: 58px; height: 58px; margin-bottom: 7px; border-radius: 14px; }
.pwa-instructions__eyebrow { display: block; margin-bottom: 4px; color: #008b4c; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pwa-instructions__card h2 { margin: 0 0 5px; color: #173c29; font-size: 23px; line-height: 1.2; }
.pwa-instructions__intro { margin: 0 auto 16px; max-width: 330px; color: #66736c; font-size: 13px; line-height: 1.4; }
.pwa-instructions__steps { margin: 0; padding: 0; list-style: none; text-align: left; }
.pwa-instructions__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #edf1ee; font-size: 14px; line-height: 1.35; }
.pwa-instructions__steps li > div { flex: 1; padding-top: 2px; }
.pwa-instructions__steps small { display: block; margin-top: 3px; color: #78857e; font-size: 11px; line-height: 1.35; }
.pwa-instructions__number { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #e5f6ed; color: #008b4c; font-size: 14px; font-weight: 800; }
.pwa-share-icon { position: relative; display: inline-block; width: 22px; height: 20px; margin-left: 8px; vertical-align: -5px; border: 2px solid #0879e1; border-top: 0; border-radius: 3px; }
.pwa-share-icon::before { content: ''; position: absolute; left: 8px; top: -9px; width: 2px; height: 13px; background: #0879e1; }
.pwa-share-icon::after { content: ''; position: absolute; left: 5px; top: -9px; width: 7px; height: 7px; border-top: 2px solid #0879e1; border-left: 2px solid #0879e1; transform: rotate(45deg); }
.pwa-instructions__browser { margin: 9px 0 12px; padding: 12px; border-radius: 13px; background: #fff7dd; color: #594a19; text-align: left; font-size: 12px; line-height: 1.4; }
.pwa-instructions__browser strong, .pwa-instructions__browser span { display: block; }
.pwa-instructions__copy { width: 100%; min-height: 40px; margin-top: 9px; padding: 0 15px; border: 1px solid #d8b84c; border-radius: 20px; background: #fff; color: #594a19; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-instructions__copy.is-copied { border-color: #008b4c; color: #008b4c; }
.pwa-instructions__done { width: 100%; min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px; background: #008b4c; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.pwa-instructions__pointer { display: flex; align-items: center; justify-content: center; gap: 8px; height: 31px; margin: 4px 0 -15px; color: #0879e1; font-size: 11px; font-weight: 700; }
.pwa-instructions__pointer b { font-size: 22px; animation: pwa-pointer 1.1s ease-in-out infinite; }

@keyframes pwa-sheet-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pwa-pointer { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

@media (max-width: 767px) {
  .pwa-install {
    right: 12px;
    bottom: calc(101px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
  }

  .pwa-instructions { padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .pwa-instructions__card { max-height: calc(100vh - 20px - env(safe-area-inset-bottom, 0px)); padding: 18px 17px 14px; border-radius: 22px; }
  .pwa-instructions__logo { width: 50px; height: 50px; }
  .pwa-instructions__card h2 { font-size: 21px; }
  .pwa-instructions__steps li { padding: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-instructions__card, .pwa-instructions__pointer b { animation: none; }
}
