/* Nest Nero chat widget */
.nnc { --c-primary: #E0913A; --c-navy: #13324A; --c-dark: #040E13; font-family: "Mona Sans", sans-serif; }
.nnc-fab { position: fixed; right: 24px; bottom: 24px; z-index: 9990; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--c-primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(4, 14, 19, .25); transition: transform .25s, background .25s; }
.nnc-fab:hover { background: var(--c-navy); transform: translateY(-2px); }
.nnc-fab span { grid-area: 1 / 1; display: grid; transition: opacity .2s, transform .25s; }
.nnc-i-close { opacity: 0; transform: rotate(-90deg); }
.nnc.is-open .nnc-i-open { opacity: 0; transform: rotate(90deg); }
.nnc.is-open .nnc-i-close { opacity: 1; transform: none; }

.nnc-box { position: fixed; right: 24px; bottom: 96px; z-index: 9991; width: 370px; height: min(580px, calc(100vh - 130px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(4, 14, 19, .22); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .25s, transform .25s, visibility .25s; }
.nnc.is-open .nnc-box { opacity: 1; visibility: visible; transform: none; }

.nnc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--c-navy); color: #fff; }
.nnc-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.nnc-head div { flex: 1; min-width: 0; line-height: 1.3; }
.nnc-head strong { display: block; font-family: "Faculty Glyphic", serif; font-weight: 400; font-size: 17px; }
.nnc-head span { font-size: 12.5px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.nnc-head span i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; }
.nnc-x { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: grid; opacity: .8; }
.nnc-x:hover { opacity: 1; }

.nnc-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: #F6F4F1; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.nnc-msg { display: flex; flex-direction: column; max-width: 86%; }
.nnc-user { align-self: flex-end; align-items: flex-end; }
.nnc-bot { align-self: flex-start; }
.nnc-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.nnc-bot .nnc-bubble { background: #fff; color: var(--c-dark); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(4, 14, 19, .06); }
.nnc-user .nnc-bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.nnc-bubble a { color: inherit; text-decoration: underline; }

.nnc-products { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; width: 100%; }
.nnc-prod { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px; text-decoration: none; color: var(--c-dark); border: 1px solid transparent; transition: border-color .2s; }
.nnc-prod:hover { border-color: var(--c-primary); }
.nnc-prod img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #F6F4F1; flex: none; }
.nnc-prod span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.nnc-prod b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nnc-prod em { font-style: normal; color: #C1701E; font-weight: 600; margin-top: 2px; }
.nnc-prod small { color: #b3261e; font-size: 12px; }

.nnc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nnc-links a { font-size: 13px; padding: 6px 12px; border-radius: 30px; background: var(--c-navy); color: #fff; text-decoration: none; }
.nnc-links a:hover { background: var(--c-primary); }

.nnc-quick { display: flex; gap: 6px; padding: 8px 14px; background: #F6F4F1; overflow-x: auto; scrollbar-width: none; }
.nnc-quick:empty { display: none; }
.nnc-quick::-webkit-scrollbar { display: none; }
.nnc-quick button { flex: none; font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 30px; border: 1px solid var(--c-primary); background: #fff; color: #C1701E; cursor: pointer; transition: background .2s, color .2s; }
.nnc-quick button:hover { background: var(--c-primary); color: #fff; }

.nnc-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #ECE8E3; background: #fff; }
.nnc-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid #E3DED8; border-radius: 30px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--c-dark); outline: none; background: #fff; }
.nnc-form input:focus { border-color: var(--c-primary); }
.nnc-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--c-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nnc-form button:hover { background: var(--c-navy); }

.nnc-typing .nnc-bubble { display: flex; gap: 4px; padding: 14px 16px; }
.nnc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9b2aa; animation: nncDot 1.2s infinite; }
.nnc-typing i:nth-child(2) { animation-delay: .15s; }
.nnc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nncDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* keep clear of the back-to-top button if present */
body:has(.back-to-top.is-visible) .nnc-fab { bottom: 24px; }

@media (max-width: 767px) {
	.nnc-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
	.nnc-box { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
	.nnc.is-open .nnc-fab { display: none; }
	.nnc-form input { font-size: 16px; } /* no iOS zoom */
}
