/* Footer showpiece: a till printer printing a Ndovu Retail receipt (content/header.mjs, receiptShow). */
.nd-ft__show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--nd-frame); background: radial-gradient(ellipse 50% 70% at 75% 40%, rgba(11, 87, 227, 0.16), transparent 70%); }
.nd-ft__words { padding: clamp(2.5rem, 6vw, 4rem) var(--nd-pad); border-right: 1px solid var(--nd-frame); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.nd-ft__karibu {
	margin: 0 !important; font-size: clamp(3rem, 8cqi, 6.5rem) !important; font-weight: 700; line-height: 0.95 !important; letter-spacing: -0.05em;
	background: linear-gradient(180deg, #fff 20%, #6ea0ff 120%); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent;
}
.nd-ft__note { margin: 1.25rem 0 0 !important; max-width: 40ch; font-size: 0.9375rem !important; }

.nd-rc { position: relative; width: min(320px, 86%); margin: clamp(2rem, 5vw, 3.5rem) auto; font-family: var(--wp--preset--font-family--mono); }
.nd-rc__printer {
	position: relative; z-index: 2; height: 64px; border-radius: 16px 16px 10px 10px;
	background: linear-gradient(180deg, #1c1c21, #0c0c0f); border: 1px solid #2a2a31;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.nd-rc__brand { position: absolute; left: 16px; top: 14px; font-size: 0.625rem; letter-spacing: 0.18em; color: #71717a; }
.nd-rc__led { position: absolute; right: 18px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.nd-rc__slot { position: absolute; left: 7%; right: 7%; bottom: 12px; height: 6px; border-radius: 6px; background: #000; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06); }
.nd-rc__feed { position: relative; z-index: 1; margin: -15px 9% 0; overflow: hidden; padding-bottom: 14px; }
.nd-rc__paper {
	position: relative; padding: 26px 18px 22px; color: #18181b; font-size: 11px; line-height: 1.55;
	background: linear-gradient(180deg, #d9d9d4 0, #f5f5f1 18px, #f7f7f3 60%, #efefea);
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
	-webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
	mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.nd-rc__paper p { margin: 0 !important; color: #18181b !important; font-size: 11px !important; }
.nd-rc__logo { text-align: center; font-family: var(--wp--preset--font-family--inter); font-weight: 800; font-size: 17px !important; letter-spacing: 0.04em; }
.nd-rc__c { text-align: center; color: #3f3f46 !important; }
.nd-rc__c b { color: #18181b; }
.nd-rc__meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 8px; color: #3f3f46; }
.nd-rc__meta + .nd-rc__meta { margin-top: 0; }
.nd-rc hr { margin: 9px 0 !important; border: 0 !important; border-top: 1px dashed #a1a1aa !important; height: 0; background: none; }
.nd-rc__line { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px; }
.nd-rc__line span:last-child { color: #15803d; font-weight: 700; }
.nd-rc__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; }
.nd-rc__code { position: relative; margin: 10px auto 4px; width: 82%; height: 40px; }
.nd-rc__bars { display: block; width: 100%; height: 100%; fill: #18181b; }
.nd-rc__laser { position: absolute; left: -6%; right: -6%; top: 50%; height: 2px; border-radius: 2px; background: #ef4444; box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.75); opacity: 0; }
.nd-rc__num { letter-spacing: 0.2em; font-size: 9.5px !important; }

/* Printing: the paper feeds out of the slot in steps, then the scanner sweeps the barcode. */
.nd-motion .nd-rc__paper { transform: translateY(-101%); }
.nd-motion .nd-rc.is-printing .nd-rc__paper { animation: nd-rc-print 2.4s steps(22, end) 0.2s forwards; }
.nd-motion .nd-rc.is-printing .nd-rc__led { animation: nd-rc-led 0.25s steps(1) 0.2s 10; }
.nd-motion .nd-rc.is-printing .nd-rc__laser { animation: nd-rc-scan 2.2s ease-in-out 3s infinite; }
@keyframes nd-rc-print { to { transform: translateY(0); } }
@keyframes nd-rc-led { 50% { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; } }
@keyframes nd-rc-scan { 0% { top: 8%; opacity: 0; } 12% { opacity: 1; } 50% { top: 92%; opacity: 1; } 88% { opacity: 1; } 100% { top: 8%; opacity: 0; } }

@media (max-width: 760px) {
	.nd-ft__show { grid-template-columns: minmax(0, 1fr); }
	.nd-ft__words { border-right: 0; border-bottom: 1px solid var(--nd-frame); }
	.nd-ft__karibu { font-size: clamp(2.75rem, 15cqi, 4rem) !important; }
}

/* ---------- Phone drawer fixes ---------- */
/* Book a demo stays in the header; the drawer only offers Sign in, at the bottom. */
.nd-dr__actions--bottom { grid-template-columns: 1fr; margin: 0.4rem 0 0; }
/* Never show the phone drawer on wide screens (e.g. after rotating or resizing with it open). */
@media (min-width: 961px) { .nd-drawer { display: none !important; } }
@media (max-width: 600px) {
	.nd-mm__actions { gap: 0.5rem; }
	.nd-mm__actions .nd-mm__cta { padding: 0.45rem 0.75rem; font-size: 0.8125rem; }
	.nd-mm__burger { width: 38px; height: 38px; }
	.nd-mm__burger span { left: 10px; right: 10px; }
	.nd-mm__burger span:first-child { top: 14px; }
	.nd-mm__burger span:last-child { top: 22px; }
	.nd-mm__burger[aria-expanded="true"] span:first-child, .nd-mm__burger[aria-expanded="true"] span:last-child { top: 18px; }
}

/* Narrow phones: keep each receipt line on one line. */
.nd-rc__meta span { white-space: nowrap; }
@media (max-width: 480px) { .nd-rc__paper { padding-inline: 12px; } .nd-rc__paper, .nd-rc__paper p { font-size: 10px !important; } .nd-rc__feed { margin-inline: 6%; } }
