.g2-cal-hidden-field {
	display: none !important;
}

.form-input-html:has(.g2-cal) {
	align-self: stretch;
	width: 100%;
}

.g2-cal {
	--g2-cal-ink: #352317;
	--g2-cal-text: #605146;
	--g2-cal-muted: #786f69;
	--g2-cal-line: #b9aa9c;
	--g2-cal-warm: #f2ebe0;
	--g2-cal-panel: #e6dbca;
	--g2-cal-white: #fff;
	--g2-cal-green: #2f6b4f;
	--g2-cal-red: #8a2424;
	position: relative;
	width: 252px;
	max-width: 100%;
	margin: 0 0 10px;
	color: var(--g2-cal-ink);
	font-family: "Lato", sans-serif;
}

.g2-cal *,
.g2-cal *::before,
.g2-cal *::after {
	box-sizing: border-box;
}

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

.g2-cal__trigger {
	display: block;
	width: 100%;
	min-height: 36px;
	padding: 0 0 10px;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--g2-cal-ink);
	border-radius: 0;
}

.g2-cal__trigger:hover {
	padding-bottom: 9px;
	border-bottom-width: 2px;
}

.g2-cal__trigger:focus-visible {
	outline: none;
}

.g2-cal__selected {
	display: block;
	overflow: hidden;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.g2-cal__form-error {
	margin: 6px 0 0;
	color: var(--g2-cal-red);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
}

.g2-cal__overlay {
	display: none;
}

.g2-cal__popover {
	position: absolute;
	outline: none;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	width: 540px;
	max-width: calc(100vw - 32px);
	max-height: min(82vh, 760px);
	padding: 16px;
	overflow-y: auto;
	background: var(--g2-cal-white);
	border: 1px solid var(--g2-cal-line);
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(53, 35, 23, 0.18);
}

.g2-cal__popover-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.g2-cal__eyebrow {
	display: block;
	color: var(--g2-cal-muted);
	font-family: "Lato", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 0.01em;
}

.g2-cal__popover-title {
	display: block;
	margin-top: 2px;
	color: #423831;
	font-family: "Lato", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: 0.01em;
}

.g2-cal__close {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	padding: 0;
	color: var(--g2-cal-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	background: transparent;
	border: 1px solid var(--g2-cal-line);
	border-radius: 3px;
}

.g2-cal__close:hover {
	color: var(--g2-cal-ink);
	border-color: var(--g2-cal-ink);
}

.g2-cal__hint {
	margin: 8px 0 0;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
}

.g2-cal__calendar {
	margin-top: 12px;
}

.g2-cal__calendar-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.g2-cal__month {
	color: #423831;
	font-family: "Lato", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	text-transform: capitalize;
}

.g2-cal__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--g2-cal-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	background: var(--g2-cal-white);
	border: 1px solid var(--g2-cal-line);
	border-radius: 3px;
}

.g2-cal__nav:hover {
	background: var(--g2-cal-warm);
}

.g2-cal__nav:disabled {
	color: #c3b8ad;
	cursor: not-allowed;
	background: transparent;
}

.g2-cal__weekdays,
.g2-cal__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
}

.g2-cal__weekdays {
	margin-top: 10px;
	color: var(--g2-cal-muted);
	font-family: "Lato", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	letter-spacing: 0.01em;
}

.g2-cal__day {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 38px;
	padding: 0;
	color: var(--g2-cal-ink);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 3px;
}

.g2-cal__day:hover {
	background: var(--g2-cal-warm);
}

.g2-cal__day.is-empty {
	cursor: default;
	background: transparent;
}

.g2-cal__day.is-disabled {
	color: #c3b8ad;
	cursor: not-allowed;
	background: transparent;
}

.g2-cal__day.is-today {
	box-shadow: inset 0 0 0 1px var(--g2-cal-ink);
}

.g2-cal__day.is-in-range {
	background: #f0e6d9;
}

.g2-cal__day.is-start,
.g2-cal__day.is-end {
	color: var(--g2-cal-white);
	background: var(--g2-cal-ink);
}

.g2-cal__day.is-start.is-end {
	border-radius: 3px;
}

