/* Cooriya Courier — tracking, pre-alert, signup. Bold + dynamic, matching
   the Cooriya Rebuild style. Uses the site's --cr-* variables with fallbacks. */

/* --- shared feedback boxes --- */
.crc-error,
.crc-success {
	border-radius: 12px;
	padding: 16px 18px;
	margin: 16px 0 0;
	font-size: 1rem;
	line-height: 1.5;
}
.crc-error {
	background: #fdecec;
	border: 2px solid #e05252;
	color: #7a1d1d;
}
.crc-success {
	background: #eef7ee;
	border: 2px solid var(--cr-green, #0c3b2e);
	color: var(--cr-green, #0c3b2e);
}
.crc-success a,
.crc-error a {
	font-weight: 800;
	text-decoration: underline;
	color: inherit;
}
.crc-sync-note {
	font-weight: 700;
	margin: 12px 0 0;
}
.crc-form-hint {
	margin: 10px 0 0;
	font-size: .95rem;
	font-weight: 600;
	color: #374151;
}
.crc-track-box {
	margin-top: 24px;
}
.crc-prealert-form,
.crc-signup-form {
	margin-top: 24px;
}

/* --- tracking result --- */
.crc-result-card {
	margin-top: 20px;
	border: 2px solid var(--cr-green, #0c3b2e);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}
.crc-result-head {
	background: var(--cr-green, #0c3b2e);
	color: #fff;
	padding: 18px 20px;
}
.crc-result-head .crc-result-status {
	display: inline-block;
	font-family: var(--cr-font, 'Archivo', sans-serif);
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.crc-result-head .crc-result-no {
	display: block;
	margin-top: 6px;
	font-size: .9rem;
	opacity: .85;
	word-break: break-all;
}
.crc-result-body {
	padding: 18px 20px;
}
.crc-result-desc {
	font-size: 1.05rem;
	margin: 0 0 12px;
}
.crc-result-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: .95rem;
	color: #374151;
}
.crc-result-meta li {
	background: var(--cr-light, #f4f1ea);
	border-radius: 8px;
	padding: 8px 12px;
}
.crc-result-meta strong {
	color: var(--cr-green, #0c3b2e);
}

/* --- status timeline --- */
.crc-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}
.crc-timeline li {
	position: relative;
	padding: 0 0 18px 34px;
	border-left: 3px solid #e5e7eb;
	margin-left: 9px;
}
.crc-timeline li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}
.crc-timeline .crc-dot {
	position: absolute;
	left: -10px;
	top: 2px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #d1d5db;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #e5e7eb;
}
.crc-timeline li.crc-done {
	border-left-color: var(--cr-gold, #f2b01e);
}
.crc-timeline li.crc-done .crc-dot {
	background: var(--cr-gold, #f2b01e);
	box-shadow: 0 0 0 2px var(--cr-gold, #f2b01e);
}
.crc-timeline li.crc-current .crc-dot {
	background: var(--cr-green, #0c3b2e);
	box-shadow: 0 0 0 2px var(--cr-green, #0c3b2e);
}
.crc-timeline .crc-step-label {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--cr-green, #0c3b2e);
}
.crc-timeline li.crc-upcoming .crc-step-label {
	color: #374151;
	font-weight: 700;
}
.crc-timeline .crc-step-date {
	display: block;
	font-size: .9rem;
	font-weight: 600;
	color: #4b5563;
	margin-top: 2px;
}
.crc-timeline li.crc-current .crc-step-date {
	color: var(--cr-green, #0c3b2e);
	font-weight: 800;
}

/* --- signup success: mailbox + addresses --- */
.crc-mailbox {
	text-align: center;
	margin: 4px 0 16px;
}
.crc-mailbox .crc-mailbox-code {
	font-family: var(--cr-font, 'Archivo', sans-serif);
	font-weight: 900;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--cr-green, #0c3b2e);
	letter-spacing: .02em;
}
.crc-mailbox .crc-mailbox-note {
	display: block;
	margin-top: 6px;
	font-size: .95rem;
	color: #374151;
}
.crc-address-grid {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}
@media (min-width: 640px) {
	.crc-address-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.crc-address {
	background: var(--cr-light, #f4f1ea);
	border: 2px solid var(--cr-green, #0c3b2e);
	border-radius: 12px;
	padding: 14px 16px;
}
.crc-address h4 {
	margin: 0 0 8px;
	font-family: var(--cr-font, 'Archivo', sans-serif);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--cr-green, #0c3b2e);
}
.crc-address address {
	font-style: normal;
	line-height: 1.55;
	font-size: .98rem;
}
.crc-copy-address { margin-top: 12px; padding: 9px 16px; min-height: 42px; font-size: .92rem; }
.crc-address .crc-addr2 {
	font-weight: 800;
	color: var(--cr-green, #0c3b2e);
}

/* --- busy state --- */
.crc-busy {
	opacity: .6;
	pointer-events: none;
}

/* --- quote + Shop For Me (phase 2) --- */
.crc-quote-box,
.crc-order-box {
	margin-top: 24px;
}
.crc-detected {
	margin-top: 16px;
	border: 2px solid var(--cr-gold, #f2b01e);
	background: #fffbeb;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.55;
	color: #1f2937;
}
.crc-detected strong {
	color: var(--cr-green, #0c3b2e);
}
#crc-shop-manual-form {
	margin-top: 16px;
}
.crc-breakdown {
	margin-top: 20px;
	border: 2px solid var(--cr-green, #0c3b2e);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}
.crc-breakdown-head {
	background: var(--cr-green, #0c3b2e);
	color: #fff;
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 16px;
	flex-wrap: wrap;
}
.crc-breakdown-head > span:first-child {
	font-weight: 800;
	font-size: 1.05rem;
}
.crc-breakdown-total {
	font-family: var(--cr-font, 'Archivo', sans-serif);
	font-weight: 900;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--cr-gold, #f2b01e);
}
.crc-breakdown-body {
	padding: 18px 20px;
}
.crc-brow {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}
.crc-brow:last-of-type {
	border-bottom: 0;
}
.crc-brow strong {
	color: var(--cr-green, #0c3b2e);
}
.crc-brow-discount strong {
	color: #15803d;
}
.crc-brow-total {
	font-size: 1.15rem;
}
.crc-locked {
	margin: 14px 0 0;
	font-weight: 800;
	color: var(--cr-green, #0c3b2e);
}
.crc-delivery,
.crc-sea-hint {
	margin: 8px 0 0;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.55;
	color: #374151;
}
.crc-sea-hint a {
	font-weight: 800;
	color: var(--cr-green, #0c3b2e);
}

/* --- duty lines + pay toggle (phase 2b) --- */
.crc-duty-lines {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 0 12px;
	border-left: 3px solid var(--cr-gold, #f2b01e);
}
.crc-duty-lines li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: .92rem;
	font-weight: 600;
	color: #374151;
}
.crc-duty-lines li strong,
.crc-duty-lines li span:last-child {
	color: var(--cr-green, #0c3b2e);
}
.crc-duty-note {
	margin: 8px 0 0;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.5;
	color: #374151;
}
.crc-pay-toggle {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}
@media (min-width: 640px) {
	.crc-pay-toggle {
		grid-template-columns: 1fr 1fr;
	}
}
.crc-pay-btn {
	border: 2px solid var(--cr-green, #0c3b2e);
	border-radius: 12px;
	background: #fff;
	color: var(--cr-green, #0c3b2e);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	padding: 12px 14px;
	cursor: pointer;
	text-align: center;
}
.crc-pay-btn span {
	display: block;
	font-size: .88rem;
	font-weight: 600;
}
.crc-pay-btn.crc-pay-active {
	background: var(--cr-green, #0c3b2e);
	color: #fff;
}
.crc-pay-btn.crc-pay-active strong {
	color: var(--cr-gold, #f2b01e);
}

/* v1.9.0 — customer barcode scan + review queue */
#crc-scan-reader { max-width: 420px; margin: 12px 0; }
#crc-scan-reader video { border-radius: 8px; }
.crc-review-item { border: 2px solid var(--cr-gold, #f2b01e); border-radius: 10px; padding: 14px 16px; margin: 12px 0; background: #fff; }
.crc-review-item p { margin: 6px 0; }
.crc-track-queue { margin-top: 12px; }
.crc-track-queue label { display: block; margin: 8px 0; }

/* --- live carrier updates (v1.14.0) --- */
.crc-carrier {
	margin-top: 22px;
	border-top: 2px solid #e5e7eb;
	padding-top: 16px;
}
.crc-carrier h3 {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--cr-green, #0c3b2e);
	margin: 0 0 6px;
}
.crc-carrier-status {
	font-size: .95rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 10px;
}
.crc-carrier-events {
	list-style: none;
	margin: 0;
	padding: 0;
}
.crc-carrier-events li {
	padding: 9px 0;
	border-bottom: 1px solid #eef0f2;
	font-weight: 600;
	color: #374151;
}
.crc-carrier-events li:last-child {
	border-bottom: 0;
}
.crc-carrier-time {
	display: block;
	font-size: .85rem;
	color: #6b7280;
	font-weight: 700;
}
.crc-carrier-loc {
	color: #6b7280;
}
.crc-carrier-note {
	font-size: .92rem;
	font-weight: 600;
	color: #4b5563;
	margin: 12px 0 0;
}
/* --- product lookup note + suggested coupon (v1.14.1) --- */
.crc-lookup-note {
	display: block;
	margin: 2px 0 12px;
	font-size: .92rem;
	font-weight: 700;
	color: var(--cr-green, #0c3b2e);
}
.crc-coupon-suggest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	margin-top: 14px;
	padding: 12px 14px;
	border: 2px solid var(--cr-gold, #f2b01e);
	border-radius: 12px;
	background: #fff8e1;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	color: #1f2937;
}
.crc-coupon-suggest .crc-use-coupon {
	white-space: nowrap;
}
.crc-coupon-suggest .crc-copy-coupon {
	white-space: nowrap;
}
/* --- brand line under the quote total (v1.14.2) --- */
.crc-ship-done {
	margin: 8px 0 0;
	font-weight: 800;
	color: var(--cr-green, #0c3b2e);
}
/* --- product lookup autocomplete + USD total (v1.14.3) --- */
.crc-lookup-list {
	position: absolute;
	pointer-events: none; /* taps fall through to the control underneath, except on a suggestion */
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 4px;
	background: #fff;
	border: 2px solid var(--cr-green, #0c3b2e);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(12, 59, 46, .22);
	z-index: 60;
	max-height: 260px;
	overflow: auto;
}
.crc-lookup-item {
	pointer-events: auto;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	padding: 11px 14px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
}
.crc-lookup-item:last-child { border-bottom: 0; }
.crc-lookup-item:hover,
.crc-lookup-item.crc-lookup-active { background: #fff8e1; }
.crc-lookup-cat {
	color: var(--cr-green, #0c3b2e);
	font-size: .88rem;
	white-space: nowrap;
}
.crc-total-usd {
	font-size: .9rem;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}
/* --- Pay now auth panel (v1.14.7) --- */
.crc-view-product { margin-top: 16px; }
.crc-continue-pay { margin-top: 10px; }
.crc-auth-panel { margin-top: 16px; border: 2px solid var(--cr-green, #0c3b2e); border-radius: 14px; padding: 16px; background: #f6f9f7; }
.crc-auth-panel p { margin: 0 0 12px; }
.crc-auth-panel label { display: grid; gap: 6px; font-weight: 700; margin-bottom: 10px; }
.crc-auth-panel .crc-auth-error { color: #b91c1c; font-weight: 700; margin: 0 0 10px; }
.crc-auth-links { margin: 12px 0 0 !important; font-size: .95rem; }
.crc-auth-guest { background: none; border: 0; color: var(--cr-green, #0c3b2e); font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; font-size: .95rem; }

/* --- Customer dashboard (v1.15.0) --- */
.crc-dash-welcome { background: var(--cr-green, #0c3b2e); color: #fff; border-radius: 16px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.crc-dash-welcome h2 { margin: 0; font-family: var(--cr-font, 'Archivo', sans-serif); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; letter-spacing: .02em; color: #fff; }
.crc-dash-welcome p { margin: 6px 0 0; color: var(--cr-gold, #f2b01e); font-weight: 700; }
.crc-dash-mailbox { text-align: right; }
.crc-dash-mailbox span { display: block; font-size: .85rem; opacity: .85; }
.crc-dash-mailbox strong { font-family: var(--cr-font, 'Archivo', sans-serif); font-weight: 900; font-size: 1.4rem; color: var(--cr-gold, #f2b01e); letter-spacing: .03em; }
.crc-dash-signout { margin: 10px 0 0; text-align: right; }
.crc-dash-signout button { background: none; border: 0; color: var(--cr-green, #0c3b2e); font-weight: 800; cursor: pointer; text-decoration: underline; font: inherit; }

/* v1.27.0 — wayfinding strip on the customer dashboard (JS-rendered,
   signed-in only) + hide the theme's own page-title block on the two
   dashboard pages (2966 customer, 3016 admin): each dashboard brings
   its own hero title, and the theme breadcrumb is replaced by the
   strip above. */
body.page-id-2966 #pagetitle,
body.page-id-3016 #pagetitle { display: none; }
.crc-dash-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #fff; border: 2px solid #0c3b2e; border-radius: 999px; padding: 8px 16px; margin: 0 0 16px; font-weight: 800; }
.crc-dash-nav a { color: #0c3b2e; text-decoration: none; padding: 6px 4px; }
.crc-dash-nav a:hover, .crc-dash-nav a:focus { text-decoration: underline; }
.crc-dash-nav strong { background: #0c3b2e; color: #ffc93a; border-radius: 999px; padding: 6px 12px; }
.crc-dash-nav span[aria-hidden="true"] { color: #0c3b2e; opacity: .55; }
@media (max-width: 640px) { .crc-dash-nav { border-radius: 16px; } }
.crc-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .crc-dash-stats { grid-template-columns: 1fr; } }
.crc-dash-stat { background: var(--cr-green, #0c3b2e); border-radius: 14px; padding: 16px; text-align: center; }
.crc-dash-stat-num { display: block; font-family: var(--cr-font, 'Archivo', sans-serif); font-weight: 900; font-size: 1.9rem; color: var(--cr-gold, #f2b01e); }
.crc-dash-stat-label { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: #fff; margin-top: 4px; }
.crc-dash-h { margin: 26px 0 10px; font-family: var(--cr-font, 'Archivo', sans-serif); font-weight: 900; text-transform: uppercase; color: var(--cr-green, #0c3b2e); font-size: 1.15rem; letter-spacing: .03em; }
.crc-dash-delivery { background: #f6f9f7; border: 2px solid var(--cr-green, #0c3b2e); border-radius: 12px; padding: 14px 16px; }
.crc-dash-delivery p { margin: 0 0 6px; }
.crc-dash-delivery p:last-child { margin-bottom: 0; }
.crc-dash-pkgs { display: grid; gap: 10px; }
.crc-dash-pkg { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 2px solid #e5e0d5; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
a.crc-dash-pkg:hover { border-color: var(--cr-gold, #f2b01e); }
.crc-dash-pkg-main { min-width: 0; }
.crc-dash-pkg-meta { font-size: .88rem; color: #4b5563; }
.crc-dash-chip { flex-shrink: 0; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: #eef2f0; color: var(--cr-green, #0c3b2e); border: 2px solid var(--cr-green, #0c3b2e); }
.crc-dash-chip-ready { background: var(--cr-green, #0c3b2e); color: #fff; }
.crc-dash-chip-delivered { background: var(--cr-gold, #f2b01e); border-color: var(--cr-gold, #f2b01e); color: #1a1400; }
.crc-dash-chip-pre { background: #fff; color: #6b7280; border-color: #d1d5db; }
.crc-dash-empty { background: #f6f9f7; border: 2px dashed var(--cr-green, #0c3b2e); border-radius: 12px; padding: 18px; text-align: center; font-weight: 700; color: var(--cr-green, #0c3b2e); }
.crc-dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .crc-dash-actions { grid-template-columns: 1fr; } }
/* --- Signup extras: recipient + delivery/pickup (v1.15.0) --- */
.crc-fieldset { border: 2px solid var(--cr-green, #0c3b2e); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.crc-fieldset legend { font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: var(--cr-green, #0c3b2e); padding: 0 6px; }
.crc-radio { display: flex !important; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.crc-radio input { width: auto !important; }
.crc-subbox { background: #f6f9f7; border-radius: 10px; padding: 12px; margin-top: 10px; }
.crc-pickup-note { margin: 8px 0 0; font-weight: 700; color: var(--cr-green, #0c3b2e); }

/* --- refer-a-friend + Shop For Me tax-free (v1.17.0) --- */
.crc-sfm-taxfree-note { font-weight: 800; color: var(--cr-green, #0c3b2e); margin: 0 0 14px; }
.crc-taxfree-box { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--cr-gold, #f2b01e); border-radius: 12px; background: #fff8e1; font-size: 1rem; font-weight: 600; line-height: 1.5; color: #1f2937; }
.crc-taxfree-box strong { color: var(--cr-green, #0c3b2e); }
.crc-referred-note { font-weight: 700; color: var(--cr-green, #0c3b2e); }
.crc-refer-box { background: #f6f9f7; border: 2px solid var(--cr-green, #0c3b2e); border-radius: 12px; padding: 14px 16px; }
.crc-refer-box p { margin: 0 0 10px; }
.crc-refer-box p:last-child { margin-bottom: 0; }
.crc-refer-link-row { display: flex; gap: 10px; margin-bottom: 10px; }
.crc-refer-link-row input { flex: 1; min-width: 0; font-weight: 700; }
.crc-refer-counts { font-weight: 700; }
.crc-refer-codes { margin: 0; padding-left: 18px; }
/* Loyalty progress bar (v1.21.0): gold fill on a pale track. */
.crc-loyalty-progress { background: #dfe9e2; border-radius: 999px; height: 10px; overflow: hidden; margin: 0 0 10px; }
.crc-loyalty-progress span { display: block; height: 100%; background: var(--cr-gold, #f2b01e); border-radius: 999px; }
.crc-refer-codes li { margin-bottom: 8px; font-weight: 600; }

/* v1.18.0 — Protection cover + Returns */
.crc-protect-check { display: block; font-weight: 600; margin: 12px 0 4px; }
.crc-protect-check input { margin-right: 8px; }
.crc-protected-badge { display: inline-block; background: #d4af37; color: #0c3b2e; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.crc-dash-pkg-wrap { margin-bottom: 0; }
.crc-return-btn { margin-top: 8px; }
.crc-return-form { background: #f4fbf7; border: 1px solid #cfe8d8; border-radius: 10px; padding: 12px; margin-top: 8px; }
.crc-return-form h4 { margin: 0 0 8px; }
.crc-return-form label { display: block; font-weight: 600; margin: 8px 0; }
.crc-return-form select, .crc-return-form textarea { width: 100%; margin-top: 4px; }
.crc-return-protected { color: #0c6b43; font-weight: 700; }
.crc-return-msg { font-weight: 700; }
.crc-dash-return { border: 1px solid #e3e8e4; border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fff; }

.crc-dash-local { margin-top: 8px; padding: 10px 12px; border-left: 4px solid var(--cr-gold, #f2b01e); background: #fdf6e0; border-radius: 0 8px 8px 0; font-size: 15px; }
.crc-dash-local a { font-weight: 700; color: #0c6b43; }
.crc-track-local { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--cr-gold, #f2b01e); background: #fdf6e0; border-radius: 0 8px 8px 0; font-size: 16px; }
.crc-track-local a { font-weight: 700; color: #0c6b43; }


/* --- 18. FRONT-END ADMIN DASHBOARD (v1.24.0) --- */
.crc-adm-page { max-width: 1080px; margin: 0 auto; }
.crc-adm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.crc-adm-nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 2px solid #0c3b2e; color: #0c3b2e; font-weight: 800; text-decoration: none; }
.crc-adm-nav a.on { background: #0c3b2e; color: #ffc93a; }

/* v1.27.0 — wayfinding strip on the admin dashboard (server-rendered,
   signed-in staff only). Same pill language as .crc-adm-nav. */
.crc-adm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #fff; border: 2px solid #0c3b2e; border-radius: 999px; padding: 8px 16px; margin: 0 0 16px; font-weight: 800; }
.crc-adm-crumb a { color: #0c3b2e; text-decoration: none; padding: 6px 4px; }
.crc-adm-crumb a:hover, .crc-adm-crumb a:focus { text-decoration: underline; }
.crc-adm-crumb strong { background: #0c3b2e; color: #ffc93a; border-radius: 999px; padding: 6px 12px; }
.crc-adm-crumb span[aria-hidden="true"] { color: #0c3b2e; opacity: .55; }
.crc-adm-crumb-sp { flex: 1 1 auto; }
@media (max-width: 640px) { .crc-adm-crumb { border-radius: 16px; } }
.crc-adm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 20px; }
.crc-adm-tile { display: block; background: #0c3b2e; color: #fff; border-radius: 12px; padding: 18px; text-decoration: none; border-bottom: 6px solid #ffc93a; }
.crc-adm-tile strong { display: block; font-size: 40px; line-height: 1; color: #ffc93a; }
.crc-adm-tile span { display: block; margin-top: 8px; font-weight: 700; }
.crc-adm-card { background: #fff; border: 2px solid #0c3b2e; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.crc-adm-card h2 { margin-top: 0; color: #0c3b2e; }
.crc-adm-note { color: #2e443a; font-size: 14px; }
.crc-adm-scan-input { width: min(460px, 100%); font-size: 18px; padding: 12px; border: 2px solid #0c3b2e; border-radius: 8px; }
/* v1.25.1 — explicit dark colours: the result text used to inherit its
   colour (never declared), and on David's phone it inherited white on
   the pale card. Every dashboard text element now carries its own dark
   colour, so the result cannot render white-on-white in any browser. */
.crc-adm-page{color:#14211c;}
.crc-adm-card{color:#14211c;}
.crc-adm-scan-input{color:#14211c;}
#crc-adm-result{color:#14211c;}
.crc-adm-ok{background:#e6f4ea;border:1px solid #5aa97a;padding:12px 14px;margin-top:10px;border-radius:8px;color:#14211c;font-size:18px;font-weight:700;line-height:1.5;}
.crc-adm-ok strong{color:#0c3b2e;font-weight:900;font-size:20px;}
.crc-adm-manifest{background:#fff8e1;border:1px solid #f2b01e;border-left:6px solid #f2b01e;padding:12px 14px;margin-top:10px;border-radius:8px;color:#14211c;font-size:17px;font-weight:700;line-height:1.5;}
.crc-adm-manifest strong{color:#0c3b2e;font-weight:900;}
.crc-adm-manifest a{color:#0c3b2e;font-weight:800;}
.crc-adm-history li{color:#14211c;}
/* v1.25.1 (buttons) — explicit colours on EVERY dashboard button. The
   theme colours every <button> white with a green->red gradient
   background; when that gradient fails to render (David's phone) the
   buttons are white text on the white card. These literal colours and
   backgrounds cannot fail that way. Scoped to .crc-adm-page so the
   rest of the site is untouched. */
.crc-adm-page .cr2-btn{background:#0c3b2e;background-image:none;color:#fff;border:0;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.crc-adm-page .cr2-btn:hover,.crc-adm-page .cr2-btn:focus{background:#082a20;background-image:none;color:#fff;}
.crc-adm-page .cr2-btn-gold{background:#f2b01e;background-image:none;color:#14211c;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.crc-adm-page .cr2-btn-gold:hover,.crc-adm-page .cr2-btn-gold:focus{background:#d99e06;background-image:none;color:#14211c;}
.crc-adm-page .crc-adm-x{background:none;background-image:none;color:#14211c;}
.crc-adm-page .crc-adm-x:hover,.crc-adm-page .crc-adm-x:focus{background:none;background-image:none;color:#0c3b2e;}
.crc-adm-page .crc-adm-chip{background:#fff;background-image:none;color:#0c3b2e;border:2px solid #0c3b2e;}
.crc-adm-page .crc-adm-chip:hover,.crc-adm-page .crc-adm-chip:focus{background:#e6f4ea;background-image:none;color:#0c3b2e;}
.crc-adm-page .crc-adm-chip.on{background:#0c3b2e;background-image:none;color:#ffc93a;border-color:#0c3b2e;}
.crc-adm-page button.crc-adm-cust-row{background:#f6f7f7;background-image:none;color:#14211c;}
.crc-adm-page button.crc-adm-cust-row:hover,.crc-adm-page button.crc-adm-cust-row:focus{background:#eef2ff;background-image:none;color:#14211c;}
.crc-adm-page .cr2-form input[type="submit"]{background:#0c3b2e;background-image:none;color:#fff;border:0;}
.crc-adm-page .cr2-form input[type="submit"]:hover,.crc-adm-page .cr2-form input[type="submit"]:focus{background:#082a20;background-image:none;color:#fff;}
.crc-adm-page .crc-adm-note a{color:#0c3b2e;}
.crc-adm-miss{background:#fef3c7;border:1px solid #d97706;padding:12px 14px;margin-top:10px;border-radius:8px;color:#14211c;font-size:18px;font-weight:700;line-height:1.5;}
.crc-adm-miss strong{color:#0c3b2e;font-weight:900;}
.crc-adm-err{background:#fdecea;border:1px solid #b32d2e;padding:12px 14px;margin-top:10px;border-radius:8px;color:#7a1f1f;font-size:18px;font-weight:700;line-height:1.5;}
.crc-adm-history { list-style: disc; margin-left: 20px; }
.crc-adm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100000; display: flex; justify-content: flex-end; }
.crc-adm-overlay[hidden] { display: none; }
.crc-adm-panel { background: #fff; width: min(560px, 94vw); height: 100%; overflow-y: auto; padding: 20px 22px; box-shadow: -4px 0 18px rgba(0,0,0,.25); }
.crc-adm-panel-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #ffc93a; padding-bottom: 10px; margin-bottom: 12px; }
.crc-adm-panel-head h2 { margin: 0; color: #0c3b2e; }
.crc-adm-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; }
.crc-adm-chip { margin: 0 6px 6px 0; }
.crc-adm-chip.on { background: #0c3b2e; color: #ffc93a; border-color: #0c3b2e; }
.crc-adm-cust-row { display: block; width: 100%; text-align: left; background: #f6f7f7; border: 1px solid #dcdcde; padding: 8px 10px; margin: 4px 0; cursor: pointer; }
.crc-adm-cust-row:hover { background: #eef2ff; }
.crc-adm-table { width: 100%; border-collapse: collapse; }
.crc-adm-table th, .crc-adm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #dcdcde; }
.crc-adm-table th { color: #0c3b2e; }
.crc-adm-denied { background: #fdecea; border: 2px solid #b32d2e; border-radius: 12px; padding: 18px 20px; }
.crc-adm-soon { border-style: dashed; }
@media (max-width: 782px){ .crc-adm-tiles { grid-template-columns: repeat(2, 1fr); } .crc-adm-panel { width: 100vw; } }

/* --- Admin dashboard Phase 2 (v1.26.0): form controls, tabs, receipt, letter --- */
.crc-adm-page input[type="text"],.crc-adm-page input[type="number"],.crc-adm-page input[type="date"],.crc-adm-page select,.crc-adm-page textarea{color:#14211c;background:#fff;border:2px solid #0c3b2e;border-radius:8px;padding:10px 12px;font-size:16px;}
.crc-adm-page input:focus,.crc-adm-page select:focus,.crc-adm-page textarea:focus{outline:3px solid #ffc93a;}
.crc-adm-scroll{overflow-x:auto;}
.crc-adm-tabs{margin-bottom:18px;}
.crc-adm-preview{background:#f6f7f7;border:1px solid #dcdcde;border-radius:8px;padding:12px 14px;margin-top:10px;white-space:pre-wrap;color:#14211c;}
.crc-adm-receipt{background:#fff;border:2px solid #0c3b2e;border-radius:12px;padding:18px 20px;margin-top:10px;color:#14211c;}
.crc-adm-letter{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:18px 20px;margin-top:10px;color:#14211c;}
.crc-adm-okbox{background:#e6f4ea;border:1px solid #5aa97a;padding:12px 14px;margin-top:10px;border-radius:8px;color:#14211c;font-weight:700;}
.crc-adm-errbox{background:#fdecea;border:1px solid #b32d2e;padding:12px 14px;margin-top:10px;border-radius:8px;color:#7a1f1f;font-weight:700;}

/* Signup delivery choice (v1.27.5): parish + branch selects fill the
   form width like the other fields, and the dashboard change-form
   labels stack the same way. v1.28.20: the selects are siblings of
   their labels now (not children), and the nice-select widget is
   kept full-width in both forms. */
.crc-signup-form select{width:100%;margin-top:4px;}
.crc-signup-form .nice-select,#crc-dash-delivery-form .nice-select{width:100%;float:none;}
.crc-dash-delivery-label{display:block;margin:10px 0;font-weight:600;}
#crc-dash-delivery-form select,.crc-dash-delivery-label textarea{width:100%;margin-top:4px;}
.crc-dash-delivery-error{color:#b3261e;font-weight:700;}

/* Quote buy mode (v1.28.2): who is buying it. */
.crc-purchase-mode { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #d8e2dc; border-radius: 12px; background: #f4f8f5; }
.crc-purchase-mode .crc-pm-title { font-weight: 800; color: #0c3b2e; margin: 0 0 8px; }
.crc-purchase-mode .crc-radio:last-child { margin-bottom: 0; }
.crc-selfbuy-note { font-weight: 600; color: #0c3b2e; background: #f4f8f5; border-left: 4px solid #f2b01e; padding: 10px 12px; border-radius: 0 8px 8px 0; }


/* v1.28.39 (two send buttons + section dropdown + Helper clearance) —
   David, 2026-11-28: the 1.28.38 Send dropdown is gone from invoices.
   Two small pill buttons instead, OX-style, two colours: WhatsApp green
   (#25d366) and Email Cooriya gold (#ffc93a). The dashboard section
   pills are one compact dropdown instead of a row. The dashboard gets
   bottom padding so the last card scrolls clear of the fixed Helper
   bubble (60px pill, bottom:16px — 56px circle on phones) and the
   mobile bottom bar. Scoped to .crc-adm-page. The colour rules use
   .cr2-btn.<class> so they beat the inline <style> block's .cr2-btn
   colours (same literal values there too). */
.crc-adm-page .crc-send-btns{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center;}
.crc-adm-page .crc-send-btn{padding:5px 12px;font-size:13px;line-height:1.4;border-radius:999px;min-height:0;white-space:nowrap;}
.crc-adm-page .cr2-btn.crc-send-wa{background:#25d366;background-image:none;color:#0c3b2e;border:0;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.crc-adm-page .cr2-btn.crc-send-wa:hover,.crc-adm-page .cr2-btn.crc-send-wa:focus{background:#1fb857;background-image:none;color:#0c3b2e;}
.crc-adm-page .cr2-btn.crc-send-email{background:#ffc93a;background-image:none;color:#14211c;border:0;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.crc-adm-page .cr2-btn.crc-send-email:hover,.crc-adm-page .cr2-btn.crc-send-email:focus{background:#f2b01e;background-image:none;color:#14211c;}
.crc-adm-page .cr2-btn.crc-send-btn:disabled{background:#e5e7eb;background-image:none;color:#757575;cursor:default;box-shadow:none;}
.crc-adm-page .crc-adm-nav-dd-wrap{margin:18px 0 22px;}
.crc-adm-page .crc-adm-nav-dd{display:block;width:100%;max-width:340px;padding:9px 14px;font-size:14px;font-weight:800;line-height:1.4;color:#0c3b2e;background:#fff;background-image:none;border:2px solid #0c3b2e;border-radius:999px;cursor:pointer;}
.crc-adm-page{padding-bottom:160px;}
