/* Installation chooser — card layout inspired by native iOS download pages. */
.zz-sheet {
  max-width: 720px;
  max-height: min(92dvh, 900px);
  padding: 9px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: #17191f;
}

.zz-sheet-head {
  align-items: center;
  margin: 0 2px 14px;
}

.zz-sheet-head h2 {
  font-size: 24px;
  letter-spacing: -.02em;
}

.zz-sheet-head p {
  color: #8b909a;
}

.zz-install-hero {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.35), transparent 34%),
    linear-gradient(135deg, #635bff 0%, #1687ff 52%, #21c7b7 100%);
  box-shadow: 0 16px 36px rgba(27, 105, 222, .24);
}

.zz-install-hero-glow {
  position: absolute;
  z-index: -1;
  right: -45px;
  bottom: -85px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

.zz-install-hero img {
  width: 92px;
  height: 92px;
  border-radius: 23px;
  object-fit: cover;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.72);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.zz-install-hero-copy {
  min-width: 0;
}

.zz-install-hero-copy span,
.zz-install-hero-copy small,
.zz-install-hero-copy strong {
  display: block;
}

.zz-install-hero-copy span {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .82;
}

.zz-install-hero-copy strong {
  font-size: 22px;
  line-height: 1.25;
}

.zz-install-hero-copy small {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .82;
}

.zz-install-icon-change {
  align-self: end;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #1677e8;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.zz-install-compat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0 20px;
}

.zz-install-compat > div {
  padding: 12px 14px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fafbfc;
  text-align: center;
}

.zz-install-compat span,
.zz-install-compat strong {
  display: block;
}

.zz-install-compat span {
  color: #9297a1;
  font-size: 11px;
}

.zz-install-compat strong {
  margin-top: 4px;
  color: #272a31;
  font-size: 13px;
}

.zz-install-method-title {
  margin: 0 2px 12px;
  color: #17191f;
  font-size: 22px;
  letter-spacing: -.02em;
}

.zz-install-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zz-install-method {
  display: block;
  cursor: pointer;
}

.zz-install-method > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.zz-method-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid #e7e9ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(21, 31, 51, .055);
  transition: border-color .18s ease, background .18s ease, transform .14s ease, box-shadow .18s ease;
}

.zz-install-method:active .zz-method-card {
  transform: scale(.992);
}

.zz-method-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.zz-method-symbol-online { background: linear-gradient(145deg, #2b8cff, #0765db); }
.zz-method-symbol-free { background: linear-gradient(145deg, #ffb527, #ff7a1a); }
.zz-method-symbol-self { background: linear-gradient(145deg, #8a65ff, #6044de); }

.zz-method-copy {
  min-width: 0;
}

.zz-method-copy strong,
.zz-method-copy small {
  display: block;
}

.zz-method-copy strong {
  color: #202329;
  font-size: 17px;
  line-height: 1.3;
}

.zz-method-copy small {
  margin-top: 5px;
  color: #737985;
  font-size: 12px;
  line-height: 1.45;
}

.zz-method-action {
  min-width: 66px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  background: #4dbb63;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 7px 16px rgba(77, 187, 99, .22);
}

.zz-method-action[data-direct-enterprise] {
  cursor: pointer;
}

.zz-install-method > input:checked + .zz-method-card {
  border-color: #2498ff;
  background: #f5faff;
  box-shadow: 0 10px 26px rgba(35, 139, 236, .14), inset 0 0 0 1px rgba(36, 152, 255, .12);
}

.zz-install-method > input:checked + .zz-method-card .zz-method-action {
  background: #1687f8;
}

.zz-install-form-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 12px;
  padding-top: 18px;
  border-top: 1px solid #eceef2;
}

.zz-install-form-title strong {
  color: #202329;
  font-size: 18px;
}

.zz-install-form-title span {
  color: #9a9faa;
  font-size: 12px;
}

.zz-sheet .zz-field-list input,
.zz-sheet .zz-field-list textarea {
  border-color: #e7e9ee;
  background: #fafbfc;
  color: #202329;
}

.zz-sheet .zz-field-list label {
  color: #747a85;
}

.zz-sheet #zzSubmitSignBtn {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #168cff, #0868df);
}

@media (max-width: 560px) {
  .zz-sheet {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 24px 24px 0 0;
  }

  .zz-install-hero {
    min-height: 132px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
    border-radius: 21px;
  }

  .zz-install-hero img {
    width: 72px;
    height: 72px;
    border-radius: 19px;
  }

  .zz-install-hero-copy strong {
    font-size: 18px;
  }

  .zz-install-hero-copy small {
    display: none;
  }

  .zz-install-icon-change {
    position: absolute;
    right: 12px;
    bottom: 10px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .zz-install-compat {
    gap: 8px;
    margin-bottom: 18px;
  }

  .zz-install-compat > div {
    padding: 10px 8px;
  }

  .zz-install-method-title {
    font-size: 20px;
  }

  .zz-method-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 76px;
    padding: 11px;
    border-radius: 18px;
  }

  .zz-method-symbol {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 22px;
  }

  .zz-method-copy strong {
    font-size: 16px;
  }

  .zz-method-copy small {
    font-size: 11px;
  }

  .zz-method-action {
    min-width: 58px;
    min-height: 35px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .zz-method-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .zz-method-symbol {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .zz-method-copy small {
    max-width: 150px;
  }

  .zz-method-action {
    min-width: 52px;
    padding: 0 10px;
  }
}

/* Direct-install mode: the chooser replaces the catalogue homepage instead
   of appearing as a bottom-sheet over it. */
body.zz-direct-install-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(80, 128, 255, .10), transparent 34%),
    linear-gradient(180deg, #f7f9ff 0%, #fff 38%);
}

.zz-direct-install-page .zz-shell {
  display: none !important;
}

.zz-direct-install-page #zzSheetMask,
.zz-direct-install-page .zz-sheet-handle,
.zz-direct-install-page #zzCloseSheetBtn {
  display: none !important;
}

.zz-direct-install-page .zz-sheet {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  max-height: none;
  margin: 0 auto;
  padding-top: calc(22px + env(safe-area-inset-top));
  overflow: visible;
  transform: none !important;
  transition: none;
  border-radius: 0;
  box-shadow: 0 0 45px rgba(36, 54, 92, .07);
}

.zz-direct-install-page .zz-sheet-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.zz-direct-install-page .zz-sheet-head > div {
  width: 100%;
}

.zz-direct-install-page .zz-toast {
  bottom: calc(22px + env(safe-area-inset-bottom));
}

@media (max-width: 560px) {
  .zz-direct-install-page .zz-sheet {
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}
