.wcrs-widget-title {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.3;
}

.wcrs-wrapper {
	display: block;
	margin-bottom: 20px;
}

.wcrs-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.wcrs-select {
	width: 100%;
	display: block;
}

.wcrs-counter {
	display: block;
	margin-top: 10px;
	font-size: 14px;
}

.wcrs-qty-locked {
	cursor: not-allowed !important;
	opacity: 0.6 !important;
	pointer-events: none !important;
}

.wcrs-edit-link {
	display: inline-block;
	margin-top: 5px;
	font-size: 12px;
	text-decoration: none;
	color: #0073aa;
}

.wcrs-edit-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.wcrs-editor-notice {
	padding: 20px;
	background-color: #fff8e5;
	border: 1px solid #ffb81c;
	border-radius: 4px;
	text-align: center;
	color: #333;
	margin: 20px 0;
}

.wcrs-editor-notice span {
	display: block;
	font-size: 48px;
	margin-bottom: 10px;
	opacity: 0.5;
}

.wcrs-notice-disabled {
	background-color: #f3f3f3;
	border-color: #ccc;
}

/* ============================================
   BOX QUANTITY SELECTOR
   ============================================ */
.wcrs-box-qty-selector {
	margin-bottom: 16px;
	padding: 14px 16px;
	background: #f8f9fa;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wcrs-box-qty-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wcrs-box-qty-label {
	font-weight: 600;
	font-size: 14px;
	margin: 0;
}

.wcrs-box-total-info {
	margin: 0;
	font-size: 13px;
	color: #50575e;
}

.wcrs-box-qty-controls {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.wcrs-box-qty-btn {
	background: #fff;
	border: none;
	width: 36px;
	height: 36px;
	font-size: 18px;
	cursor: pointer;
	color: #2271b1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	padding: 0;
	line-height: 1;
}

/* SVG icons from Elementor's inline-SVG mode */
.wcrs-box-qty-btn svg,
.wcrs-box-qty-btn i {
	width: 1em;
	height: 1em;
	fill: currentColor;
	display: block;
	pointer-events: none;
}

.wcrs-box-qty-btn:hover {
	background: #2271b1;
	color: #fff;
}

.wcrs-box-qty-input {
	width: 52px;
	text-align: center;
	border: none;
	border-left: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	height: 36px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
	-moz-appearance: textfield;
}

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

.wcrs-box-total-info {
	font-size: 13px;
	color: #50575e;
}

/* ============================================
   BOX GROUPS in counter
   ============================================ */
.wcrs-counter .wcrs-box-complete {
	color: #46b450;
	font-style: normal;
}

/* ============================================
   GRID LAYOUT for dropdown options
   ============================================ */
.wcrs-wrapper .ts-dropdown-content.wcrs-grid-dropdown,
.wcrs-wrapper .ts-dropdown-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 4px;
	padding: 8px;
}

.wcrs-wrapper .ts-dropdown .option {
	text-align: center;
	padding: 8px 6px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	background: #fff;
	font-size: 13px;
	user-select: none;
}

/* El div interior solo centra el texto — sin fondo ni borde propios */
.wcrs-wrapper .ts-dropdown .option .wcrs-option-grid-item {
	display: block;
}

.wcrs-wrapper .ts-dropdown .option:hover,
.wcrs-wrapper .ts-dropdown .option.active {
	background-color: #2271b1;
	color: #fff;
	border-color: #2271b1;
	transform: translateY(-1px);
}

.wcrs-wrapper .ts-dropdown .option.selected {
	background-color: #46b450;
	color: #fff;
	border-color: #46b450;
}

.wcrs-wrapper .ts-dropdown .no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 20px;
	color: #999;
	font-style: italic;
}

/* ============================================
   ITEMS (Tags seleccionados)
   ============================================ */
.wcrs-wrapper .ts-control .item {
	display: inline-flex;
	align-items: center;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
	padding: 4px 8px !important;
	margin: 2px;
	font-size: 13px;
	font-weight: 500;
}

/* neutralize TomSelect remove_button plugin border-left */
.wcrs-wrapper .ts-wrapper.plugin-remove_button .item .remove {
	border-left: none !important;
}

.wcrs-wrapper .ts-control .item .remove {
	color: inherit;
	background: transparent;
	border: none !important;
	margin-left: 6px;
	padding: 0 2px;
	text-decoration: none !important;
	border-radius: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	box-sizing: border-box;
	line-height: 1;
	opacity: 0.75;
	transition: opacity 0.15s ease;
}

.wcrs-wrapper .ts-control .item .remove:hover {
	opacity: 1;
	background: transparent !important;
}

.wcrs-wrapper .ts-control .item .remove svg,
.wcrs-wrapper .ts-control .item .remove i {
	width: 1em;
	height: 1em;
	fill: currentColor;
	display: block;
	pointer-events: none;
}

/* ============================================
   CONTROL (Input principal)
   ============================================ */
.wcrs-wrapper .ts-control {
	min-height: 45px;
	padding: 6px 8px;
}

.wcrs-wrapper .ts-dropdown {
	max-height: 400px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-radius: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
	.wcrs-wrapper .ts-dropdown-content {
		grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
		gap: 3px;
	}

	.wcrs-wrapper .ts-dropdown .option {
		padding: 6px 4px;
		font-size: 12px;
	}
}
