.oani-date-pop {
	position: fixed;
	z-index: 10050;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	padding: 8px;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	max-width: 300px;
}

.oani-date-pop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin-bottom: 6px;
}

.oani-date-pop__pickers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.oani-date-pop__month,
.oani-date-pop__year {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f8fafc;
	color: #1a2e44;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	padding: 5px 24px 5px 8px;
	cursor: pointer;
	max-width: 100%;
	background-image: var(--oani-picker-caret);
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 8px 12px;
}

.oani-date-pop__month {
	flex: 1 1 auto;
	min-width: 0;
}

.oani-date-pop__year {
	flex: 0 0 auto;
	width: 76px;
	padding-right: 22px;
}

.oani-date-pop__nav {
	border: 0;
	background: transparent;
	color: #2563eb;
	font-size: 18px;
	line-height: 1;
	width: 28px;
	height: 28px;
	cursor: pointer;
	border-radius: 6px;
	flex-shrink: 0;
}

.oani-date-pop__nav:hover {
	background: #f1f5f9;
}

.oani-date-pop__week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	margin-bottom: 2px;
}

.oani-date-pop__wd {
	text-align: center;
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	padding: 2px 0;
}

.oani-date-pop__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
}

.oani-date-pop__pad {
	display: block;
	min-height: 28px;
}

.oani-date-pop__day {
	border: 0;
	background: transparent;
	color: #1a2e44;
	font-size: 13px;
	line-height: 28px;
	height: 28px;
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
}

.oani-date-pop__day:hover:not(:disabled) {
	background: #f8f4ea;
}

.oani-date-pop__day.is-today:not(.is-selected) {
	box-shadow: inset 0 0 0 1px #d7dce4;
}

.oani-date-pop__day.is-selected {
	background: #9c8e6a;
	color: #fff;
	font-weight: 600;
}

.oani-date-pop__day--past,
.oani-date-pop__day:disabled {
	color: #c5cad3 !important;
	opacity: 0.45;
	cursor: not-allowed;
	background: transparent !important;
	box-shadow: none !important;
}

@media (max-width: 767px) {
	.oani-date-pop {
		left: 12px !important;
		right: 12px;
		width: auto !important;
		max-width: none;
	}

	.oani-date-pop__month,
	.oani-date-pop__year {
		font-size: 16px;
	}

	.oani-date-pop__year {
		width: 84px;
	}
}

:root {
	--oani-picker-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath fill='%236e6659' d='M4 0L8 4H0z'/%3E%3Cpath fill='%236e6659' d='M4 12L0 8h8z'/%3E%3C/svg%3E");
	--oani-picker-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath fill='%23ffffff' d='M4 0L8 4H0z'/%3E%3Cpath fill='%23ffffff' d='M4 12L0 8h8z'/%3E%3C/svg%3E");
}

input.oani-date-enhanced,
input.oani-date-input.oani-date-enhanced {
	cursor: pointer;
	caret-color: transparent;
	padding-right: 28px;
	width: 100%;
	box-sizing: border-box;
	color: #1a2e44;
	background-color: #fff;
	background-image: var(--oani-picker-caret);
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 8px 12px;
}

input.oani-date-enhanced::-webkit-calendar-picker-indicator {
	display: none;
	opacity: 0;
	pointer-events: none;
}

.oani-date-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.oani-date-fake-ph {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	font-size: 14px;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

.oani-date-wrap--filled .oani-date-fake-ph,
.oani-date-wrap:has(input:valid) .oani-date-fake-ph {
	display: none;
}

.oani-date-wrap:not(.oani-date-wrap--filled) .oani-date-fake-ph {
	display: block;
}

.oani-gb--full-page .oani-date-wrap .oani-date-fake-ph {
	color: #9ca3af;
	font-size: 14px;
}