.g2-cal__results {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--g2-cal-panel);
}

.g2-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 8px;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
}

.g2-cal__legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.g2-cal__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.g2-cal__dot--available { background: var(--g2-cal-green); }
.g2-cal__dot--blocked { background: #9c8e82; }

.g2-cal__table-wrap {
	width: 100%;
	max-height: 286px;
	overflow-x: auto;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #b9a999 #f6f1ea;
}

.g2-cal__table {
	width: 100%;
	min-width: 0;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.g2-cal__table th {
	padding: 8px 10px;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: left;
	letter-spacing: 0.01em;
	background: #fbf9f6;
	border-bottom: 1px solid var(--g2-cal-panel);
}

.g2-cal__table th:nth-child(1) { width: 35%; }
.g2-cal__table th:nth-child(2) { width: 20%; }
.g2-cal__table th:nth-child(3) { width: 24%; }
.g2-cal__table th:nth-child(4) { width: 21%; }

.g2-cal__table td {
	padding: 8px 10px;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
	vertical-align: middle;
	border-bottom: 1px solid #f0e9e1;
}

.g2-cal__table tr:last-child td {
	border-bottom: 0;
}

.g2-cal__row.is-blocked {
	background: #faf8f5;
}

.g2-cal__date {
	display: block;
	color: var(--g2-cal-ink);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
}

.g2-cal__date-sub {
	display: none;
}

.g2-cal__weekday {
	color: var(--g2-cal-muted);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	text-transform: capitalize;
}

.g2-cal__status {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 10px;
	font-family: "Lato", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.g2-cal__status--available {
	color: var(--g2-cal-green);
	background: #edf7f0;
}

.g2-cal__status--blocked {
	color: var(--g2-cal-red);
	background: #f7ecec;
}

.g2-cal__book {
	display: inline-block;
	min-height: 28px;
	padding: 3px 9px;
	color: var(--g2-cal-white);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	text-align: center;
	cursor: pointer;
	background: var(--g2-cal-ink);
	border: 1px solid var(--g2-cal-ink);
	border-radius: 3px;
}

.g2-cal__book:hover {
	background: #4a3323;
	border-color: #4a3323;
}

.g2-cal__book:focus-visible {
	outline: 2px solid var(--g2-cal-ink);
	outline-offset: 2px;
}

.g2-cal__none {
	color: var(--g2-cal-muted);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
}

.g2-cal__empty,
.g2-cal__error {
	margin: 8px 0 0;
	color: var(--g2-cal-text);
	font-family: "Lato", sans-serif;
	font-size: 14px;
	line-height: 21px;
}

.g2-cal__error {
	color: var(--g2-cal-red);
}

@media (max-width: 767px) {
	.g2-cal__popover {
		position: fixed;
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		z-index: 9999;
		width: auto;
		max-height: calc(100vh - 24px);
		padding: 14px;
		border-radius: 12px;
	}

	.g2-cal__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(0, 0, 0, 0.35);
	}

	.g2-cal__popover-title {
		font-size: 17px;
		line-height: 24px;
	}

	.g2-cal__day {
		height: 36px;
		font-size: 12px;
	}

	.g2-cal__table th,
	.g2-cal__table td {
		padding: 7px 6px;
		font-size: 12px;
		line-height: 18px;
	}

	.g2-cal__table th:nth-child(2),
	.g2-cal__table td:nth-child(2) {
		display: none;
	}

	.g2-cal__table th:nth-child(1) { width: 43%; }
	.g2-cal__table th:nth-child(3) { width: 27%; }
	.g2-cal__table th:nth-child(4) { width: 30%; }

	.g2-cal__date-sub {
		display: block;
		margin-top: 2px;
		color: var(--g2-cal-muted);
		font-size: 11px;
		font-weight: 400;
		line-height: 16px;
		text-transform: capitalize;
	}

	.g2-cal__status {
		padding: 2px 5px;
		font-size: 10px;
		white-space: normal;
	}

	.g2-cal__book {
		width: 100%;
		padding: 3px 5px;
		font-size: 11px;
		line-height: 18px;
		white-space: nowrap;
	}
}
