.th-pwa-helper--compact {
  margin: 16px 0;
}

.th-pwa-helper__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.th-pwa-helper__heading-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.th-pwa-helper__heading-wrap h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: #0f172a;
  font-weight: 800;
}

.th-pwa-helper__heading-wrap p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.th-pwa-helper__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.th-pwa-helper__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid #31479c;
  background: #31479c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(49, 71, 156, 0.16);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.th-pwa-helper__btn:hover,
.th-pwa-helper__btn:focus {
  transform: translateY(-1px);
  background: #263a88;
  box-shadow: 0 10px 22px rgba(49, 71, 156, 0.22);
}

.th-pwa-helper__dismiss {
  border: 0;
  background: #f8fafc;
  color: #64748b;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
}

.th-pwa-helper__dismiss:hover,
.th-pwa-helper__dismiss:focus {
  background: #eef2f7;
  color: #0f172a;
}

.th-pwa-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.th-pwa-modal.is-open { display: block; }

.th-pwa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 38, .72);
}

.th-pwa-modal__dialog {
  position: relative;
  width: min(620px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  margin: 15px auto;
  background: #fff;
  color: #0f172a;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.th-pwa-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eef2ff;
  color: #31479c;
  font-size: 28px;
  cursor: pointer;
}

.th-pwa-modal__dialog h3 {
  color: #0f172a;
  margin-top: 0;
  font-size: 28px;
  line-height: 1.15;
}

.th-pwa-modal__dialog p {
  color: #475569;
}

.th-pwa-modal__steps {
  margin: 16px 0 20px 18px;
}

.th-pwa-modal__steps li {
  margin: 0 0 10px;
}

.th-pwa-modal__tip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef2ff;
  color: #31479c;
}

@media (max-width: 820px) {
  .th-pwa-helper__row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .th-pwa-helper__heading-wrap {
    width: 100%;
  }

  .th-pwa-helper__buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .th-pwa-helper__row {
    padding: 16px;
    border-radius: 16px;
  }

  .th-pwa-helper__heading-wrap h2 {
    font-size: 22px;
  }

  .th-pwa-helper__buttons {
    gap: 10px;
  }

  .th-pwa-helper__btn {
    flex: 1 1 100%;
    min-height: 44px;
    border-radius: 12px;
  }
}
