/**
 * Order edit CSS for EMW Multiple Order Management  plugin.
 *
 * Styles the linked orders section on the WooCommerce order edit page.
 *
 * @package EMW_Multiple_Order_Management
 */

/* Linked orders header. */
.emw-mom-linked-orders h4 {
	display: flex;
	width: max-content;
}

/* Primary order badge. */
.emw-mom-badge.role-primary {
	background: #06ad46;
	color: #fff;
	padding: 3px 6px;
	border-radius: 3px;
}

/* Secondary order badge. */
.emw-mom-badge.role-secondary {
	display: block;
	background: #d54e21;
	color: #fff;
	padding: 3px 6px;
	border-radius: 3px;
	width: max-content;
}

/* Modal for linked orders. */
.emw-mom-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content. */
.emw-mom-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 40%;
}

/* Modal close button. */
.emw-mom-close {
	float: right;
	font-size: 24px;
	cursor: pointer;
}

.emw-mom-audit-list {
	margin: 8px 0 0;
	padding-left: 16px;
	max-height: 180px;
	overflow: auto;
}

.emw-mom-audit-list li {
	margin-bottom: 6px;
	line-height: 1.35;
}

.emw-mom-audit-time {
	display: block;
	font-size: 11px;
	color: #646970;
}

.emw-mom-audit-event {
	font-weight: 600;
	color: #1d2327;
}
