/* Interactive offer preview. Publishing and payment connections are separate. */
.campaign-editor-context [hidden] { display: none !important; }
.campaign-editor-context .workspace-main {
  background: radial-gradient(ellipse at 8% 12%, #f9e2cd70, transparent 52%), radial-gradient(ellipse at 94% 30%, #ded6fa80, transparent 58%);
}
.campaign-back-link { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 28px; }
.campaign-editor-context .workspace-heading { justify-content: center; text-align: center; }
.campaign-editor-context .workspace-heading .eyebrow { justify-content: center; }
.campaign-current-state { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; padding: 17px 22px; border: 1px solid var(--line); background: white; border-radius: 14px; margin-bottom: 25px; font-size: 13px; }
.campaign-current-state > span:last-child { margin-left: auto; color: var(--muted); }
.campaign-editor-context .campaign-live-rules { margin-top: 24px; }
.campaign-live-rules p + p { margin-top: 10px; }
.campaign-is-live input[readonly], .campaign-is-live textarea[readonly] { background: var(--lavender); color: var(--muted); border-style: dashed; cursor: default; }
.campaign-is-live .tier-inputs { align-items: start; }
.campaign-is-live .tier-inputs > span, .campaign-is-live .tier-inputs > strong { padding-top: 14px; }
.campaign-is-live .tier-inputs.labels > span { padding-top: 0; }
.campaign-minimum { display: block; margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.campaign-controls { margin-top: 22px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.campaign-controls h2 { font-size: 19px; line-height: 1.3; }
.campaign-controls p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.campaign-controls .btn { margin-top: 20px; }
.campaign-controls hr { margin: 24px 0; }
.campaign-controls small { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.campaign-delete-button { border: 0; padding: 12px 0; margin-top: 4px; background: transparent; color: #a4473d; font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.campaign-editor-context .campaign-danger { background: #a4473d; border-color: #a4473d; color: white; }
.campaign-editor-context .campaign-paused { background: #fff1dd; color: #8b591c; border-color: #efd0a4; }
.campaign-editor-context .campaign-preview-paused .btn { background: var(--lavender); color: var(--muted); border-color: var(--line); cursor: default; box-shadow: none; transform: none; }
.campaign-feedback { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 25px; background: var(--lavender); color: var(--ink); font-size: 13px; line-height: 1.7; }
.campaign-editor-context .info-note .text-link { margin-top: 12px; }
.campaign-editor-context .native-offer-summary { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 25px; background: var(--lavender); border-radius: 14px; margin: 22px 0; }
.native-offer-summary > strong { font-size: 36px; color: var(--ink); }
.campaign-editor-context .native-offer-summary .pill { font-size: 15px; }
.campaign-editor-context .campaign-unavailable { margin: 40px auto; max-width: 650px; text-align: center; }
.campaign-unavailable p { margin-block: 20px; }
.campaign-editor-context .form-panel .form-row { margin-top: 24px; }
.campaign-editor-context .tier-inputs label { margin: 0; }
.campaign-editor-context .tier-inputs input { margin-top: 0; }
.campaign-tier-heading { flex-wrap: wrap; gap: 16px; }
.campaign-tier-picker { display: inline-flex; padding: 4px; gap: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--lavender); }
.campaign-tier-picker button { border: 0; border-radius: 100px; background: transparent; color: var(--ink); min-height: 38px; padding: 9px 13px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.campaign-tier-picker button:hover { background: #ded6ff; }
.campaign-tier-picker button[aria-pressed="true"] { background: var(--purple); color: white; }
.campaign-editor-context .deal-card h3, .campaign-editor-context .deal-card p { overflow-wrap: anywhere; }
.campaign-editor-context .campaign-validation { padding: 13px 16px; margin: 20px 0 0; border: 1px solid #e5b8a8; border-radius: 12px; background: #fff4ed; color: #854628; font-size: 13px; }
.campaign-editor-context [aria-invalid="true"] { border-color: #b96645; }
.campaign-preview-invalid .btn { background: #eeeaf5; color: #777187; border-color: #eeeaf5; }
.campaign-included-preview summary { color: var(--ink); font-weight: 650; cursor: pointer; }
.campaign-included-preview p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; }
.campaign-draft-logo { background: var(--lavender); color: var(--purple); font-size: 24px; font-weight: 700; }
.campaign-editor-context .deal-card .campaign-product-metadata { margin-top: 5px; font-size: 11px; }
.campaign-review-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: white; color: var(--ink); }
.campaign-review-dialog::backdrop { background: #19182470; }
.campaign-review-dialog h2 { font-size: 28px; }
.campaign-review-dialog > p { margin-top: 14px; }
.campaign-review-dialog dl { margin-block: 26px; }
.campaign-review-dialog dt { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.campaign-review-dialog dd { margin: 5px 0 14px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.campaign-review-dialog .btn { margin-top: 24px; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .workspace-main { background: radial-gradient(ellipse at 8% 12%, #a9764326, transparent 52%), radial-gradient(ellipse at 94% 30%, #9670da2b, transparent 58%); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-current-state { background: #211e2b; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-progress { background: #211e2b; border-color: var(--line); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step { color: #b9b2ca; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step > span { background: #352e43; color: #c5bed6; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step.active { color: var(--purple); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step.active > span { background: var(--purple); color: #211e2b; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step.done { color: #a9dbb6; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .wizard-step.done > span { background: #263c2f; color: #a9dbb6; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-review-dialog { background: #211e2b; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-controls { background: #211e2b; }
body.campaign-editor-context:has(#preview-dark-mode:checked) :is(.info-note, .workspace-help) { background: #302941; border-color: #443952; color: var(--ink); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .btn.secondary { background: #272332; border-color: #484050; color: var(--ink); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-preview-paused .btn { background: #302941; border-color: #484050; color: var(--muted); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-danger { background: #a4473d; border-color: #a4473d; color: white; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .progress-track > span { background: #484050; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-is-live :is(input[readonly], textarea[readonly]) { background: #292432; color: var(--muted); }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-delete-button { color: #edbdaa; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-paused { background: #3a3022; color: #ebc48d; border-color: #5a4933; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-validation { background: #392c29; color: #edbdaa; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-tier-picker button:hover { background: #403751; }
body.campaign-editor-context:has(#preview-dark-mode:checked) .campaign-tier-picker button[aria-pressed="true"] { background: var(--purple); color: #211e2b; }
@media (max-width: 650px) {
  .campaign-editor-context .form-actions { flex-wrap: wrap; }
  .campaign-editor-context .form-actions .btn { flex: 1 1 auto; white-space: normal; }
  .campaign-current-state { gap: 10px; }
  .campaign-current-state > span:last-child { width: 100%; margin-left: 0; }
}
