/* Scoped to the native campaign nodes after the JS companion recognises them. */
#nawaCampaignBackdrop.nawa-compact-campaign-backdrop {
  display: none !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
}

/* Native permission choices must remain unobstructed. The original campaign is
   retained, not dismissed/marked seen, and reappears after the notice closes. */
#nawaCampaignPopup.nawa-compact-campaign.nawa-compact-campaign-deferred {
  display: none;
}

#nawaCampaignPopup.nawa-compact-campaign {
  --nawa-compact-campaign-bottom: 96px;
  position: fixed;
  inset: auto auto calc(var(--nawa-compact-campaign-bottom) + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(420px, 46vh);
  max-height: min(420px, 46dvh, calc(100dvh - var(--nawa-compact-campaign-bottom) - env(safe-area-inset-bottom, 0px) - 24px));
  margin: 0;
  overflow: hidden;
  transform: none;
  border-radius: 18px;
  box-shadow: 0 8px 30px #07152d30;
  animation: none;
  text-align: start;
}

#nawaCampaignPopup.nawa-compact-campaign > img {
  flex: 0 0 84px;
  display: block;
  width: 100%;
  height: 84px;
  min-height: 0;
  object-fit: cover;
}

#nawaCampaignPopup.nawa-compact-campaign > .campaign-close {
  position: absolute;
  inset: 8px 8px auto auto;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  touch-action: manipulation;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-copy {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: anywhere;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-copy > small {
  display: block;
  padding-right: 44px;
  font-size: 9px;
  line-height: 1.5;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-copy h2 {
  margin: 10px 0 6px;
  padding-right: 36px;
  font-size: 22px;
  line-height: 1.2;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-copy h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.45;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-copy p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.55;
}

#nawaCampaignPopup.nawa-compact-campaign [lang="ar"] {
  direction: rtl;
  text-align: right;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

#nawaCampaignPopup.nawa-compact-campaign .campaign-actions .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  flex: 1 1 125px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

#nawaCampaignPopup.nawa-compact-campaign :focus-visible {
  outline: 3px solid #173f8a;
  outline-offset: 2px;
}

@media (max-height: 500px) {
  /* A decorative thumbnail must not consume the text/CTA scroll area when
     landscape or the on-screen keyboard makes the viewport short. */
  #nawaCampaignPopup.nawa-compact-campaign > img {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nawaCampaignPopup.nawa-compact-campaign,
  #nawaCampaignPopup.nawa-compact-campaign * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
