.ayaword-install-prompt {
  position: fixed;
  inset: auto 14px calc(14px + env(safe-area-inset-bottom)) 14px;
  z-index: 2147483000;
  display: none;
  color: #f6fffc;
  font-family: Arial, Helvetica, sans-serif;
  text-align: start;
}

.ayaword-install-prompt.is-visible {
  display: block;
}

.ayaword-install-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(7, 18, 17, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.ayaword-install-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.ayaword-install-copy {
  min-width: 0;
}

.ayaword-install-copy h2 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.ayaword-install-copy p {
  margin: 0;
  color: #c8e6df;
  font-size: 13px;
  line-height: 1.45;
}

.ayaword-install-copy .ayaword-install-help {
  margin-top: 6px;
  color: #f5d27b;
}

.ayaword-install-steps {
  margin: 8px 0 0;
  padding: 0 18px 0 0;
  color: #f6fffc;
  font-size: 13px;
  line-height: 1.6;
}

.ayaword-install-steps li {
  margin: 2px 0;
}

.ayaword-install-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #00bfa5;
  color: #06201c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ayaword-install-button:active {
  transform: translateY(1px);
}

.ayaword-install-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dff8f2;
  font-size: 24px;
  line-height: 32px;
  cursor: pointer;
}

.ayaword-install-prompt[dir="rtl"] .ayaword-install-close {
  right: auto;
  left: 8px;
}

.ayaword-install-prompt[dir="ltr"] .ayaword-install-steps {
  padding: 0 0 0 18px;
}

@media (max-width: 520px) {
  .ayaword-install-panel {
    grid-template-columns: 48px 1fr;
    padding: 14px 14px 12px;
  }

  .ayaword-install-icon {
    width: 46px;
    height: 46px;
  }

  .ayaword-install-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
