/* 推广图片在用户中心和推广中心原地预览，关闭按钮不显示点击描边。 */
html.promotion-preview-open { overflow: hidden; }
body .user-invite-poster-modal { position: fixed; inset: 0; z-index: 9600; display: none; align-items: center; justify-content: center; padding: 20px 14px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; background: rgba(0,0,0,.6); box-sizing: border-box; overscroll-behavior: contain; }
body .user-invite-poster-modal.open { display: flex; }
/* 图片、下载按钮与关闭按钮共用图片实际宽度，两处入口保持一致。 */
body .user-invite-poster-sheet { position: relative; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 10px; width: min(360px,100%,calc(100dvh - 150px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; background: transparent; box-shadow: none; }
body #inviteMaterialPreview { display: block; flex-shrink: 0; width: 100%; max-height: calc(100dvh - 150px); height: auto; object-fit: contain; border-radius: 8px; }
body .user-invite-poster-sheet #invitePosterCanvas[hidden] { display: none; }
body .user-invite-poster-sheet > .btn { flex-shrink: 0; width: 100%; min-height: 40px; border-radius: 999px; }
body .user-invite-poster-sheet > small { flex-shrink: 0; color: #fff; font-size: 11px; line-height: 1.5; }
body .user-invite-poster-close { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(32,32,32,.78); color: #fff; font: 22px/1 sans-serif; cursor: pointer; }
body .user-invite-poster-modal :is(button, a),
body .user-invite-poster-modal :is(button, a):is(:focus, :focus-visible, :active) { outline: 0 !important; box-shadow: none !important; text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
body.user-home-page #buyerCommonFunctions [data-buyer-promotion]:disabled { opacity: .5; cursor: wait; }
body.user-home-page #buyerCommonFunctions [data-buyer-promotion],
body.user-home-page #buyerCommonFunctions #buyerNewProductGroup { border: 0 !important; outline: 0 !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent; }
/* 点击及关闭弹层后恢复焦点时，入口、关闭按钮与分享选项均不显示下划线。 */
body.user-home-page #buyerCommonFunctions :is([data-buyer-promotion], #buyerNewProductGroup),
body.user-home-page #buyerCommonFunctions :is([data-buyer-promotion], #buyerNewProductGroup) strong,
body.user-invite-page :is(#inviteViewTabs, .invite-promotion-actions) > button,
body.user-invite-page .invite-promotion-actions > button > span,
body:is(.user-invite-page, .user-home-page) .front-share-overlay :is(button, a) { text-decoration: none !important; }
