:is(#aif-promo, #aif-membership-promo), :is(#aif-promo, #aif-membership-promo) * { box-sizing: border-box; }
  :is(#aif-promo, #aif-membership-promo) {
    width: min(680px, calc(100% - 24px));
    max-width: 680px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #242027;
    box-shadow: 0 24px 80px #0006;
    overflow: auto;
    overscroll-behavior: contain;
    font-family: Arial, Helvetica, sans-serif;
  }
  :is(#aif-promo, #aif-membership-promo):not([open]) { display: none; }
  :is(#aif-promo, #aif-membership-promo)::backdrop { background: rgb(12 8 18 / 76%); }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 12px 8px 20px; background: #44205f; color: #fff;
  }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-title { margin: 0; font-size: 18px; line-height: 1.3; color: inherit; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-close {
    display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; padding: 0; margin: 0; border: 0;
    border-radius: 50%; background: #ffffff20; color: #fff;
    font: 32px/1 Arial, sans-serif; cursor: pointer;
  }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-image { display: block; width: 100%; height: auto; margin: 0; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-content { padding: clamp(16px, 4vw, 28px); text-align: center; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-copy { margin: 0 0 20px; font-size: clamp(17px, 3vw, 21px); line-height: 1.45; font-weight: 700; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-links { display: grid; grid-template-columns: repeat(var(--aif-promo-columns, 3), minmax(0, 1fr)); gap: 12px; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-links a {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 14px 10px; border-radius: 8px;
    background: #532476; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700; line-height: 1.3;
  }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-links a:hover { background: #36134f; }
  :is(#aif-promo, #aif-membership-promo) :focus-visible { outline: 3px solid #f2b935; outline-offset: 3px; }
  :is(#aif-promo, #aif-membership-promo) .aif-promo-note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #625b67; }
  @media (max-width: 480px) {
    :is(#aif-promo, #aif-membership-promo) .aif-promo-links { grid-template-columns: 1fr; gap: 8px; }
  }

#aif-membership-promo { --aif-promo-columns: 1; }
