/* بنر سفارشی افزونه — نه دیالوگ مرورگر.
   قالب خرید viewport=1175 دارد؛ سایزها برای همان مقیاس است. */
#app-push-web-banner {
  position: fixed;
  z-index: 99999;
  left: 50%;
  right: auto;
  bottom: 28px;
  width: min(920px, calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
  font-family: inherit;
  box-sizing: border-box;
}
#app-push-web-banner .apw-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #12352a;
  color: #f4fff9;
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
#app-push-web-banner .apw-text {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
#app-push-web-banner .apw-text span {
  font-size: 17px;
  opacity: 0.96;
  line-height: 1.65;
  font-weight: 600;
}
#app-push-web-banner .apw-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
#app-push-web-banner button {
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 52px;
}
#app-push-web-banner .apw-yes {
  background: #3d7a63;
  color: #fff;
}
#app-push-web-banner .apw-no {
  background: rgba(255, 255, 255, 0.14);
  color: #f4fff9;
}

/* وقتی عرض واقعی صفحه کم است یا حالت لمسی — ستونی و پهن‌تر */
#app-push-web-banner.apw-compact {
  bottom: 88px;
  width: calc(100vw - 40px);
}
#app-push-web-banner.apw-compact .apw-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
}
#app-push-web-banner.apw-compact .apw-text span {
  font-size: 19px;
}
#app-push-web-banner.apw-compact .apw-actions {
  width: 100%;
}
#app-push-web-banner.apw-compact button {
  flex: 1 1 0;
  font-size: 18px;
  min-height: 58px;
  padding: 16px 20px;
}
