.pwa-shortcut-wrapper {
  display: inline-block;
  position: relative;
}

.pwa-shortcut-hidden {
  display: none;
}

.pwa-shortcut-button {
  cursor: pointer;
  padding: 0.75em 1.25em;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background-color: #0073aa;
  color: #ffffff;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pwa-shortcut-button:hover,
.pwa-shortcut-button:focus {
  background-color: #005a87;
  outline: none;
  transform: translateY(-1px);
}

.pwa-shortcut-button:active {
  transform: translateY(0);
}

/* iOS overlay */

.pwa-shortcut-ios-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pwa-shortcut-ios-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.pwa-shortcut-ios-overlay-inner {
  max-width: 320px;
  width: 90%;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pwa-shortcut-ios-overlay-inner h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.pwa-shortcut-ios-overlay-inner ol {
  margin: 0;
  padding-left: 1.25rem;
}

.pwa-shortcut-ios-overlay-inner li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.pwa-shortcut-ios-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* Basic responsive behavior */

@media (max-width: 480px) {
  .pwa-shortcut-button {
    width: 100%;
    text-align: center;
  }

  .pwa-shortcut-ios-overlay-inner {
    max-width: 90%;
  }
}
