.htd-delivery-fields {
	margin: 1.5rem 0;
	clear: both;
}

.htd-delivery-fields h3 {
	margin-bottom: 0.75rem;
}

.htd-delivery-fields .htd-select,
.htd-delivery-fields .htd-date-display {
	width: 100%;
	max-width: 100%;
}

.htd-date-picker-wrap {
	display: block;
	position: relative;
	width: 100%;
}

.htd-delivery-fields .htd-date-display {
	cursor: pointer;
	background: #fff;
}

.htd-delivery-fields .htd-no-dates {
	color: #b32d2e;
}

.htd-date-error {
	display: block;
	margin-top: 0.35rem;
	color: #b32d2e;
	font-size: 0.9em;
}

#htd_delivery_date_field,
#htd_delivery_time_field {
	margin-bottom: 1rem;
}

.htd-calendar {
	position: absolute;
	z-index: 100000;
	left: 0;
	top: calc(100% + 4px);
	width: min(100%, 22rem);
	padding: 0.75rem;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.htd-calendar.is-fixed {
	position: fixed;
	right: auto;
}

.htd-calendar.is-above {
	top: auto;
	bottom: calc(100% + 4px);
}

.htd-calendar.is-fixed.is-above {
	bottom: auto;
}

.htd-calendar[hidden] {
	display: none !important;
}

.htd-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.htd-calendar__title {
	font-weight: 600;
	text-align: center;
	flex: 1;
}

.htd-calendar__nav {
	width: 2rem;
	height: 2rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #f7f7f7;
	cursor: pointer;
	line-height: 1;
	font-size: 1.25rem;
}

.htd-calendar__nav:hover {
	background: #eee;
}

.htd-calendar__weekdays,
.htd-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.2rem;
}

.htd-calendar__weekdays {
	margin-bottom: 0.35rem;
}

.htd-calendar__weekdays span {
	text-align: center;
	font-size: 0.75rem;
	color: #666;
	padding: 0.2rem 0;
}

.htd-calendar__day {
	aspect-ratio: 1;
	min-height: 2.1rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #999;
	cursor: default;
	font-size: 0.9rem;
}

.htd-calendar__day.is-empty {
	visibility: hidden;
}

.htd-calendar__day.is-available {
	background: #f3f7f2;
	color: #1d1d1d;
	cursor: pointer;
	font-weight: 600;
}

.htd-calendar__day.is-available:hover {
	background: #dcead8;
}

.htd-calendar__day.is-selected {
	background: #2f5d3a;
	color: #fff;
}

.htd-calendar__day.is-selected:hover {
	background: #254a2e;
}

.htd-calendar__day.is-disabled {
	opacity: 0.45;
}
