/* safeSALE v231 – additive OFFER HEADER only.
 * Nothing targets the positions, totals, invoices, chat or global lead designer.
 * display:contents is limited to a generic div, never the form/fieldset/labels.
 */
html[data-ss231-offer-header="ready"] .wrap.ss231-edge {
  width:100%; max-width:none; margin-top:0!important; padding-top:0!important;
  padding-left:0!important; padding-right:0!important;
}
.ss231-sr, .ss231-old-heading {
  position:absolute!important; width:1px!important; height:1px!important; padding:0!important;
  margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important;
}
/* Avoid a duplicate, off-screen focusable back link. Its toolbar counterpart remains. */
.ss231-old-heading { display:none!important; }
.ss223-bar.ss231-headerbar {
  display:grid!important; grid-template-columns:minmax(220px,26%) minmax(0,1fr) auto;
  align-items:center; gap:10px 18px; margin:0!important; padding:12px 18px 10px!important;
  background:#fff; border:0!important; border-bottom:1px solid #dbe4ef!important;
  border-radius:0!important; box-shadow:none; font-size:12px; line-height:1.35;
}
.ss231-headerbar .ss231-type-area {grid-column:1; min-width:0;}
.ss231-headerbar .ss223-eyebrow {display:block;color:#577497;font-size:10px;font-weight:800;letter-spacing:1.4px;line-height:14px;margin:0 0 4px;}
.ss231-headerbar .ss223-type-label {display:flex;align-items:center;gap:10px;font-size:12px;line-height:18px;margin:0;}
.ss231-headerbar .ss223-type-label select {width:auto;flex:1;max-width:250px;min-width:0;height:34px;min-height:34px;padding:4px 10px;font-size:13px;font-weight:700;border:1px solid #cbdaf0;border-radius:8px;background:#f6f9ff;color:#132943;}
.ss231-headerbar .ss231-type-area > .small {display:block;font-size:10px;line-height:13px;color:#65758e;margin-top:4px;}
.ss231-headerbar .ss231-customer-context {font-size:10px;line-height:13px;color:#526781;margin-top:2px;overflow-wrap:anywhere;}
.ss231-headerbar .ss231-admin-note {
  grid-column:2; margin:0!important; padding:8px 12px!important; min-width:0;
  display:flex;align-items:center;gap:5px 12px;border:1px solid #dce9fc;border-radius:7px;
  background:#eff5ff;font-size:11px;line-height:1.45;
}
.ss231-headerbar .ss231-admin-note a {white-space:normal;color:#2158a3;font-size:11px;text-decoration:underline;}
.ss231-headerbar > .ss223-actions {grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:280px;}
.ss231-headerbar .btn {font-size:12px!important;line-height:18px;padding:7px 11px!important;min-height:34px;border-radius:8px;}
/* A 24-track layout provides a single alignment grid without moving any fields. */
#offerBuilderForm[data-ss231-header="1"] > .offer-meta-card.ss231-head {
  display:grid!important;grid-template-columns:repeat(24,minmax(0,1fr));grid-auto-rows:auto;
  align-items:start;gap:10px 12px;padding:14px 18px 12px!important;margin:0!important;
  border:0!important;border-bottom:1px solid #dbe4ef!important;border-radius:0!important;
  background:#fff;box-shadow:none;min-width:0;overflow:visible;
  container-name:ss231header;container-type:inline-size;
  color:#172c46;font-size:12px;line-height:1.35;
}
#offerBuilderForm .ss231-head > .ss231-fields {display:contents!important;}
.ss231-head .ss231-field {min-width:0;max-width:100%;margin:0!important;}
#offerBuilderForm .ss231-head .ss231-model {grid-column:1 / 7;grid-row:1 / 4;}
#offerBuilderForm .ss231-head .ss231-title {grid-column:7 / 12;grid-row:1;}
#offerBuilderForm .ss231-head .ss231-pipeline {grid-column:7 / 12;grid-row:2;}
#offerBuilderForm .ss231-head .ss231-status {grid-column:7 / 12;grid-row:3;}
#offerBuilderForm .ss231-head .ss231-valid {grid-column:12 / 15;grid-row:1;}
#offerBuilderForm .ss231-head .ss231-date {grid-column:15 / 18;grid-row:1;}
#offerBuilderForm .ss231-head .ss231-payment {grid-column:18 / 21;grid-row:1;}
#offerBuilderForm .ss231-head .ss231-terms {grid-column:21 / 25;grid-row:1;}
#offerBuilderForm .ss231-head .ss231-countries {grid-column:12 / 25;grid-row:2;position:relative;}
#offerBuilderForm .ss231-head .ss231-location {grid-column:12 / 25;grid-row:3;}
/* Generic labels stay in their original wrappers and keep their rule controls. */
#offerBuilderForm .ss231-head .ss231-field > label:not(.ss-required-control),
#offerBuilderForm .ss231-head .ss-label-line > label:not(.ss-required-control) {
  font-size:11px!important;line-height:16px;font-weight:700;margin:0 0 4px!important;color:#152b45;
}
#offerBuilderForm .ss231-head .ss-label-line {display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;margin:0 0 4px;min-height:17px;}
#offerBuilderForm .ss231-head .ss-label-line > label:not(.ss-required-control) {flex:1;min-width:0;margin:0!important;}
#offerBuilderForm .ss231-head .ss-required-control {font-size:9px!important;line-height:13px;gap:3px!important;padding:1px 3px!important;border-radius:4px;flex-shrink:0;min-height:17px;background:#f4f8ff;}
#offerBuilderForm .ss231-head .ss-required-control input {width:12px!important;min-width:12px!important;max-width:12px!important;height:12px!important;min-height:12px!important;max-height:12px!important;margin:0!important;padding:0!important;}
#offerBuilderForm .ss231-head .ss231-field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#offerBuilderForm .ss231-head .ss231-field select {
  display:block;width:100%;box-sizing:border-box;min-width:0;max-width:100%;height:34px;min-height:34px!important;
  margin:0;padding:5px 9px!important;font-family:inherit;font-size:12px!important;line-height:20px;
  color:#182d45;background:#fff;border:1px solid #cbd6e4;border-radius:7px;box-shadow:none;
}
#offerBuilderForm .ss231-head input[type="date"] {color-scheme:light;}
#offerBuilderForm .ss231-head input[readonly] {background:#f8fafc!important;}
#offerBuilderForm .ss231-head input:focus-visible, #offerBuilderForm .ss231-head select:focus-visible,
#offerBuilderForm .ss231-head summary:focus-visible {outline:2px solid #2673ed;outline-offset:2px;}
#offerBuilderForm .ss231-head .small, #offerBuilderForm .ss231-head .google-address-status {font-size:10px!important;line-height:1.4;margin-top:3px!important;overflow-wrap:anywhere;}
/* Model choice cards: same size; no fixed-height clipping of longer text. */
#offerBuilderForm .ss231-head .ss231-model {margin:0!important;padding:0 12px 0 0!important;border:0!important;border-right:1px solid #e7edf5!important;border-radius:0!important;background:none!important;min-width:0;}
#offerBuilderForm .ss231-head .ss231-model-heading {display:flex!important;align-items:center!important;margin:0 0 6px!important;padding:0;gap:5px!important;}
#offerBuilderForm .ss231-head .ss231-model-heading > div {display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center;}
#offerBuilderForm .ss231-head .ss231-model-heading > div > div:first-child {font-size:11px!important;line-height:17px;font-weight:700!important;}
#offerBuilderForm .ss231-head .ss231-model-heading .small,
#offerBuilderForm .ss231-head #billingModelBadge {position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#offerBuilderForm .ss231-head .ss231-model-choices {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:1fr;gap:6px!important;}
#offerBuilderForm .ss231-head .billing-model-choice {
  display:grid!important;grid-template-columns:16px 30px minmax(0,1fr)!important;gap:8px!important;
  align-items:center!important;min-width:0;min-height:58px!important;height:auto!important;width:100%;
  padding:8px!important;margin:0!important;border:1px solid #cdd9e8!important;border-radius:8px!important;background:#fff!important;
  font-size:11px;line-height:1.3;box-sizing:border-box;
}
#offerBuilderForm .ss231-head .billing-model-choice[data-ss231-model="flat_offer"] {order:1;}
#offerBuilderForm .ss231-head .billing-model-choice[data-ss231-model="unit_offer"] {order:2;}
#offerBuilderForm .ss231-head .billing-model-choice[data-ss231-model="mixed_offer"] {order:3;}
#offerBuilderForm .ss231-head .billing-model-choice:has(input:checked) {border-color:#287aff!important;background:#f0f6ff!important;box-shadow:inset 2px 0 #287aff;}
#offerBuilderForm .ss231-head .billing-model-choice > input[type="radio"] {appearance:auto;-webkit-appearance:auto;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;max-height:16px!important;margin:0!important;padding:0!important;accent-color:#1877ff;}
#offerBuilderForm .ss231-head .ss231-model-icon {width:30px;height:30px!important;display:flex!important;align-items:center;justify-content:center;border-radius:7px;background:#e8f2ff;color:#064b94;}
.ss231-model-icon svg {display:block;width:22px;height:22px;}
#offerBuilderForm .ss231-head .ss231-choice-copy {display:block;min-width:0;}
#offerBuilderForm .ss231-head .ss231-choice-copy > b {font-size:11px;line-height:15px;color:#152b45;}
#offerBuilderForm .ss231-head .ss231-choice-copy > .small {font-size:10px!important;line-height:13px;margin-top:2px!important;font-weight:400;}
#offerBuilderForm .ss231-head #billingModelHelp {font-size:10px!important;line-height:14px;font-weight:600!important;margin-top:5px!important;}
#offerBuilderForm .ss231-head .ss231-model:has(input[name="billing_model"]:checked) #billingModelHelp {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
/* Country selector stays natively collapsible, count and hidden value are untouched. */
#offerBuilderForm .ss231-head .ss231-countries > details {margin:0!important;padding:0!important;border:1px solid #dce6f4;border-radius:7px;box-shadow:none;background:#f7faff;overflow:visible;}
#offerBuilderForm .ss231-head .ss231-countries > details > summary {list-style:none;display:flex;align-items:center;gap:6px;min-height:38px;box-sizing:border-box;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;}
#offerBuilderForm .ss231-head .ss231-countries > details > summary::-webkit-details-marker {display:none;}
#offerBuilderForm .ss231-head .ss231-countries > details > summary::before {content:'▸';display:block;width:9px;color:#12334d;}
#offerBuilderForm .ss231-head .ss231-countries > details[open] > summary::before {content:'▾';}
#offerBuilderForm .ss231-head .ss231-countries:has(> .ss-required-control) > details > summary {padding-right:85px;}
#offerBuilderForm .ss231-head .ss231-countries > .ss-required-control {position:absolute;right:10px;top:10px;z-index:1;}
#offerBuilderForm .ss231-head .ss231-countries > details > div {padding:0 10px 10px;margin-top:6px!important;}
.ss231-head .ss231-pin {display:inline-flex;width:19px;height:22px;align-items:center;color:#0c599f;flex-shrink:0;}
.ss231-pin svg {width:17px;height:21px;}
#offerBuilderForm .ss231-head #offerCountryCount {font-size:11px;font-weight:600;background:#e7f0ff;color:#135ca8;padding:2px 6px;border-radius:12px;}
/* Keep both Google search and the actual stored/manual delivery address. */
#offerBuilderForm .ss231-head .google-address-box {padding:0!important;margin:0 0 5px!important;background:none!important;border:0!important;border-radius:0!important;overflow:visible;}
#offerBuilderForm .ss231-head .google-address-autocomplete {width:100%;min-width:0;}
#offerBuilderForm .ss231-head gmp-place-autocomplete {display:block;width:100%;max-width:100%;color-scheme:light;background-color:white;border:1px solid #cbd6e4;border-radius:7px;box-sizing:border-box;font-size:12px;}
#offerBuilderForm .ss231-head gmp-place-autocomplete::part(input) {font-family:inherit;font-size:12px;min-height:34px;}
/* Tablet: preserve readable controls; same data, not a miniaturized desktop. */
@media (max-width:1100px) {
 .ss223-bar.ss231-headerbar {grid-template-columns:minmax(200px,1fr) auto;gap:8px 12px;}
 .ss231-headerbar .ss231-admin-note {grid-column:1/-1;grid-row:2;}
 .ss231-headerbar > .ss223-actions {grid-column:2;}
 #offerBuilderForm[data-ss231-header="1"] > .offer-meta-card.ss231-head {grid-template-columns:repeat(12,minmax(0,1fr));gap:9px 12px;}
 #offerBuilderForm .ss231-head .ss231-model {grid-column:1/5;grid-row:1/4;}
 #offerBuilderForm .ss231-head .ss231-title {grid-column:5/9;grid-row:1;}
 #offerBuilderForm .ss231-head .ss231-pipeline {grid-column:9/13;grid-row:1;}
 #offerBuilderForm .ss231-head .ss231-status {grid-column:5/9;grid-row:2;}
 #offerBuilderForm .ss231-head .ss231-valid {grid-column:9/13;grid-row:2;}
 #offerBuilderForm .ss231-head .ss231-date {grid-column:5/9;grid-row:3;}
 #offerBuilderForm .ss231-head .ss231-payment {grid-column:9/13;grid-row:3;}
 #offerBuilderForm .ss231-head .ss231-terms {grid-column:1/5;grid-row:4;}
 #offerBuilderForm .ss231-head .ss231-countries {grid-column:5/13;grid-row:4;}
 #offerBuilderForm .ss231-head .ss231-location {grid-column:1/13;grid-row:5;}
}
@media (max-width:640px) {
 .ss223-bar.ss231-headerbar {padding:10px!important;grid-template-columns:minmax(0,1fr) auto;gap:6px;}
 .ss231-headerbar .ss223-type-label {display:block;}
 .ss231-headerbar .ss223-type-label select {display:block;width:100%;max-width:100%;margin-top:2px;}
 .ss231-headerbar > .ss223-actions {max-width:125px;}
 .ss231-headerbar .btn {font-size:11px!important;padding:6px 8px!important;}
 #offerBuilderForm[data-ss231-header="1"] > .offer-meta-card.ss231-head {padding:10px!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 #offerBuilderForm .ss231-head .ss231-model {grid-column:1/-1;grid-row:1;padding:0!important;border:0!important;}
 #offerBuilderForm .ss231-head .ss231-title {grid-column:1/-1;grid-row:2;}
 #offerBuilderForm .ss231-head .ss231-pipeline {grid-column:1;grid-row:3;}
 #offerBuilderForm .ss231-head .ss231-status {grid-column:2;grid-row:3;}
 #offerBuilderForm .ss231-head .ss231-valid {grid-column:1;grid-row:4;}
 #offerBuilderForm .ss231-head .ss231-date {grid-column:2;grid-row:4;}
 #offerBuilderForm .ss231-head .ss231-payment {grid-column:1;grid-row:5;}
 #offerBuilderForm .ss231-head .ss231-terms {grid-column:2;grid-row:5;}
 #offerBuilderForm .ss231-head .ss231-countries {grid-column:1/-1;grid-row:6;}
 #offerBuilderForm .ss231-head .ss231-location {grid-column:1/-1;grid-row:7;}
 #offerBuilderForm .ss231-head .ss231-field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
 #offerBuilderForm .ss231-head .ss231-field select {font-size:16px!important;min-height:38px!important;height:38px;}
 #offerBuilderForm .ss231-head .ss231-countries > details > summary {font-size:11px;gap:4px;}
}
@media print {
 .ss231-head .ss-required-control, .ss231-headerbar .ss231-admin-note {display:none!important;}
}
