.elate-calendar {
	--elate-calendar-open-bg: #ffffff;
	--elate-calendar-closed-bg: #f5f5f5;
	--elate-calendar-morning-bg: #d8f5c8;
	--elate-calendar-afternoon-bg: #e1f1fb;
	--elate-calendar-border: #cccccc;
	--elate-calendar-header-bg: #fafafa;
	--elate-calendar-text: #333333;
	--elate-calendar-muted-text: #666666;
	--elate-calendar-closed-text: #d32f2f;
	--elate-calendar-sunday-text: #d00000;
	--elate-calendar-saturday-text: #0069de;
	--elate-calendar-today-border: #333399;
	--elate-calendar-focus: #2271b1;
	--elate-calendar-event-bar-bg: #4f73b7;
	--elate-calendar-event-bar-text: #ffffff;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	color: var(--elate-calendar-text);
	font-family: "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN", Meiryo, "MS PGothic", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	overflow: auto;
	position: relative;
}

.elate-calendar *,
.elate-calendar *::before,
.elate-calendar *::after {
	box-sizing: border-box;
}

.elate-calendar__header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0;
}

.elate-calendar__title {
	flex-grow: 1;
	font-size: 1.1em;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}

.elate-calendar__nav {
	appearance: none;
	position: relative;
	width: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	cursor: pointer;
	font-size: 0;
	line-height: 1;
	text-align: center;
	text-shadow: none !important;
}

.elate-calendar__nav:hover,
.elate-calendar__nav:focus {
	outline: none;
	opacity: .65;
}

.elate-calendar__nav::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	content: "";
	transform: translate(-50%, -50%);
}

.elate-calendar__nav[data-elate-prev]::before {
	border-right: 10px solid #111111;
}

.elate-calendar__nav[data-elate-next]::before {
	border-left: 10px solid #111111;
}

.elate-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0;
	border: 1px solid var(--elate-calendar-border);
	border-right: 0;
	border-bottom: 0;
	background: var(--elate-calendar-border);
}

.elate-calendar__weekday,
.elate-calendar__day {
	min-width: 0;
	border-right: 1px solid var(--elate-calendar-border);
	border-bottom: 1px solid var(--elate-calendar-border);
	background: #ffffff;
}

