.pedro-app-popup[hidden] {
  display: none !important;
}

.pedro-app-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: inherit;
}

.pedro-app-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(4px);
}

.pedro-app-popup__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  margin: min(12vh, 80px) auto 0;
  background: linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  color: #111827;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.pedro-app-popup__content {
  padding: 28px;
}

.pedro-app-popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pedro-app-popup__title {
  margin: 16px 0 10px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.pedro-app-popup__text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
}

.pedro-app-popup__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pedro-app-popup__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pedro-app-popup__button:hover,
.pedro-app-popup__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  opacity: 0.98;
}

.pedro-app-popup__button--android {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff !important;
}

.pedro-app-popup__button--ios {
  background: linear-gradient(135deg, #111827, #334155);
  color: #ffffff !important;
}

.pedro-app-popup__later {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  padding: 12px 0 0;
  margin: 6px 0 0;
  cursor: pointer;
}

.pedro-app-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pedro-app-popup-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .pedro-app-popup__actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pedro-app-popup__content {
    padding: 22px;
  }

  .pedro-app-popup__title {
    font-size: 24px;
  }

  .pedro-app-popup__text {
    font-size: 15px;
  }
}
