/* Copyright (C) 2025 QuantumNous */ .promotion-modal.ant-modal { --pm-surface: var(--surface-card); --pm-muted: var(--surface-bg-base); --pm-text: var(--text-primary); --pm-secondary: var(--text-secondary); --pm-border: var(--border-subtle); --pm-accent: var(--brand-primary); --pm-soft: var(--brand-primary-soft); --pm-qr-surface: var(--ui-color-white); --pm-poster-ink: var(--ui-color-white); --pm-body-max-height: calc(100dvh - 200px); --pm-tab-panel-height: 448px; max-width: calc(100vw - 32px); padding-block: 24px; } .promotion-modal .ant-modal-container { padding: 28px 32px; border-radius: 12px; } .promotion-modal .ant-modal-header { margin-bottom: 12px; } .promotion-modal .ant-modal-title { font-size: 20px; line-height: 28px; } .promotion-modal .ant-modal-close { top: 24px; right: 24px; } .promotion-modal .ant-modal-body { max-height: var(--pm-body-max-height); overflow-y: auto; overscroll-behavior: contain; } .promotion-tabs { max-block-size: var(--pm-body-max-height); } .promotion-tabs > .ant-tabs-nav { flex-shrink: 0; margin-bottom: 24px; } .promotion-tabs > .ant-tabs-body-holder { flex: 0 1 var(--pm-tab-panel-height); min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; } .pm-tab-label { display: inline-flex; align-items: center; gap: 8px; } .pm-link-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: stretch; } .pm-invitation-card { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; border: 1px solid var(--pm-border); border-radius: 12px; background: var(--pm-muted); text-align: center; min-width: 0; } .pm-eyebrow { margin-bottom: 12px; color: var(--pm-accent); font-size: 12px; letter-spacing: 0.08em; } .pm-invitation-card h4.ant-typography { margin: 0 0 8px; font-size: 20px; overflow-wrap: anywhere; } .pm-invitation-card .ant-typography { max-width: 100%; } .pm-qrcode { padding: 12px; background: var(--pm-qr-surface); border-radius: 12px; margin: 8px 0 16px; } .pm-qrcode canvas, .pm-poster-qr canvas { display: block; max-width: 100%; height: auto; } .pm-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 24px; color: var(--pm-secondary); font-size: 12px; } .pm-benefits span { display: inline-flex; align-items: center; gap: 6px; } .pm-share-details { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-width: 0; padding-block: 12px; } .pm-field { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; } .pm-field label { color: var(--pm-text); font-size: 14px; font-weight: 600; } .pm-field > .ant-btn { align-self: flex-start; } .pm-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; } .promotion-modal .pm-code { padding: 10px 16px; color: var(--pm-accent); background: var(--pm-soft); border-radius: 8px; font: 600 20px/28px Consolas, monospace; letter-spacing: 0.06em; overflow-wrap: anywhere; min-width: 0; } .promotion-modal .pm-share-hint { margin: 0; font-size: 13px; line-height: 1.8; } .pm-rewards { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 24px; padding: 16px; background: var(--pm-surface); color: var(--pm-text); border: 1px solid var(--pm-border); border-radius: 10px; font: inherit; text-align: left; cursor: pointer; } .pm-rewards:hover { border-color: var(--pm-accent); background: var(--pm-soft); } .promotion-modal--poster .pm-rewards { display: none; } .pm-rewards-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; color: var(--pm-accent); background: var(--pm-soft); } .pm-rewards-copy { display: grid; gap: 4px; flex: 1; min-width: 0; } .pm-rewards-copy strong { font-size: 14px; font-weight: 600; } .pm-rewards-copy > span { color: var(--pm-secondary); font-size: 12px; } .pm-rewards > svg { flex-shrink: 0; color: var(--pm-secondary); } .pm-poster-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; } .promotion-modal [data-poster-template='blue'] { --pm-template-background: #2455b8; } .promotion-modal [data-poster-template='orange'] { --pm-template-background: #a94913; } .promotion-modal [data-poster-template='green'] { --pm-template-background: #226b50; } .promotion-modal [data-poster-template='dark'] { --pm-template-background: #272b33; } .pm-preview-stage { display: flex; justify-content: center; padding-inline: 16px; border-radius: 12px; background: var(--pm-template-background); color: var(--pm-poster-ink); min-width: 0; } .pm-poster { display: flex; flex-direction: column; align-items: center; width: min(100%, 280px); min-width: 0; min-height: 448px; padding: 32px 8px 24px; text-align: center; overflow-wrap: anywhere; } .pm-poster h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; color: inherit; } .pm-poster p { margin: 0; font-size: 12px; line-height: 1.6; color: inherit; } .pm-poster h3 { margin: 20px 0; font-size: 16px; line-height: 1.5; color: inherit; } .pm-poster-qr { padding: 8px; background: var(--pm-qr-surface); border-radius: 8px; margin-bottom: 12px; } .pm-poster .pm-poster-code { font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; } .pm-poster .pm-poster-footer { margin-top: auto; padding-top: 20px; font-size: 10px; } .pm-poster-options { display: grid; gap: 24px; min-width: 0; } .pm-template-list { display: grid; gap: 8px; } .promotion-modal .pm-template-list .ant-radio-wrapper { display: flex; align-items: center; margin: 0; padding: 10px 12px; border: 1px solid var(--pm-border); border-radius: 8px; } .promotion-modal .pm-template-list .ant-radio-wrapper-checked { border-color: var(--pm-accent); background: var(--pm-soft); } .pm-template-label { display: inline-flex; align-items: center; gap: 10px; } .pm-template-swatch { display: block; width: 24px; height: 24px; border-radius: 6px; background: var(--pm-template-background); } .pm-poster-actions { display: grid; gap: 12px; } .pm-loading { padding-block: 32px; } .promotion-modal :is(button, input):focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 3px; } @media (max-width: 600px) { .promotion-modal.ant-modal { --pm-tab-panel-height: 760px; } .promotion-modal .ant-modal-container { padding: 20px; } .promotion-modal .ant-modal-title { font-size: 18px; } .promotion-modal .ant-modal-close { top: 18px; right: 16px; } .pm-link-layout, .pm-poster-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .pm-invitation-card { padding: 20px 16px; } .pm-benefits { margin-top: 16px; } .pm-share-details { gap: 24px; padding: 0; } .pm-field > .ant-btn { width: 100%; } .pm-poster { min-height: 408px; padding-block: 24px 20px; } .pm-template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promotion-modal .pm-template-list .ant-radio-wrapper { padding: 8px; } .pm-template-label { gap: 6px; font-size: 12px; } .pm-template-swatch { width: 18px; height: 18px; } .pm-rewards { padding: 12px; } }