#lob-order-builder {
	margin-top: 20px;
	max-width: 700px;
}

.lob-warning {
	color: #8a6d3b;
	background: #fcf8e3;
	border: 1px solid #faebcc;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 13px;
	margin: 0;
}

.lob-measures {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lob-measure-btn {
	padding: 8px 14px;
	border: 1px solid #ccc !important;
	border-radius: 4px;
	background: #ffffff !important;
	color: #333333 !important;
	cursor: pointer;
}

.lob-measure-btn.is-selected {
	border-color: #8bab3f !important;
	background: #f2f7e6 !important;
	color: #3f5c1f !important;
	font-weight: 600;
}

.lob-variation-price {
	display: block;
	font-weight: 600;
	margin-top: 4px;
}

.lob-gallery-fallback {
	max-width: 400px;
	margin-bottom: 24px;
}

.lob-gallery-fallback img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.lob-field-color,
.lob-field-measure {
	margin-bottom: 16px;
}

.lob-btn-add:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.lob-config-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.lob-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.lob-colors {
	display: flex;
	gap: 8px;
}

.lob-color-swatch {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
}

.lob-color-swatch.is-selected {
	border-color: #333;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.lob-qty {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lob-qty-btn {
	width: 32px;
	height: 32px;
	cursor: pointer;
}

#lob-qty-input {
	width: 50px;
	text-align: center;
	padding: 6px;
}

.lob-help-text {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.lob-btn {
	padding: 10px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.lob-btn-add {
	background: #8bab3f;
	color: #fff;
}

.lob-btn-finalizar {
	background: #8bab3f;
	color: #fff;
	width: 100%;
	margin-top: 14px;
	padding: 12px;
}

.lob-btn-finalizar:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.lob-error {
	color: #c00;
	font-size: 13px;
	margin: -8px 0 16px;
}

#lob-pedido-preparacion {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fafafa;
	margin-top: 24px;
}

#lob-pedido-preparacion h3 {
	margin-top: 0;
}

#lob-referencias-list {
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 10px;
	margin: 12px 0;
	max-height: 260px;
	overflow-y: auto;
}

.lob-empty-msg {
	color: #888;
	text-align: center;
	margin: 20px 0;
}

.lob-ref-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border-bottom: 1px solid #eee;
}

.lob-ref-row:last-child {
	border-bottom: none;
}

.lob-ref-color-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
}

.lob-ref-name {
	font-weight: 600;
	min-width: 80px;
}

.lob-ref-detail {
	flex: 1;
	color: #666;
	font-size: 13px;
}

.lob-ref-subtotal {
	font-weight: 600;
}

.lob-ref-edit,
.lob-ref-delete {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	padding: 2px 6px;
}

.lob-resumen-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
}

.lob-resumen-subtotal {
	font-weight: 700;
	font-size: 16px;
	border-top: 1px solid #ddd;
	margin-top: 6px;
	padding-top: 8px;
}