.elate-calendar__weekday {
	padding: 3px 4px;
	background: var(--elate-calendar-header-bg);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.elate-calendar__weekday--sun {
	color: var(--elate-calendar-sunday-text);
}

.elate-calendar__weekday--sat {
	color: var(--elate-calendar-saturday-text);
}

.elate-calendar__day {
	appearance: none;
	display: flex;
	min-height: 116px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 4px;
	padding: 5px;
	border: 0;
	border-right: 1px solid var(--elate-calendar-border);
	border-bottom: 1px solid var(--elate-calendar-border);
	border-radius: 0;
	color: var(--elate-calendar-text);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.elate-calendar__day:hover,
.elate-calendar__day:focus {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--elate-calendar-focus);
	outline-offset: -2px;
}

.elate-calendar__day--blank {
	min-height: 116px;
	background: #dddddd;
	pointer-events: none;
}

.elate-calendar__day--open {
	background: var(--elate-calendar-open-bg);
}

.elate-calendar__day--closed {
	background: var(--elate-calendar-day-bg, var(--elate-calendar-closed-bg));
}

.elate-calendar__day--morning {
	background: var(--elate-calendar-day-bg, var(--elate-calendar-morning-bg));
}

.elate-calendar__day--afternoon {
	background: var(--elate-calendar-day-bg, var(--elate-calendar-afternoon-bg));
}

.elate-calendar__day--event.elate-calendar__day--closed .elate-calendar__date {
	color: var(--elate-calendar-day-text, var(--elate-calendar-closed-text));
}

.elate-calendar__day--sun:not(.elate-calendar__day--closed) .elate-calendar__date {
	color: var(--elate-calendar-sunday-text);
}

.elate-calendar__day--sat:not(.elate-calendar__day--closed) .elate-calendar__date {
	color: var(--elate-calendar-saturday-text);
}

.elate-calendar__day--today {
	box-shadow: inset 0 0 0 2px var(--elate-calendar-today-border);
	font-weight: 700;
}

.elate-calendar__date {
	display: block;
	align-self: flex-end;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

.elate-calendar__event-list {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
}

.elate-calendar__event-bar,
.elate-calendar__event-more {
	display: block;
	max-width: 100%;
	border-radius: 3px;
	background: var(--elate-calendar-event-bar-bg);
	color: var(--elate-calendar-event-bar-text);
	font-size: 12px;
	line-height: 1.35;
	overflow: hidden;
	padding: 1px 5px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elate-calendar__event-bar--closed {
	background: var(--elate-calendar-closed-text);
	color: #ffffff;
}

.elate-calendar__event-bar--morning_off {
	border: 1px solid rgba(0, 0, 0, .12);
	background: var(--elate-calendar-morning-bg);
	color: var(--elate-calendar-text);
}

.elate-calendar__event-bar--afternoon_off {
	border: 1px solid rgba(0, 0, 0, .12);
	background: var(--elate-calendar-afternoon-bg);
	color: var(--elate-calendar-text);
}

.elate-calendar__event-more {
	background: rgba(0, 0, 0, .08);
	color: var(--elate-calendar-muted-text);
}

.elate-calendar__detail,
.elate-calendar__status {
	margin-top: 24px;
	padding: 22px 26px;
	border: 1px solid var(--elate-calendar-border);
	background: #ffffff;
}

.elate-calendar__legend {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.elate-calendar__legend li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
}

.elate-calendar__legend-text {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.elate-calendar__legend-text small {
	color: var(--elate-calendar-muted-text);
	font-size: .86em;
}

.elate-calendar__legend-mark {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid var(--elate-calendar-border);
}

.elate-calendar__legend-mark--morning {
	background: var(--elate-calendar-morning-bg);
}

.elate-calendar__legend-mark--afternoon {
	background: var(--elate-calendar-afternoon-bg);
}

.elate-calendar__legend-mark--closed {
	background: var(--elate-calendar-closed-bg);
}

.elate-calendar--widget {
	font-size: 13px;
	width: 100%;
	overflow: visible;
}

.elate-calendar--widget .elate-calendar__header {
	margin: 2px 0 4px;
}

.elate-calendar--widget .elate-calendar__title {
	font-size: 13px;
	line-height: 22px;
}

.elate-calendar--widget .elate-calendar__nav {
	width: 22px;
	min-width: 22px;
	min-height: 22px;
}

.elate-calendar--widget .elate-calendar__nav::before {
	border-top-width: 5px;
	border-bottom-width: 5px;
}

.elate-calendar--widget .elate-calendar__nav[data-elate-prev]::before {
	border-right-width: 8px;
}

.elate-calendar--widget .elate-calendar__nav[data-elate-next]::before {
	border-left-width: 8px;
}

.elate-calendar--widget .elate-calendar__weekday {
	padding: 2px 1px;
	font-size: 10px;
}

.elate-calendar--widget .elate-calendar__day,
.elate-calendar--widget .elate-calendar__day--blank {
	min-height: 42px;
	padding: 3px 2px;
	gap: 2px;
}

.elate-calendar--widget .elate-calendar__date {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

.elate-calendar--widget .elate-calendar__event-bar,
.elate-calendar--widget .elate-calendar__event-more {
	font-size: 9px;
	padding: 1px 2px;
}

.elate-calendar--widget .elate-calendar__legend {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 10px;
}

.elate-calendar--widget .elate-calendar__legend li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.elate-calendar--widget .elate-calendar__legend-text {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.elate-calendar--widget .elate-calendar__legend-mark {
	width: 11px;
	height: 11px;
	margin-top: 1px;
}

.elate-calendar--widget .elate-calendar__detail,
.elate-calendar--widget .elate-calendar__status {
	margin-top: 18px;
	padding: 16px;
}

.elate-calendar--widget .elate-calendar__detail strong {
	margin-bottom: 14px;
	font-size: 16px;
}

.elate-calendar--widget .elate-calendar__detail-content {
	font-size: 13px;
	line-height: 1.55;
}

.elate-calendar--widget .elate-calendar__detail-head {
	gap: 10px;
	margin-bottom: 20px;
}

.elate-calendar--widget .elate-calendar__detail-chip {
	min-width: 62px;
	padding: 3px 10px;
	font-size: 12px;
}

.elate-calendar--widget .elate-calendar__detail-section {
	margin-top: 20px;
}

.elate-calendar--widget .elate-calendar__detail-section h3 {
	font-size: 13px;
}

.elate-calendar--widget .elate-calendar__detail-hours {
	gap: 16px;
	max-width: none;
}

.elate-calendar--widget .elate-calendar__detail-hour-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 6px;
	align-items: start;
}

.elate-calendar--widget .elate-calendar__detail-hour-row span {
	min-width: 58px;
	width: fit-content;
	padding: 2px 10px;
	font-size: 11px;
}

.elate-calendar--widget .elate-calendar__detail-hour-row strong {
	overflow-wrap: anywhere;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	white-space: normal;
}

.elate-calendar__status--error {
	border-color: var(--elate-calendar-closed-text);
	color: var(--elate-calendar-closed-text);
}

.elate-calendar__detail p {
	margin: 0 0 12px;
}

.elate-calendar__detail strong {
	display: block;
	margin-bottom: 18px;
	font-size: 22px;
}

.elate-calendar__detail-content {
	font-size: 18px;
	line-height: 1.7;
}

.elate-calendar__detail-head {
	display: grid;
	gap: 14px;
	margin-bottom: 26px;
}

.elate-calendar__detail-date {
	margin: 0;
	font-weight: 700;
}

.elate-calendar__detail-chip {
	display: inline-block;
	width: fit-content;
	min-width: 92px;
	padding: 4px 14px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 3px;
	background: var(--elate-calendar-open-bg);
	color: var(--elate-calendar-text);
	font-size: 18px;
	line-height: 1.4;
}

.elate-calendar__detail-section {
	margin-top: 24px;
}

.elate-calendar__detail-section h3 {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e5e5;
	color: var(--elate-calendar-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.elate-calendar__detail-hours {
	display: grid;
	gap: 10px;
	max-width: 560px;
}

.elate-calendar__detail-hour-row {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.elate-calendar__detail-hour-row span {
	display: inline-block;
	justify-self: start;
	min-width: 72px;
	padding: 3px 12px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.elate-calendar__detail-hour-row strong {
	color: var(--elate-calendar-text);
	font-size: 18px;
	font-weight: 500;
}

.elate-calendar__detail-hour-row--open span {
	background: #e8f5e9;
	color: #245b2d;
}

.elate-calendar__detail-hour-row--closed span {
	background: #f5f5f5;
	color: var(--elate-calendar-closed-text);
}

.elate-calendar__detail-hour-row--lunch span {
	background: #fff8df;
	color: #6b5b19;
}

.elate-calendar__detail-time {
	margin-top: 4px;
	color: var(--elate-calendar-muted-text);
	font-size: 14px;
}

.elate-calendar__detail-events {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.elate-calendar__detail-event {
	max-width: 520px;
}

.elate-calendar__detail-event .elate-calendar__event-bar {
	display: inline-block;
	min-width: 120px;
	margin-bottom: 8px;
	font-size: 14px;
}

.elate-calendar__detail-comment {
	margin-top: 4px;
}

.elate-calendar__detail-comment > :first-child {
	margin-top: 0;
}

.elate-calendar__detail-comment > :last-child {
	margin-bottom: 0;
}

.elate-calendar__detail-store {
	color: var(--elate-calendar-muted-text);
	font-size: 14px;
}

@media (max-width: 640px) {
	.elate-calendar {
		font-size: 14px;
	}

	.elate-calendar__weekday {
		padding: 6px 2px;
		font-size: 12px;
	}

	.elate-calendar__day,
	.elate-calendar__day--blank {
		min-height: 64px;
		padding: 6px 4px;
	}

	.elate-calendar__date {
		font-size: 14px;
		font-weight: 700;
	}

	.elate-calendar__event-bar,
	.elate-calendar__event-more {
		font-size: 10px;
		padding-inline: 3px;
	}

	.elate-calendar__legend {
		display: inline-flex;
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.elate-calendar__legend li {
		display: inline-flex;
		align-items: center;
	}

	.elate-calendar__legend-text {
		display: inline-flex;
		align-items: baseline;
		gap: 4px;
	}

	.elate-calendar__detail,
	.elate-calendar__status {
		padding: 14px;
	}

	.elate-calendar__detail strong {
		font-size: 18px;
	}

	.elate-calendar__detail-content {
		font-size: 15px;
	}

	.elate-calendar__detail-hour-row {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.elate-calendar__detail-hour-row strong {
		font-size: 15px;
	}

	.elate-calendar--widget .elate-calendar__day,
	.elate-calendar--widget .elate-calendar__day--blank {
		min-height: 64px;
		padding: 6px 4px;
	}

	.elate-calendar--widget .elate-calendar__date {
		font-size: 14px;
		font-weight: 700;
	}

	.elate-calendar--widget .elate-calendar__legend {
		display: inline-flex;
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.elate-calendar--widget .elate-calendar__legend li {
		display: inline-flex;
		align-items: center;
	}

	.elate-calendar--widget .elate-calendar__legend-text {
		display: inline-flex;
		align-items: baseline;
		gap: 4px;
	}

	.elate-calendar--widget .elate-calendar__detail-hour-row {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.elate-calendar--widget .elate-calendar__detail-hour-row strong {
		font-size: 15px;
	}
}
