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

.ihouse-rental-widget {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	width: 100%;
	box-sizing: border-box;
}

/* 标题 */
.rental-widget-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #007cba;
}

/* 每日价格盒子（单独一行） */
.rental-daily-price-box {
	background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
	color: #fff;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 15px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.daily-price-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.9;
	margin-bottom: 8px;
}

.daily-price-value {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.rental-price-display h3 {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rental-price-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 12px;
}

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

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

.rental-price-item-value {
	color: #333;
	font-weight: 600;
	font-size: 15px;
}

/* 日期选择区 */
.rental-date-section {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 15px;
}

.rental-date-section h3 {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rental-date-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.rental-date-group {
	display: flex;
	flex-direction: column;
}

.rental-date-group label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.rental-date-group input[type="date"] {
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.3s ease;
	background: #fff;
	color: #333;
}

.rental-date-group input[type="date"]:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.rental-date-group input[type="date"]:disabled {
	background: #f5f5f5;
	color: #999;
	cursor: not-allowed;
}

/* 价格摘要框 */
.rental-price-summary {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border: 2px solid #007cba;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 15px;
	display: none;
}

.rental-price-summary.show {
	display: block;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rental-summary-title {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rental-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.rental-summary-label {
	color: #555;
	font-weight: 500;
}

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

.rental-summary-row.total {
	padding-top: 15px;
	margin-top: 10px;
	border-top: 2px solid rgba(0, 0, 0, 0.1);
	font-size: 16px;
}

.rental-summary-row.total .rental-summary-label {
	font-weight: 700;
	color: #007cba;
}

.rental-summary-row.total .rental-summary-value {
	font-size: 20px;
	color: #007cba;
	font-weight: 700;
}

/* 提交按钮 */
.rental-submit-btn {
	width: 100%;
	padding: 10px 20px;
	background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.rental-submit-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
	transform: translateY(-2px);
}

.rental-submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

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

/* 备注信息 */
.rental-notes {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 15px;
	margin-top: 20px;
	border-radius: 4px;
	font-size: 13px;
	color: #856404;
	line-height: 1.6;
}

.rental-notes strong {
	color: #333;
}

/* 可用性信息 */
.rental-availability-info {
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 13px;
	display: none;
}

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

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

.availability-message {
	margin: 0;
	font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.ihouse-rental-widget {
		padding: 12px;
	}

	.rental-widget-title {
		font-size: 16px;
	}

	.rental-date-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.rental-price-display,
	.rental-date-section {
		padding: 10px;
	}

	.rental-submit-btn {
		padding: 10px 15px;
		font-size: 13px;
	}

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

	.calendar-date {
		height: 28px;
		font-size: 10px;
	}

	.calendar-month-year {
		font-size: 12px;
		min-width: 120px;
	}

	.calendar-prev-btn,
	.calendar-next-btn {
		padding: 4px 8px;
		font-size: 11px;
	}

	.rental-availability-calendar {
		padding: 6px;
	}

	.rental-daily-price-box {
		padding: 10px;
	}

	.daily-price-value {
		font-size: 20px;
	}

	.daily-price-label {
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.ihouse-rental-widget {
		padding: 10px;
		margin: 10px 0;
	}

	.rental-widget-title {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.rental-price-item,
	.rental-summary-row {
		font-size: 11px;
	}

	.rental-price-item-value,
	.rental-summary-value {
		font-size: 12px;
	}

	.calendar-date {
		height: 24px;
		font-size: 9px;
	}

	.weekday {
		font-size: 9px;
		padding: 2px 0;
	}

	.calendar-month-year {
		font-size: 11px;
		min-width: 100px;
	}

	.calendar-prev-btn,
	.calendar-next-btn {
		padding: 3px 6px;
		font-size: 10px;
	}

	.rental-availability-calendar {
		padding: 5px;
		margin-bottom: 10px;
	}

	.rental-daily-price-box {
		padding: 8px;
		margin-bottom: 10px;
	}

	.daily-price-value {
		font-size: 18px;
	}

	.daily-price-label {
		font-size: 9px;
	}

	.legend-item {
		font-size: 10px;
		gap: 4px;
	}

	.legend-color {
		width: 14px;
		height: 14px;
	}
}

/* 租赁流程共享页面样式 */
.ihouse-rental-confirmation,
body.ihouse-rental-flow--checkout .woocommerce,
body.ihouse-rental-flow--thankyou .woocommerce {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.ihouse-rental-confirmation {
	padding-top: 24px;
	padding-bottom: 40px;
}

.ihouse-rental-confirmation__shell,
body.ihouse-rental-flow--checkout .woocommerce-checkout,
body.ihouse-rental-flow--thankyou .woocommerce-order {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ihouse-rental-confirmation__card,
.ihouse-rental-confirmation__grid,
body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order,
body.ihouse-rental-flow--thankyou .woocommerce-order-overview,
body.ihouse-rental-flow--thankyou .woocommerce-order-details,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
	background: #fff;
	border: 1px solid #dbe3eb;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

.ihouse-rental-confirmation__card,
body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order,
body.ihouse-rental-flow--thankyou .woocommerce-order-overview,
body.ihouse-rental-flow--thankyou .woocommerce-order-details,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
	padding: 28px 32px;
}

.ihouse-rental-confirmation__card--intro {
	padding-bottom: 24px;
}

.ihouse-rental-confirmation__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: start;
	gap: 24px;
	padding: 24px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ihouse-rental-confirmation__grid > *,
body.ihouse-rental-flow--checkout form.checkout > *,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns > *,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns--addresses > * {
	min-width: 0;
}

.ihouse-rental-confirmation__steps,
body.ihouse-rental-flow--checkout .woocommerce-breadcrumb,
body.ihouse-rental-flow--thankyou .woocommerce-order > p:first-child {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
	color: #52606d;
	padding: 2px 0 10px;
}

.ihouse-rental-confirmation__steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #edf2f7;
	font-weight: 600;
}

.ihouse-rental-confirmation__steps .is-active {
	background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(0, 124, 186, 0.24);
}

.ihouse-rental-confirmation h2,
.ihouse-rental-confirmation h3,
body.ihouse-rental-flow--checkout .woocommerce h1,
body.ihouse-rental-flow--checkout .woocommerce h2,
body.ihouse-rental-flow--checkout .woocommerce h3,
body.ihouse-rental-flow--thankyou .woocommerce h1,
body.ihouse-rental-flow--thankyou .woocommerce h2,
body.ihouse-rental-flow--thankyou .woocommerce h3 {
	margin-top: 0;
	color: #0f172a;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ihouse-rental-confirmation h2,
body.ihouse-rental-flow--checkout .woocommerce h1,
body.ihouse-rental-flow--thankyou .woocommerce h1 {
	font-size: 30px;
	margin-bottom: 20px;
}

.ihouse-rental-confirmation h3,
body.ihouse-rental-flow--checkout .woocommerce h2,
body.ihouse-rental-flow--checkout .woocommerce h3,
body.ihouse-rental-flow--thankyou .woocommerce h2,
body.ihouse-rental-flow--thankyou .woocommerce h3 {
	font-size: 22px;
	margin-bottom: 16px;
}

.ihouse-rental-confirmation p,
body.ihouse-rental-flow--checkout .woocommerce p,
body.ihouse-rental-flow--thankyou .woocommerce p {
	color: #475569;
	line-height: 1.7;
	font-size: 15px;
}

.ihouse-rental-confirmation__summary .rental-summary-row,
body.ihouse-rental-flow--checkout .shop_table tr,
body.ihouse-rental-flow--thankyou .shop_table tr {
	border-color: #e5edf5;
}

.ihouse-rental-confirmation__summary .rental-summary-row {
	padding: 12px 0;
	font-size: 15px;
	align-items: flex-start;
	gap: 16px;
}

.ihouse-rental-confirmation__summary .rental-summary-row > span:first-child {
	color: #334155;
	font-weight: 600;
}

.ihouse-rental-confirmation__summary .rental-summary-row > span:last-child {
	color: #0f172a;
	font-weight: 600;
	text-align: right;
}

.ihouse-rental-confirmation__summary .rental-summary-row.total {
	font-size: 18px;
}

.ihouse-rental-confirmation__summary .rental-summary-row.total > span:first-child,
.ihouse-rental-confirmation__summary .rental-summary-row.total > span:last-child {
	color: #007cba;
	font-weight: 700;
}

.ihouse-rental-confirmation__form .form-row {
	margin-bottom: 18px;
}

.ihouse-rental-confirmation__form label,
body.ihouse-rental-flow--checkout .woocommerce form .form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #334155;
}

.ihouse-rental-confirmation__form input,
.ihouse-rental-confirmation__form select,
.ihouse-rental-confirmation__form textarea,
body.ihouse-rental-flow--checkout .woocommerce form .input-text,
body.ihouse-rental-flow--checkout .woocommerce form select,
body.ihouse-rental-flow--checkout .select2-container .select2-selection--single {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.ihouse-rental-flow--checkout .select2-container {
	width: 100% !important;
	max-width: 100%;
}

.ihouse-rental-confirmation__form input:focus,
.ihouse-rental-confirmation__form select:focus,
.ihouse-rental-confirmation__form textarea:focus,
body.ihouse-rental-flow--checkout .woocommerce form .input-text:focus,
body.ihouse-rental-flow--checkout .woocommerce form select:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.12);
}

.ihouse-rental-confirmation__form .button.alt,
body.ihouse-rental-flow--checkout .woocommerce #payment #place_order,
body.ihouse-rental-flow--thankyou .woocommerce a.button,
body.ihouse-rental-flow--thankyou .woocommerce .button {
	min-height: 50px;
	padding: 14px 24px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 14px 28px rgba(0, 124, 186, 0.22);
}

body.ihouse-rental-flow--checkout .woocommerce-checkout {
	gap: 24px;
}

body.ihouse-rental-flow--checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
	align-items: start;
	gap: 24px;
	padding: 24px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
	border: 1px solid #dbe3eb;
	border-radius: 20px;
	box-sizing: border-box;
	overflow: hidden;
}

body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order {
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details > div,
body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary,
body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details address,
body.ihouse-rental-flow--thankyou .woocommerce-order-details .shop_table {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.ihouse-rental-flow--checkout .woocommerce table.shop_table,
body.ihouse-rental-flow--thankyou .woocommerce table.shop_table {
	width: 100%;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	table-layout: fixed;
	background: #fff;
}

body.ihouse-rental-flow--checkout #order_review table.shop_table {
	table-layout: auto;
}

body.ihouse-rental-flow--checkout .woocommerce table.shop_table th,
body.ihouse-rental-flow--checkout .woocommerce table.shop_table td,
body.ihouse-rental-flow--thankyou .woocommerce table.shop_table th,
body.ihouse-rental-flow--thankyou .woocommerce table.shop_table td {
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.6;
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.ihouse-rental-flow--checkout .woocommerce table.shop_table th,
body.ihouse-rental-flow--thankyou .woocommerce table.shop_table th {
	font-weight: 700;
	color: #334155;
}

body.ihouse-rental-flow--checkout #order_review table.shop_table th,
body.ihouse-rental-flow--checkout #order_review table.shop_table td,
body.ihouse-rental-flow--checkout #order_review table.shop_table .product-name,
body.ihouse-rental-flow--checkout #order_review table.shop_table .product-total,
body.ihouse-rental-flow--checkout #order_review table.shop_table .wc-item-meta,
body.ihouse-rental-flow--checkout #order_review table.shop_table .wc-item-meta li,
body.ihouse-rental-flow--checkout #order_review table.shop_table .wc-item-meta-item,
body.ihouse-rental-flow--checkout #order_review table.shop_table .wc-item-meta-label,
body.ihouse-rental-flow--checkout #order_review table.shop_table .wc-item-meta-value {
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary,
body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon {
	margin: 0 0 16px;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #dbe3eb;
	border-radius: 18px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__header {
	margin-bottom: 14px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

/* 收货信息多行显示 */
body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary {
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.8;
	color: #334155;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__header {
	margin-bottom: 10px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__row {
	color: #475569;
	word-break: break-all;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__row + .ihouse-rental-shipping-summary__row {
	margin-top: 2px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__actions {
	margin-top: 14px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-copy-shipping-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__copy-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: #475569;
}

body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__notice {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.6;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form p {
	margin: 0;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	width: 100%;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon p {
	margin: 0;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .form-row-first {
	flex: 1 1 220px;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .form-row-last {
	flex: 0 0 auto;
}

body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .input-text {
	min-height: 46px;
}

body.ihouse-rental-flow--checkout #payment {
	background: #f8fafc;
	border: 1px solid #dbe3eb;
	border-radius: 18px;
	padding: 20px;
}

body.ihouse-rental-flow--thankyou .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.ihouse-rental-flow--thankyou .woocommerce-order-overview li {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #f8fafc;
	font-size: 15px;
	line-height: 1.6;
}

body.ihouse-rental-flow--thankyou .woocommerce-order-overview li strong,
body.ihouse-rental-flow--thankyou .woocommerce-order-overview li .amount {
	display: block;
	margin-top: 6px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
	display: none;
}

body.ihouse-rental-flow--thankyou .ihouse-rental-thankyou-shipping {
	display: block;
}

body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

body.ihouse-rental-flow--thankyou .woocommerce-column--billing-address,
body.ihouse-rental-flow--thankyou .woocommerce-column--shipping-address {
	margin: 0;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #f8fafc;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

body.ihouse-rental-flow--thankyou .woocommerce-column__title,
body.ihouse-rental-flow--checkout .woocommerce-billing-fields h3,
body.ihouse-rental-flow--checkout .woocommerce-additional-fields h3 {
	font-size: 22px;
	margin-bottom: 16px;
	font-weight: 700;
}

body.ihouse-rental-flow--checkout .woocommerce-notices-wrapper,
body.ihouse-rental-flow--thankyou .woocommerce-notices-wrapper,
.ihouse-rental-confirmation .woocommerce-message {
	margin-bottom: 0;
}

body.ihouse-rental-flow--checkout .col2-set,
body.ihouse-rental-flow--thankyou .col2-set {
	margin: 0;
}

body.ihouse-rental-flow--checkout .col2-set,
body.ihouse-rental-flow--checkout .col2-set .col-1,
body.ihouse-rental-flow--checkout .col2-set .col-2,
body.ihouse-rental-flow--thankyou .woocommerce-column {
	width: 100%;
	max-width: 100%;
	float: none;
}

body.ihouse-rental-flow--thankyou .woocommerce-customer-details address {
	overflow-wrap: anywhere;
	font-style: normal;
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

body.ihouse-rental-flow--thankyou .ihouse-rental-thankyou-shipping address {
	overflow-wrap: anywhere;
	font-style: normal;
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

body.ihouse-rental-flow--checkout .woocommerce form .form-row label,
body.ihouse-rental-flow--checkout .woocommerce #order_review_heading,
body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order-table,
body.ihouse-rental-flow--checkout #payment,
body.ihouse-rental-flow--thankyou .woocommerce-order-details,
body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
	font-size: 15px;
}

.ihouse-rental-flow-note {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: #64748b;
}

body.ihouse-rental-flow--checkout #payment .ihouse-rental-flow-note {
	margin-top: 16px;
}

body.ihouse-rental-flow--thankyou .ihouse-rental-flow-note {
	margin-top: 20px;
}

body.ihouse-rental-flow--checkout .woocommerce form .input-text,
body.ihouse-rental-flow--checkout .woocommerce form select,
body.ihouse-rental-flow--checkout .select2-container .select2-selection--single,
.ihouse-rental-confirmation__form input,
.ihouse-rental-confirmation__form select,
.ihouse-rental-confirmation__form textarea {
	font-size: 15px;
	line-height: 1.5;
}

.ihouse-rental-confirmation__form .button.alt,
body.ihouse-rental-flow--checkout .woocommerce #payment #place_order,
body.ihouse-rental-flow--thankyou .woocommerce a.button,
body.ihouse-rental-flow--thankyou .woocommerce .button {
	font-size: 15px;
	line-height: 1.2;
}

@media (max-width: 980px) {
	.ihouse-rental-confirmation__grid,
	body.ihouse-rental-flow--checkout form.checkout,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details .woocommerce-columns--addresses {
		grid-template-columns: 1fr;
	}

	.ihouse-rental-confirmation__card,
	.ihouse-rental-confirmation__grid,
	body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
	body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview,
	body.ihouse-rental-flow--thankyou .woocommerce-order-details,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
		padding: 22px 20px;
	}
}

@media (max-width: 768px) {
	.ihouse-rental-confirmation,
	body.ihouse-rental-flow--checkout .woocommerce,
	body.ihouse-rental-flow--thankyou .woocommerce {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ihouse-rental-confirmation {
		padding-top: 16px;
		padding-bottom: 28px;
	}

	.ihouse-rental-confirmation__shell,
	body.ihouse-rental-flow--checkout .woocommerce-checkout,
	body.ihouse-rental-flow--thankyou .woocommerce-order {
		gap: 16px;
	}

	.ihouse-rental-confirmation__grid,
	body.ihouse-rental-flow--checkout form.checkout {
		gap: 16px;
		padding: 16px;
		border-radius: 16px;
	}

	.ihouse-rental-confirmation__card,
	body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
	body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview,
	body.ihouse-rental-flow--thankyou .woocommerce-order-details,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
		padding: 18px 16px;
		border-radius: 16px;
	}

	.ihouse-rental-confirmation__steps {
		font-size: 14px;
	}

	.ihouse-rental-confirmation__steps span {
		width: 100%;
		justify-content: flex-start;
	}

	.ihouse-rental-confirmation h2,
	body.ihouse-rental-flow--checkout .woocommerce h1,
	body.ihouse-rental-flow--thankyou .woocommerce h1 {
		font-size: 26px;
	}

	.ihouse-rental-confirmation h3,
	body.ihouse-rental-flow--checkout .woocommerce h2,
	body.ihouse-rental-flow--checkout .woocommerce h3,
	body.ihouse-rental-flow--thankyou .woocommerce h2,
	body.ihouse-rental-flow--thankyou .woocommerce h3,
	body.ihouse-rental-flow--thankyou .woocommerce-column__title,
	body.ihouse-rental-flow--checkout .woocommerce-billing-fields h3,
	body.ihouse-rental-flow--checkout .woocommerce-additional-fields h3 {
		font-size: 20px;
	}

	.ihouse-rental-confirmation p,
	body.ihouse-rental-flow--checkout .woocommerce p,
	body.ihouse-rental-flow--thankyou .woocommerce p,
	.ihouse-rental-confirmation__summary .rental-summary-row,
	body.ihouse-rental-flow--checkout .woocommerce table.shop_table th,
	body.ihouse-rental-flow--checkout .woocommerce table.shop_table td,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table th,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table td,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li,
	body.ihouse-rental-flow--thankyou .woocommerce-column--billing-address,
	body.ihouse-rental-flow--thankyou .woocommerce-column--shipping-address,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details address,
	body.ihouse-rental-flow--checkout .woocommerce form .form-row label,
	body.ihouse-rental-flow--checkout .woocommerce form .input-text,
	body.ihouse-rental-flow--checkout .woocommerce form select,
	body.ihouse-rental-flow--checkout .select2-container .select2-selection--single,
	.ihouse-rental-confirmation__form input,
	.ihouse-rental-confirmation__form select,
	.ihouse-rental-confirmation__form textarea {
		font-size: 14px;
	}

	.ihouse-rental-confirmation__summary .rental-summary-row.total {
		font-size: 16px;
	}

	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li strong,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li .amount {
		font-size: 16px;
	}

	.ihouse-rental-confirmation__form .form-row-first,
	.ihouse-rental-confirmation__form .form-row-last,
	body.ihouse-rental-flow--checkout .woocommerce form .form-row-first,
	body.ihouse-rental-flow--checkout .woocommerce form .form-row-last {
		width: 100%;
		float: none;
		margin-right: 0;
	}

	body.ihouse-rental-flow--checkout .woocommerce table.shop_table th,
	body.ihouse-rental-flow--checkout .woocommerce table.shop_table td,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table th,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table td {
		padding: 12px;
	}

	body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon,
	body.ihouse-rental-flow--checkout #payment {
		padding: 16px;
		border-radius: 16px;
	}

	body.ihouse-rental-flow--checkout .ihouse-rental-shipping-summary__title,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__title {
		font-size: 18px;
	}

	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon {
		flex-direction: column;
		align-items: stretch;
	}

	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form .form-row-first,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form .form-row-last,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .form-row-first,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .form-row-last {
		width: 100%;
		flex: 1 1 100%;
	}

	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon__form .button,
	body.ihouse-rental-flow--checkout .ihouse-rental-checkout-coupon form.checkout_coupon .button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.ihouse-rental-confirmation,
	body.ihouse-rental-flow--checkout .woocommerce,
	body.ihouse-rental-flow--thankyou .woocommerce {
		padding-left: 10px;
		padding-right: 10px;
	}

	.ihouse-rental-confirmation__grid,
	body.ihouse-rental-flow--checkout form.checkout {
		padding: 12px;
	}

	.ihouse-rental-confirmation__card,
	body.ihouse-rental-flow--checkout .woocommerce-checkout #customer_details,
	body.ihouse-rental-flow--checkout .woocommerce-checkout-review-order,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview,
	body.ihouse-rental-flow--thankyou .woocommerce-order-details,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details {
		padding: 16px 14px;
	}

	.ihouse-rental-confirmation h2,
	body.ihouse-rental-flow--checkout .woocommerce h1,
	body.ihouse-rental-flow--thankyou .woocommerce h1 {
		font-size: 22px;
	}

	.ihouse-rental-confirmation h3,
	body.ihouse-rental-flow--checkout .woocommerce h2,
	body.ihouse-rental-flow--checkout .woocommerce h3,
	body.ihouse-rental-flow--thankyou .woocommerce h2,
	body.ihouse-rental-flow--thankyou .woocommerce h3,
	body.ihouse-rental-flow--thankyou .woocommerce-column__title,
	body.ihouse-rental-flow--checkout .woocommerce-billing-fields h3,
	body.ihouse-rental-flow--checkout .woocommerce-additional-fields h3 {
		font-size: 18px;
	}

	.ihouse-rental-confirmation p,
	body.ihouse-rental-flow--checkout .woocommerce p,
	body.ihouse-rental-flow--thankyou .woocommerce p,
	.ihouse-rental-confirmation__summary .rental-summary-row,
	body.ihouse-rental-flow--checkout .woocommerce table.shop_table th,
	body.ihouse-rental-flow--checkout .woocommerce table.shop_table td,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table th,
	body.ihouse-rental-flow--thankyou .woocommerce table.shop_table td,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li,
	body.ihouse-rental-flow--thankyou .woocommerce-column--billing-address,
	body.ihouse-rental-flow--thankyou .woocommerce-column--shipping-address,
	body.ihouse-rental-flow--thankyou .woocommerce-customer-details address,
	body.ihouse-rental-flow--checkout .woocommerce form .form-row label,
	body.ihouse-rental-flow--checkout .woocommerce form .input-text,
	body.ihouse-rental-flow--checkout .woocommerce form select,
	body.ihouse-rental-flow--checkout .select2-container .select2-selection--single,
	.ihouse-rental-confirmation__form input,
	.ihouse-rental-confirmation__form select,
	.ihouse-rental-confirmation__form textarea,
	.ihouse-rental-confirmation__form .button.alt,
	body.ihouse-rental-flow--checkout .woocommerce #payment #place_order,
	body.ihouse-rental-flow--thankyou .woocommerce a.button,
	body.ihouse-rental-flow--thankyou .woocommerce .button {
		font-size: 13px;
	}

	.ihouse-rental-confirmation__summary .rental-summary-row.total,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li strong,
	body.ihouse-rental-flow--thankyou .woocommerce-order-overview li .amount {
		font-size: 15px;
	}

	body.ihouse-rental-flow--thankyou .woocommerce-order-overview {
		grid-template-columns: 1fr;
	}
}


/* 隐藏的输入字段 */
.rental-start-date,
.rental-end-date {
	display: none;
}

/* 日期可用性状态样式 */
.rental-date-group input[type="date"][data-status="unavailable"] {
	background-color: #9e9e9e;
	color: white;
	cursor: not-allowed;
}

.rental-date-group input[type="date"][data-status="unavailable"]:disabled {
	background-color: #9e9e9e;
	color: white;
}

/* 日期选择器中的日期单元格样式 */
.rental-date-picker {
	display: inline-block;
	padding: 8px 12px;
	margin: 4px;
	border-radius: 4px;
	border: 1px solid #ddd;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
	text-align: center;
	min-width: 40px;
}

.rental-date-picker[data-status="available"] {
	background: #fff;
	color: #333;
	border-color: #ddd;
}

.rental-date-picker[data-status="available"]:hover {
	border-color: #007cba;
	background: #f0f8ff;
}

.rental-date-picker[data-status="unavailable"] {
	background-color: #9e9e9e;
	color: white;
	border-color: #888;
	cursor: not-allowed;
	font-weight: 600;
}

.rental-date-picker[data-status="unavailable"]:hover {
	background-color: #9e9e9e;
	border-color: #888;
}

.rental-date-picker[data-status="unavailable"]:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* 日期选择器禁用状态 */
.rental-date-picker:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* 日期选择器提示信息 */
.rental-date-picker[title] {
	position: relative;
}

.rental-date-picker[title]:hover::after {
	content: attr(title);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	margin-bottom: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rental-date-picker[title]:hover::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #333;
	z-index: 1000;
	margin-bottom: -6px;
}

/* 日期范围连续性警告 */
.rental-date-range-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 12px 15px;
	margin-bottom: 15px;
	font-size: 13px;
	color: #856404;
	display: none;
}

.rental-date-range-warning.show {
	display: block;
}

.rental-date-range-warning strong {
	color: #333;
}

/* 日期可用性日历 */
.rental-availability-calendar {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px;
	margin-bottom: 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.rental-availability-calendar h3 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 12px;
	color: #333;
}

.calendar-container {
	background: #fff;
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.calendar-prev-btn,
.calendar-next-btn {
	background: #007cba;
	color: white;
	border: none;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	transition: background 0.3s;
}

.calendar-prev-btn:hover,
.calendar-next-btn:hover {
	background: #005a87;
}

.calendar-month-year {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	min-width: 150px;
	text-align: center;
}

.calendar-month-year .calendar-month::after {
	content: ' ';
}

.calendar-body {
	margin-bottom: 10px;
}

.calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 6px;
}

.weekday {
	text-align: center;
	font-weight: 600;
	color: #666;
	font-size: 10px;
	padding: 4px 0;
}

.calendar-dates {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.calendar-date {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 2px;
	cursor: default;
	font-size: 11px;
	font-weight: 500;
	transition: none;
	background: white;
	color: #333;
	height: 32px;
	padding: 4px;
}

.calendar-date.available {
	background: #ffffff;
	border-color: #d9d9d9;
	color: #333;
}

.calendar-date.available:hover {
	background: #ffffff;
	border-color: #d9d9d9;
}

.calendar-date.unavailable {
	background: #b3b3b3;
	border-color: #9c9c9c;
	color: white;
	font-weight: 600;
	cursor: default;
}

.calendar-date.unavailable:hover {
	background: #b3b3b3;
	border-color: #9c9c9c;
	color: white;
}

.calendar-date.holiday,
.calendar-date.holiday.unavailable,
.calendar-date.holiday.unavailable:hover {
	background: #e74c3c;
	border-color: #c0392b;
	color: #fff;
	font-weight: 600;
	cursor: default;
}

.calendar-date.empty {
	background: transparent;
	border: none;
	cursor: default;
}

.calendar-date.empty:hover {
	background: transparent;
}

.calendar-legend {
	display: flex;
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid #eee;
	flex-wrap: wrap;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #666;
}

.legend-color {
	width: 16px;
	height: 16px;
	border-radius: 2px;
	border: 1px solid #ddd;
}

.legend-color.available {
	background: #ffffff;
	border-color: #d9d9d9;
}

.legend-color.unavailable {
	background: #b3b3b3;
	border-color: #9c9c9c;
}

.calendar-delivery-note {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: #666;
	white-space: normal;
	word-break: break-word;
}

.calendar-delivery-note__title,
.calendar-delivery-note__body {
	display: inline;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

