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

.cc-filter-bar {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}
.cc-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}
.cc-filter-field {
	display: flex;
	flex-direction: column;
	font-size: 13px;
}
.cc-filter-field label {
	font-weight: 600;
	margin-bottom: 4px;
}
.cc-field-hint {
	font-size: 11px;
	color: #888;
	margin-top: 3px;
	font-weight: normal;
	display: block;
	min-height: 14px;
}
.cc-address-row {
	display: flex;
	gap: 6px;
}
.cc-address-row input[type="text"] { flex: 1; }
.cc-geolocate-btn {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.cc-geolocate-btn:hover { background: #f5f5f5; }
.cc-filter-field input[type="date"],
.cc-filter-field input[type="text"],
.cc-filter-field select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	min-width: 160px;
	background: #fff;
}
.cc-toggle-group {
	display: flex;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}
.cc-toggle-btn {
	padding: 8px 16px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
}
.cc-toggle-btn.active {
	background: var(--cc-primary);
	color: var(--cc-on-primary);
}
.cc-apply-btn {
	padding: 10px 20px;
	border-radius: 6px;
	background: var(--cc-primary);
	color: var(--cc-on-primary);
	border: none;
	cursor: pointer;
	font-weight: 600;
}
.cc-apply-btn:hover { background: var(--cc-primary-hover); }
.cc-filter-status {
	margin-top: 10px;
	font-size: 13px;
	color: #555;
}
.cc-filter-status.error { color: #b32d2e; }

.cc-checkout-event-summary {
	background: #f7f7f7;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.cc-checkout-event-summary h3 { margin-top: 0; }

.cc-marketplace-grid-wrap ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .cc-marketplace-grid-wrap ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cc-marketplace-grid-wrap ul.products { grid-template-columns: 1fr; } }
.cc-marketplace-grid-wrap .cc-no-results { padding: 40px 20px; text-align: center; background: #f7f7f7; border-radius: 8px; color: #555; }
.cc-marketplace-pagination { margin-top: 24px; text-align: center; }

/* Store (brand) directory — [cc_marketplace_stores] */
.cc-browse-banner { background: #f5efe9; border: 1px solid #e7dcd0; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; color: #5c3d21; font-size: 14px; }
.cc-store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .cc-store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cc-store-grid { grid-template-columns: 1fr; } }
.cc-store-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.cc-store-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.cc-store-card-link { display: block; color: inherit; text-decoration: none; }
.cc-store-card-image { width: 100%; height: 160px; object-fit: cover; display: block; }
.cc-store-card-placeholder { display: flex; align-items: center; justify-content: center; background: var(--cc-primary); color: var(--cc-on-primary); font-size: 42px; font-weight: 700; }
.cc-store-card-body { padding: 16px; }
.cc-store-card-body h3 { margin: 0 0 6px; font-size: 18px; }
.cc-store-card-body p { margin: 0 0 10px; font-size: 14px; color: #666; }
.cc-store-card-cta { font-weight: 600; color: var(--cc-primary); font-size: 14px; }

/* Single brand page — templates/single-vendor.php */
.cc-single-vendor { max-width: 1100px; margin: 0 auto; padding: 20px; }
.cc-vendor-breadcrumb a { text-decoration: none; color: #555; }
.cc-vendor-header { display: flex; gap: 20px; align-items: flex-start; margin: 16px 0 20px; }
.cc-vendor-logo img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.cc-vendor-header-text h1 { margin: 0 0 8px; }
.cc-vendor-contact { color: #666; font-size: 14px; }
.cc-vendor-locations-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cc-vendor-location-chip { background: #f5efe9; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #5c3d21; }
.cc-vendor-menu-heading { margin-top: 8px; }
.cc-vendor-event-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: #f7f7f7;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
}
.cc-vendor-event-summary-empty { background: #f5efe9; color: #5c3d21; }
.cc-vendor-event-change { color: var(--cc-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cc-vendor-event-change:hover { text-decoration: underline; }

/* Public vendor application form — [cc_vendor_application] */
.cc-application-form-wrap { max-width: 560px; margin: 0 auto; }
.cc-application-form { display: flex; flex-direction: column; gap: 16px; }
.cc-application-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13.5px; color: #2b2118; }
.cc-application-form input,
.cc-application-form textarea {
	font-weight: normal;
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid #d8c9ba;
	border-radius: 7px;
	font-family: inherit;
}
.cc-apply-submit-btn {
	background: var(--cc-primary);
	color: var(--cc-on-primary);
	border: none;
	border-radius: 7px;
	padding: 12px 20px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
}
.cc-apply-submit-btn:hover { background: var(--cc-primary-hover); }
.cc-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.cc-notice.cc-success { background: #e6f4ea; color: #235c3a; }
.cc-notice.cc-error { background: #fbeaea; color: #b32d2e; }

/* One-brand-at-a-time cart lock (CC_Single_Brand_Cart) */
.cc-locked-brand-notice {
	background: #fbf3ea;
	border: 1px solid var(--cc-primary);
	color: #4a3220;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 0.95em;
}
.cc-locked-brand-notice a {
	color: var(--cc-primary);
	font-weight: 600;
	text-decoration: underline;
}
.cc-locked-brand-button {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* Reviews (CC_Reviews) — star display + submission form */
.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-leave-review { max-width: 520px; margin: 0 auto; }
.cc-leave-review-subhead { color: #6b6b6b; margin-top: -8px; margin-bottom: 24px; }
.cc-review-form fieldset { border: none; padding: 0; margin: 0 0 18px; }
.cc-review-form legend { font-weight: 600; margin-bottom: 6px; }
.cc-star-input { display: inline-flex; flex-direction: row-reverse; }
.cc-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.cc-star-input label { font-size: 1.9em; line-height: 1; color: #d8d8d8; cursor: pointer; padding: 0 2px; }
.cc-star-input input:checked ~ label,
.cc-star-input:hover label:hover,
.cc-star-input:hover label:hover ~ label { color: var(--cc-primary); }
.cc-review-form .cc-field { margin-bottom: 16px; }
.cc-review-form .cc-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.cc-review-form input[type="text"],
.cc-review-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #d8d8d8; border-radius: 6px; font: inherit; }

.cc-vendor-rating-summary { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.cc-location-rating-row { display: flex; align-items: center; gap: 8px; font-size: 0.92em; color: #4a3220; margin-top: 4px; }

.cc-review-list { list-style: none; margin: 20px 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); }
