/* Approved P01 desktop popover and P02 Me entry / mobile sheet. */
.kc-page-actions {
  position: absolute; z-index: 41; top: 20px; right: 22px;
  display: flex; align-items: center; gap: 12px;
}
.kc-page-actions .kc-header-signin { width: max-content; min-height: 38px; margin: 0; }
.vm-install, .vm-install-banner, .vm-install-card { display: none !important; }
.kc-install-entry, .kc-install-dialog button { font: inherit; cursor: pointer; color: #111; }
.kc-install-entry svg, .kc-install-dialog svg { display: block; width: 22px; height: 22px; }
.kc-install-entry:focus-visible, .kc-install-dialog button:focus-visible {
  outline: 3px solid #111; outline-offset: 4px;
}
.kc-install-entry--desktop {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 8px; margin: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: #555; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.kc-install-entry--desktop svg { width: 16px; height: 16px; }
.kc-install-entry--desktop:hover { background: #fff0ed; }
.kc-install-entry--mobile { display: none; }
.kc-install-dialog {
  box-sizing: border-box; position: fixed; inset: auto var(--kc-install-popup-right, 130px) auto auto;
  top: var(--kc-install-popup-top, 76px); width: 340px; max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 100px); margin: 0; padding: 22px;
  overflow-y: auto; border: 1.5px solid #111; border-radius: 18px;
  background: #fff; color: #111; box-shadow: 5px 6px 0 #111;
  font-family: inherit; text-align: left; overscroll-behavior: contain;
}
.kc-install-dialog:not([open]) { display: none; }
.kc-install-dialog::backdrop { background: transparent; }
.kc-install-close {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent;
}
.kc-install-close:hover { background: #fff0ed; }
.kc-install-logo { display: block; box-sizing: border-box; width: 64px; height: 64px; padding: 12px; background: #fff0ed; border-radius: 14px; margin: 0 0 12px; }
#kc-install-title { margin: 0 28px 6px 0; font-family: inherit; font-size: 22px; font-weight: 900; line-height: 1.2; text-transform: none; letter-spacing: normal; }
.kc-install-description { margin: 0; color: #555; font-size: 15px; line-height: 1.45; }
.kc-install-steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: kc-install-step; }
.kc-install-steps li {
  counter-increment: kc-install-step; display: grid; grid-template-columns: 28px 1fr;
  align-items: start; gap: 10px; margin: 0 0 12px; font-size: 15px; line-height: 1.45;
}
.kc-install-steps li::before {
  content: counter(kc-install-step); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: #111; color: white;
  font-size: 14px; font-weight: 800; line-height: 1;
}
.kc-install-status { margin: 16px 0 0; font-size: 14px; color: #555; line-height: 1.45; }
.kc-install-action {
  display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center;
  padding: 10px 18px; margin-top: 18px; border: 1.5px solid #111; border-radius: 999px;
  background: #fff; font-size: 16px !important; font-weight: 800 !important; line-height: 1.2;
}
.kc-install-action:hover { background: #fff0ed; }
.kc-install-action.kc-install-action--primary {
  border-color: transparent; background: var(--kc-cta-bg, #d5342a); color: #fff;
  box-shadow: 0 3px 0 #111;
}
.kc-install-action.kc-install-action--primary:hover { background: var(--kc-cta-bg-hover, #c22e24); }
.kc-install-action:disabled { cursor: wait; opacity: .7; }
@media (min-width: 1440px) {
  .kc-page-actions { right: max(22px, calc((100vw - 1480px) / 2 + 22px)); }
}
@media (min-width: 1920px) {
  .kc-page-actions { right: calc((100vw - 1640px) / 2 + 22px); }
}
@media (max-width: 899px) {
  .kc-page-actions { display: none; }
  .kc-install-entry--desktop { display: none; }
  .kc-install-entry--mobile {
    display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px;
    padding: 14px 18px; margin: 12px 0 0; border: 0; border-radius: 18px;
    background: #fff0ed; text-align: left;
  }
  .kc-install-entry--mobile:hover { background: #ffe3de; }
  .kc-install-phone { color: var(--kc-cta-bg, #d5342a); }
  .kc-install-phone svg { width: 28px; height: 32px; }
  .kc-install-entry-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
  .kc-install-entry-copy strong { font-size: 16px; font-weight: 800; line-height: 1.25; }
  .kc-install-entry-copy > span { color: #636363; font-size: 14px; line-height: 1.35; }
  .kc-install-chevron { flex-shrink: 0; }
  .kc-install-dialog {
    top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-width: none; max-height: calc(100dvh - 24px);
    padding: 28px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
    border-width: 1.5px 0 0; box-shadow: none;
  }
  .kc-install-dialog::before {
    content: ''; display: block; position: absolute; top: 8px; left: calc(50% - 22px);
    width: 44px; height: 4px; background: #bdbdbb; border-radius: 999px;
  }
  .kc-install-dialog::backdrop { background: rgb(0 0 0 / .55); }
  .kc-install-logo { margin: 0 auto 10px; width: 56px; height: 56px; }
  #kc-install-title { margin: 0 12px 6px; text-align: center; font-size: 21px; }
  .kc-install-description { text-align: center; }
  .kc-install-dialog .kc-install-close { top: 12px; right: 8px; }
  .kc-install-action { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-install-entry, .kc-install-dialog, .kc-install-dialog button { animation: none; transition: none; }
}
