.ncm-order-card-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
	max-width: 620px;
}

.ncm-order-card-preview {
	color: #1d2327;
	display: grid;
	flex: 0 1 240px;
	gap: 6px;
	max-width: 100%;
	text-decoration: none;
}

.ncm-order-card-preview:hover,
.ncm-order-card-preview:focus {
	color: #135e96;
}

.ncm-order-card-preview-label {
	color: #646970;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.ncm-order-card-shell {
	aspect-ratio: 2022 / 1275;
	background-color: #111312;
	background-image: var(--ncm-card-base, url("../images/blank-card-base.png"));
	background-position: center;
	background-size: cover;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	display: block;
	filter: drop-shadow(0 10px 14px rgba(12, 18, 16, 0.16));
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ncm-order-card-shell::after {
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.28),
		inset 0 -16px 30px rgba(0, 0, 0, 0.16);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.ncm-order-card-artwork {
	background: transparent;
	border: 0;
	border-radius: 0;
	display: block;
	height: 100%;
	inset: 0;
	max-width: none;
	object-fit: contain;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.ncm-order-card-preview-empty {
	cursor: default;
	pointer-events: none;
}

.ncm-order-card-preview-empty .ncm-order-card-shell::after {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.ncm-order-card-placeholder-mark {
	border: 1px solid rgba(100, 105, 112, 0.34);
	border-radius: 999px;
	display: block;
	height: 14px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	z-index: 1;
}

.widefat .column-ncm_card_preview {
	width: 230px;
}

.ncm-order-list-card-previews {
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 0;
	max-width: 220px;
	min-height: 66px;
	min-width: 206px;
	position: relative;
}

.ncm-order-list-card-previews .ncm-order-card-preview {
	flex: 0 0 96px;
	gap: 4px;
}

.ncm-order-list-card-previews .ncm-order-card-preview-label {
	font-size: 10px;
}

.ncm-order-list-card-previews .ncm-order-card-shell {
	border-radius: 5px;
	filter: drop-shadow(0 4px 7px rgba(12, 18, 16, 0.12));
}

.ncm-order-list-card-previews-empty .ncm-order-card-preview-label {
	opacity: 0.58;
}

.ncm-order-list-card-count {
	background: #1d2327;
	border-radius: 999px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 6px;
	position: absolute;
	right: -6px;
	top: 16px;
}

.ncm-card-material-frosted-glass .ncm-order-card-shell {
	background-color: #f5fbff;
	background-image: linear-gradient(135deg, rgba(231, 248, 255, 0.82), rgba(255, 255, 255, 0.9) 48%, rgba(223, 228, 255, 0.78)), var(--ncm-card-base, url("../images/blank-card-base.png"));
	background-blend-mode: screen, normal;
}

.ncm-card-material-brushed-steel .ncm-order-card-shell {
	background-color: #cdd5d9;
	background-image:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, rgba(0, 0, 0, 0.05) 2px, transparent 4px),
		linear-gradient(90deg, rgba(217, 222, 224, 0.78), rgba(245, 247, 247, 0.84) 18%, rgba(122, 133, 138, 0.72) 46%, rgba(244, 245, 243, 0.8) 72%, rgba(162, 173, 176, 0.76)),
		var(--ncm-card-base, url("../images/blank-card-base.png"));
	background-blend-mode: overlay, screen, normal;
}

.ncm-card-material-pearl-white .ncm-order-card-shell {
	background-color: #fbfaf4;
	background-image: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.95) 0, rgba(249, 247, 239, 0.88) 42%, rgba(215, 255, 241, 0.72) 70%, rgba(255, 225, 240, 0.66) 100%), var(--ncm-card-base, url("../images/blank-card-base.png"));
	background-blend-mode: screen, normal;
}

.ncm-card-material-holo-night .ncm-order-card-shell {
	background-color: #151222;
	background-image: linear-gradient(135deg, rgba(21, 18, 34, 0.48), rgba(21, 50, 59, 0.64) 34%, rgba(23, 122, 120, 0.58) 62%, rgba(215, 255, 88, 0.44) 82%, rgba(37, 24, 49, 0.56)), var(--ncm-card-base, url("../images/blank-card-base.png"));
	background-blend-mode: screen, normal;
}

.ncm-order-card-preview-empty .ncm-order-card-shell {
	background:
		linear-gradient(135deg, rgba(34, 113, 177, 0.08), rgba(60, 67, 74, 0.04)),
		#f6f7f7;
	border-color: rgba(100, 105, 112, 0.28);
	border-style: dashed;
	filter: none;
}

@media (max-width: 782px) {
	.ncm-order-card-preview {
		flex-basis: min(100%, 220px);
	}

	.widefat .column-ncm_card_preview {
		width: auto;
	}

	.ncm-order-list-card-previews {
		min-width: 182px;
	}

	.ncm-order-list-card-previews .ncm-order-card-preview {
		flex-basis: 84px;
	}
}
