/* ==========================================================================
   Crown Quote System — styles
   Color values approximated from the "Our range of bins" reference screen.
   Replace the CSS variables below with exact brand values from
   crownwastesol.wpenginepowered.com once available (see notes at bottom).
   ========================================================================== */

:root {
	--cqs-green: #7AC143;
	--cqs-green-dark: #649a37;
	--cqs-navy: #1c2b4a;
	--cqs-orange: #f0791f;
	--cqs-orange-dark: #d4680f;
	--cqs-black: #1a1a1a;
	--cqs-text: #2b2b2b;
	--cqs-text-light: #8a8a8a;
	--cqs-border: #e7e7e7;
	--cqs-card-bg: #fafafa;
	--cqs-card-bg-form: #f6f6fb;
	--cqs-radius: 10px;
	--cqs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Shop grid / filters ---------- */

.cqs-shop-layout {
	font-family: var(--cqs-font);
	color: var(--cqs-text);
}

.cqs-shop-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 1px solid var(--cqs-border);
	padding-bottom: 16px;
	margin-bottom: 24px;
}

.cqs-shop-title {
	font-size: 36px;
	font-weight: 500;
	margin: 0;
	color: var(--cqs-text);
}

.cqs-shop-header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cqs-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--cqs-text-light);
}

.cqs-mini-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--cqs-border);
	border-radius: 8px;
	color: var(--cqs-text);
	text-decoration: none;
	flex-shrink: 0;
}

.cqs-mini-cart:hover {
	border-color: var(--cqs-green);
	color: var(--cqs-green-dark);
}

.cqs-mini-cart-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--cqs-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	transition: transform 0.15s ease;
}

.cqs-mini-cart-badge.cqs-mini-cart-bump {
	transform: scale(1.3);
}

.cqs-sort-select {
	border: 1px solid var(--cqs-border);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 13px;
	color: var(--cqs-text);
}

.cqs-shop-body {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.cqs-shop-sidebar {
	width: 200px;
	flex-shrink: 0;
}

.cqs-shop-sidebar h3 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.cqs-bin-type-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cqs-bin-type-list li {
	margin-bottom: 10px;
	font-size: 14px;
}

.cqs-bin-type-list input[type="checkbox"] {
	accent-color: var(--cqs-green);
	margin-right: 8px;
}

.cqs-shop-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	transition: opacity 0.2s ease;
}

.cqs-shop-grid.cqs-loading {
	opacity: 0.4;
	pointer-events: none;
}

@media (max-width: 900px) {
	.cqs-shop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.cqs-shop-body {
		flex-direction: column;
	}
	.cqs-shop-sidebar {
		width: 100%;
	}
}

.cqs-product-card {
	background: var(--cqs-card-bg);
	border-radius: var(--cqs-radius);
	padding: 20px 20px 24px;
	text-align: left;
}

.cqs-product-image img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 12px;
}

.cqs-product-name {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 2px;
}

.cqs-product-name a {
	color: var(--cqs-text);
	text-decoration: none;
}

.cqs-product-sub {
	font-size: 11px;
	color: var(--cqs-text-light);
	margin: 0 0 16px;
	line-height: 1.5;
}

.cqs-bulk-note {
	font-size: 11px;
	color: var(--cqs-text-light);
	text-align: center;
	margin: 10px 0 0;
}

/* Get a Quote button (applies to WooCommerce's own .button too) */
.cqs-product-card .button,
a.added_to_cart,
.cqs-submit-btn {
	display: block;
	width: 100%;
	background: var(--cqs-green);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cqs-product-card .button:hover,
.cqs-submit-btn:hover {
	background: var(--cqs-green-dark);
}

.cqs-product-card .button.cqs-added,
a.added_to_cart.cqs-added {
	background: var(--cqs-green-dark);
	opacity: 0.9;
}

.cqs-quote-page-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	max-width: 500px;
}

.cqs-page-select-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.cqs-page-select-row label {
	font-weight: 600;
	font-size: 13px;
}

.cqs-no-products {
	grid-column: 1 / -1;
	color: var(--cqs-text-light);
}

/* ---------- Quote page: two-column layout ([cqs_quote_cart]) ---------- */

.cqs-quote-page {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	font-family: var(--cqs-font);
}

.cqs-quote-left {
	flex: 1;
	min-width: 0;
}

.cqs-quote-right {
	width: 380px;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.cqs-quote-page {
		flex-direction: column;
	}
	.cqs-quote-right {
		width: 100%;
	}
}

.cqs-quote-cart-wrap {
	color: var(--cqs-text);
}

.cqs-quote-title {
	font-size: 34px;
	font-weight: 700;
	color: var(--cqs-navy);
	margin: 0 0 8px;
}

.cqs-quote-subtitle {
	color: var(--cqs-text-light);
	font-size: 15px;
	margin: 0 0 24px;
}

.cqs-empty-cart {
	color: var(--cqs-text-light);
}

