.ovabrw-gregorian-source {
	display: none !important;
}

.easepick-wrapper {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.ovabrw-jalali-native-off,
.ovabrw-jalali-native-off .container,
.ovabrw-jalali-native-off .easepick-wrapper,
.ovabrw-gregorian-source + .easepick-wrapper,
.ovabrw-gregorian-source ~ .easepick-wrapper {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.ovabrw-jalali-input {
	direction: rtl;
	text-align: right;
}

.ovabrw-jalali-picker {
	position: absolute;
	z-index: 999999999;
	width: 308px;
	min-width: 280px;
	padding: 12px;
	background: #fff;
	border: 1px solid #d9dee7;
	border-radius: 6px;
	box-shadow: 0 18px 45px rgba(20, 28, 45, 0.18);
	direction: rtl;
	font-family: inherit;
}

.ovabrw-jalali-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999998;
	background: rgba(16, 24, 40, 0.38);
}

body.ovabrw-jalali-open {
	overflow: hidden;
}

.ovabrw-jalali-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.ovabrw-jalali-title {
	flex: 1;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: #202734;
}

.ovabrw-jalali-nav,
.ovabrw-jalali-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #d9dee7;
	border-radius: 4px;
	background: #fff;
	color: #202734;
	cursor: pointer;
}

.ovabrw-jalali-reset {
	width: auto;
	padding: 0 10px;
	font-size: 12px;
}

.ovabrw-jalali-weekdays,
.ovabrw-jalali-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.ovabrw-jalali-weekdays span {
	padding: 5px 0;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	color: #778195;
}

.ovabrw-jalali-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	box-sizing: border-box;
	min-width: 0 !important;
	width: min(45px, 100%);
	height: 40px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e4e8ef;
	border-radius: 4px;
	background: #fff;
	color: #202734;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.ovabrw-jalali-day:hover {
	border-color: #cfd7e4;
	background: #f0f4f8;
}

.ovabrw-jalali-day.is-empty {
	pointer-events: none;
}

.ovabrw-jalali-day.is-today {
	box-shadow: inset 0 0 0 1px #8aa4c7;
}

.ovabrw-jalali-day.is-selected {
	background: var(--ovabrw-primary, #e86c60);
	border-color: var(--ovabrw-primary, #e86c60);
	color: #fff;
}

.ovabrw-jalali-day.is-disabled {
	border-color: #edf0f4;
	color: #b8bfca;
	background: #f5f6f8;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.ovabrw-jalali-picker {
		position: fixed;
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 0;
		width: auto;
		max-height: 86vh;
		overflow: auto;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -18px 45px rgba(20, 28, 45, 0.25);
	}

	.ovabrw-jalali-day {
		height: 40px;
	}
}
