/**
 * 租赁系统前端样式
 */

.ihouse-rental-widget {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
	max-width: 600px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* 价格方案展示 */
.rental-pricing-plans {
	margin-bottom: 30px;
}

.rental-pricing-plans h3 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

.pricing-plan {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	margin-bottom: 10px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
}

.plan-title {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.plan-price {
	font-size: 18px;
	font-weight: 600;
	color: #d32f2f;
}

.plan-unit {
	font-size: 12px;
	color: #999;
	margin-left: 5px;
}

/* 备注信息 */
.rental-notes {
	background: #e3f2fd;
	border-left: 4px solid #0073aa;
	padding: 15px;
	margin-bottom: 30px;
	border-radius: 4px;
}

.rental-notes p {
	margin: 0;
	color: #1565c0;
	font-size: 14px;
	line-height: 1.6;
}

/* 日期选择器部分 */
.rental-date-picker-section {
	margin-bottom: 30px;
}

.rental-date-picker-section h3 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

.date-picker-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.date-picker-item {
	flex: 1;
	min-width: 200px;
}

.date-picker-item label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.date-picker-item input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.date-picker-item input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* 价格摘要框 */
.rental-price-summary {
	background: #f5f5f5;
	border: 2px solid #0073aa;
	border-radius: 8px;
	padding: 20px;
	margin-top: 30px;
}

.rental-price-summary h3 {
	margin: 0 0 20px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.rental-availability-info {
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.rental-availability-info.success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.rental-availability-info.error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.availability-message {
	margin: 0;
}

.rental-price-info {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
}

.price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 14px;
	border-bottom: 1px solid #eee;
}

.price-row:last-child {
	border-bottom: none;
}

.price-label {
	color: #666;
	font-weight: 500;
}

.price-value {
	color: #333;
	font-weight: 600;
}

.price-row.total {
	font-weight: 600;
	font-size: 16px;
	padding-top: 15px;
	border-top: 2px solid #ddd;
	margin-top: 10px;
}

.price-row.total .price-value {
	color: #d32f2f;
	font-size: 18px;
}

.rental-submit-btn {
	width: 100%;
	padding: 14px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.rental-submit-btn:hover:not(:disabled) {
	background: #005a87;
}

.rental-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Litepicker 样式覆盖 */
.litepicker {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.litepicker .month-item {
	border-radius: 4px;
}

.litepicker .day-item {
	border-radius: 4px;
}

.litepicker .day-item.is-in-range {
	background: #e3f2fd;
}

.litepicker .day-item.is-start-date,
.litepicker .day-item.is-end-date {
	background: #0073aa;
	color: #fff;
}

/* 响应式设计 */
@media (max-width: 600px) {
	.ihouse-rental-widget {
		padding: 20px;
		margin: 15px 0;
	}

	.rental-pricing-plans h3,
	.rental-date-picker-section h3 {
		font-size: 16px;
	}

	.pricing-plan {
		padding: 12px;
		margin-bottom: 8px;
	}

	.plan-title {
		font-size: 13px;
	}

	.plan-price {
		font-size: 16px;
	}

	.date-picker-row {
		flex-direction: column;
		gap: 15px;
	}

	.date-picker-item {
		min-width: 100%;
	}

	.price-row {
		font-size: 13px;
	}

	.price-row.total {
		font-size: 15px;
	}

	.price-row.total .price-value {
		font-size: 16px;
	}

	.rental-submit-btn {
		padding: 12px;
		font-size: 14px;
	}
}

