/* Installation is a secondary, optional convenience shared by public and buyer pages. */
[data-app-install-target][hidden] { display: none !important; }
.app-install-dialog-open { overflow: hidden; }
.yondora-navigation__install { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.yondora-navigation__install:hover { color: var(--yondora-gold); }
.app-install-invitation { position: relative; width: min(100%, 560px); margin: 16px auto 0; padding: 16px; border: 1px solid #efc86e33; border-radius: 16px; background: #0c1422e6; text-align: left; color: #fff4d9; }
.app-install-invitation h2, .customer-world .app-install-invitation h2 { margin: 0 0 4px; padding-inline-end: 36px; font: 600 17px/1.4 ui-sans-serif, system-ui, sans-serif; }
.app-install-invitation p { margin: 0; color: #f5f1e9c7; font: 400 14px/1.5 ui-sans-serif, system-ui, sans-serif; }
.app-install-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 8px 0; border: 0; color: #efc86e; background: none; font: 500 14px/1.4 ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.app-install-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-install-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; color: #f5f1e9b3; background: transparent; cursor: pointer; }
.app-install-close:hover { color: #fff4d9; }
.app-install-invitation > .app-install-close { position: absolute; top: 6px; right: 6px; border-radius: 50%; }
.app-install-dialog { box-sizing: border-box; width: min(calc(100% - 48px), 460px); max-height: calc(100svh - 48px); margin: auto; padding: 24px; border: 1px solid #efc86e33; border-radius: 24px; background: #151719; color: #fff4d9; box-shadow: 0 24px 96px #0008; font: 400 15px/1.65 ui-sans-serif, system-ui, sans-serif; }
.app-install-dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.app-install-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.app-install-dialog h2 { margin: 0; font: 600 20px/1.3 ui-sans-serif, system-ui, sans-serif; }
.app-install-dialog h2:focus { outline: none; }
.app-install-dialog p { margin: 0 0 16px; }
.app-install-dialog ol { margin: 20px 0; padding-left: 24px; }
.app-install-dialog li { padding-left: 4px; margin-bottom: 12px; }
.app-install-dialog svg, .app-install-invitation svg { width: 20px; height: 20px; }
.app-install-close svg { width: 18px; height: 18px; }
.app-install-dialog li svg { display: inline-block; vertical-align: middle; color: #efc86e; }
.app-install-share { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.app-install-dialog .app-install-share svg { flex-shrink: 0; width: 0.9em; height: 0.9em; }
.app-install-video { display: block; width: auto; height: min(64svh, 560px, calc(100svh - 220px)); max-width: 100%; margin: 0 auto 16px; border-radius: 16px; background: #000; object-fit: contain; }
.app-install-steps { margin: 0; }
.app-install-steps summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px 0; color: #efc86e; list-style: none; cursor: pointer; }
.app-install-steps summary::-webkit-details-marker { display: none; }
.app-install-steps summary::marker { content: ""; }
.app-install-steps summary svg { flex-shrink: 0; transition: transform 160ms ease; }
.app-install-steps[open] summary svg { transform: rotate(180deg); }
.app-install-steps__hide, .app-install-steps[open] .app-install-steps__show { display: none; }
.app-install-steps[open] .app-install-steps__hide { display: inline; }
.app-install-steps ol { margin: 8px 0 16px; }
.app-install-steps summary:focus-visible { outline: 2px solid #efc86e; outline-offset: 4px; }
.app-install-dialog button:focus-visible, .app-install-invitation button:focus-visible, .yondora-navigation__install:focus-visible { outline: 2px solid #efc86e; outline-offset: 4px; }
@media (max-width: 900px) {
  .yondora-navigation .yondora-navigation__install { box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px; border-radius: 6px; text-align: left; }
  .yondora-navigation .yondora-navigation__install:hover { background: #ffffff08; }
}
@media (max-width: 600px) {
  .app-install-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100svh; height: 100dvh; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .app-install-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .app-install-dialog__header { position: sticky; top: 0; z-index: 1; margin-bottom: 12px; background: #151719; }
  .app-install-dialog__header::before { position: absolute; inset: calc(-1 * max(16px, env(safe-area-inset-top))) -20px -12px; z-index: -1; background: #151719; content: ""; }
  .app-install-dialog__header > .app-install-close { margin-inline-end: -12px; }
  .app-install-dialog__body { min-height: 0; }
  .app-install-dialog [data-app-install-target="iosInstructions"] { height: 100%; }
  /* The tutorial fills the first view; text steps scroll below without resizing it. */
  .app-install-video-frame { position: relative; height: 100%; min-height: 160px; min-width: 0; overflow: hidden; }
  .app-install-video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: 100%; margin: 0; border-radius: 0; background: transparent; }
  .app-install-steps { margin-top: 20px; }
  .app-install-steps ol { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-install-steps summary svg { transition: none; }
}
