.ynd-pwa {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ynd-pwa__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, 0.62);
}

.ynd-pwa__card {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  color: #1a2740;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ynd-pwa__body {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 22px 22px 8px;
}

.ynd-pwa__device {
  display: block;
  flex: 0 0 132px;
  width: 132px;
  height: 260px;
}

.ynd-pwa__device--mini,
.ynd-pwa-side .ynd-pwa__device {
  flex: 0 0 52px;
  width: 52px;
  max-width: 52px;
  height: 102px;
}

.ynd-pwa__copy {
  min-width: 0;
  flex: 1;
}

.ynd-pwa__copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #1f3c61;
}

.ynd-pwa__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #3d4d63;
}

.ynd-pwa__steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #1a2740;
  font-size: 14px;
  line-height: 1.4;
}

.ynd-pwa__steps li {
  margin: 6px 0;
}

.ynd-pwa__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 18px;
}

.ynd-pwa__later,
.ynd-pwa__go {
  font-family: inherit;
  cursor: pointer;
}

.ynd-pwa__later {
  background: transparent;
  color: #6b7788;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 8px;
}

.ynd-pwa__later:hover {
  color: #1f3c61;
}

.ynd-pwa__go {
  background: #1f3c61;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  box-shadow: 0 8px 16px rgba(31, 60, 97, 0.28);
}

.ynd-pwa__go:hover {
  background: #17304f;
}

.ynd-pwa__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 16px;
  color: #3d4d63;
  font-size: 14px;
}

.ynd-pwa__opt[hidden] {
  display: none;
}

.ynd-pwa-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 10px 8px 0;
  padding: 8px;
  border: 1px solid rgba(31, 60, 97, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #1f3c61;
  text-align: left;
  cursor: pointer;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ynd-pwa-side__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.ynd-pwa-side__copy strong {
  color: #1f3c61;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ynd-pwa-side__now {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d01212;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .ynd-pwa {
    padding: 12px;
  }

  .ynd-pwa__card {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .ynd-pwa__body {
    flex-direction: column;
    text-align: center;
    padding: 16px 16px 8px;
  }

  .ynd-pwa__body .ynd-pwa__device {
    flex-basis: 108px;
    width: 108px;
    height: 213px;
  }

  .ynd-pwa__steps {
    text-align: left;
  }

  .ynd-pwa__copy h2 {
    font-size: 18px;
  }

  .ynd-pwa__copy p {
    font-size: 14px;
  }

  .ynd-pwa-side {
    gap: 6px;
    margin: 8px 6px 0;
    padding: 6px;
  }

  .ynd-pwa-side__copy strong {
    font-size: 14px;
  }

  .ynd-pwa-side__now {
    font-size: 12px;
  }
}
