/* Dropshipping settings > Price & stock sync panel. Scoped to .wc-ds-price-sync and the product edit field. */

.wc-ds-price-sync__card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 4px 16px 12px;
	margin: 16px 0;
	max-width: 960px;
}

.wc-ds-price-sync__card h4,
.wc-ds-price-sync__issues h4 {
	margin: 12px 0 8px;
	font-size: 14px;
}

.wc-ds-price-sync__mode {
	background: #f0f6fc;
	border-left: 4px solid #72aee6;
	padding: 8px 12px;
}

.wc-ds-price-sync__mode-text[hidden] {
	display: none;
}

.wc-ds-price-sync__group {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 4px 12px 8px;
	margin: 12px 0;
}

.wc-ds-price-sync__group legend {
	padding: 0 4px;
	font-weight: 600;
}

.wc-ds-price-sync__group.is-inactive {
	opacity: 0.6;
}

.wc-ds-price-sync__select.is-invalid {
	border-color: #d63638;
	box-shadow: 0 0 0 1px #d63638;
}

.wc-ds-price-sync__badge--hidden {
	background: #fcf9e8;
	color: #614200;
}

.wc-ds-price-sync__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 8px 0;
}

.wc-ds-price-sync__field label {
	min-width: 320px;
	font-weight: 600;
}

.wc-ds-price-sync__field .description {
	flex-basis: 100%;
	margin-left: 330px;
}

.wc-ds-price-sync__input.is-invalid {
	border-color: #d63638;
	box-shadow: 0 0 0 1px #d63638;
}

.wc-ds-price-sync__field-error {
	color: #d63638;
	font-weight: 600;
}

.wc-ds-price-sync__field-error:empty {
	display: none;
}

.wc-ds-price-sync__field[hidden],
.wc-ds-price-sync__schedule-needs-sync[hidden] {
	display: none;
}

.wc-ds-price-sync__status,
.wc-ds-price-sync__notice {
	min-height: 1.4em;
	margin: 4px 0;
}

.wc-ds-price-sync__status.is-error,
.wc-ds-price-sync__notice.is-error {
	color: #d63638;
}

.wc-ds-price-sync__status.is-success,
.wc-ds-price-sync__notice.is-success {
	color: #007017;
}

.wc-ds-price-sync__run {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 16px;
	margin: 0 0 8px;
}

.wc-ds-price-sync__run dt {
	font-weight: 600;
}

.wc-ds-price-sync__run dd {
	margin: 0;
}

.wc-ds-price-sync__issues {
	margin: 24px 0 8px;
}

.wc-ds-price-sync__filters {
	float: none;
	margin: 4px 0 8px;
}

.wc-ds-price-sync__filters a.current {
	color: #000;
	font-weight: 600;
}

.wc-ds-price-sync__table td {
	vertical-align: top;
}

.wc-ds-price-sync__table .column-checked {
	width: 150px;
}

.wc-ds-price-sync__table .column-actions {
	width: 210px;
}

.wc-ds-price-sync__table .column-actions .button {
	margin: 0 4px 4px 0;
}

.wc-ds-price-sync__chips {
	margin: 0;
}

.wc-ds-price-sync__chip {
	margin: 0 0 6px;
	padding-left: 8px;
	border-left: 3px solid #dba617;
}

.wc-ds-price-sync__chip--gone,
.wc-ds-price-sync__chip--stock_zero {
	border-left-color: #d63638;
}

.wc-ds-price-sync__chip--match_failed,
.wc-ds-price-sync__chip--currency_mismatch,
.wc-ds-price-sync__chip--suspicious_change {
	border-left-color: #8c8f94;
}

.wc-ds-price-sync__chip--promo_price {
	border-left-color: #2271b1;
}

.wc-ds-price-sync__promo-actions {
	display: block;
	margin-top: 4px;
}

.wc-ds-price-sync__promo-actions .button {
	margin: 0 4px 4px 0;
}

.wc-ds-price-sync__more summary {
	cursor: pointer;
	color: #2271b1;
}

.wc-ds-price-sync__more ul {
	margin: 4px 0 0 16px;
	list-style: disc;
}

.wc-ds-price-sync__badge {
	display: inline-block;
	margin: 4px 4px 0 0;
	padding: 0 6px;
	border-radius: 3px;
	background: #f0f0f1;
	font-size: 12px;
}

.wc-ds-price-sync__badge[hidden] {
	display: none;
}

.wc-ds-price-sync__badge--skip {
	background: #fcf0f1;
	color: #8a2424;
}

.wc-ds-price-sync__ali {
	display: inline-block;
	margin-top: 2px;
}

@media screen and (max-width: 782px) {
	.wc-ds-price-sync__field label {
		min-width: 0;
	}

	.wc-ds-price-sync__field .description {
		margin-left: 0;
	}

	.wc-ds-price-sync__table .column-checked,
	.wc-ds-price-sync__table .column-actions {
		width: auto;
	}

	.wc-ds-price-sync__table .column-product {
		width: 32%;
	}

	.wc-ds-price-sync__table td,
	.wc-ds-price-sync__table td * {
		overflow-wrap: anywhere;
	}

	.wc-ds-price-sync__table td .button,
	.wc-ds-price-sync__table td .button.button-small {
		height: auto;
		white-space: normal;
		overflow-wrap: normal;
		line-height: 1.5;
		padding-top: 9px;
		padding-bottom: 9px;
	}
}
