.mw-warehouse-selector {
	margin-bottom: 20px;
}

.mw-warehouse-label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
	color: #1a1a1a;
}

/* Radio card */
.mw-warehouse-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 8px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, opacity 0.2s;
	background: #fff;
}

.mw-warehouse-option:hover:not(.mw-disabled) {
	border-color: #888;
}

/* Selected state */
.mw-warehouse-option.mw-checked,
.mw-warehouse-option:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

/* Disabled / locked out */
.mw-warehouse-option.mw-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f9f9f9;
}

/* Out of stock */
.mw-warehouse-option.mw-out-of-stock {
	opacity: 0.45;
	cursor: not-allowed;
	background: #fafafa;
}

/* Hide the native radio */
.mw-warehouse-option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
	margin: 0;
	position: relative;
	cursor: pointer;
	transition: border-color 0.2s;
}

.mw-warehouse-option input[type="radio"]:checked {
	border-color: #2563eb;
}

.mw-warehouse-option input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2563eb;
}

.mw-warehouse-option input[type="radio"]:disabled {
	border-color: #ddd;
	cursor: not-allowed;
}

/* Warehouse info */
.mw-warehouse-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mw-warehouse-name {
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
}

.mw-warehouse-address {
	font-size: 12px;
	color: #888;
}

/* Stock badge */
.mw-warehouse-stock {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.mw-stock-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.mw-stock-in {
	color: #166534;
	background: #dcfce7;
}

.mw-stock-out {
	color: #991b1b;
	background: #fee2e2;
}

.mw-cart-lock {
	font-size: 11px;
	color: #b45309;
	white-space: nowrap;
}

/* Popup overlay */
.mw-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.55);
	align-items: center;
	justify-content: center;
}

.mw-popup-overlay.mw-popup-visible {
	display: flex;
}

.mw-popup {
	background: #fff;
	border-radius: 12px;
	padding: 32px 28px 24px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	animation: mw-popup-in 0.25s ease-out;
}

@keyframes mw-popup-in {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.mw-popup-icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 12px;
	color: #e2401c;
}

.mw-popup-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #1a1a1a;
}

.mw-popup-message {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin-bottom: 24px;
}

.mw-popup-btn {
	display: inline-block;
	padding: 10px 40px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #e2401c;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.mw-popup-btn:hover {
	background: #c73518;
}
