/* Thanks edit URL only: bottom toast install prompt */

.ineed-pwa-toast[hidden] {
  display: none !important;
}

.ineed-pwa-toast {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #0f3d32;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 61, 50, 0.35);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ineed-pwa-toast.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ineed-pwa-toast__close {
  appearance: none;
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.ineed-pwa-toast__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 18px;
}

.ineed-pwa-toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: #ffffff;
  object-fit: contain;
}

.ineed-pwa-toast__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ineed-pwa-toast__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.ineed-pwa-toast__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.ineed-pwa-toast__ios {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ineed-pwa-toast__ios[hidden] {
  display: none !important;
}

.ineed-pwa-toast__ios strong {
  color: #ffffff;
  font-weight: 700;
}

.ineed-pwa-toast__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ineed-pwa-toast__btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}

.ineed-pwa-toast__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ineed-pwa-toast__btn--primary {
  background: #1f8a4c;
  color: #ffffff;
}

.ineed-pwa-toast__btn--primary:hover:not(:disabled),
.ineed-pwa-toast__btn--primary:focus:not(:disabled) {
  background: #187540;
}

.ineed-pwa-toast__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 720px) {
  .ineed-pwa-toast {
    left: auto;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    margin: 0;
  }
}
