.apex-fulfil-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.apex-fulfil-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 150px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.apex-fulfil-badge.is-available {
	background: #eaf3fc;
	border-color: #1565c0;
}

.apex-fulfil-badge.is-unavailable {
	opacity: 0.45;
}

.apex-fulfil-badge-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #1565c0;
}

.apex-fulfil-badge.is-unavailable .apex-fulfil-badge-icon {
	color: #999;
}

.apex-fulfil-badge-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.apex-fulfil-badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.apex-fulfil-badge-label {
	font-size: 13px;
	font-weight: 600;
}

.apex-fulfil-badge-sub {
	font-size: 11px;
	color: #666;
}

.apex-fulfil-cart-line-note {
	margin-top: 4px;
	font-size: 12px;
	color: #1565c0;
}

.apex-fulfil-notice {
	margin: 0 0 16px;
	padding: 8px 12px;
	font-size: 13px;
	color: #8a5300;
	background: #fff6e5;
	border: 1px solid #ffdf9b;
	border-radius: 6px;
}

/*
 * This row is injected into the checkout review-order table (a <tr><td
 * colspan="2">) so the surrounding theme's own table/cell rules — cell
 * padding, borders, text alignment, link/button colors — can otherwise win
 * on specificity or source order over this stylesheet. The layout- and
 * color-critical rules below are !important for the same reason
 * .apex-import-log-head h3 is in admin.css: without it, a theme's own
 * ".shop_table td" (or similar) rule can silently override it.
 */
.apex-fulfil-checkout-row td {
	padding: 0 0 16px !important;
	border: 0 !important;
	background: transparent !important;
}

.apex-fulfil-checkout-cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

@media (max-width: 480px) {
	.apex-fulfil-checkout-cards {
		grid-template-columns: 1fr;
	}
}

.apex-fulfil-checkout-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	gap: 3px;
	width: 100%;
	padding: 8px 6px;
	background: #fff !important;
	border: 1px solid #ddd !important;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	line-height: normal;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.apex-fulfil-checkout-card:hover:not(:disabled) {
	border-color: #ffd200 !important;
}

.apex-fulfil-checkout-card:focus-visible {
	outline: 2px solid #ffd200;
	outline-offset: 2px;
}

.apex-fulfil-checkout-card.is-selected {
	background: #fff8d9 !important;
	border-color: #ffd200 !important;
}

.apex-fulfil-checkout-card:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.apex-fulfil-checkout-card-icon {
	width: 16px;
	height: 16px;
	/* Left a dark neutral, not the brand yellow — a yellow stroke on the
	   card's white background would have very poor contrast/legibility. */
	color: #333 !important;
}

.apex-fulfil-checkout-card:disabled .apex-fulfil-checkout-card-icon {
	color: #999 !important;
}

.apex-fulfil-checkout-card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.apex-fulfil-checkout-card-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #222 !important;
}

.apex-fulfil-checkout-card:disabled .apex-fulfil-checkout-card-label {
	color: #999 !important;
}

.apex-fulfil-checkout-card-sub {
	font-size: 9.5px;
	color: #666 !important;
}

.apex-cart-item-sku {
	display: inline-block;
	font-size: 11.5px;
	opacity: 0.65;
}
