/* FOCUS BUSINESS · anteprima identica alla modalità WhatsApp Genzano, numero Albano/06. */
.focusNewComposer{padding:20px!important}
.focusComposerEyebrow{color:#1f65bd;background:#e6efff;border-radius:999px;padding:6px 10px;display:inline-block;font-size:10px;font-weight:900;letter-spacing:.7px;margin-bottom:12px}
.focusComposerGrid{display:grid;grid-template-columns:minmax(375px,1fr) minmax(340px,430px);gap:20px;align-items:start}
.focusComposerControls{min-width:0}
.focusComposerAside{min-width:0;position:sticky;top:20px;display:grid;gap:10px}
.focusComposerAsideTitle{display:flex;align-items:center;justify-content:space-between;gap:8px}
.focusComposerAsideTitle strong{font-size:15px}
.focusComposerAsideTitle span{font-size:11px;font-weight:600;color:#68778d;word-break:break-word;text-align:right}
.focusComposerAside>label{display:flex;gap:10px;align-items:center;margin:0}
.focusComposerAside>label select{width:auto;min-width:0;flex:1;max-width:270px;margin:0;padding:10px}
.focusPhoneWrapper{border-radius:20px;padding:11px;background:#e9eef3;border:1px solid #dce4eb}
.focusPreviewApproval{font-weight:900;font-size:11px;display:inline-flex;border-radius:8px;padding:7px 10px;margin:0 0 9px;color:#74480c;background:#fef3c7}
.focusPreviewApproval.green{color:#166534;background:#d9fce3}
.focusPreviewApproval.amber{color:#9a3412;background:#ffedd5}
.focusPhoneShell{background:#ebe4d9;border:1px solid #cad4d8;border-radius:20px;max-width:405px;margin:0 auto;overflow:hidden;box-shadow:0 10px 24px #142d401f}
.focusPhoneTop{display:flex;gap:7px;align-items:center;padding:12px 14px;color:white;font-weight:800;background:#075e54;font-size:13px}
.focusPhoneTop span:nth-child(2){flex:1}
.focusPhoneChat{min-height:340px;max-height:580px;overflow-y:auto;padding:16px 10px 22px;background:repeating-linear-gradient(45deg,#ebe4da,#ebe4da 34px,#eee8df 34px,#eee8df 68px)}
.focusPhoneBubble{background:#d9fdd3;width:max-content;max-width:96%;min-width:160px;margin-left:auto;border-radius:10px 10px 4px 10px;padding:9px;box-shadow:0 2px 5px #0002;overflow-wrap:anywhere}
.focusPhoneBubble>img{display:block;max-width:100%;width:100%;max-height:260px;object-fit:contain;background:#ececec;border-radius:8px;margin-bottom:10px}
.focusPhoneBubble>img[hidden]{display:none}
.focusCampaignImagePlaceholder{min-height:155px;background:#e3e7e9;display:grid;place-items:center;border-radius:8px;padding:15px;font-size:13px;font-weight:700;color:#566578;margin-bottom:10px}
.focusCampaignImagePlaceholder[hidden]{display:none}
.focusCampaignText{white-space:pre-wrap;line-height:1.42;font-size:14px}
.focusCampaignFooter{font-size:11px;color:#63766c;margin-top:8px}
.focusPhoneButton{text-align:center;color:#086b9b;font-size:13px;font-weight:800;background:#fff;border-top:1px solid #b0d0b1;margin:9px -9px -8px;padding:11px 7px}
.focusPhoneTime{text-align:right;color:#60786d;font-size:10px;margin-top:10px}
.focusAudienceSummary{border:1px solid #d3dfed;background:#f8fbff;border-radius:11px;padding:13px;font-size:13px;line-height:1.5;margin-top:11px}
.focusCampaignNotice{background:#edf4ff;color:#234b7e;border:1px solid #d8e6fc;border-radius:11px;padding:11px;font-size:13px;margin:13px 0}
.focusComposerActions{margin-top:12px}
.focusComposerActions button{min-height:44px}
.focusComposerActions .primary{flex:1;min-width:200px}
.focusMetaVariables{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0}
.focusMetaVariables>.small{grid-column:1/-1}
.focusTestPanel{margin:14px 0 0;border:1px solid #b9d2ed;background:#f5faff;border-radius:13px;padding:18px}
.focusTestPanel[hidden]{display:none}
.focusTestPanel>label:not(.check){max-width:360px}
.focusTestPanel .check{margin:12px 0}
.focusTestPanel .actions{margin-bottom:10px}
#focusPreviewHelp{padding:5px 10px 0}
@media(max-width:1080px){.focusComposerGrid{grid-template-columns:minmax(0,1fr)}.focusComposerAside{position:static;max-width:470px;margin:10px auto;width:100%}}
@media(max-width:560px){.focusNewComposer{padding:12px!important}.focusComposerActions button{width:100%}.focusComposerAside>label{flex-direction:column;align-items:stretch}.focusComposerAside>label select{width:100%;max-width:none}.focusPhoneChat{min-height:240px}.focusPhoneBubble{max-width:100%}}

/* Accessibilità: testo dei messaggi SEMPRE scuro sulla bolla verde, anche in dark mode. */
.focusNewComposer .focusPhoneShell .focusPhoneBubble,
.focusNewComposer .focusPhoneShell .focusCampaignText,
.focusNewComposer .focusPhoneShell .focusCampaignText *,
.focusNewComposer .focusPhoneShell .focusPhoneBubble > .focusCampaignText {
  color:#101820 !important;
  -webkit-text-fill-color:#101820 !important;
  opacity:1 !important;
}
.focusNewComposer .focusPhoneShell .focusCampaignFooter,
.focusNewComposer .focusPhoneShell .focusPhoneTime { color:#365148 !important; -webkit-text-fill-color:#365148 !important; }
.focusNewComposer .focusPhoneShell .focusPhoneButton { color:#0878ad !important; -webkit-text-fill-color:#0878ad !important; }
