/* Connector Selector — product page + chart modal styles */

/* ---- Selector block on the product page ---- */
.wccs-selector {
	margin: 0 0 1.25em;
	padding: 1em 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wccs-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.wccs-selector select {
	width: 100%;
	max-width: 420px;
	padding: 0.5em;
}

.wccs-selected-note {
	margin: 0.5em 0 0;
	font-size: 0.9em;
	color: #2e7d32;
	font-weight: 600;
}

.wccs-chart-link-wrap {
	margin: 0.75em 0 0;
	font-size: 0.95em;
}

.wccs-chart-link {
	text-decoration: underline;
	font-weight: 600;
	cursor: pointer;
}

.wccs-admin-edit {
	display: inline-block;
	margin: 0.75em 0 0 0.75em;
	padding: 0.45em 0.9em;
	border: 1px solid #7a9a01;
	border-radius: 4px;
	color: #7a9a01;
	text-decoration: none;
	font-size: 0.9em;
}

/* ---- Chart modal ---- */
body.wccs-modal-open {
	overflow: hidden;
}

.wccs-modal-overlay[hidden] {
	display: none !important;
}

.wccs-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wccs-modal {
	background: #fff;
	color: #222;
	width: 100%;
	max-width: 860px;
	max-height: 90vh;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wccs-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.wccs-modal-header h2 {
	margin: 0;
	font-size: 1.4em;
}

.wccs-modal-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wccs-print {
	background: #7a9a01;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 0.5em 1.2em;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.05em;
}

.wccs-close {
	background: none;
	border: 0;
	font-size: 1.8em;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}

.wccs-modal-search {
	padding: 14px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.wccs-modal-search input {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}

.wccs-modal-body {
	overflow-y: auto;
	padding: 0 20px 20px;
}

.wccs-part-number {
	margin: 0.6em 0 0;
	font-size: 0.95em;
}

.wccs-part-number strong {
	color: #7a9a01;
	letter-spacing: 0.03em;
}

.wccs-brand-group {
	margin-top: 10px;
}

.wccs-brand-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: #ececec;
	border: 0;
	padding: 12px 16px;
	font-size: 1em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #333;
	cursor: pointer;
	text-align: left;
}

.wccs-brand-toggle:hover,
.wccs-brand-group.wccs-open .wccs-brand-toggle {
	background: #8dc21f;
	color: #fff;
}

.wccs-chevron::after {
	content: "\25BE";
	font-size: 1em;
}

.wccs-brand-group.wccs-open .wccs-chevron::after {
	content: "\25B4";
}

.wccs-brand-body {
	padding-top: 10px;
}

.wccs-card {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.wccs-card-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.wccs-card-price {
	font-size: 0.9em;
	color: #555;
	font-weight: 400;
}

.wccs-select {
	background: #7a9a01;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 0.5em 1.4em;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 1.1em;
	font-weight: 700;
}

.wccs-select:hover {
	background: #66820a;
}

.wccs-card-body {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.wccs-card-image img {
	max-width: 90px;
	height: auto;
	border-radius: 4px;
}

.wccs-card-models {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.55;
}

.wccs-no-results {
	padding: 20px 0;
	text-align: center;
	color: #777;
}

/* ---- Cart ---- */
.wccs-locked-qty {
	display: inline-block;
	min-width: 2em;
	text-align: center;
	font-weight: 600;
}

@media (max-width: 600px) {
	.wccs-card-body {
		flex-direction: column;
	}

	.wccs-modal {
		max-height: 95vh;
	}
}
