/* ==========================================================================
   "Add to home screen" bottom sheet (partials/install-prompt.blade.php)
   Phones only; install-prompt.js shows it. Same look as the redesign: white
   sheet, brand blue button, Kalameh.
   ========================================================================== */

.install-prompt[hidden] {
  display: none;
}

.install-prompt {
  position: fixed;
  inset: 0;
  /* above the Goftino chat bubble, which otherwise sits over the sheet's button */
  z-index: 2147483647;
  font-family: inherit;
}

.install-prompt__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 26, 59, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.install-prompt__sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  padding: 10px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background-color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.install-prompt.is-open .install-prompt__backdrop {
  opacity: 1;
}

.install-prompt.is-open .install-prompt__sheet {
  transform: translateY(0);
}

.install-prompt__handle {
  width: 40px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 4px;
  background-color: var(--gray-400, #c6c6c6);
}

.install-prompt__icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--blue-70, #e8ecf4);
  border-radius: 15px;
}

.install-prompt__title {
  width: 100%;
  margin: 16px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--blue-70, #e8ecf4);
  color: var(--blue-800, #091a3b);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

.install-prompt__steps {
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.install-prompt__steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--blue-800, #091a3b);
  font-size: 12.5px;
  line-height: 1.8;
}

/* English menu names stay on one line. */
.install-prompt__steps b[dir="ltr"] {
  white-space: nowrap;
}

.install-prompt__glyph {
  flex: 0 0 auto;
  color: var(--blue-400, #164194);
}

.install-prompt__glyph--box {
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 1.6px solid var(--blue-400, #164194);
  border-radius: 8px;
}

.install-prompt__word {
  flex: 0 0 auto;
  color: var(--blue-400, #164194);
  font-size: 14px;
  font-weight: 700;
}

.install-prompt__button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background-color: var(--blue-400, #164194);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.install-prompt__button + .install-prompt__button {
  margin-top: 10px;
}

.install-prompt__button--quiet {
  background-color: var(--blue-50, #f3f6fa);
  color: var(--blue-400, #164194);
}

@media (prefers-reduced-motion: reduce) {
  .install-prompt__backdrop,
  .install-prompt__sheet {
    transition: none;
  }
}
