:root {
	--cc-primary: #875A32;
	--cc-primary-hover: #6e4827;
	--cc-on-primary: #fff;
}

.cc-dashboard { max-width: 1000px; margin: 0 auto; }
.cc-dashboard-tabs { display: flex; gap: 4px; border-bottom: 2px solid #eee; margin: 20px 0; }
.cc-dashboard-tabs a {
	padding: 10px 16px;
	text-decoration: none;
	color: #555;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}
.cc-dashboard-tabs a.active { color: var(--cc-primary); border-bottom-color: var(--cc-primary); font-weight: 600; }

.cc-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cc-table th, .cc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.cc-table th { background: #fafafa; }

/* Reusable click-to-sort table headers + live-filter inputs — see the markup contract
   documented at the top of the sorting script in assets/js/admin-dashboard.js. */
.cc-sortable-table th[data-sort-key] { cursor: pointer; user-select: none; white-space: nowrap; }
.cc-sortable-table th[data-sort-key]::after { content: '\2195'; opacity: 0.35; margin-left: 4px; font-weight: normal; }
.cc-sortable-table th[data-sort-key].cc-sorted-asc::after { content: '\2191'; opacity: 1; }
.cc-sortable-table th[data-sort-key].cc-sorted-desc::after { content: '\2193'; opacity: 1; }
.cc-table-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cc-table-filters label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.cc-table-filters input { font-weight: normal; padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; min-width: 200px; }
.cc-table-filters input[type="date"] { min-width: 150px; }

/* Prev/Next + "Page X of Y" strip, auto-inserted by admin-dashboard.js right after any
   .cc-sortable-table with more than 25 (post-filter) rows — hidden entirely otherwise. */
.cc-table-pagination { display: flex; align-items: center; gap: 12px; margin: 10px 0 20px; }
.cc-table-pagination .cc-page-info { font-size: 13px; color: #6b5c4e; }
.cc-table-pagination button:disabled { opacity: 0.4; cursor: default; }

/* Export CSV / Copy as Text buttons — sit just above a report table's filter row. */
.cc-table-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }

.cc-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.cc-form label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.cc-form input, .cc-form select, .cc-form textarea {
	font-weight: normal;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
}
.cc-dashboard .button,
.cc-form button[type="submit"] {
	background: var(--cc-primary);
	color: var(--cc-on-primary);
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
}
.cc-dashboard .button:hover,
.cc-form button[type="submit"]:hover { background: var(--cc-primary-hover); color: var(--cc-on-primary); }
.cc-dashboard .button:disabled,
.cc-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.cc-dashboard .button:disabled:hover,
.cc-form button[type="submit"]:disabled:hover { background: var(--cc-primary); }

.cc-notice { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.cc-notice.cc-success { background: #e6f4ea; color: #235c3a; }
.cc-notice.cc-error { background: #fbeaea; color: #b32d2e; }
.cc-notice.cc-warning { background: #fff4e0; color: #8a5a00; }

.cc-payouts-filter { flex-direction: row; align-items: flex-end; gap: 16px; max-width: none; margin-bottom: 16px; }
.cc-payouts-filter label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.cc-payouts-summary { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cc-payouts-summary-stat {
	background: #fff; border: 1px solid #e7dcd0; border-radius: 8px;
	padding: 12px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 140px;
}
.cc-payouts-summary-stat span { font-size: 12px; color: #6b5c4e; text-transform: uppercase; letter-spacing: .03em; }
.cc-payouts-summary-stat strong { font-size: 20px; color: var(--cc-primary); }
.cc-payouts-summary-stat-net strong { color: #235c3a; }

/* Reporting tab: Export for Accounting (format picker + per-brand account-name mapping) */
.cc-acct-export {
	background: #fff; border: 1px solid #e7dcd0; border-radius: 8px;
	padding: 16px 20px; margin-bottom: 24px; max-width: 640px;
}
.cc-acct-export h3 { margin: 0 0 6px; font-size: 15px; }
.cc-acct-export-form { flex-direction: column; align-items: stretch; max-width: none; gap: 12px; }
.cc-acct-export-form label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.cc-acct-export-accounts { display: flex; flex-direction: column; gap: 10px; }
.cc-acct-export-remember { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 400 !important; }

/* Sub-nav toggle pills, shared by the Orders tab (Current&Upcoming/Past, List/Calendar) and the Quotes tab (Make a New Quote/Current Quotes) on both dashboards */
.cc-dashboard-subnav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cc-dashboard-subnav-group { display: flex; gap: 4px; background: #f5f0ea; border-radius: 8px; padding: 4px; }
.cc-dashboard-subnav-group a { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #6b5c4e; text-decoration: none; }
.cc-dashboard-subnav-group a.active { background: var(--cc-primary); color: var(--cc-on-primary); }

/* Orders tab: calendar view, shared by both dashboards (templates/partials/orders-calendar.php) */
.cc-orders-calendar { margin-top: 8px; }
.cc-calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cc-calendar-nav a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--cc-primary); }
.cc-calendar-nav strong { font-size: 16px; }
.cc-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cc-calendar-weekday { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6b5c4e; text-align: center; padding: 4px 0; }
.cc-calendar-cell { min-height: 84px; border: 1px solid #e7dcd0; border-radius: 6px; padding: 4px; background: #fff; overflow: hidden; }
.cc-calendar-cell-empty { background: transparent; border: none; }
.cc-calendar-cell-today { border-color: var(--cc-primary); box-shadow: 0 0 0 1px var(--cc-primary); }
.cc-calendar-daynum { font-size: 11px; font-weight: 700; color: #6b5c4e; }
.cc-calendar-entry {
	display: block; font-size: 10.5px; background: #f5f0ea; border-radius: 4px; padding: 2px 4px; margin-top: 2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
	color: inherit; text-decoration: none;
}
.cc-calendar-entry:hover { background: var(--cc-primary); color: var(--cc-on-primary); }
@media (max-width: 700px) {
	.cc-calendar-cell { min-height: 56px; font-size: 10px; }
	.cc-calendar-weekday { font-size: 9px; }
	.cc-calendar-daynum { font-size: 10px; }
}

/* Calendar month total + click-a-day popup + jump-to-month picker (Brand Admin only — $show_totals in orders-calendar.php) */
.cc-calendar-month-total { font-size: 13px; color: #6b5c4e; margin-bottom: 10px; }
.cc-calendar-month-total strong { color: var(--cc-primary); font-size: 15px; }
.cc-calendar-month-picker input[type="month"] {
	font-weight: 700; font-size: 16px; border: none; background: transparent;
	cursor: pointer; text-align: center; color: inherit; padding: 0;
}
.cc-calendar-cell-clickable { cursor: pointer; position: relative; }
.cc-calendar-cell-clickable:hover { border-color: var(--cc-primary); }
.cc-calendar-cell-active { z-index: 30; overflow: visible; }
.cc-calendar-day-popup {
	position: absolute; left: 4px; right: 4px; top: 100%; margin-top: 4px; z-index: 20;
	background: #fff; border: 1px solid var(--cc-primary); border-radius: 6px;
	padding: 6px 8px; font-size: 11px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.15);
	white-space: normal;
}

/* Orders tab: List-view filter row (timeframe/per-page form + gross-total badge, side by side) */
.cc-orders-filter-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.cc-orders-gross-badge {
	background: #fff; border: 1px solid #e7dcd0; border-radius: 8px;
	padding: 8px 16px; display: flex; flex-direction: column; gap: 2px;
}
.cc-orders-gross-badge span { font-size: 11px; color: #6b5c4e; text-transform: uppercase; letter-spacing: .03em; }
.cc-orders-gross-badge strong { font-size: 18px; color: var(--cc-primary); }
.cc-orders-timeframe-filter { flex-direction: row; align-items: flex-end; gap: 12px; max-width: none; margin-bottom: 0; flex-wrap: wrap; }
.cc-orders-timeframe-filter label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }
.cc-orders-timeframe-custom-fields { display: flex; gap: 12px; }
.cc-orders-timeframe-custom-fields label { display: flex; flex-direction: column; font-weight: 600; font-size: 13px; gap: 4px; }

/* Orders tab: pagination controls below the List-view table */
.cc-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: -8px; margin-bottom: 24px; font-size: 13px; }
.cc-pagination a { color: var(--cc-primary); font-weight: 600; text-decoration: none; }
.cc-pagination-disabled { color: #ccc; font-weight: 600; }
.cc-pagination-status { color: #6b5c4e; }

/* Orders tab: sortable Time Placed / Time Wanted / Total column headers */
.cc-sort-link { color: inherit; text-decoration: none; }
.cc-sort-link:hover { color: var(--cc-primary); }
.cc-sort-active { color: var(--cc-primary); }
.cc-sort-arrow-idle { opacity: .4; font-size: 11px; }
.cc-sort-arrow-active { font-size: 11px; }

/* Order detail view (templates/order-detail.php), reached from an Orders-tab list row or calendar entry */
.cc-order-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cc-order-detail-header h2 { margin: 0; }
.cc-order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cc-order-detail-col h3 { margin: 18px 0 4px; font-size: 14px; }
.cc-order-detail-col h3:first-child { margin-top: 0; }
.cc-order-detail-col p { margin: 0 0 4px; }
.cc-mark-paid-form, .cc-request-cancellation { margin-top: 12px; }
.cc-mark-paid-form label, .cc-request-cancellation textarea { display: block; width: 100%; margin-bottom: 6px; }
.cc-request-cancellation summary { cursor: pointer; font-weight: 600; color: var(--cc-primary); margin-bottom: 8px; }
.cc-request-cancellation textarea { min-height: 60px; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }
@media (max-width: 780px) {
	.cc-order-detail-grid { grid-template-columns: 1fr; }
}

.button-link-delete { color: #b32d2e; background: none; border: none; cursor: pointer; text-decoration: underline; }

.cc-maintenance-notice {
	max-width: 480px;
	margin: 60px auto;
	text-align: center;
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 10px;
	padding: 40px 30px;
}
.cc-maintenance-notice h2 { margin: 0 0 12px; font-size: 20px; }
.cc-maintenance-notice p { color: #6b5c4e; font-size: 14px; margin: 6px 0; }

.cc-status-active { color: #1a7f37; font-weight: 600; }
.cc-status-disabled { color: #b32d2e; font-weight: 600; }

/* New Quote tab: contact/event form on the left, browsable menu (doubles as the order
   builder — no separate cart list) on the right. Overrides .cc-form's 480px max-width,
   which was sized for the old single-column forms, not this layout.

   The five .cc-quote-block-* pieces are flat siblings (not nested in left/right wrapper
   divs) specifically so mobile can reorder them independently of desktop's column
   placement — desktop positions each with grid-column/grid-row below; mobile (see the
   860px breakpoint) resets those to auto and uses the CSS `order` property instead, so
   the menu can sit between Fulfillment and Special Instructions there without a second
   copy of the markup to keep in sync. */
#cc-new-quote-form { max-width: none; }
.cc-quote-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px 28px; align-items: start; margin-top: 12px; }
.cc-quote-block { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.cc-quote-block-menu { max-width: none; min-width: 0; }
.cc-quote-block-menu h3 { margin: 0 0 2px; }

.cc-quote-block-contact      { grid-column: 1; grid-row: 1; }
.cc-quote-block-event        { grid-column: 1; grid-row: 2; }
.cc-quote-block-instructions { grid-column: 1; grid-row: 3; }
.cc-quote-block-totals       { grid-column: 1; grid-row: 4; }
.cc-quote-block-menu         { grid-column: 2; grid-row: 1 / span 4; }

.cc-quote-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 12px;
	max-height: 640px;
	overflow-y: auto;
	padding-right: 4px;
	/* 1.75.0: with many products the fixed-height container squeezed every row down to a
	   sliver (and the cards' overflow:hidden clipped them). Rows now size to their content
	   and the grid scrolls instead. */
	grid-auto-rows: max-content;
	align-content: start;
}
.cc-quote-menu-item { min-height: 230px; }
.cc-quote-menu-item.cc-quote-search-hidden { display: none !important; }
.cc-quote-menu-tools { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cc-quote-menu-tools input[type=search] { flex: 1; min-width: 180px; max-width: 360px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; }
.cc-quote-delivery-map { width: 100%; height: 220px; border-radius: 8px; border: 1px solid #e7dcd0; background: #f0e9e0; }
.cc-quote-delivery-map .cc-map-msg { padding: 16px; font-size: 13px; color: #6b5c4e; }
.cc-quote-menu-item {
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .15s, box-shadow .15s;
}
.cc-quote-menu-item-active { border-color: var(--cc-primary); box-shadow: 0 0 0 1px var(--cc-primary); }
.cc-quote-menu-item-image { width: 100%; height: 110px; background: #f0e9e0; }
.cc-quote-menu-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-quote-menu-item-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	font-size: 28px; font-weight: 700; color: #c9b8a4;
}
.cc-quote-menu-item-body { padding: 10px 12px 6px; flex: 1; }
.cc-quote-menu-item-name { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.cc-quote-menu-item-price { color: var(--cc-primary); font-weight: 600; font-size: 13px; }
.cc-quote-menu-item-qty { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px; }
.cc-quote-menu-item-qty button {
	width: 28px; height: 28px; border-radius: 6px; border: 1px solid #ccc;
	background: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.cc-quote-menu-item-qty button:hover { background: #f5f0ea; }
.cc-quote-menu-item-qty input.cc-quote-qty-input {
	width: 40px; text-align: center; border: none; font-weight: 600; padding: 0;
	-moz-appearance: textfield;
}
.cc-quote-menu-item-qty input.cc-quote-qty-input::-webkit-inner-spin-button,
.cc-quote-menu-item-qty input.cc-quote-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cc-quote-totals { border-top: 1px solid #e7dcd0; padding-top: 10px; margin-top: 4px; }
.cc-quote-total-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.cc-quote-total-row-grand { font-weight: 700; font-size: 15px; border-top: 1px solid #e7dcd0; margin-top: 4px; padding-top: 6px; }

@media (max-width: 860px) {
	.cc-quote-layout { grid-template-columns: 1fr; }
	.cc-quote-block { grid-column: 1; grid-row: auto; max-width: none; }
	.cc-quote-block-contact      { order: 1; }
	.cc-quote-block-event        { order: 2; }
	.cc-quote-block-menu         { order: 3; }
	.cc-quote-block-instructions { order: 4; }
	.cc-quote-block-totals       { order: 5; }
}

/* Delivery dispatch (location dashboard order rows + driver dashboard) */
.cc-dashboard details { margin: 6px 0; border: 1px solid #e7dcd0; border-radius: 6px; padding: 6px 10px; }
.cc-dashboard details summary { cursor: pointer; font-weight: 600; }
.cc-dashboard details form { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.cc-driver-delivery-card {
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.cc-driver-delivery-card h3 { margin: 0 0 4px; }
.cc-driver-delivery-card .cc-status-label { font-weight: 600; color: var(--cc-primary); margin: 0 0 8px; }
.cc-driver-actions { margin-top: 10px; }

.cc-driver-sharing-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.cc-driver-share-status { color: #6b5c4e; font-size: 13px; margin: 0 0 16px; }

.cc-tracking-page { max-width: 640px; margin: 0 auto; }
.cc-tracking-page #cc-tracking-timeline-list { list-style: none; padding: 0; }
.cc-tracking-page #cc-tracking-timeline-list li { padding: 6px 0; border-bottom: 1px solid #f0e9e0; }

/* Admin dashboard */
.cc-admin-dashboard .cc-application-card {
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 12px;
}
.cc-admin-dashboard .cc-application-card summary { cursor: pointer; font-weight: 600; }
.cc-admin-dashboard .cc-application-card > details { margin-top: 10px; }

.cc-settings-table th { text-align: left; padding: 10px 12px 2px; display: block; }
.cc-settings-table td { padding: 0 12px 14px; display: block; }
.cc-settings-table input[type="text"],
.cc-settings-table input[type="email"],
.cc-settings-table input[type="password"],
.cc-settings-table input[type="number"] { width: 100%; max-width: 420px; padding: 8px; }
.cc-settings-table .description { color: #6b5c4e; font-size: 13px; margin-top: 4px; }
.cc-tab-vendors .description { color: #6b5c4e; font-size: 12px; }

/* Front-end product manager (vendor dashboard) */
.cc-help-text { color: #6b5c4e; font-size: 13px; max-width: 640px; }

.cc-product-form-wrap {
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 8px;
	padding: 18px 20px;
	max-width: 480px;
}
.cc-checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.cc-checkbox-label input[type="checkbox"] { width: auto; }
.cc-cancel-link { align-self: flex-start; color: #6b5c4e; font-size: 13px; text-decoration: underline; }

.cc-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 16px;
}
.cc-product-card {
	background: #fff;
	border: 1px solid #e7dcd0;
	border-radius: 8px;
	overflow: hidden;
}
.cc-product-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.cc-product-card-img-placeholder { background: #f0e9e0; }
.cc-product-card-body { padding: 12px 14px; }
.cc-product-card-body h4 { margin: 0 0 4px; }
.cc-product-card-price { font-weight: 600; color: var(--cc-primary); margin: 0 0 6px; }
.cc-product-card-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; }
.cc-product-card-actions a { color: var(--cc-primary); text-decoration: underline; }

/* Admin dashboard: Products tab */
.cc-approvals-box {
	background: #fff3e0;
	border: 1px solid #e0a95c;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.cc-approvals-box h3 { margin-top: 0; }
.cc-approval-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 0;
	border-top: 1px solid #ecd2a5;
}
.cc-approval-row:first-of-type { border-top: none; }
.cc-approval-actions { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.cc-approval-actions .button { padding: 4px 10px; font-size: 13px; }
/* Landed here from a notification email/extension link for one specific item — see cc_highlight handling in admin-dashboard.php */
.cc-approval-row-highlight {
	background: #fffbe0;
	outline: 2px solid #e0a95c;
	outline-offset: 2px;
	border-radius: 6px;
	padding-left: 10px;
	padding-right: 10px;
}

.cc-products-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.cc-brand-filter label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.cc-brand-filter select { padding: 6px 8px; border-radius: 6px; border: 1px solid #ccc; }

.cc-form-row { display: flex; gap: 12px; }
.cc-form-row label { flex: 1; }
.cc-category-fieldset { border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; }
.cc-category-fieldset legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.cc-category-fieldset .cc-checkbox-label { margin-bottom: 4px; }
.cc-manage-stock-qty { max-width: 160px; }

.cc-product-card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: #9c8a76; margin: 0 0 2px; }
.cc-product-card-sku { font-size: 12px; color: #9c8a76; font-weight: normal; margin-left: 6px; }

/* Reviews tab (CC_Reviews) */
.cc-star-rating { color: var(--cc-primary); letter-spacing: 1px; }
.cc-star-rating .cc-star-empty { color: #d8d8d8; }
.cc-star-count { color: #6b6b6b; font-size: 0.9em; margin-left: 4px; }

.cc-review-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cc-review-card { border: 1px solid #e2e2e2; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.cc-review-card-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cc-review-card-author { font-weight: 600; }
.cc-review-card-location { font-size: 0.85em; color: #6b6b6b; }
.cc-review-card-date { font-size: 0.85em; color: #999; }
.cc-review-card-body { margin: 6px 0 0; }
.cc-review-card-reply { margin-top: 10px; padding: 10px 12px; background: #fbf3ea; border-radius: 6px; font-size: 0.92em; }
.cc-review-card-reply strong { color: var(--cc-primary); }
.cc-review-reply-form { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.cc-review-reply-form textarea { flex: 1; padding: 6px 8px; border: 1px solid #d8d8d8; border-radius: 6px; font: inherit; resize: vertical; }

/* Customers tab: form on the left, list on the right */
.cc-customers-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-customers-header h2 { margin: 0; }
.cc-customer-search-input { padding: 8px 12px; border: 1px solid #d8d8d8; border-radius: 6px; min-width: 260px; font: inherit; }
.cc-customers-columns { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; margin-top: 16px; }
#cc-customer-search-empty { color: #6b6b6b; padding: 14px 0; }
.cc-customers-form-col { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 16px 18px; }
.cc-customers-form-col h3 { margin-top: 0; }
.cc-customers-list-col { min-width: 0; }
@media (max-width: 820px) {
	.cc-customers-columns { grid-template-columns: 1fr; }
}

/* Modifier groups (brand-admin Modifiers tab + CC-admin Modifier Templates tab) */
.cc-mg-option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.cc-mg-option-row input[type="text"],
.cc-mg-option-row input[type="number"] { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.cc-mg-remove-row {
	background: none; border: none; color: #b32d2e; font-size: 20px; line-height: 1; cursor: pointer;
	padding: 0 4px;
}
.cc-mg-remove-row:hover { color: #7a1f1f; }
#cc-mg-add-row { align-self: flex-start; }

/* Sub-nav within a tab (e.g. Products <-> Modifier Groups) — lighter weight than the main .cc-dashboard-tabs */
.cc-subnav { display: flex; gap: 4px; margin: 4px 0 18px; }
.cc-subnav a {
	padding: 6px 12px; text-decoration: none; color: #6b5c4e; font-size: 13px; font-weight: 600;
	border: 1px solid #e2e2e2; border-radius: 999px;
}
.cc-subnav a.active { background: var(--cc-primary); color: var(--cc-on-primary); border-color: var(--cc-primary); }

/* Per-option availability list on a modifier group card / product-page quick-view popup */
.cc-mg-option-availability-list { list-style: none; margin: 6px 0 10px; padding: 0; font-size: 13px; }
.cc-mg-option-availability-list li { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; border-bottom: 1px solid #f0ece6; gap: 8px; }
.cc-mg-option-availability-list li:last-child { border-bottom: none; }
.cc-mg-option-availability-list li.cc-option-unavailable { color: #9a8f82; }
.cc-mg-availability-toggle { font-size: 12px; white-space: nowrap; }

/* Quick View modifier popup (templates/partials/modifier-quickview-dialog.php) */
.cc-mg-quickview-btn {
	background: none; border: none; color: var(--cc-primary); font-size: 12px; font-weight: 600;
	text-decoration: underline; cursor: pointer; margin-left: 6px; padding: 0;
}
.cc-mg-dialog {
	border: 1px solid #ddd; border-radius: 10px; padding: 20px; max-width: 420px; width: 90vw;
}
.cc-mg-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.cc-mg-dialog h3 { margin-top: 0; }
.cc-mg-quickadd-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cc-mg-dialog-close { margin-top: 10px; }

/* Enable/Disable Items tab (templates/availability-tab.php) */
.cc-availability-table { margin-bottom: 22px; }
.cc-availability-table th, .cc-availability-table td { padding: 8px 10px; }
.cc-availability-table tr.cc-option-unavailable { opacity: 0.6; }

/* "Back to X" breadcrumb at the top of a detail/edit screen */
.cc-breadcrumb { margin: 0 0 12px; font-size: 13px; }
.cc-breadcrumb a { text-decoration: none; color: #6b5c4e; font-weight: 600; }
.cc-breadcrumb a:hover { text-decoration: underline; }

/* Enable/disable toggle switch (templates/partials/toggle-switch.php) — a plain link styled
   as a switch; clicking it navigates to the toggle URL and back, same as any other action
   link in this plugin, just presented as green (on) / red (off) instead of text. */
.cc-toggle-switch {
	display: inline-flex; align-items: center; width: 44px; height: 24px; border-radius: 999px;
	padding: 3px; box-sizing: border-box; text-decoration: none; vertical-align: middle;
	transition: background-color .15s ease;
}
.cc-toggle-switch.cc-toggle-on { background: #3fa34d; justify-content: flex-end; }
.cc-toggle-switch.cc-toggle-off { background: #c1443f; justify-content: flex-start; }
.cc-toggle-switch .cc-toggle-thumb {
	width: 18px; height: 18px; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.35); display: block;
}
.cc-toggle-row { display: flex; align-items: center; gap: 10px; }

/* Modifier attach-count (product form's "Modifiers" checklist — attach the same group more than once, e.g. two meat picks) */
.cc-mg-attach-row { flex-wrap: wrap; }
.cc-mg-count-wrap { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.cc-mg-count-input { width: 46px; padding: 2px 4px; }

/* Itemized "what went wrong" list on a pending product's own edit screen */
.cc-friendly-issues-list { margin: 4px 0 10px 20px; padding: 0; }
.cc-friendly-issues-list li { margin-bottom: 4px; }

/* Field-level error flag (red exclamation + red border) on a specific form field implicated by a failed verification */
.cc-field-error-flag {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%; background: #c1443f; color: #fff;
	font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: middle;
}
input.cc-field-has-error { border: 2px solid #c1443f !important; }

/* 1.61.0 — Pricing & order size fields (templates/partials/product-pricing-fields.php) */
.cc-pricing-fieldset { border: 1px solid #e2e2e2; border-radius: 8px; padding: 12px 16px 14px; margin: 4px 0 14px; display: grid; gap: 10px; }
.cc-pricing-fieldset legend { font-weight: 600; padding: 0 6px; }
.cc-pricing-type-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.cc-form .cc-radio-card { flex-direction: row; gap: 10px; align-items: flex-start; border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.cc-form .cc-radio-card input { width: auto; margin-top: 3px; }
.cc-radio-card > span { display: grid; gap: 2px; }
.cc-radio-card .cc-help-text { font-weight: 400; }
.cc-radio-card:has(input:checked) { border-color: var(--cc-primary); box-shadow: 0 0 0 1px var(--cc-primary); }
.cc-pricing-fieldset .cc-form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-pricing-fieldset .cc-form-row label { flex: 1 1 150px; }
.cc-pricing-fieldset .cc-form-row label .cc-help-text { font-weight: 400; }
.cc-pricing-preview { margin: 0; }
.cc-product-card-rules, .cc-quote-menu-item-rules { display: block; font-size: 12px; color: #666; }
.cc-item-change-list { margin: 4px 0 6px; padding-left: 18px; font-size: 13px; }
.cc-admin-mg-row[hidden] { display: none !important; }
/* 1.62.0 — option descriptions sit on their own line under each option row */
.cc-mg-option-row .cc-mg-option-desc { flex: 1 1 100%; order: 10; }
.cc-what-changed { margin: 0; padding-left: 16px; font-size: 13px; }
.cc-what-changed li + li { margin-top: 2px; }
/* 1.62.1 — each option (name, price, description) reads as one boxed unit */
.cc-mg-option-row { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 12px; background: #fafafa; margin-bottom: 10px; }
.cc-mg-option-row .cc-mg-option-desc { font-size: 13px; }
.cc-mg-option-summary { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; }
.cc-mg-option-summary li + li { margin-top: 3px; }
.cc-mg-option-summary .cc-option-unavailable { opacity: .6; }
.cc-mg-option-summary-desc { display: block; font-size: 12px; color: #666; }
/* 1.63.0 — multi-location */
.cc-table-scroll { overflow-x: auto; }
.cc-avail-word { font-size: 12px; color: #666; margin-left: 6px; vertical-align: middle; }
.cc-locations-fieldset { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 14px; display: grid; gap: 6px; }
.cc-locations-fieldset legend { font-weight: 600; padding: 0 6px; }
.cc-loc-row[hidden] { display: none !important; }
.cc-avail-status-out { color: #a3302a; font-weight: 600; }
/* 1.63.1 — location price exceptions */
.cc-locations-fieldset .cc-loc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.cc-locations-fieldset .cc-loc-row:last-of-type { border-bottom: 0; }
.cc-form .cc-loc-price { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 12px; color: #555; }
.cc-form .cc-loc-price input { width: 110px; }
.cc-loc-price[hidden] { display: none !important; }
/* 1.63.2 — split or move items */
.cc-split-order { margin: 10px 0 14px; }
.cc-split-order summary { cursor: pointer; font-weight: 600; }
.cc-split-table select, .cc-split-table input { font: inherit; padding: 4px 6px; }
/* 1.64.0 — menu importer (laid out like the September test run) */
.cc-menu-import { margin: 18px 0 26px; padding-top: 6px; border-top: 1px solid #e2e2e2; }
.cc-import-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.cc-import-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: #eceff1; color: #37474f; white-space: nowrap; }
.cc-import-pill-ready { background: #dcede5; color: #1d6a50; }
.cc-import-pill-check, .cc-import-pill-queued, .cc-import-pill-running { background: #fbeccc; color: #8a5a00; }
.cc-import-pill-price, .cc-import-pill-failed { background: #f8dedb; color: #a3302a; }
.cc-import-bar { height: 8px; border-radius: 999px; background: #eceff1; overflow: hidden; max-width: 420px; }
.cc-import-bar span { display: block; height: 100%; background: var(--cc-primary); transition: width .4s; }
.cc-import-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #e2e2e2; border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; margin: 12px 0; }
.cc-import-stats > div { background: #fff; padding: 10px 12px; display: grid; gap: 2px; }
.cc-import-stats b { font-size: 22px; line-height: 1.1; }
.cc-import-stats span { font-size: 12px; color: #666; }
.cc-import-stats .ok b { color: #1d6a50; } .cc-import-stats .warn b { color: #8a5a00; } .cc-import-stats .crit b { color: #a3302a; }
@media (max-width: 720px) { .cc-import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-import-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 800px) { .cc-import-two { grid-template-columns: minmax(0, 1fr); } }
.cc-import-box { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 14px; background: #fff; min-width: 0; }
.cc-import-box h4 { margin: 0 0 6px; }
.cc-import-box ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.cc-import-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: 13px; }
.cc-import-kv dd { margin: 0; overflow-wrap: anywhere; }
.cc-import-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cc-import-chip { font: inherit; font-size: 12px; border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.cc-import-chip[aria-pressed="true"] { background: #333; color: #fff; border-color: #333; }
.cc-import-table { min-width: 820px; font-size: 13px; }
.cc-import-table td { vertical-align: top; }
.cc-import-section td { background: #f5f5f5; font-weight: 600; }
.cc-import-price { white-space: nowrap; }
.cc-import-price .cc-help-text { display: block; }
.cc-import-missing { color: #a3302a; }
.cc-import-g { display: inline-block; font-size: 12px; background: #f3ece5; border-radius: 4px; padding: 1px 7px; margin: 0 4px 4px 0; white-space: nowrap; }
.cc-import-g i { font-style: normal; color: #666; }
.cc-import-flags { margin: 0; padding-left: 16px; font-size: 12px; color: #555; max-width: 40ch; }
.cc-import-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
/* 1.64.2 — menu import review workspace: menu on the left, editable draft on the right */
.cc-import-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; margin-top: 10px; }
@media (max-width: 1000px) { .cc-import-workspace { grid-template-columns: minmax(0, 1fr); } }
.cc-import-viewer { position: sticky; top: 12px; display: grid; gap: 6px; }
@media (max-width: 1000px) { .cc-import-viewer { position: static; } }
.cc-viewer-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-viewer-tab { font: inherit; font-size: 12px; border: 1px solid #ddd; background: #fff; border-radius: 6px 6px 0 0; padding: 4px 10px; cursor: pointer; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-viewer-tab[aria-selected="true"] { background: #333; color: #fff; border-color: #333; }
.cc-viewer-frame { width: 100%; height: calc(100vh - 90px); min-height: 480px; border: 1px solid #ddd; border-radius: 8px; background: #f5f5f5; }
.cc-viewer-img { height: calc(100vh - 90px); min-height: 480px; overflow: auto; border: 1px solid #ddd; border-radius: 8px; background: #f5f5f5; }
.cc-viewer-img img { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) { .cc-viewer-frame, .cc-viewer-img { height: 45vh; min-height: 320px; } }
.cc-import-editor { min-width: 0; }
.cc-imp-savebar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.cc-imp-savebar .button { margin-left: auto; }
.cc-imp-stat { font-size: 12px; color: #666; } .cc-imp-stat b { font-size: 16px; color: #222; }
.cc-imp-stat.ok b { color: #1d6a50; } .cc-imp-stat.warn b { color: #8a5a00; } .cc-imp-stat.crit b { color: #a3302a; }
.cc-imp-dirty { font-size: 12px; color: #8a5a00; font-weight: 600; }
.cc-imp-section { margin: 14px 0; }
.cc-imp-section-name { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-bottom: 1px dashed #ccc; background: transparent; padding: 2px 0; width: 100%; margin-bottom: 6px; }
.cc-imp-items { display: grid; gap: 8px; }
.cc-imp-item { border: 1px solid #e2e2e2; border-radius: 8px; padding: 8px 10px; background: #fff; display: grid; gap: 6px; }
.cc-imp-item[data-status="skip"] { opacity: .55; }
.cc-imp-item[hidden] { display: none !important; }
.cc-imp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.cc-imp-item input[type="text"], .cc-imp-item input[type="number"], .cc-imp-item select, .cc-imp-item textarea,
.cc-imp-group input, .cc-imp-brand input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 5px; }
.cc-imp-f-name { flex: 1 1 200px; font-weight: 600 !important; }
.cc-imp-price { display: inline-flex; align-items: center; gap: 2px; }
.cc-imp-price input { width: 86px; }
.cc-imp-row-pricing input[type="number"] { width: 64px; }
.cc-imp-f-desc { width: 100%; box-sizing: border-box; resize: vertical; }
.cc-imp-goto { font: inherit; font-size: 12px; border: 1px solid var(--cc-primary); color: var(--cc-primary); background: #fff; border-radius: 999px; padding: 2px 9px; cursor: pointer; white-space: nowrap; }
.cc-imp-goto:hover { background: var(--cc-primary); color: var(--cc-on-primary); }
.cc-imp-label { font-size: 12px; color: #666; }
.cc-imp-ref { display: inline-flex; align-items: center; gap: 4px; background: #f3ece5; border-radius: 5px; padding: 2px 6px; font-size: 12px; }
.cc-imp-ref input[type="number"] { width: 44px; padding: 2px 4px; }
.cc-imp-ref-remove, .cc-imp-o-remove { border: 0; background: none; color: #a3302a; cursor: pointer; font-size: 15px; line-height: 1; }
.cc-imp-flags-wrap { background: #fff8e8; border-radius: 6px; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px; }
.cc-imp-flags-wrap[hidden] { display: none; }
.cc-imp-flags { margin: 0; padding-left: 16px; font-size: 12px; color: #6b4a00; }
.cc-imp-clear-flags, .cc-imp-add-item, .cc-imp-o-add { font: inherit; font-size: 12px; border: 1px solid #ccc; background: #fff; border-radius: 5px; padding: 3px 9px; cursor: pointer; }
.cc-imp-add-item { margin-top: 6px; }
.cc-imp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cc-imp-group { border: 1px solid #e2e2e2; border-radius: 8px; padding: 8px 10px; background: #fff; display: grid; gap: 6px; }
.cc-imp-g-name { font-weight: 600 !important; }
.cc-imp-g-option { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid #f2f2f2; }
.cc-imp-o-label { flex: 1 1 120px; } .cc-imp-o-price { width: 64px; } .cc-imp-o-desc { flex: 1 1 100%; font-size: 12px !important; }
.cc-imp-brand { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; font-size: 13px; }
.cc-imp-brand label { display: grid; gap: 2px; font-weight: 600; }
.cc-imp-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.cc-import-pill-skip { background: #eceff1; color: #546e7a; }

/* 1.64.3: created rows/groups and the Create products panel */
.cc-import-pill-created, .cc-import-pill-approved { background: #e3ecfb; color: #1d4f9c; }
.cc-imp-stat.done b { color: #1d4f9c; }
.cc-imp-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid #dfe6f2; border-radius: 8px; background: #f7f9fd; }
.cc-imp-done a { margin-left: auto; }
.cc-imp-group-done { background: #f7f9fd; }
.cc-imp-group-done ul { margin: 6px 0; padding-left: 18px; }
.cc-imp-approve { margin: 24px 0 12px; padding: 14px 16px; border: 2px solid #8a5a2b; border-radius: 10px; background: #fffaf3; }
.cc-imp-approve legend { padding: 0 6px; font-weight: 700; font-size: 1.05em; }
.cc-imp-approve-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0; }
.cc-imp-approve-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cc-imp-done .cc-imp-ref { display: none; }
.cc-imp-group.cc-imp-group-done { display: block; }
.cc-imp-group-done > * { display: block; margin: 0 0 4px; }

/* 1.65.0: Product Manager List / Menu view */
.cc-pm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.cc-view-toggle { display: inline-flex; padding: 3px; border: 1px solid #e7dcd0; border-radius: 999px; background: #faf6f1; }
.cc-view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #6b5c4e; text-decoration: none; transition: background .15s, color .15s; }
.cc-view-toggle a svg { fill: currentColor; opacity: .85; }
.cc-view-toggle a:hover { color: var(--cc-primary); }
.cc-view-toggle a.is-active { background: var(--cc-primary); color: var(--cc-on-primary, #fff); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cc-view-toggle a:focus-visible { outline: 2px solid var(--cc-primary); outline-offset: 2px; }
.cc-pm-menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cc-pm-menu-layout .cc-product-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cc-pm-menu-layout .cc-menu-viewer { top: 12px; }
.cc-card-goto { order: 3; margin-left: auto; }
.cc-notice:not(.cc-success):not(.cc-error):not(.cc-warning) { background: #f6efe6; color: #5b4a3a; }
@media (max-width: 900px) {
	.cc-pm-menu-layout { grid-template-columns: minmax(0, 1fr); }
}

/* 1.65.0: storefront preview link box */
.cc-storefront-preview { margin: 24px 0; padding: 14px 16px; border: 1px solid #e7dcd0; border-radius: 10px; background: #fffdf9; }
.cc-storefront-preview h3 { margin-top: 0; }
.cc-preview-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cc-preview-link { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; background: #f8f5f1; }
.cc-inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.cc-link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #b32d2e; text-decoration: underline; cursor: pointer; }

/* 1.65.0: brand details from the menu */
.cc-imp-brand-field { display: flex; flex-direction: column; gap: 3px; }
.cc-imp-onfile { font-size: 12px; overflow-wrap: anywhere; }
.cc-imp-apply { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--cc-primary); }
.cc-imp-apply input { width: auto; margin: 0; }
.cc-preview-link-row .button { font-size: 13px; line-height: 1.4; padding: 8px 14px; }

/* 1.66.2 */
.cc-viewer-empty { padding: 40px 20px; border: 1px dashed #ddd; border-radius: 8px; text-align: center; background: #fafafa; }
.cc-import-paste { margin: 6px 0 12px; }
.cc-import-paste summary { cursor: pointer; font-size: 13px; color: var(--cc-primary); }
.cc-import-paste textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* 1.67.0: menu capture recipes */
.cc-recipes-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .cc-recipes-layout { grid-template-columns: minmax(0, 1fr); } }
.cc-recipe { border: 1px solid #e7dcd0; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: #fff; }
.cc-recipe.has-error { border-color: #b32d2e; box-shadow: 0 0 0 1px #b32d2e inset; }
.cc-recipe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.cc-recipe-actions { margin-left: auto; display: inline-flex; gap: 12px; font-size: 12px; }
.cc-recipe-actions label { display: inline-flex; align-items: center; gap: 4px; }
.cc-recipe-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eee; color: #555; }
.cc-recipe-status.is-tested { background: #dcede5; color: #1d6a50; }
.cc-recipe-status.is-needs-work { background: #fdecc8; color: #8a5a00; }
.cc-recipe-status.is-fallback { background: #e3ecfb; color: #1d4f9c; }
.cc-recipe textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fbfaf8; tab-size: 2; }
.cc-recipe-errors { margin: 0 0 8px; padding: 8px 12px 8px 26px; background: #fbeaea; color: #b32d2e; border-radius: 6px; font-size: 13px; }
.cc-recipes-help { position: sticky; top: 12px; font-size: 13px; line-height: 1.5; background: #faf6f1; border: 1px solid #e7dcd0; border-radius: 10px; padding: 14px 16px; }
@media (max-width: 1000px) { .cc-recipes-help { position: static; } }
.cc-recipes-help h3 { margin-top: 0; } .cc-recipes-help h4 { margin: 14px 0 4px; }
.cc-recipe-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.cc-recipe-fields dt { white-space: nowrap; } .cc-recipe-fields dd { margin: 0; color: #4a3f35; }
.cc-recipes-help code { font-size: 12px; background: #fff; padding: 0 3px; border-radius: 3px; }

/* 1.67.0: capture report */
.cc-capture-report { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 10px 0 14px; padding: 10px 14px; border: 1px solid #cfe3d8; border-left: 4px solid #1d6a50; border-radius: 8px; background: #f4faf6; font-size: 13px; }
.cc-capture-report.has-problems { border-color: #f0d9a8; border-left-color: #c68a12; background: #fffaf0; }
.cc-capture-report details, .cc-capture-report p { flex-basis: 100%; margin: 4px 0 0; }
.cc-capture-report summary { cursor: pointer; font-weight: 600; }
.cc-capture-report ul { margin: 6px 0 0; padding-left: 20px; }
.cc-capture-report-warn { color: #8a5a00; }

/* 1.67.0: menu evidence */
.cc-viewer-select { width: 100%; margin-bottom: 6px; }
.cc-product-evidence { display: grid; gap: 4px; margin: 6px 0 12px; }
.cc-product-evidence img { max-height: 140px; width: auto; border: 1px solid #ddd; border-radius: 6px; margin: 4px 6px 0 0; }
.cc-evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-evidence-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cc-evidence-overview img, .cc-evidence-item img { width: 100%; height: auto; border: 1px solid #e3d9cb; border-radius: 6px; display: block; }
.cc-evidence-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cc-evidence-item { border: 1px solid #e7dcd0; border-radius: 10px; padding: 10px 12px; background: #fff; break-inside: avoid; }
.cc-evidence-item header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cc-evidence-item img + img { margin-top: 6px; }
@media print {
	.cc-no-print, .cc-dashboard-nav, nav, header.site-header, footer { display: none !important; }
	.cc-evidence-items { grid-template-columns: 1fr 1fr; }
	.cc-evidence-item, .cc-evidence-overview img { page-break-inside: avoid; }
}

/* 1.68.0: recipe helpers */
.cc-recipe-helper { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #e7dcd0; border-left: 4px solid var(--cc-primary); border-radius: 10px; background: #fffdf9; }
.cc-recipe-helper h3 { margin-top: 0; }
.cc-recipe-helper ol { margin: 0 0 10px; padding-left: 20px; font-size: 13px; }
.cc-recipe-helper-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 800px) { .cc-recipe-helper-row { grid-template-columns: minmax(0, 1fr); } }
.cc-recipe-helper label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.cc-recipe-helper textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.cc-recipe-helper-side { display: grid; gap: 10px; }

/* 1.68.2: Products bulk edit */
.cc-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 0 0 12px; background: #f7f5f0; border: 1px solid #e3ddd0; border-radius: 8px; }
.cc-bulk-bar input[type=search], .cc-bulk-bar select { min-height: 34px; padding: 4px 8px; border: 1px solid #cfc8b8; border-radius: 6px; background: #fff; font: inherit; }
.cc-bulk-bar input[type=search] { flex: 1 1 160px; min-width: 140px; }
.cc-bulk-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.cc-bulk-count { font-weight: 600; min-width: 80px; }
.cc-bulk-bar .button[disabled] { opacity: .5; cursor: not-allowed; }
.cc-product-card { position: relative; }
.cc-bulk-pick { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: rgba(255,255,255,.92); border: 1px solid #cfc8b8; border-radius: 6px; cursor: pointer; }
.cc-bulk-pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.cc-product-card.cc-bulk-picked { outline: 3px solid #6b8a74; outline-offset: -1px; }
.cc-product-card[hidden] { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
@media (max-width: 600px) { .cc-bulk-bar > * { flex: 1 1 100%; } .cc-bulk-bar .button { width: 100%; } }

/* Tasks (1.69.0) */
.cc-tasks h3 { margin: 18px 0 8px; }
.cc-task-add { background: #faf6f1; border: 1px solid #eadfd2; border-radius: 8px; padding: 12px 16px 16px; margin: 12px 0 18px; }
.cc-task-add h3 { margin-top: 4px; }
.cc-task-add-grid { display: grid; grid-template-columns: 2fr 1.4fr; gap: 12px; }
.cc-tasks label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.cc-tasks label .cc-help-text { font-weight: 400; }
.cc-tasks input[type="text"], .cc-tasks input[type="search"], .cc-tasks select, .cc-tasks textarea { font-weight: 400; font-size: 14px; padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; box-sizing: border-box; width: 100%; }
.cc-task-views { display: flex; gap: 16px; border-bottom: 1px solid #eee; margin: 6px 0 12px; }
.cc-task-views a { padding: 8px 2px; color: #6b5c4e; text-decoration: none; border-bottom: 3px solid transparent; font-size: 14px; }
.cc-task-views a.active { color: var(--cc-primary); border-bottom-color: var(--cc-primary); font-weight: 600; }
.cc-task-filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cc-task-filter-row label { margin-bottom: 0; min-width: 170px; }
.cc-task-filter-row .cc-task-check-label { flex-direction: row; align-items: center; min-width: 0; padding-bottom: 8px; }
.cc-task-filter-row .cc-task-check-label input { width: auto; }
.cc-task-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.cc-tasks .cc-chip { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; padding: 4px 10px; border: 1px solid #d9cbbb; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; color: #5b4a3a; text-decoration: none; }
.cc-tasks .cc-chip input { display: none; }
.cc-tasks .cc-chip.is-on { background: var(--cc-primary); border-color: var(--cc-primary); color: var(--cc-on-primary, #fff); }
.cc-tasks .cc-chip-sm { padding: 1px 8px; font-size: 12px; }
.cc-chip-n { font-size: 11px; opacity: .7; }
.cc-task-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #eee; }
.cc-task { border-bottom: 1px solid #eee; }
.cc-task summary { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; cursor: pointer; list-style: none; }
.cc-task summary::-webkit-details-marker { display: none; }
.cc-task summary:hover { background: #fcfaf7; }
.cc-task-check { margin: 0; }
.cc-task-tick { width: 22px; height: 22px; border: 2px solid #b9a591; border-radius: 5px; background: #fff; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; margin-top: 1px; }
.cc-task.is-done .cc-task-tick { background: #6b8a74; border-color: #6b8a74; }
.cc-task-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-task-title { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.cc-task.is-done .cc-task-title { text-decoration: line-through; color: #8a7d70; font-weight: 500; }
.cc-task-notes-preview { font-weight: 400; font-size: 12.5px; color: #6b5c4e; overflow-wrap: anywhere; }
.cc-task-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 40%; }
.cc-task-body { padding: 4px 4px 14px 36px; }
.cc-task-actions { display: flex; gap: 14px; align-items: center; margin: 4px 0; }
.cc-task-meta { margin: 6px 0 0; }
.cc-task-group { border-bottom: 2px solid #eadfd2; padding-bottom: 4px; }
.cc-task-empty-trash { margin: 0 0 8px; }
@media (max-width: 700px) { .cc-task-add-grid { grid-template-columns: 1fr; } .cc-task summary { flex-wrap: wrap; } .cc-task-tags { max-width: 100%; justify-content: flex-start; width: 100%; padding-left: 32px; } .cc-task-body { padding-left: 4px; } }

/* 1.73.0 — changed-section flags on review screens */
.cc-changed-flag { display: inline-block; background: #c1443f; color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 600; line-height: 1.5; margin-right: 4px; vertical-align: middle; }
.cc-changed-field { border-left: 3px solid #c1443f; padding-left: 10px; }
.cc-changed-block { margin: 4px 0 14px; }
.cc-pending-banner ul { margin: 6px 0 10px; padding-left: 18px; }

/* 1.73.0 — red attention badges on the cc-admin tabs */
.cc-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #c1443f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; box-sizing: border-box; }
.cc-clear-test-data { border: 1px solid #e3c4c2; border-radius: 8px; padding: 4px 16px 14px; margin: 18px 0; background: #fdf8f7; }
.cc-danger-button { background: #c1443f !important; color: #fff !important; border-color: #c1443f !important; }

/* 1.73.1 — badges sit on the top-right corner of the tab, like an app-icon notification */
.cc-dashboard-tabs a { position: relative; }
.cc-dashboard-tabs a .cc-tab-badge { position: absolute; top: 0; right: 0; margin: 0; transform: translate(35%, -25%); box-shadow: 0 0 0 2px #fff; }

/* 1.74.0 — re-capture compare panel */
.cc-menu-compare { border: 1px solid #e2d6c8; border-radius: 8px; background: #fffaf4; padding: 4px 16px 16px; margin: 0 0 18px; }
.cc-compare-table td { padding: 6px 10px; }
.cc-compare-table td:first-child { width: 28px; }


/* 1.76.0 — quote builder: options dialog, order lines, empty-cart bar */
.cc-quote-menu-item-opts { flex-wrap: wrap; }
.cc-quote-in-order { font-size: 12px; font-weight: 600; color: var(--cc-primary); }
.cc-quote-cart-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cc-quote-lines { margin-top: 8px; }
.cc-quote-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e7dcd0; border-radius: 6px; background: #fff; margin-bottom: 6px; flex-wrap: wrap; }
.cc-quote-line-main { flex: 1; min-width: 160px; }
.cc-quote-line-name { font-weight: 600; font-size: 13.5px; }
.cc-quote-line-mods { font-size: 12px; color: #6b5c4e; }
.cc-quote-line input.cc-quote-line-qty { width: 64px; padding: 4px 6px; text-align: center; }
.cc-quote-line-price { font-weight: 600; font-size: 13px; min-width: 70px; text-align: right; }
.cc-quote-line button.cc-link { background: none; border: none; color: var(--cc-primary); cursor: pointer; text-decoration: underline; padding: 0 4px; font-size: 12.5px; }
.cc-quote-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-quote-modal-box { background: #fff; border-radius: 10px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 18px 20px; }
.cc-quote-modal-box h3 { margin: 0 0 8px; }
.cc-quote-modal-box fieldset { border: 1px solid #e7dcd0; border-radius: 6px; margin: 0 0 10px; padding: 8px 12px; }
.cc-quote-modal-box legend { font-weight: 600; font-size: 13.5px; padding: 0 4px; }
.cc-quote-modal-box label.cc-quote-opt { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13.5px; }
.cc-quote-modal-box .cc-quote-opt-desc { display: block; font-size: 12px; color: #6b5c4e; }
.cc-quote-modal-box .cc-quote-opt-off { opacity: .55; }
.cc-quote-mod-qty { margin: 10px 0; }
.cc-quote-mod-qty input { width: 80px; }
.cc-quote-mod-error { color: #b32d2e; font-size: 13px; margin: 6px 0; }
.cc-quote-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cc-quote-menu-item-qty input.cc-quote-qty-input { width: 52px; border: 1px solid #ddd; border-radius: 4px; padding: 4px 2px; }

/* 1.77.0 — "Choose options" was inheriting the 28px stepper-button size */
.cc-quote-menu-item-qty.cc-quote-menu-item-opts { flex-direction: column; align-items: stretch; gap: 6px; }
.cc-quote-menu-item-qty.cc-quote-menu-item-opts button.cc-quote-choose-options {
	width: 100%; height: auto; padding: 9px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.2;
	white-space: normal; background: var(--cc-primary); color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.cc-quote-menu-item-qty.cc-quote-menu-item-opts button.cc-quote-choose-options:hover { filter: brightness(1.1); background: var(--cc-primary); }
.cc-quote-menu-item-opts .cc-quote-in-order { text-align: center; }

/* 1.78.0 — Current Quotes tracker */
.cc-quote-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.cc-quote-filter { border: 1px solid #d9cbb9; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.cc-quote-filter.active { background: var(--cc-primary); color: #fff; border-color: var(--cc-primary); }
.cc-quote-filter-count { display: inline-block; min-width: 18px; text-align: center; font-weight: 700; }
.cc-quote-filter.has-attention:not(.active) { border-color: #b32d2e; color: #b32d2e; }
.cc-quote-cards details.cc-quote-card { margin: 0 0 10px; padding: 0; border: 1px solid #e7dcd0; border-left-width: 5px; border-radius: 8px; background: #fff; }
.cc-quote-tone-amber { border-left-color: #d98b00 !important; }
.cc-quote-tone-green { border-left-color: #1a7f37 !important; }
.cc-quote-tone-red   { border-left-color: #b32d2e !important; }
.cc-quote-tone-grey  { border-left-color: #999 !important; }
.cc-quote-card > summary { display: grid; grid-template-columns: minmax(160px,1.2fr) minmax(200px,1.6fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 400; list-style: none; }
.cc-quote-card > summary::-webkit-details-marker { display: none; }
.cc-quote-card-num { color: #8a7b6c; font-size: 12.5px; margin-left: 4px; }
.cc-quote-card-event { font-size: 13.5px; color: #4a3d31; }
.cc-quote-card-total { font-weight: 700; }
.cc-quote-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cc-quote-badge-amber { background: #fff3d6; color: #8a5a00; }
.cc-quote-badge-green { background: #ddf3e2; color: #14602b; }
.cc-quote-badge-red   { background: #fbe0e0; color: #8f1d1e; }
.cc-quote-badge-grey  { background: #eee; color: #555; }
.cc-quote-card-body { padding: 0 16px 14px; border-top: 1px solid #f0e8dd; }
.cc-quote-card-note { background: #fbe0e0; color: #8f1d1e; padding: 8px 12px; border-radius: 6px; margin: 12px 0 0; font-size: 13.5px; }
.cc-quote-card-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cc-quote-card-body h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8a7b6c; }
.cc-quote-card-body p { margin: 0 0 6px; font-size: 13.5px; }
.cc-quote-card-items { list-style: none; margin: 0; padding: 0; }
.cc-quote-card-items li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 0; border-bottom: 1px dashed #eadfd1; font-size: 13.5px; }
.cc-quote-card-item-name { font-weight: 600; }
.cc-quote-card-item-mod { flex-basis: 100%; font-size: 12.5px; color: #6b5c4e; padding-left: 10px; }
.cc-quote-card-grand { margin-top: 8px !important; text-align: right; }
.cc-quote-card-tax { text-align: right; color: #6b5c4e; }
.cc-quote-timeline { margin: 12px 0 8px; padding-left: 18px; font-size: 13px; color: #4a3d31; }
.cc-quote-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
	.cc-quote-card > summary { grid-template-columns: 1fr auto; }
	.cc-quote-card-event { grid-column: 1 / -1; order: 3; }
	.cc-quote-card-cols { grid-template-columns: 1fr; }
}

/* 1.80.0 — options dialog: each choice's name/description first, its selector underneath */
.cc-quote-modal-box label.cc-quote-opt { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; border-bottom: 1px solid #f0e8dd; }
.cc-quote-modal-box label.cc-quote-opt input { margin: 0; }

/* 1.80.0 — colour-coded order status */
.cc-status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #eee; color: #555; }
.cc-status-pill-cc-quoted   { background: #fff3d6; color: #8a5a00; }
.cc-status-pill-pending     { background: #fdecc8; color: #7a5200; }
.cc-status-pill-processing  { background: #ddf3e2; color: #14602b; }
.cc-status-pill-completed   { background: #dbe8fb; color: #1b4a8f; }
.cc-status-pill-on-hold     { background: #fbe0e0; color: #8f1d1e; }
.cc-status-pill-failed      { background: #f6caca; color: #7a1112; }
.cc-status-pill-cancelled   { background: #e6e6e6; color: #555; }
.cc-status-pill-refunded    { background: #ece0f7; color: #5b2a86; }

/* 1.80.1 — quote card actions: one button size, Delete pushed to the bottom-right */
.cc-quote-card-actions { align-items: center; margin-top: 8px; }
.cc-quote-card-actions form { margin: 0; display: inline-flex; }
.cc-quote-card-actions .button, .cc-quote-card-actions button.button, .cc-quote-card-actions a.button {
	box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	height: 40px; min-width: 150px; padding: 0 18px; margin: 0; font-size: 14px; line-height: 1; text-decoration: none;
}
.cc-quote-card-actions .cc-quote-delete-form { margin-left: auto; }
.cc-quote-card-actions .cc-quote-delete { border-color: #b32d2e; color: #b32d2e; background: #fff; }
.cc-quote-card-actions .cc-quote-delete:hover { background: #b32d2e; color: #fff; }
/* theme-proof: identical box for all four action buttons */
.cc-quote-card-actions .button, .cc-quote-card-actions button, .cc-quote-card-actions a.button {
	width: 170px !important; min-width: 170px !important; height: 40px !important; min-height: 40px !important;
	padding: 0 12px !important; margin: 0 !important; box-sizing: border-box !important; line-height: 1 !important;
	display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; font-size: 14px !important; border-radius: 6px;
}
.cc-quote-card-actions form { align-self: center; }
.cc-quote-card-actions .cc-quote-delete { border: 1px solid #b32d2e !important; }
.cc-quote-card-actions form { display: flex !important; height: 40px; line-height: 0; }
.cc-quote-card-actions .button, .cc-quote-card-actions button, .cc-quote-card-actions a.button { font-family: inherit !important; font-weight: 600; }
/* the generic ".cc-dashboard details form" rule adds margin-top:8px — cancel it here so the buttons line up */
.cc-dashboard details .cc-quote-card-actions form { margin: 0 !important; padding: 0; }
.cc-dashboard details .cc-quote-card-actions .cc-quote-delete-form { margin-left: auto !important; }

/* 1.80.2 — customer search on the New Quote form + expired-quote flag */
.cc-customer-picker { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cc-customer-picker > label { font-weight: 600; }
.cc-customer-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #d9cbb9; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.cc-customer-results li { padding: 8px 12px; cursor: pointer; font-size: 13.5px; }
.cc-customer-results li[role=option]:hover, .cc-customer-results li.active { background: #f5efe7; }
.cc-customer-results li.cc-customer-none { color: #6b5c4e; cursor: default; }
.cc-customer-flag { color: #8f1d1e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cc-customer-chosen { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f5efe7; border-radius: 6px; font-size: 13.5px; }
.cc-customer-chosen .cc-link { background: none; border: none; color: var(--cc-primary); text-decoration: underline; cursor: pointer; padding: 0; }

/* 1.80.3 — fixed-size instruction boxes (no drag handle) */
#cc-new-quote-form textarea { resize: none; }
.cc-quote-block-instructions textarea, #cc-quote-delivery-instructions { height: 90px; }
.cc-update-customer { background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 6px; padding: 8px 10px; }
.cc-customer-chosen .cc-customer-flag { margin-left: 4px; }

/* 0.80.7 — keep dashboard tabs evenly packed left to right, never stretched or wrapped by the theme */
.cc-dashboard-tabs { flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; gap: 4px; }
.cc-dashboard-tabs a { flex: 0 0 auto; margin-top: 0; margin-inline: 0; white-space: nowrap; }

/* 0.82.0 — dashboard tab bar: full content width, tabs spread evenly, readable size; wraps (never shrinks the text) on narrow screens */
.cc-dashboard-tabs { display: flex; flex-wrap: wrap; gap: 0; justify-content: space-between; align-items: flex-end; }
.cc-dashboard-tabs a { flex: 1 1 auto; text-align: center; padding: 12px 10px; font-size: 16px; white-space: nowrap; margin-inline: 0; }
@media (max-width: 760px) { .cc-dashboard-tabs a { flex: 0 0 auto; padding: 10px 12px; font-size: 15px; } }
/* WooCommerce order page: keep the Order again button from colliding with the next heading */
.woocommerce-order .order-again, .woocommerce-MyAccount-content .order-again { margin: 18px 0 28px; }
.woocommerce-order .order-again .button, .woocommerce-MyAccount-content .order-again .button { display: inline-block; }
