.wc-cco-box .wc-cco-cards {
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

a.wc-cco-card {
	padding: 8px 10px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f9f9f9;
	text-decoration: none !important;
	color: #2c3338;
	font-size: 12px;
}

a.wc-cco-card:hover {
	background: #f0f0f1;
	border-color: #8c8f94;
	text-decoration: none !important;
}

.wc-cco-card-number {
	grid-column: 1;
	grid-row: 1;
	font-weight: 600;
	font-size: 13px;
}

.wc-cco-card-status {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	padding: 2px 9px;
	border-radius: 10px;
	background: #eef1f4;
	font-size: 0.7em;
	line-height: 1.6;
}

.wc-cco-card-date {
	grid-column: 1;
	grid-row: 2;
	color: #646970;
}

.wc-cco-card-total {
	grid-column: 2;
	grid-row: 2;
	justify-self: end;
	color: #646970;
}

.wc-cco-empty {
	color: #646970;
	font-style: italic;
}

.wc-cco-parent-note {
	padding: 10px 12px;
	background: #fff8e5;
	border: 1px solid #f0d999;
	margin: 12px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.5;
}
.postbox .inside>p.wc-cco-parent-note:last-child {
	margin-bottom: 12px !important;
}

.wc-cco-create-btn {
	margin-top: 6px;
	width: 100%;
}

.wc-cco-hint {
	margin-top: 6px;
	font-size: 11px;
}

.wc-cco-manual-link {
	margin-top: 12px;
	margin-bottom: 8px;
	border-top: 1px solid #dcdcde;
	padding-top: 10px;
}

.wc-cco-manual-link summary {
	margin: 4px 0 8px;
	padding: 4px 10px;
	cursor: pointer;
	display: inline-block;
	font-size: 11px;
	color: #50575e;
	font-weight: 500;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	list-style: none;
}

.wc-cco-manual-link summary::-webkit-details-marker {
	display: none;
}

.wc-cco-manual-link summary:hover {
	background: #f0f0f1;
	border-color: #8c8f94;
}

.wc-cco-manual-link[open] summary {
	margin-bottom: 10px;
}

/* ACF's own relationship widget renders inside the <details> - trim its
   default spacing so it doesn't look out of place in the sidebar. */
.wc-cco-manual-link .acf-field {
	margin: 0 !important;
	padding: 0 !important;
}

.wc-cco-manual-link .acf-label {
	display: none; /* label suppressed at the field-group level already, belt & braces */
}

/* The "selected values" column is ACF's native way to remove a link (its
   own x button) without writing to the DB until the page is saved via the
   normal Update button - restyle it compactly rather than hiding it. */
.wc-cco-manual-link .selection {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wc-cco-manual-link .choices,
.wc-cco-manual-link .values {
	width: 100% !important;
	float: none !important;
}

.wc-cco-manual-link .values {
	padding-top: 8px;
	border-top: 1px dashed #dcdcde;
}

/* Front-end: single order view "Connected Orders" box */
.wc-cco-connected-box {
	margin-top: 24px;
}

.wc-cco-connected-heading {
	margin: 0 0 8px;
}

.wc-cco-connected-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

a.wc-cco-connected-item {
	padding: 10px 14px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 12px;
	min-width: 320px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 5px;
	text-decoration: none !important;
	transition: border-color 0.15s ease;
}

a.wc-cco-connected-item:hover {
	border-color: rgba( 0, 0, 0, 0.25 );
	text-decoration: none !important;
}

.wc-cco-connected-number {
	grid-column: 1;
	grid-row: 1;
	font-weight: 600;
}

.wc-cco-connected-status {
	padding: 2px 9px;
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	font-size: 0.7em;
	line-height: 1.6;
	background: #eef1f4;
	border-radius: 10px;
}

.wc-cco-connected-date {
	grid-column: 1;
	grid-row: 2;
	font-size: 0.85em;
	color: #767676;
}

.wc-cco-connected-total {
	grid-column: 2;
	grid-row: 2;
	justify-self: end;
	font-size: 0.85em;
	color: #767676;
}

/* Front-end: order-pay page connected-order context */
.wc-cco-pay-connected {
	margin-bottom: 24px;
}

.wc-cco-pay-connected-note {
	margin-bottom: 10px;
}
.wc-cco-list-pill {
	margin-left: 8px;
	padding: 2px 12px 2px 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
	border-radius: 12px;
	background: #eef1f4;
	cursor: default;
}

.wc-cco-list-pill-icon {
	width: 13px;
	height: 13px;
	font-size: 13px;
	line-height: 1;
	color: #767676;
}

.wc-cco-list-pill-link {
	font-size: 0.85em;
	font-weight: 400;
	text-decoration: none;
}
