/* Modern Frontend Styles */
.wcmot-frontend-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	max-width: 600px;
	margin: 0 auto;
}

.wcmot-frontend-form {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	margin-bottom: 30px;
}

.wcmot-form-group {
	margin-bottom: 20px;
}

.wcmot-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #374151;
	font-size: 14px;
}

.wcmot-input {
	width: 100% !important;
	padding: 12px 16px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box !important;
	background-color: #ffffff !important;
	color: #374151 !important;
	height: 48px !important;
	line-height: normal !important;
	display: block !important;
}

select.wcmot-input {
	padding-right: 30px !important; /* Make room for native arrow */
	cursor: pointer;
}

.wcmot-input:focus {
	outline: none;
	border-color: var(--wcmot-primary-color, #007cba);
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wcmot-form-actions {
	text-align: right;
	margin-top: 10px;
}

.wcmot-btn {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-block;
}

.wcmot-btn-primary {
	background-color: var(--wcmot-primary-color, #007cba);
	color: #ffffff;
}

.wcmot-btn-primary:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.wcmot-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.wcmot-results-area {
	min-height: 50px;
}

.wcmot-loader {
	text-align: center;
	padding: 30px;
	color: #6b7280;
	font-style: italic;
	animation: wcmotPulse 1.5s infinite;
}

@keyframes wcmotPulse {
	0% { opacity: 0.6; }
	50% { opacity: 1; }
	100% { opacity: 0.6; }
}

/* Order Card - Reusing some admin structure but making it appropriate for frontend */
.wcmot-order-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
	animation: wcmotFadeInUp 0.4s ease-out;
}

@keyframes wcmotFadeInUp {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}

.wcmot-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px dashed #f3f4f6;
}

.wcmot-order-header h3 {
	margin: 0;
	font-size: 20px;
	color: #111827;
	font-weight: 700;
}

.wcmot-badge {
	padding: 6px 14px;
	border-radius: 9999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wcmot-order-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 480px) {
	.wcmot-order-details {
		grid-template-columns: 1fr;
	}
}

.wcmot-detail {
	display: flex;
	flex-direction: column;
}

.wcmot-label {
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
	font-weight: 600;
}

.wcmot-value {
	font-size: 15px;
	color: #111827;
	font-weight: 500;
}

.wcmot-order-items h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	color: #374151;
	font-weight: 600;
}

.wcmot-items-list {
	margin: 0;
	padding: 0;
	list-style: none;
	background: #f9fafb;
	border-radius: 8px;
	padding: 16px;
}

.wcmot-items-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 15px;
	color: #4b5563;
}

.wcmot-items-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wcmot-item-name {
	flex: 1;
	padding-right: 20px;
}

.wcmot-item-total {
	font-weight: 600;
	color: #111827;
}

/* Notices */
.wcmot-error {
	background: #fef2f2;
	color: #991b1b;
	padding: 16px 20px;
	border-radius: 8px;
	border-left: 4px solid #ef4444;
	font-weight: 500;
	animation: wcmotFadeIn 0.3s ease-out;
}

@keyframes wcmotFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Hide admin specific elements on frontend if any leak out */
.wcmot-order-actions {
	display: none;
}
