/* Invio, reinvio e verifica destinatari: spaziatura comune del percorso email. */
.offer-recipient-backdrop{z-index:13000}
.offer-send-modal,.offer-recipient-modal{--mail-space:28px;width:min(760px,100%);max-width:760px;max-height:calc(100dvh - 44px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:100px;border:1px solid #e4e7ec;border-radius:20px;color:#1d2939}
.offer-send-modal>header,.offer-recipient-modal>header{position:sticky;top:0;z-index:2;gap:20px;padding:24px var(--mail-space);background:#fff;border-bottom:1px solid var(--line,#e4e7ec)}
.offer-send-modal>header>div,.offer-recipient-modal>header>div{display:grid;min-width:0;gap:7px}
.offer-send-modal>header small,.offer-recipient-modal>header small{color:var(--role,var(--brand));font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.offer-send-modal>header strong,.offer-recipient-modal>header strong{font:700 21px/1.3 'Manrope',sans-serif;overflow-wrap:anywhere}
.offer-send-modal>header button,.offer-recipient-modal>header button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin:0;padding:0;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc;color:#475467;font-size:26px;cursor:pointer}
.offer-send-modal>footer,.offer-recipient-modal>footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;padding:18px var(--mail-space);border-top:1px solid var(--line,#e4e7ec);background:#fff}
.offer-send-modal>footer button,.offer-recipient-modal>footer button{min-height:42px;margin:0;padding:10px 15px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#344054;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer}
.offer-recipient-modal>footer .secondary-button{border-color:var(--role,var(--brand));background:var(--role,var(--brand));color:#fff}
.offer-send-modal button:disabled,.offer-recipient-modal button:disabled{opacity:.5;cursor:not-allowed}
.offer-send-modal button:focus-visible,.offer-recipient-modal button:focus-visible,.offer-recipient-modal input:focus-visible{outline:3px solid var(--role-soft,#dbeafe);outline-offset:3px}
.offer-send-modal .offer-attach-list{grid-template-columns:20px minmax(0,1fr);gap:10px 12px;margin:22px var(--mail-space) 0;padding:18px;background:#f8fafc;border-radius:12px}
.offer-send-modal .offer-attach-list>input{width:18px;height:18px;margin:2px 0;align-self:start}
.offer-send-modal .offer-attach-list strong{font-size:13px;line-height:1.4}
.offer-send-modal .offer-attach-list small{margin-top:5px;font-size:12px;line-height:1.5}
.offer-send-modal .offer-attach-list select{grid-column:2;min-width:0;width:100%;height:42px;font-size:13px}
.offer-send-modal .offer-send-options{gap:12px;padding:24px var(--mail-space)}
.offer-send-modal .offer-send-options>button{gap:16px;padding:18px;min-width:0;border-radius:12px}
.offer-send-modal .offer-send-options>button>div{min-width:0}
.offer-send-modal .offer-send-options strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.offer-send-modal .offer-send-options small{margin-top:6px;font-size:12px;line-height:1.55}
.offer-send-modal .offer-resend-intro{margin:24px var(--mail-space) 0;font-size:14px;line-height:1.6}
.offer-recipient-modal>p,.offer-recipient-modal>label,.offer-recipient-modal>small,.offer-recipient-modal>[data-recipients]{display:block;margin:22px var(--mail-space);font-size:14px;line-height:1.6}
.offer-recipient-modal>[data-recipients]{display:grid;gap:10px;padding:0}
.offer-recipient-modal [data-recipients] label{display:flex;gap:12px;align-items:flex-start;margin:0;padding:15px 16px;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc;cursor:pointer;overflow-wrap:anywhere}
.offer-recipient-modal [data-recipients] label:has(input:checked){border-color:var(--role,var(--brand));background:var(--role-soft,#f0f7ff)}
.offer-recipient-modal [data-recipients] input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:var(--role,var(--brand))}
.offer-recipient-modal [data-recipients] span{min-width:0;font-weight:650}
.offer-recipient-modal [data-recipients] small{display:block;margin-top:4px;color:#667085;font-size:12px;font-weight:400;line-height:1.5}
.offer-recipient-modal [data-recipients]>p{margin:0;padding:16px;border:1px dashed #d0d5dd;border-radius:12px;color:#667085}
.offer-recipient-modal>[data-email-info]{padding:13px 16px;border:1px solid #dbe6f5;border-radius:10px;background:#f5f9ff;color:#475467;font-size:12px}
.offer-recipient-modal>[data-email-info]:empty,.offer-recipient-modal>[data-error]:empty{display:none}
.offer-recipient-modal>label{margin-bottom:8px;font-size:13px;font-weight:700}
.offer-recipient-modal [data-manual]{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin-top:9px;padding:11px 13px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#1d2939;font:inherit;font-weight:400}
.offer-recipient-modal>small{margin-top:0;margin-bottom:24px;color:#667085;font-size:12px;line-height:1.55}
.offer-recipient-modal>[data-error]{padding:12px 16px;border:1px solid #fecdca;border-radius:10px;background:#fef3f2;color:#b42318;font-size:13px}
.offer-recipient-modal>footer [data-refresh]{margin-right:auto}
@media(max-width:600px){
 .offer-modal-backdrop:has(.offer-send-modal),.offer-recipient-backdrop{padding:12px;place-items:center}
 .offer-send-modal,.offer-recipient-modal{--mail-space:20px;max-height:calc(100dvh - 24px);border-radius:16px}
 .offer-send-modal>header,.offer-recipient-modal>header{padding-block:20px;gap:12px}
 .offer-send-modal>header strong,.offer-recipient-modal>header strong{font-size:18px}
 .offer-send-modal .offer-send-options>button{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px}
 .offer-send-modal .offer-send-options>button>span{width:34px;height:34px;font-size:17px}
 .offer-send-modal .offer-attach-list{padding:14px}
 .offer-send-modal .offer-attach-list select{grid-column:1/-1}
 .offer-recipient-modal>footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .offer-recipient-modal>footer button{min-width:0;width:100%;margin:0;font-size:12px;white-space:normal}
 .offer-recipient-modal>footer [data-refresh]{margin-right:0}
 .offer-send-modal>footer{padding-block:14px}
}

.offer-email-ready .offer-email-summary{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px 16px;margin:24px var(--mail-space);padding:18px;border:1px solid var(--line,#e4e7ec);border-radius:12px;background:#f8fafc;font-size:13px;line-height:1.6}
.offer-email-summary>span{color:#667085}.offer-email-summary>strong{min-width:0;font-weight:600;overflow-wrap:anywhere}
.offer-email-ready>.offer-email-download-status{font-size:12px;color:#667085}
@media(max-width:600px){.offer-email-ready .offer-email-summary{grid-template-columns:1fr;gap:5px;padding:16px}.offer-email-summary>strong+span{margin-top:12px}.offer-email-ready>footer{grid-template-columns:1fr}.offer-email-ready>footer [data-download-email]{grid-row:1}}

.offer-email-help{margin:22px var(--mail-space);padding:16px;border:1px solid var(--line,#e4e7ec);border-radius:12px;font-size:13px;line-height:1.6;color:#475467}
.offer-email-help summary{cursor:pointer;font-weight:700;color:#344054}.offer-email-help p{margin:14px 0}.offer-email-help>div{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.offer-email-help .ghost-button{display:inline-flex;max-width:100%;margin:0;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;font-size:12px;text-decoration:none}

.offer-email-ready>.offer-email-sender{display:grid;gap:8px;margin:24px var(--mail-space);font-size:13px;font-weight:700;line-height:1.5}
.offer-email-sender input{width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#1d2939;font:inherit;font-weight:400}
.offer-email-sender small{color:#667085;font-size:12px;font-weight:400;line-height:1.55}

/* Reinvio: etichetta e selettore allineati al contenuto della finestra. */
.offer-send-modal > label:has(> [data-resend-mode]) {
  display: grid;
  gap: 8px;
  margin: 22px var(--mail-space) 0;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.offer-send-modal [data-resend-mode] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd8e8;
  border-radius: 11px;
  background: #fff;
  color: #17243a;
  font: inherit;
}
.offer-send-modal [data-resend-mode]:focus-visible {
  outline: 3px solid var(--role-soft, #dbeafe);
  outline-offset: 2px;
  border-color: #3977c9;
}

.offer-type-acceptance > label{display:grid;gap:8px;margin:18px 0;color:#344054;font-size:14px}.offer-type-acceptance select,.offer-type-acceptance input[type=number]{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;color:#17243a;font:inherit}.offer-type-acceptance > label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.offer-type-acceptance > small{display:block;color:#667085;line-height:1.5}
