.ph-cal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ph-cal[hidden] {
	display: none !important;
}

.ph-cal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 29, 106, 0.55);
}

.ph-cal__dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	max-height: min(92vh, 760px);
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(17, 29, 106, 0.22);
	font-family: Poppins, sans-serif;
}

.ph-cal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #111d6a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ph-cal__eyebrow {
	margin: 0 0 6px;
	color: #ef8e32;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ph-cal__dialog h2 {
	margin: 0 0 8px;
	color: #111d6a;
	font-size: 22px;
	line-height: 1.25;
}

.ph-cal__doctor {
	margin: 0 0 16px;
	color: #5b6472;
	font-size: 14px;
}

.ph-cal__month {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.ph-cal__month-label {
	margin: 0;
	color: #111d6a;
	font-weight: 600;
	font-size: 15px;
}

.ph-cal__nav {
	width: 36px;
	height: 36px;
	border: 1px solid #e8eef5;
	border-radius: 50%;
	background: #fff;
	color: #111d6a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ph-cal__weekdays,
.ph-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.ph-cal__weekdays {
	margin-bottom: 6px;
	color: #8a93a3;
	font-size: 11px;
	font-weight: 600;
}

.ph-cal__day {
	min-height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #111d6a;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.ph-cal__day.is-muted {
	color: #c5cad3;
	cursor: default;
}

.ph-cal__day.is-off {
	color: #c5cad3;
	text-decoration: line-through;
	cursor: not-allowed;
}

.ph-cal__day.is-today {
	box-shadow: inset 0 0 0 1px #ef8e32;
}

.ph-cal__day.is-selected {
	background: #111d6a;
	color: #fff;
}

.ph-cal__slots-label {
	margin: 16px 0 8px;
	color: #111d6a;
	font-size: 13px;
	font-weight: 600;
}

.ph-cal__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.ph-cal__slot {
	padding: 7px 10px;
	border: 1px solid #e8eef5;
	border-radius: 999px;
	background: #f9fbfd;
	color: #111d6a;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.ph-cal__slot.is-selected {
	background: #ef8e32;
	border-color: #ef8e32;
	color: #fff;
}

.ph-cal__hint {
	min-height: 18px;
	margin: 0 0 12px;
	color: #8a93a3;
	font-size: 12px;
}

.ph-cal__fields {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.ph-cal__fields label {
	display: grid;
	gap: 4px;
	color: #111d6a;
	font-size: 12px;
	font-weight: 600;
}

.ph-cal__fields input {
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #e8eef5;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
}

.ph-cal__status {
	margin: 0 0 10px;
	font-size: 13px;
}

.ph-cal__status.is-ok {
	color: #0f7b4a;
}

.ph-cal__status.is-err {
	color: #c0392b;
}

.ph-cal__submit {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	background: #ef8e32;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.ph-cal__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}
