/* Persian (Jalali) calendar popup for input.noghte-jalali-date fields.
 * Self-contained so it looks consistent on both the front-end and wp-admin.
 *
 * All interactive elements are plain <button type="button">, which the
 * active theme's global `[type=button], [type=submit], button {...}` rule
 * also targets (same selector specificity as our single-class selectors).
 * Every property that rule can set is re-declared here with !important so
 * this popup always renders the same regardless of the theme's button
 * defaults (border color, width: auto, missing flex centering, etc.).
 */
.noghte-jdp-popup {
	position: absolute;
	z-index: 2147483001;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #d9dee6;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(26, 37, 64, 0.18);
	padding: 12px;
	font-family: "Mikhak", Tahoma, Arial, sans-serif;
	direction: rtl;
}
.noghte-jdp-popup * {
	box-sizing: border-box;
}

.noghte-jdp-popup button {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
	font-family: inherit !important;
	white-space: nowrap !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	user-select: none !important;
	text-align: center !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease !important;
}

.noghte-jdp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.noghte-jdp-title {
	font-size: 13px;
	font-weight: 600;
	color: #1a2540;
}

.noghte-jdp-nav {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-content: center !important;
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	border: 1px solid #d9dee6 !important;
	border-radius: 6px !important;
	background: #f7f8fa !important;
	color: #1a2540 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	/* The ‹ › glyphs have the Unicode "mirrored" property, so inside an
	 * RTL context the browser auto-flips them — forcing ltr here keeps
	 * each arrow pointing at its own true (outward) direction. */
	direction: ltr !important;
}
.noghte-jdp-nav:hover {
	background: #c06a45 !important;
	border-color: #c06a45 !important;
	color: #ffffff !important;
}

.noghte-jdp-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 4px;
}
.noghte-jdp-weekdays span {
	text-align: center;
	font-size: 11px;
	color: #6e6c88;
	padding: 4px 0;
}

.noghte-jdp-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.noghte-jdp-day {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-content: center !important;
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #1a2540 !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}
.noghte-jdp-day:hover {
	background: #f0f4fa !important;
}
.noghte-jdp-day--empty {
	cursor: default;
	pointer-events: none;
}
.noghte-jdp-day.is-today {
	border-color: #c06a45 !important;
}
.noghte-jdp-day.is-selected {
	background: #c06a45 !important;
	color: #ffffff !important;
}

.noghte-jdp-footer {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d9dee6;
	display: flex;
	justify-content: center;
}
.noghte-jdp-today-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-content: center !important;
	width: auto !important;
	height: auto !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #c06a45 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer;
	padding: 4px 10px !important;
}
.noghte-jdp-today-btn:hover {
	text-decoration: underline;
}
