/**
 * FoodOrd Checkout Validation Styles
 */

/* Minimum order notice styling */
.foodord-minimum-order-notice {
	background-color: #fff3cd;
	border-color: #ffeaa7;
	padding: 12px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	border-left: 4px solid #f39c12;
	display: flex;
	align-items: center;
}

.foodord-minimum-order-notice .foodord-notice-icon {
	margin-right: 10px;
}

/* Disabled checkout button styling */
.foodord-disabled-checkout {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #cccccc;
	border-color: #999999;
	pointer-events: none;
}

.foodord-disabled-checkout:hover {
	background-color: #cccccc;
	border-color: #999999;
	box-shadow: none;
}

/* Checkout form minimum order warning */
.woocommerce-checkout .foodord-minimum-warning {
	background: #fef5e7;
	border: 1px solid #f9e79f;
	padding: 15px;
	margin: 15px 0;
	border-radius: 5px;
	text-align: center;
}/* Responsive adjustments */
@media (max-width: 768px) {
	.foodord-minimum-order-notice {
		flex-direction: column;
		text-align: center;
	}
	
	.foodord-minimum-order-notice .foodord-notice-icon {
		margin-right: 0;
		margin-bottom: 10px;
	}
}

/* Animation for notice appearance */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.foodord-minimum-order-notice.foodord-animated {
	animation: slideDown 0.3s ease-out;
}

/* Additional button states */
button[disabled].foodord-disabled-checkout {
	background-image: none;
	text-shadow: none;
}

/* Progress bar to minimum (optional enhancement) */
.foodord-minimum-progress {
	width: 100%;
	background-color: #f0f0f0;
	border-radius: 10px;
	margin: 10px 0;
	overflow: hidden;
}

.foodord-minimum-progress-bar {
	height: 10px;
	background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
	border-radius: 10px;
	transition: width 0.3s ease;
}

/* Block-based checkout styles */
.foodord-block-minimum-notice {
	margin-bottom: 20px;
	border-left: 4px solid #f39c12;
}/* Block checkout disabled button */
.wc-block-components-checkout-place-order-button.foodord-disabled-checkout {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #cccccc;
	border-color: #999999;
	pointer-events: none;
}

.wc-block-components-checkout-place-order-button.foodord-disabled-checkout:hover {
	background-color: #cccccc;
	border-color: #999999;
	box-shadow: none;
}
