.vpf-date {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: middle;
}

.vpf-form .vpf-date {
	display: block;
}

.vpf-date input {
	box-sizing: border-box;
	padding-right: 2.4rem;
}

.vpf-date__open {
	position: absolute;
	top: 50%;
	right: 0.2rem;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.vpf-date__pop {
	position: fixed;
	z-index: 10000;
	box-sizing: border-box;
	font-size: 1rem;
	padding: 0.6rem;
	background: #fff;
	color: #141821;
	border: 1px solid #d8d8d4;
	border-radius: 5px;
	box-shadow: 0 8px 24px rgba(20, 24, 33, 0.16);
}

.vpf-date__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem;
	margin-bottom: 0.45rem;
}

.vpf-date__title {
	font-weight: 600;
}

.vpf-date__nav,
.vpf-date__day {
	appearance: none;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.vpf-date__nav {
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
}

.vpf-date__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.15rem;
	text-align: center;
}

.vpf-date__dow {
	font-size: 0.8em;
	color: #3d4450;
	padding: 0.2rem 0;
}

.vpf-date__day {
	border-radius: 8px;
	min-height: 2rem;
	padding: 0.35rem 0;
}

.vpf-date__nav:hover,
.vpf-date__day:hover:not(:disabled),
.vpf-date__open:hover {
	background: #fff8d4;
}

.vpf-date__day.is-today {
	outline: 1px solid #464a47;
	outline-offset: -1px;
}

.vpf-date__day.is-selected,
.vpf-date__day.is-selected:hover {
	background: #ffe658;
	color: #464a47;
}

.vpf-date__day.is-in-range,
.vpf-date__day.is-in-range:hover {
	background: #fff8d4;
	border-radius: 0;
}

.vpf-date__day.is-start:not(.is-end) {
	border-radius: 8px 0 0 8px;
}

.vpf-date__day.is-end:not(.is-start) {
	border-radius: 0 8px 8px 0;
}

.vpf-date__note {
	margin: 0.5rem 0 0;
	color: #3d4450;
	font-size: 0.85em;
	line-height: 1.4;
	text-align: left;
}

.vpf-date__day:disabled {
	color: #b0b5bd;
	cursor: default;
}

@media (pointer: coarse) {
	.vpf-date__pop {
		width: min(22rem, calc(100vw - 1rem));
		max-width: calc(100vw - 1rem);
	}

	.vpf-date__grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}

	.vpf-date__nav {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.vpf-date__day {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
}
