.delivery-review { padding:24px; color:#14233b; background:#fff; border:1px solid #cfdaea; border-radius:12px; font-size:inherit; line-height:1.5; }
.delivery-review h1, .delivery-review h2 { font-size:1rem; line-height:1.35; margin:6px 0 12px; color:#102443; }
.delivery-review__eyebrow { color:#426080; font-weight:600; }
.delivery-review__notice { background:#eef5fc; padding:14px 18px; border-radius:6px; }
.delivery-review__summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:20px 0; border-bottom:1px solid #d9e2ed; }
.delivery-review dt { color:#4b607a; }
.delivery-review dd { margin:5px 0; font-weight:700; }
.delivery-review fieldset { border:0; padding:0; margin:24px 0; }
.delivery-review legend { font-size:1rem; font-weight:700; margin-bottom:16px; }
.delivery-review__fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.delivery-review label { display:block; margin-bottom:16px; }
.delivery-review label span { display:block; font-weight:600; margin-bottom:6px; }
.delivery-review input:not([type=hidden]), .delivery-review textarea { box-sizing:border-box; width:100%; min-height:44px; border:1px solid #9cafc6; border-radius:6px; padding:10px 12px; font:inherit; color:inherit; background:#fff; }
.delivery-review input:focus, .delivery-review textarea:focus { outline:2px solid #0875c9; outline-offset:2px; }
.delivery-review button { background:#0875c9; color:#fff; border:0; border-radius:6px; padding:12px 20px; min-height:44px; font:inherit; font-weight:700; cursor:pointer; box-shadow:none; }
.delivery-review button:focus-visible { outline:3px solid #102443; outline-offset:3px; }
.delivery-review__comparison { margin-top:32px; border-top:1px solid #cbd9e9; padding-top:20px; }
.delivery-review table { width:100%; border-collapse:collapse; table-layout:fixed; }
.delivery-review th, .delivery-review td { text-align:left; padding:12px 8px; border-bottom:1px solid #d9e2ed; overflow-wrap:anywhere; }
.delivery-review thead { background:#f2f6fb; }
.delivery-review__error { color:#9e2222; border:1px solid #d88; background:#fff1f1; padding:16px; }
.delivery-review__icon { width:1.15rem; height:1.15rem; display:inline-block; vertical-align:middle; flex:none; }
.delivery-review h1, .delivery-review h2, .delivery-review dt { display:flex; align-items:center; gap:8px; }
.delivery-review h1 .delivery-review__icon, .delivery-review legend .delivery-review__icon, .delivery-review h2 .delivery-review__icon { color:#0864b0; }
.delivery-review__badge { margin-left:auto; border:1px solid #c1daf2; border-radius:5px; padding:3px 8px; background:#eef5fc; color:#14558c; font-size:.78rem; font-weight:600; }
.delivery-review__summary { background:#f0f8f3; border:1px solid #c5dfce; border-radius:8px; padding:16px; }
.delivery-review dt { color:#23653e; font-weight:600; }
.delivery-review dd { margin-left:calc(1.15rem + 8px); color:#174b2c; }
.delivery-review legend { color:#14558c; }
.delivery-review button { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#0864b0; }
.delivery-review button:hover { background:#074e89; }
.delivery-review__warning { background:#fff6e5; color:#79500b; padding:14px 18px; border:1px solid #e9ce97; border-radius:6px; }
.delivery-review__comparison thead { background:#eef5fc; color:#14558c; }
.delivery-review__comparison td:last-child { background:#f0f8f3; color:#174b2c; font-weight:600; }
.delivery-review__address-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; width:clamp(640px,66.667%,960px); max-width:100%; margin:16px auto 0; }
.delivery-review__current { min-width:0; }
.delivery-review__current h2 { margin:0; justify-content:flex-end; text-align:right; }
.delivery-review__current > p { text-align:right; }
.delivery-review__current > p, .delivery-review__edit-hint { margin:4px 0 12px; color:#426080; }
.delivery-review__current dl { margin:0; }
.delivery-review__current dl > div { min-height:72px; }
.delivery-review__current dt { color:#426080; font-weight:600; }
.delivery-review__current dd { margin:6px 0 0; color:#14233b; overflow-wrap:anywhere; }
.delivery-review__address-split fieldset { margin:0 0 16px; min-width:0; }
.delivery-review__address-split legend { margin-bottom:0; }
.delivery-review__address-split .delivery-review__fields { grid-template-columns:1fr; gap:0; }
.delivery-review__address-split .delivery-review__form { min-width:0; }
.delivery-review__saved-field { position:relative; text-align:right; }
.delivery-review__saved-field input[readonly] { text-align:right; background:#f2f6fb; color:#426080; border-color:#cfdaea; cursor:default; }
.delivery-review__saved-field input::placeholder { color:#52667f; opacity:1; }
.delivery-review__row-arrow { position:absolute; right:-30px; bottom:12px; width:20px; height:20px; color:#0864b0; }
.delivery-review__current h2, .delivery-review__address-split legend { line-height:1.35; min-height:1.55rem; }
.delivery-review { padding:16px; }
.delivery-review header p { margin:4px 0 8px; }
.delivery-review h1 { margin:4px 0 8px; }
.delivery-review__notice { margin:8px 0; padding:10px 12px; }
.delivery-review__summary { margin:8px 0; padding:10px 12px; gap:12px; }
.delivery-review__address-split label { margin-bottom:8px; }
.delivery-review__address-split label span { margin-bottom:4px; }
.delivery-review__address-split input:not([type=hidden]), .delivery-review__address-split textarea { padding:8px 10px; }
.delivery-review__comparison { margin-top:20px; padding-top:16px; }
.delivery-review dialog { position:fixed; inset:0; margin:auto; width:min(720px,calc(100vw - 32px)); max-height:85vh; overflow:auto; box-sizing:border-box; padding:24px; border:1px solid #cfdaea; border-radius:12px; color:#14233b; background:#fff; font:inherit; }
.delivery-review dialog::backdrop { background:rgb(16 36 67 / .35); backdrop-filter:blur(3px); }
.delivery-review dialog .delivery-review__comparison { margin:0 0 16px; padding:0; border:0; }
.delivery-review__price-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; background:#eef5fc; border-radius:8px; }
.delivery-review__price-grid dd { margin:4px 0 0; }
.delivery-review button:disabled { opacity:.55; cursor:not-allowed; }
.invoice-name-preview { margin-top:16px; }
.amendment-tabs { display:flex; gap:8px; padding:8px; margin:16px 0; border:1px solid #cfdaea; border-radius:8px; background:#f5f8fc; overflow-x:auto; }
.amendment-tabs button { display:flex; align-items:center; justify-content:center; gap:12px; flex:1; white-space:nowrap; min-height:48px; padding:12px 16px; border:1px solid transparent; border-radius:6px; font:inherit; font-weight:700; color:#29466b; background:transparent; cursor:pointer; box-shadow:none; }
.amendment-tabs button[aria-selected=true] { background:#0864b0; color:white; border-color:#0864b0; }
.amendment-tabs button:focus-visible { outline:2px solid #0864b0; outline-offset:2px; }
[data-amend-panel][hidden] { display:none !important; }
.delivery-review button.amendment-text-link { background:transparent; color:#0864b0; padding:8px 0; text-decoration:underline; }
.invoice-name-preview input[readonly] { background:#f2f6fb; color:#426080; border-color:#cfdaea; }
.invoice-name-preview .delivery-review__address-split h2 { margin:0; min-height:1.55rem; }
.invoice-name-preview__paper { border-left:3px solid #0864b0; background:#eef5fc; padding:12px 16px; margin:16px 0; display:flex; flex-direction:column; gap:4px; }
.invoice-name-preview__paper > span:first-child { color:#426080; font-size:.85em; }
.billed-preview [hidden] { display:none !important; }
.billed-preview .billed-preview__choices { display:flex; gap:12px; margin:16px 0; }
.billed-preview__choices legend { margin-bottom:8px; }
.billed-preview__choices label { display:flex; align-items:center; gap:10px; flex:1; margin:0; padding:12px; border:1px solid #cbd9e9; border-radius:6px; cursor:pointer; }
.billed-preview__choices label:has(:checked) { background:#eef5fc; border-color:#0864b0; color:#14558c; }
.billed-preview__choices input[type=radio] { width:18px; min-height:18px; accent-color:#0864b0; flex:none; }
.billed-preview__choices small { display:block; font-weight:400; color:#426080; }
.billed-preview__split { display:grid; grid-template-columns:1fr 1fr; gap:32px; max-width:960px; margin:20px auto 0; }
.billed-preview__split label { margin:8px 0; }
.billed-preview__split p { margin:4px 0 12px; color:#426080; }
.billed-preview select { width:100%; min-height:44px; padding:8px; font:inherit; border:1px solid #9cafc6; border-radius:6px; background:#fff; color:inherit; }
.billed-preview select:focus-visible { outline:2px solid #0875c9; outline-offset:2px; }
.billed-preview textarea[readonly] { background:#f2f6fb; resize:none; }
.billed-preview__current { text-align:right; }
.billed-preview__current h2 { justify-content:flex-end; }
.billed-preview__current textarea { text-align:right; }
.billed-preview__retained { font-size:.9em; }
.billed-preview__result { border-top:1px solid #cfdaea; margin-top:20px; padding-top:16px; }
.billed-preview__result dl { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.billed-preview__result dd { margin:6px 0; white-space:pre-line; overflow-wrap:anywhere; }
@media(max-width:1000px) { .billed-preview__split,.billed-preview__result dl { grid-template-columns:1fr; gap:16px; } .billed-preview__current,.billed-preview__current textarea { text-align:left; } .billed-preview__current h2 { justify-content:flex-start; } .billed-preview .billed-preview__choices { flex-direction:column; } }
@media(max-width:1000px) { .delivery-review__address-split { grid-template-columns:1fr; gap:24px; } .delivery-review__current { padding-right:0; border-right:0; padding-bottom:16px; border-bottom:1px solid #d9e2ed; } .delivery-review__row-arrow { display:none; } .delivery-review__saved-field, .delivery-review__saved-field input[readonly] { text-align:left; } }
@media(max-width:760px) { .delivery-review { padding:16px; } .delivery-review__fields,.delivery-review__summary { grid-template-columns:1fr; } }

/* Keep the shared navigation above panels of different heights. */
.portal-enquiry-detail__body:has(> [data-amendment-workspace]),
.portal-project-order-main:has(> [data-amendment-workspace]) { align-content:start; }
[data-amendment-workspace] { min-width:0; overflow-anchor:none; }
[data-amendment-workspace] > .amendment-tabs { position:sticky; top:0; z-index:3; margin-top:0; }
#amend-panel-delivery .delivery-review__current h2,
#amend-panel-delivery .delivery-review__address-split legend { margin:0 0 12px; }
#amend-panel-delivery .delivery-review__edit-hint { margin:0 0 12px; }
