.bsgp-screening-contacts{border:0;padding:0;margin:18px 0;min-width:0}
.bsgp-screening-contacts legend{font-weight:650;font-size:15px;margin-bottom:12px}
.bsgp-screening-contacts .bsgp-checkline{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border:1px solid #e2e7ef;border-radius:9px;margin:8px 0}
.bsgp-screening-contacts input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:#17245b}
.bsgp-screening-contacts small{display:block;color:#586478;overflow-wrap:anywhere}
.bsgp-mail-preview{border:1px solid #dce3ec;border-radius:12px;background:#fff;margin:18px 0;overflow:hidden}
.bsgp-mail-preview>summary{cursor:pointer;color:#17245b;font-size:14px;font-weight:650;padding:15px 18px;background:#f3f5f9}
.bsgp-mail-preview>summary:focus-visible{outline:2px solid #17245b;outline-offset:-3px}
.bsgp-mail-preview-content{padding:16px}
.bsgp-mail-message{border:1px solid #e4e8ee;border-radius:9px;margin:16px 0;overflow:hidden}
.bsgp-mail-message dl{margin:0;padding:14px;background:#fafbfc}
.bsgp-mail-message dl>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:10px;margin:5px 0}
.bsgp-mail-message dt{font-weight:650}.bsgp-mail-message dd{margin:0;overflow-wrap:anywhere}
.bsgp-mail-message iframe{display:block;width:100%;height:520px;max-width:100%;border:0;background:#fff}
.bsgp-mail-attachments{font-size:13px;overflow-wrap:anywhere}.bsgp-mail-attachments ul{margin:10px 0;padding-left:20px}
.bsgp-replacement{margin-top:14px}.bsgp-replacement form{display:grid;gap:14px;padding:12px 0}
.bsgp-replacement input[type=file]{max-width:100%;white-space:normal}
@media(max-width:600px){.bsgp-mail-preview-content{padding:10px}.bsgp-mail-message dl>div{grid-template-columns:1fr;gap:2px}.bsgp-mail-message iframe{height:620px}.bsgp-screening-contacts .bsgp-checkline{padding:10px}}

/* 1.15: live G4S selection, only in the send section. */
.bsgp-ux-send-box [hidden],.bsgp-mail-preview [hidden]{display:none!important}
.bsgp-ux-send-box .bsgp-screening-contacts{margin:16px 0 12px;min-width:0;width:100%}
.bsgp-ux-send-box .bsgp-screening-contacts legend{font-weight:650;line-height:1.5}
.bsgp-ux-send-box .bsgp-screening-contacts .bsgp-checkline{align-items:flex-start;padding:11px 13px;background:#fff}
.bsgp-ux-send-box .bsgp-screening-contacts input[type=checkbox]{margin-top:4px;flex:none}
.bsgp-ux-send-box .bsgp-screening-contacts span{min-width:0;overflow-wrap:anywhere}
.bsgp-ux-send-box .bsgp-screening-contacts small{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.bsgp-ux-send-box .bsgp-g4s-recipient-change{padding:12px 14px;border:1px solid #dce3ef;border-radius:10px;background:#f0f4fa;color:#253555;line-height:1.6}
.bsgp-ux-send-box [data-g4s-recipients]{overflow-wrap:anywhere}

/* Fixed G4S destination: no checkbox and no disabled state. */
.bsgp-g4s-fixed-recipient{display:grid;gap:6px;padding:14px 16px;margin:14px 0;border:1px solid #dce3ef;border-radius:10px;background:#f3f5f9;line-height:1.5;overflow-wrap:anywhere}
.bsgp-g4s-fixed-recipient strong{color:#17245b}

/* 1.17.5: G4S's own editable garment table and transparent per-recipient email preview. */
.bsgp-g4s-garment-row{display:flex;flex-direction:column;align-items:stretch;gap:9px}
.bsgp-g4s-garment-row .bsgp-checkline{justify-content:flex-start}
.bsgp-g4s-garment-inputs{display:grid;grid-template-columns:minmax(0,180px) minmax(0,110px);justify-content:end;gap:10px;min-width:0}
.bsgp-g4s-garment-inputs input{width:100%!important;min-width:0!important;min-height:42px;border:1px solid #cbd5e5;border-radius:7px;padding:8px 10px;font:inherit;background:#fff}
.bsgp-g4s-garment-inputs input:disabled{background:#f0f2f6;color:#818896}
.bsgp-g4s-garment-inputs small{font-size:12px;font-weight:600;display:block;margin-bottom:4px}
.bsgp-mail-message .bsgp-email-recipient-type{margin:0;padding:12px 14px;background:#f5f7fa;color:#24344c;border-bottom:1px solid #e4e8ee}
.bsgp-mail-message .bsgp-email-attachment-summary{margin:0;padding:0 14px 14px;background:#fafbfc}
.bsgp-mail-message .bsgp-email-attachment-summary ul{margin:8px 0 0;padding-left:20px}
@media(max-width:600px){.bsgp-g4s-garment-inputs{grid-template-columns:minmax(0,1fr) minmax(0,100px);justify-content:stretch}.bsgp-g4s-garment-row .bsgp-g4s-garment-inputs{width:100%}}

/* 1.17.11: previews start CLOSED. Native details/summary provides keyboard access. */
.bsgp-mail-preview>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;user-select:none;border-radius:12px;line-height:1.45;min-height:48px}
.bsgp-mail-preview>summary::-webkit-details-marker{display:none}
.bsgp-mail-preview>summary::after{content:'+';display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid #9eabc2;border-radius:50%;font-size:20px;line-height:1;color:#17245b;background:#fff}
.bsgp-mail-preview[open]>summary::after{content:'−'}
.bsgp-mail-preview:not([open]) .bsgp-preview-label-hide{display:none!important}
.bsgp-mail-preview[open] .bsgp-preview-label-show{display:none!important}
.bsgp-mail-preview[open]>summary{border-bottom:1px solid #dce3ec;border-radius:12px 12px 0 0;background:#edf2fa}
.bsgp-mail-preview>summary:hover{background:#e8eef8}

/* 1.17.51: quantity-only G4S clothing editor; one column on narrow screens. */
.bsgp-g4s-garment-inputs.bsgp-g4s-qty-only{grid-template-columns:minmax(0,110px);justify-content:start}
@media(max-width:600px){.bsgp-g4s-garment-inputs.bsgp-g4s-qty-only{grid-template-columns:minmax(0,1fr)}.bsgp-g4s-garment-row{min-width:0}.bsgp-g4s-garment-row .bsgp-checkline span{overflow-wrap:anywhere}}

/* G4S split send actions: two independent destinations, full-width on mobile. */
.bsgp-g4s-send-actions{display:grid;gap:14px;min-width:0;margin:18px 0 0}
.bsgp-g4s-send-action{min-width:0;display:grid;gap:8px;padding:16px;border:1px solid #d7e0ea;border-radius:12px;background:#fff;overflow-wrap:anywhere}
.bsgp-g4s-send-action h4,.bsgp-g4s-send-action p{margin:0!important;line-height:1.55}
.bsgp-g4s-send-action h4{font-size:15px;font-weight:700}
.bsgp-g4s-send-action .bsgp-btn{justify-self:start;max-width:100%;min-height:44px;height:auto;white-space:normal;text-align:center;line-height:1.35;padding:11px 16px}
.bsgp-g4s-backoffice-action{border-color:#b9cadd;background:#f5f8fc}
.bsgp-g4s-backoffice-address{font-weight:600;overflow-wrap:anywhere}
@media(max-width:600px){.bsgp-g4s-send-action{padding:12px}.bsgp-g4s-send-action .bsgp-btn{width:100%;justify-self:stretch}.bsgp-ux-send-box dl>div{grid-template-columns:minmax(0,1fr);gap:3px}.bsgp-ux-send-box{min-width:0;padding:14px}.bsgp-g4s-send-actions{gap:10px}}
