/**
 * Orders admin list styles.
 */

.wpdude-dc-status {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.wpdude-dc-status--pending {
	background: #f0f0f1;
	color: #50575e;
}

.wpdude-dc-status--failed {
	background: #fcf0f1;
	color: #b32d2e;
}

.wpdude-dc-status--expired {
	background: #f0f0f1;
	color: #646970;
}

.wpdude-dc-status--new {
	background: #f0f6fc;
	color: #135e96;
}

.wpdude-dc-status--shipped {
	background: #edfaef;
	color: #007017;
}

.wpdude-dc-status--returned {
	background: #fcf9e8;
	color: #996800;
}

.wpdude-dc-status--refunded {
	background: #f0f0f1;
	color: #50575e;
}

.wpdude-dc-risk {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.wpdude-dc-risk--normal {
	background: #00a32a;
	color: #fff;
}

.wpdude-dc-risk--elevated {
	background: #dba617;
	color: #1d2327;
}

.wpdude-dc-risk--highest {
	background: #d63638;
	color: #fff;
}

.wpdude-dc-risk--not_assessed,
.wpdude-dc-risk--unknown {
	background: #dcdcde;
	color: #50575e;
}

/* Order detail layout */
.wpdude-dc-order-detail {
	max-width: 960px;
}

.wpdude-dc-order-detail__back {
	margin-bottom: 1rem;
}

.wpdude-dc-order-detail__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #dcdcde;
}

.wpdude-dc-order-detail__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.35rem;
}

.wpdude-dc-order-detail__title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.wpdude-dc-order-detail__paid {
	margin: 0;
	color: #646970;
	font-size: 0.95rem;
}

.wpdude-dc-order-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-end;
}

.wpdude-dc-order-detail__actions form {
	display: inline;
	margin: 0;
}

.wpdude-dc-order-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.25rem;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wpdude-dc-order-card__title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
}

.wpdude-dc-order-detail__split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 782px) {
	.wpdude-dc-order-detail__split {
		grid-template-columns: 1fr 1fr;
	}
}

.wpdude-dc-order-detail__label {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #646970;
}

.wpdude-dc-order-detail__name {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.wpdude-dc-order-detail__email,
.wpdude-dc-order-detail__address {
	margin: 0;
	line-height: 1.5;
}

.wpdude-dc-order-detail__address {
	white-space: pre-line;
}

.wpdude-dc-order-detail__copy {
	margin-top: 0.75rem;
}

.wpdude-dc-order-product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 600px) {
	.wpdude-dc-order-product {
		grid-template-columns: 120px 1fr;
		align-items: start;
	}
}

.wpdude-dc-order-product__image {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
}

.wpdude-dc-order-product__image--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a7aaad;
	font-size: 0.8rem;
}

.wpdude-dc-order-product__name {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.wpdude-dc-order-product__meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpdude-dc-order-product__meta li {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.wpdude-dc-order-totals {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #dcdcde;
	max-width: 20rem;
	margin-left: auto;
}

.wpdude-dc-order-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.35rem 0;
	font-size: 0.95rem;
}

.wpdude-dc-order-totals__row--total {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid #dcdcde;
	font-size: 1.1rem;
	font-weight: 700;
}

.wpdude-dc-order-fulfilil__rows {
	margin: 0 0 1.25rem;
}

.wpdude-dc-order-fulfilil__row {
	display: grid;
	grid-template-columns: 10rem 1fr;
	gap: 0.5rem 1rem;
	margin: 0.4rem 0;
	align-items: center;
}

.wpdude-dc-order-fulfilil__key {
	color: #646970;
	font-weight: 600;
}

.wpdude-dc-order-fulfilil__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0.75rem;
	align-items: stretch;
}

.wpdude-dc-order-fulfilil__actions > form,
.wpdude-dc-order-fulfilil__actions > a.button {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	margin: 0;
}

.wpdude-dc-order-fulfilil__actions .button {
	width: 100%;
	min-height: 3.25rem;
	font-size: 1.05rem !important;
	line-height: 1.3 !important;
	padding: 0.75rem 0.85rem !important;
	justify-content: center;
	text-align: center;
	white-space: normal;
	box-sizing: border-box;
}

@media (max-width: 782px) {
	.wpdude-dc-order-fulfilil__actions {
		flex-wrap: wrap;
	}

	.wpdude-dc-order-fulfilil__actions > form,
	.wpdude-dc-order-fulfilil__actions > a.button {
		flex: 1 1 calc(50% - 0.4rem);
	}
}

.wpdude-dc-order-detail__tech {
	margin: 0 0 0.75rem;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 0.75rem 1rem;
}

.wpdude-dc-order-detail__tech > summary {
	cursor: pointer;
	font-weight: 600;
	color: #1d2327;
}

.wpdude-dc-order-detail__tech[open] > summary {
	margin-bottom: 0.75rem;
}

.wpdude-dc-order-detail__tech-table {
	width: 100%;
	border-collapse: collapse;
}

.wpdude-dc-order-detail__tech-table th,
.wpdude-dc-order-detail__tech-table td {
	text-align: left;
	padding: 0.4rem 0.5rem 0.4rem 0;
	vertical-align: top;
	border-bottom: 1px solid #f0f0f1;
}

.wpdude-dc-order-detail__tech-table th {
	width: 10rem;
	color: #646970;
	font-weight: 600;
}

.wpdude-dc-order-detail__raw {
	margin: 0;
	padding: 0.75rem;
	background: #f6f7f7;
	border-radius: 3px;
	overflow: auto;
	max-height: 24rem;
	white-space: pre-wrap;
	font-size: 12px;
}

.wpdude-dc-order-detail__copy-feedback {
	margin-left: 0.5rem;
	color: #00a32a;
	font-size: 0.85rem;
}
