.nd-assistant {--nd-red:#8f2422;--nd-ink:#252a30;--nd-line:#e1ddda;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--nd-ink);font-size:15px;line-height:1.5;position:relative;z-index:99980}
.nd-assistant * {box-sizing:border-box}
.nd-assistant [hidden] {display:none!important}
.nd-assistant button,.nd-assistant input,.nd-assistant select,.nd-assistant textarea {font:inherit;letter-spacing:normal;text-transform:none}
.nd-assistant button {cursor:pointer;min-height:36px;border:1px solid var(--nd-line);border-radius:7px;padding:8px 12px;background:#24545a;color:#fff;line-height:1.3;box-shadow:none;border-color:#24545a}
.nd-assistant button:hover:not(:disabled) {filter:brightness(.92)}
.nd-assistant button:disabled {opacity:.55;cursor:default}
.nd-assistant button:focus-visible,.nd-assistant input:focus-visible,.nd-assistant select:focus-visible,.nd-assistant textarea:focus-visible,.nd-assistant a:focus-visible {outline:3px solid #bb6860;outline-offset:2px}
.nd-assistant .nd-assistant__launcher {position:fixed;right:24px;bottom:14px;border:0;border-radius:999px;padding:11px 18px;background:var(--nd-red);color:#fff;font-weight:650;box-shadow:0 6px 24px #3512102b;display:flex;gap:10px;align-items:center;min-height:46px}
.nd-assistant__launcher span {font-size:23px}
.nd-assistant__panel {position:fixed;right:24px;bottom:72px;width:430px;max-width:calc(100vw - 32px);height:min(810px,calc(100dvh - 88px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6ceca;border-radius:16px;background:#fff;box-shadow:0 18px 65px #28121135;text-align:left}
.nd-assistant__header {display:flex;align-items:center;gap:11px;background:linear-gradient(125deg,#72201e,#a6362d);padding:11px 14px;color:#fff;flex-shrink:0}
.nd-assistant .nd-assistant__header h2 {font-size:18px;font-weight:700;line-height:1.25;color:#fff;margin:0 0 3px;letter-spacing:-.2px}
.nd-assistant .nd-assistant__header p {font-size:12px;color:#f7dfd9;margin:0;line-height:1.4}
.nd-assistant__avatar {width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#ffffff18;display:grid;place-items:center}
.nd-assistant__avatar img {max-width:30px;max-height:30px;object-fit:contain}
.nd-assistant .nd-assistant__close {margin-left:auto;align-self:flex-start;font-size:26px;line-height:1;min-height:30px;padding:0 6px;color:#fff;border:0;background:transparent}
.nd-assistant__tabs {display:flex;gap:6px;padding:6px 12px;border-bottom:1px solid var(--nd-line);background:#fff;flex-shrink:0}
.nd-assistant__tabs button {flex:1;font-size:13px;font-weight:650;border-color:#c6deda;background:#dcece8;color:#204b4d}
.nd-assistant__tabs button[aria-pressed=true] {background:var(--nd-red);border-color:var(--nd-red);color:#fff}
.nd-assistant__tabs span {display:inline-block;min-width:19px;padding:0 5px;border-radius:10px;background:#eadbd7;color:#692b25;margin-left:3px}
.nd-assistant__chat {display:flex;flex:1;flex-direction:column;min-height:0}
.nd-assistant__messages {flex:1;overflow:auto;overscroll-behavior:contain;min-height:120px;padding:12px 14px;background:#faf8f6;scroll-behavior:auto}
.nd-assistant__bubble {white-space:pre-wrap;background:#fff;border:1px solid #e9e3df;border-radius:11px 11px 11px 2px;padding:12px;margin:0 22px 12px 0;font-size:14px;overflow-wrap:anywhere}
.nd-assistant__bubble--customer {background:#8f2422;color:#fff;border-color:#8f2422;margin:0 0 12px 36px;border-radius:11px 11px 2px 11px}
.nd-assistant a {color:#8f2422;text-decoration:underline;font-size:13px}
.nd-assistant__bubble a {display:block;margin-top:8px}
.nd-assistant__message-form {display:flex;gap:7px;padding:8px 12px 3px;margin:0}
.nd-assistant input,.nd-assistant select,.nd-assistant textarea {width:100%;max-width:100%;min-width:0;border:1px solid #d8d3d0;border-radius:6px;padding:9px 10px;background:#fff;color:#252a30;line-height:1.4;box-shadow:none;height:auto}
.nd-assistant__message-form input {font-size:13px}
.nd-assistant .nd-assistant__message-form button {background:var(--nd-red);color:#fff;flex:0 0 39px;border:0}
.nd-assistant .nd-assistant__footnote {font-size:11px;color:#766d68;line-height:1.5;padding:5px 14px 10px;margin:0}
.nd-assistant__product {display:flex;gap:11px;border:1px solid var(--nd-line);background:#fff;border-radius:10px;padding:11px;margin:0 0 10px;overflow:hidden}
.nd-assistant__product>img {width:78px;height:90px;object-fit:contain;background:#fff;flex:0 0 78px;border-radius:5px}
.nd-assistant__product>div {min-width:0;flex:1}
.nd-assistant h3 {font-size:15px;line-height:1.4;margin:0 0 5px;color:#252a30;letter-spacing:0}
.nd-assistant__product p {font-size:12px;color:#655e59;margin:0 0 6px;line-height:1.5}
.nd-assistant__product button {display:block;font-size:12px;color:#fff;background:var(--nd-red);border-color:var(--nd-red);font-weight:650;min-height:30px;margin-top:7px;padding:5px 9px}
.nd-assistant__quote,.nd-assistant__review {overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:16px}
.nd-assistant__quote>p,.nd-assistant__review p {font-size:13px;line-height:1.6;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.nd-assistant__line {border:1px solid var(--nd-line);border-radius:9px;padding:12px;margin-bottom:14px;background:#faf8f6}
.nd-assistant__fields {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nd-assistant label {display:block;font-size:12px;font-weight:600;color:#514a46;margin:0 0 10px}
.nd-assistant label input,.nd-assistant label select,.nd-assistant label textarea {display:block;font-size:13px;margin-top:4px;font-weight:400}
.nd-assistant textarea {resize:vertical}
.nd-assistant .nd-assistant__remove {font-size:12px;padding:4px 8px;min-height:27px;color:#7d2220;background:#f6deda;border-color:#e7bdb6}
.nd-assistant .nd-assistant__primary {background:var(--nd-red);color:#fff;border-color:var(--nd-red);font-weight:650;font-size:13px}
.nd-assistant__quote-form>.nd-assistant__primary {width:100%}
.nd-assistant .nd-assistant__privacy {font-size:11px;color:#766d68;line-height:1.6}
.nd-assistant__review-line {border-bottom:1px solid var(--nd-line);padding:10px 0}
.nd-assistant__review-line strong {font-size:14px}
.nd-assistant__review-line p {margin:5px 0;font-size:13px}
.nd-assistant__review .nd-assistant__total {margin:12px 0;font-weight:700}
.nd-assistant label.nd-assistant__confirm {display:flex;gap:9px;margin:16px 0;font-size:13px;font-weight:400;align-items:flex-start}
.nd-assistant label.nd-assistant__confirm input {width:17px;height:17px;flex:0 0 17px;margin:2px 0;appearance:auto}
.nd-assistant__review-actions {display:flex;gap:8px;flex-wrap:wrap}
.nd-assistant .nd-assistant__status {flex-shrink:0;font-size:12px;line-height:1.5;margin:0;padding:0 14px;max-height:46px;overflow:auto;background:#fff;overflow-wrap:anywhere}
.nd-assistant__status:not(:empty) {padding:5px 14px;border-top:1px solid var(--nd-line)}
.nd-assistant__sr,.nd-assistant__trap {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@media(max-width:480px) {.nd-assistant__panel {right:10px;bottom:78px;width:calc(100vw - 20px);max-width:none;height:min(810px,calc(100dvh - 92px));border-radius:12px}.nd-assistant .nd-assistant__launcher {right:12px;bottom:14px;min-height:46px;padding:11px 18px;font-size:14px}.nd-assistant__header {padding:13px 12px;gap:8px}.nd-assistant .nd-assistant__header h2 {font-size:17px}.nd-assistant__fields {gap:8px}.nd-assistant__quote,.nd-assistant__review {padding:12px}}
@media(prefers-reduced-motion:reduce) {.nd-assistant * {scroll-behavior:auto!important}}
.nd-assistant__product h3 {overflow-wrap:anywhere}
@media(max-width:480px) {.nd-assistant input,.nd-assistant select,.nd-assistant textarea,.nd-assistant__message-form input {font-size:17px}}
.nd-assistant__feedback {display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:10px;white-space:normal}
.nd-assistant__feedback span {font-size:11px;color:#70655f}
.nd-assistant__feedback button {font-size:11px;min-height:28px;padding:4px 9px;border-radius:20px}
.nd-assistant .nd-assistant__share {display:flex;align-items:center;gap:7px;margin:0 0 4px;font-weight:400;font-size:11px}
.nd-assistant .nd-assistant__share input {width:14px;height:14px;flex:0 0 14px;margin:0;appearance:auto}

.nd-assistant .nd-assistant__new-chat {align-self:stretch;flex:0 0 auto;background:#435364;color:#fff;border-color:#435364;padding:6px 10px;font-size:12px;text-decoration:none;min-height:32px}

/* Guided browsing and product configurations. Existing chat and explicit send flow remain. */
.nd-assistant__panel {width:75vw;max-width:calc(100vw - 32px)}
.nd-guide {flex:0 1 auto;max-height:32%;overflow:auto;padding:7px 14px;border-bottom:1px solid var(--nd-line);background:#faf8f6}
.nd-guide summary {font-size:15px;font-weight:650;cursor:pointer;color:var(--nd-red)}
.nd-guide__body {padding-top:6px}
.nd-guide p,.nd-configurator p {font-size:13px;line-height:1.6}
.nd-guide__options {display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.nd-guide__options button {font-size:13px;border-radius:9px;padding:7px 11px}
.nd-guide form {display:flex;gap:8px;margin:12px 0 4px}
.nd-guide form input {flex:1}.nd-guide form button{flex-shrink:0}
.nd-configurator {flex:1;min-height:0;overflow:auto;padding:20px;overscroll-behavior:contain}
.nd-configurator__heading {display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.nd-configurator__layout {display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.6fr);gap:24px}
.nd-configurator__layout>div {min-width:0}
.nd-configurator__layout>div>img {max-width:100%;max-height:270px;object-fit:contain;display:block;margin:auto}
.nd-configurator__layout strong {display:block;color:var(--nd-red);margin:10px 0}
.nd-configurator__sizes {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(54px,1fr);gap:8px;margin-top:4px;overflow-x:auto;padding:6px}
.nd-configurator__sizes>label {min-width:0}
.nd-configurator__sizes input[type=number] {appearance:textfield;-moz-appearance:textfield;min-width:0}
.nd-configurator__sizes input[type=number]::-webkit-inner-spin-button,
.nd-configurator__sizes input[type=number]::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}
.nd-configurator__mockups {display:flex;justify-content:center;gap:12px;margin:12px 0}
.nd-configurator__mockups figure {margin:0;flex:1;max-width:240px;min-width:0;text-align:center}
.nd-configurator__mockups svg {display:block;width:100%;max-height:240px}
.nd-configurator__mockups figcaption {font-size:12px;color:#655e59}
.nd-assistant__bubble .nd-configurator__mockups {white-space:normal}
.nd-configurator__location {border:1px solid var(--nd-line);border-radius:8px;padding:10px;margin:8px 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.nd-configurator__location>label {flex:1;min-width:100px;margin:0}
.nd-configurator__location>label:has(input[type=checkbox]) {display:flex;align-items:center;gap:8px;font-size:14px}
.nd-configurator__location input[type=checkbox] {width:17px;height:17px;appearance:auto;flex:0 0 17px;margin:0}
.nd-configurator__location:has(input:disabled) {background:#f5f2ef}
.nd-configurator__price {padding:14px;border-radius:8px;background:#f7f2ee;font-weight:600}
.nd-assistant__line>button {margin:4px 6px 0 0;font-size:13px}
@media(max-width:800px){.nd-assistant__panel{right:12px;width:calc(100vw - 24px);max-width:none}.nd-configurator__layout{grid-template-columns:1fr}.nd-configurator__layout>div>img{max-height:150px}.nd-guide{max-height:32%}.nd-configurator{padding:12px}}
@media(max-width:480px){.nd-assistant__panel{right:10px;width:calc(100vw - 20px)}.nd-guide form{flex-wrap:wrap}.nd-guide form input{flex-basis:100%}.nd-guide__options button{font-size:13px}.nd-configurator__heading{align-items:flex-start;flex-direction:column}}
.nd-configurator__mockups:has(figure:nth-child(3)) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

/* Compact controls reserve the panel for conversation. */
.nd-guide p {margin:5px 0;font-size:12px;line-height:1.4}
.nd-guide__body>button {padding:5px 9px;min-height:30px;background:#435364;border-color:#435364;color:#fff}
.nd-assistant .nd-assistant__footnote {display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;padding:5px 14px 7px;font-size:11px}
.nd-assistant .nd-assistant__share {margin:0;flex:1 1 auto}
.nd-assistant__retention {flex:0 1 auto;max-width:100%}
.nd-assistant__retention summary {cursor:pointer;color:#5c4540;font-size:11px;white-space:nowrap}
.nd-assistant__retention[open] {flex-basis:100%}
.nd-assistant__retention p {margin:5px 0;line-height:1.4}
.admin-bar .nd-assistant__panel {max-height:calc(100dvh - 112px)}
@media(max-width:782px){.admin-bar .nd-assistant__panel{max-height:calc(100dvh - 132px)}}
@media(max-width:480px){.nd-assistant__tabs{padding:5px 9px;gap:5px}.nd-assistant__tabs button{padding:6px 8px;min-height:32px;font-size:12px}.nd-assistant__messages{min-height:100px}.nd-assistant__header{padding:10px 12px}.nd-assistant .nd-assistant__footnote{gap:4px}.nd-guide{padding:6px 10px}}

/* Keep the whole product visible and the location choices ahead of artwork. */
.nd-assistant .nd-configurator__product-preview {margin:0 0 12px;width:100%;min-width:0;text-align:center}
.nd-assistant .nd-configurator__product-preview img {display:block;width:100%;height:220px;max-width:100%;object-fit:contain;object-position:center;margin:0 auto;background:#fff}
.nd-assistant .nd-configurator__product-preview figcaption {font-size:12px;line-height:1.4;margin-top:6px;color:#655e59}
.nd-assistant .nd-configurator h4 {font-size:15px;line-height:1.4;margin:12px 0 6px}
.nd-assistant .nd-configurator__locations {padding:10px 12px;border:1px solid #c6deda;border-radius:9px;background:#f1f7f5;margin:10px 0}
.nd-assistant .nd-configurator__locations h4 {margin-top:0}
.nd-assistant .nd-configurator__mockups svg {max-height:140px}
.nd-assistant .nd-configurator__mockups figure {max-width:160px}
.nd-assistant .nd-configurator__layout {grid-template-columns:minmax(150px,.65fr) minmax(0,1.6fr);gap:18px}
@media(max-width:800px){.nd-assistant .nd-configurator__layout{grid-template-columns:1fr}.nd-assistant .nd-configurator__product-preview img{height:160px}}

/* Customer estimate review: readable document hierarchy and explicit pending totals. */
.nd-assistant [data-review-details]{background:#fff;border:1px solid var(--nd-line);border-radius:12px;padding:22px;margin:12px 0 18px}
.nd-assistant .nd-estimate__header{display:flex;gap:18px;align-items:center;justify-content:space-between;border-bottom:3px solid var(--nd-red);padding-bottom:18px;margin-bottom:18px}
.nd-assistant .nd-estimate__header>div:first-child{flex:1}
.nd-assistant .nd-estimate__brand{display:block;font-size:31px;font-style:italic;color:var(--nd-red);line-height:1.1;letter-spacing:-1px}
.nd-assistant .nd-estimate__header span:not(.nd-estimate__badge){font-size:12px;color:#655e59}
.nd-assistant .nd-estimate__header p{margin:5px 0 0;font-size:12px}
.nd-assistant .nd-estimate__badge{display:inline-block;border-radius:4px;background:#e1efeb;color:#24545a;font-size:11px;letter-spacing:.8px;padding:5px 8px;font-weight:700}
.nd-assistant .nd-estimate__parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.nd-assistant [data-review-details] h4{font-size:14px;margin:0 0 6px;line-height:1.4;color:#252a30}
.nd-assistant [data-review-details] p{margin:3px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.nd-assistant .nd-estimate__parties h4{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:#655e59}
.nd-assistant .nd-estimate__item{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr) minmax(180px,.55fr);gap:18px;padding:16px 0;border-top:1px solid var(--nd-line)}
.nd-assistant .nd-estimate__amounts{display:grid;grid-template-columns:1fr auto;gap:4px 14px;margin:0;font-size:13px;align-content:start}
.nd-assistant .nd-estimate__amounts dt{color:#655e59}.nd-assistant .nd-estimate__amounts dd{margin:0;text-align:right;font-weight:650}
.nd-assistant .nd-estimate__pending{grid-column:1/-1;background:#fff3df;padding:8px;color:#694517;border-radius:5px}
.nd-assistant .nd-estimate__bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.65fr);gap:28px;border-top:1px solid var(--nd-line);padding-top:18px;margin-top:6px}
.nd-assistant .nd-estimate__totals{margin:0;background:#f5f7f6;padding:14px;border-radius:8px;font-size:13px}
.nd-assistant .nd-estimate__totals>div{display:flex;gap:12px;justify-content:space-between;margin:0 0 9px}.nd-assistant .nd-estimate__totals dd{margin:0;text-align:right;font-weight:650}
.nd-assistant .nd-estimate__totals .nd-estimate__grand{border-top:1px solid #c9d9d4;padding-top:12px;margin:12px 0 0;font-size:17px;color:#204b4d;font-weight:750}
.nd-assistant .nd-estimate__footer{border-top:1px solid var(--nd-line);margin-top:18px!important;padding-top:10px;color:#655e59;font-size:11px!important}
@media(max-width:800px){.nd-assistant .nd-estimate__bottom{grid-template-columns:1fr}.nd-assistant .nd-estimate__item{grid-template-columns:1fr}.nd-assistant .nd-estimate__amounts{max-width:300px}}
@media(max-width:480px){.nd-assistant [data-review-details]{padding:14px}.nd-assistant .nd-estimate__header{flex-wrap:wrap;gap:12px}.nd-assistant .nd-estimate__header button{width:100%}.nd-assistant .nd-estimate__parties{grid-template-columns:1fr;gap:14px}}

/* Product photo and selected imprint views beside estimate details. */
.nd-assistant .nd-estimate__media{grid-row:span 2;min-width:0;align-self:start}
.nd-assistant .nd-estimate__photo{margin:0 0 12px;text-align:center}
.nd-assistant .nd-estimate__photo img{display:block;width:100%;height:170px;object-fit:contain;background:#fff;border:1px solid var(--nd-line);border-radius:8px}
.nd-assistant .nd-estimate__photo figcaption,.nd-assistant .nd-estimate__placement small{display:block;margin-top:5px;font-size:11px;color:#655e59;text-align:center}
.nd-assistant .nd-estimate__placement{padding:8px;border:1px solid var(--nd-line);border-radius:8px;background:#fafbf9}
.nd-assistant .nd-estimate__placement>strong{display:block;font-size:11px;color:#24545a;text-align:center}
.nd-assistant .nd-estimate__placement .nd-configurator__mockups{display:grid;grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:6px;margin:6px 0}
.nd-assistant .nd-estimate__placement figure{margin:0;min-width:0;max-width:none}
.nd-assistant .nd-estimate__placement svg{display:block;width:100%;max-height:130px}
.nd-assistant .nd-estimate__placement figcaption{font-size:10px;line-height:1.3;overflow-wrap:anywhere;text-align:center}
@media(max-width:800px){.nd-assistant .nd-estimate__item{grid-template-columns:minmax(105px,.42fr) minmax(0,1fr);gap:12px}.nd-assistant .nd-estimate__amounts{grid-column:2}.nd-assistant .nd-estimate__media{grid-column:1;grid-row:span 2}.nd-assistant .nd-estimate__photo img{height:140px}}
@media(max-width:480px){.nd-assistant .nd-estimate__item{grid-template-columns:95px minmax(0,1fr);gap:10px}.nd-assistant .nd-estimate__photo img{height:110px}.nd-assistant .nd-estimate__placement{padding:5px}.nd-assistant .nd-estimate__placement svg{max-height:110px}.nd-assistant .nd-estimate__amounts{gap:4px 7px;font-size:12px}}
