/* Groom & company block — single product summary */

.martpress-gc-block {
	margin: 0 0 1.25rem;
	padding: 0;
}

.martpress-gc-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.martpress-gc-section {
	margin-bottom: 1.15rem;
}

.martpress-gc-section:last-child {
	margin-bottom: 0;
}

.martpress-gc-label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.45rem;
	color: #111;
}

.martpress-gc-label--sub {
	margin-top: 0.25rem;
}

.martpress-gc-req {
	color: #c00;
	font-weight: 700;
}

.martpress-gc-hint {
	font-size: 0.875rem;
	color: #555;
	margin: 0 0 0.65rem;
	line-height: 1.45;
}

/* —— Цвят: само визуални плочки (като Rednao / снимката), без видим текст —— */

.martpress-gc-colors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.martpress-gc-color-item {
	display: inline-flex;
	position: relative;
	vertical-align: top;
}

.martpress-gc-color-input {
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.martpress-gc-swatch {
	display: block !important;
	width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.martpress-gc-color-item--black .martpress-gc-swatch {
	background: #111;
	border-color: #2a2a2a;
}

.martpress-gc-color-item--white .martpress-gc-swatch {
	background: #fff;
	border-color: #ccc;
}

.martpress-gc-color-item--neutral .martpress-gc-swatch {
	background: #e5e7eb;
	border-color: #d1d5db;
}

.martpress-gc-swatch:hover {
	transform: scale(1.04);
}

.martpress-gc-color-input:checked + .martpress-gc-swatch {
	border-color: rgba(243, 156, 18, 0.9) !important;
	box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.35);
	transform: scale(1.06);
}

.martpress-gc-color-input:focus-visible + .martpress-gc-swatch {
	outline: 2px solid rgba(243, 156, 18, 0.95);
	outline-offset: 3px;
}

.martpress-gc-select {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 1rem;
}

.martpress-gc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: 0.65rem 0.75rem;
}

.martpress-gc-qty label {
	display: block;
	font-weight: 600;
	font-size: 0.8rem;
	margin-bottom: 0.2rem;
	color: #333;
}

.martpress-gc-qty input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.4rem 0.45rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95rem;
	text-align: center;
}

/* Sticky-buy scroll highlight */
.martpress-gc-block.mp-sticky-buy-target {
	outline: 2px solid #2563eb;
	outline-offset: 4px;
	border-radius: 8px;
	transition: outline-offset 0.15s ease;
}
