/* Banner Web Push flotante — estilo GoPass dark */
.gp-push-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(140%);
  z-index: 20000;
  width: 100%;
  max-width: none;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
}

.gp-push-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.gp-push-banner[hidden] {
  display: none !important;
}

.gp-push-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom));
  border-radius: 0;
  background: linear-gradient(165deg, #161618 0%, #1c1113 100%);
  border-top: 1px solid rgba(246, 88, 82, 0.28);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  color: #f4f4f5;
}

.gp-push-banner__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 88, 82, 0.15);
  color: #f65852;
  font-size: 1.15rem;
}

.gp-push-banner__body {
  flex: 1 1 auto;
  min-width: 0;
}

.gp-push-banner__title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.gp-push-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(244, 244, 245, 0.78);
}

.gp-push-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.gp-push-banner__btn {
  padding: 0.5rem 0.95rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.gp-push-banner__btn--primary {
  background: linear-gradient(135deg, #f65852, #d9443f);
  color: #fff;
}

.gp-push-banner__btn--ghost {
  background: transparent;
  color: rgba(244, 244, 245, 0.6);
}

@media (max-width: 480px) {
  .gp-push-banner__inner {
    flex-wrap: wrap;
  }
  .gp-push-banner__actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
  .gp-push-banner__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Cuando el banner está visible, corremos hacia arriba los elementos fijos
   inferiores para que no queden tapados. */
body {
  --gp-push-banner-h: 0px;
}

body.gp-push-banner-open #gopass-widget {
  bottom: calc(15px + var(--gp-push-banner-h, 0px)) !important;
  transition: bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 600px) {
  body.gp-push-banner-open #gopass-widget {
    bottom: calc(12px + var(--gp-push-banner-h, 0px)) !important;
  }
}

body.gp-push-banner-open .gopass-event .ev-mobile-bar {
  margin-bottom: var(--gp-push-banner-h, 0px);
  transition: margin-bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