.cqs-empty-cart a {
	color: var(--cqs-orange);
	font-weight: 600;
	margin-left: 6px;
}

.cqs-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.cqs-cart-table thead th {
	text-align: left;
	font-size: 13px;
	font-weight: 700;
	color: var(--cqs-navy);
	padding: 0 10px 12px 0;
	border-bottom: 2px solid var(--cqs-border);
}

.cqs-cart-row td {
	padding: 18px 10px 18px 0;
	border-bottom: 1px solid var(--cqs-border);
	vertical-align: middle;
}

.cqs-cart-col-product {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cqs-cart-thumb img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 6px;
	background: var(--cqs-card-bg);
	border: 1px solid var(--cqs-border);
}

.cqs-cart-name {
	color: var(--cqs-text);
	font-weight: 500;
	text-decoration: none;
	font-size: 15px;
}

.cqs-cart-category {
	color: var(--cqs-orange);
	text-decoration: none;
	font-size: 14px;
}

.cqs-cart-category:hover {
	text-decoration: underline;
}

.cqs-qty-input {
	width: 60px;
	padding: 8px 10px;
	border: 1px solid var(--cqs-border);
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
}

.cqs-qty-input::-webkit-outer-spin-button,
.cqs-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cqs-remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #6b7280;
	text-decoration: none;
}

.cqs-remove-link:hover {
	background: #fdeaea;
	color: #b23b3b;
}

.cqs-cart-actions {
	margin-top: 28px;
}

.cqs-add-more-btn {
	display: inline-block;
	background: var(--cqs-black);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cqs-add-more-btn:hover {
	background: #333;
}

/* ---------- Quote form card ("Your details") ---------- */

.cqs-quote-form-wrap {
	background: var(--cqs-card-bg-form);
	border-radius: 14px;
	padding: 32px 28px;
	font-family: var(--cqs-font);
}

.cqs-quote-form-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--cqs-navy);
	margin: 0 0 8px;
}

.cqs-quote-form-sub {
	color: var(--cqs-text-light);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 22px;
}

.cqs-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.cqs-form-field {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cqs-form-field-full {
	margin-bottom: 12px;
}

.cqs-form-field input,
.cqs-form-field textarea,
.cqs-form-field select {
	border: 1px solid var(--cqs-border);
	border-radius: 8px;
	padding: 13px 14px;
	font-size: 14px;
	font-family: var(--cqs-font);
	background: #fff;
	color: var(--cqs-text);
	width: 100%;
	box-sizing: border-box;
}

.cqs-form-field textarea {
	resize: vertical;
}

.cqs-country-select {
	background: #eeeef4 !important;
	appearance: auto;
}

.cqs-submit-btn {
	display: block;
	width: 100%;
	background: var(--cqs-orange);
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
	margin-top: 8px;
}

.cqs-submit-btn:hover {
	background: var(--cqs-orange-dark);
}

.cqs-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.cqs-notice-success {
	background: #eaf7e5;
	color: var(--cqs-green-dark);
	border: 1px solid var(--cqs-green);
}

.cqs-quote-right-native {
	max-width: 460px;
	margin-top: 40px;
}

.cqs-notice-error {
	background: #fdeaea;
	color: #b23b3b;
	border: 1px solid #e8b4b4;
}

/* ---------- Admin ---------- */

.cqs-admin-wrap .cqs-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #555;
}

.cqs-admin-wrap .cqs-status-new { background: #e3f2fd; color: #1565c0; }
.cqs-admin-wrap .cqs-status-contacted { background: #fff8e1; color: #a56b00; }
.cqs-admin-wrap .cqs-status-quoted { background: #eaf7e5; color: var(--cqs-green-dark); }
.cqs-admin-wrap .cqs-status-closed { background: #eee; color: #777; }

.cqs-detail-grid {
	display: flex;
	gap: 30px;
	margin-top: 20px;
}

.cqs-detail-main {
	flex: 2;
}

.cqs-detail-side {
	flex: 1;
}

.cqs-box {
	background: #fff;
	border: 1px solid var(--cqs-border);
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.cqs-settings-subheading {
	margin-top: 24px;
}

.cqs-settings-divider {
	margin: 32px 0;
	border: none;
	border-top: 1px solid var(--cqs-border);
}

.cqs-shortcode-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 700px;
	margin-top: 12px;
}

.cqs-shortcode-card {
	background: #fff;
	border: 1px solid var(--cqs-border);
	border-radius: 8px;
	padding: 16px 20px;
}

.cqs-shortcode-card-text p.description {
	margin: 4px 0 12px;
}

.cqs-shortcode-copy-row {
	display: flex;
	gap: 8px;
}

.cqs-shortcode-input {
	flex: 1;
	font-family: Consolas, Monaco, monospace;
	background: var(--cqs-card-bg);
	border: 1px solid var(--cqs-border);
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 13px;
	color: var(--cqs-text);
}

.cqs-copy-btn {
	min-width: 80px;
}
