/* Lightweight date-range calendar — see assets/js/zb-calendar.js */

.zb-cal {
	background: #fff;
	border: 1px solid #e4ddcc;
	border-radius: 14px;
	padding: 14px;
	font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.zb-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.zb-cal-month {
	font-family: 'Spectral', serif;
	font-weight: 600;
	font-size: 15px;
	color: #23301f;
}
.zb-cal-nav {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #e4ddcc;
	background: #fbf9f3;
	color: #2f4a37;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.zb-cal-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.zb-cal-weekdays,
.zb-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.zb-cal-weekdays {
	margin-bottom: 4px;
}
.zb-cal-weekdays > div {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #9a9282;
	text-transform: uppercase;
}

.zb-cal-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 13.5px;
	color: #23301f;
	cursor: pointer;
}
.zb-cal-cell:hover:not([disabled]) {
	background: #f2eee2;
}
.zb-cal-cell.is-today {
	font-weight: 700;
	color: #c1652f;
}
.zb-cal-cell.is-in-range {
	background: #e7efe2;
	border-radius: 0;
}
.zb-cal-cell.is-selected {
	background: #2f4a37;
	color: #fff;
	font-weight: 700;
}
.zb-cal-cell[disabled] {
	color: #d8cfb8;
	cursor: not-allowed;
	text-decoration: line-through;
}
.zb-cal-empty {
	pointer-events: none;
}

.zb-cal-foot {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e4ddcc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.zb-cal-range-label {
	font-size: 13px;
	color: #6b6558;
	font-weight: 600;
}
.zb-cal-foot-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}
.zb-cal-clear {
	background: transparent;
	border: none;
	color: #6b6558;
	font-size: 13px;
	cursor: pointer;
	padding: 8px 4px;
}
.zb-cal-apply {
	background: #c1652f;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.zb-cal-apply:disabled {
	background: #d8cfb8;
	cursor: not-allowed;
}

/* Trigger button that opens the inline panel */
.zb-cal-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	border: 1px solid #e4ddcc;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fbf9f3;
	font-size: 14px;
	color: #23301f;
	cursor: pointer;
	text-align: left;
}
.zb-cal-trigger .zb-cal-trigger-icon {
	color: #6b6558;
	flex: 0 0 auto;
}

@media (max-width: 480px) {
	.zb-cal-cell {
		font-size: 12.5px;
	}
}
