.wpec-calendar-wrapper {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpec-calendar-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
}

.wpec-calendar-nav a {
	text-decoration: none;
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #333;
}

.wpec-calendar-nav a:hover {
	background: #f0f0f0;
}

.wpec-month-title {
	font-size: 1.4em;
	font-weight: 600;
}

.wpec-jump-form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 1.2em;
}

.wpec-jump-form select {
	padding: 4px 6px;
}

.wpec-jump-form button {
	padding: 5px 14px;
	border: 1px solid #2b7fb3;
	background: #2b7fb3;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.wpec-jump-form button:hover {
	background: #24698f;
}

.wpec-intro-text {
	text-align: center;
	font-size: 0.9em;
	color: #555;
	margin: 0 0 1.2em;
}

.wpec-intro-text a {
	color: #2b7fb3;
}

.wpec-calendar {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.wpec-calendar th {
	padding: 8px;
	background: #badbed;
	color: #000;
	font-weight: bold;
	text-align: center;
}

.wpec-calendar td {
	border: 1px solid #ddd;
	vertical-align: top;
	height: 90px;
	padding: 4px;
	width: 14.28%;
}

.wpec-calendar td.wpec-empty {
	background: #fafafa;
}

/* Requested highlight colour for days that have events */
.wpec-calendar td.wpec-has-events {
	background-color: #badbed;
}

.wpec-day-number {
	font-weight: 600;
	margin-bottom: 4px;
}

.wpec-event {
	background: #fff;
	border-radius: 3px;
	padding: 2px 4px;
	margin-bottom: 2px;
	cursor: pointer;
	font-size: 0.8em;
	border-left: 3px solid #2b7fb3;
}

.wpec-event:hover {
	background: #eef7fc;
}

.wpec-event-title {
	display: block;
	font-weight: 600;
}

.wpec-event-time {
	display: block;
	color: #555;
}

/* Modal */
.wpec-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.5 );
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpec-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 480px;
	width: 90%;
	padding: 24px;
	position: relative;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.2 );
	max-height: 85vh;
	overflow-y: auto;
}

.wpec-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.wpec-modal-close:hover {
	color: #333;
}

.wpec-modal h3 {
	margin-top: 0;
	padding-right: 24px;
}

.wpec-modal-times {
	width: 100%;
	margin-top: 1em;
	border-collapse: collapse;
}

.wpec-modal-times th {
	text-align: left;
	padding: 6px 8px;
	background: #f5f5f5;
	width: 40%;
}

.wpec-modal-times td {
	padding: 6px 8px;
	border-bottom: 1px solid #eee;
}

.wpec-recurring-icon {
	font-size: 0.9em;
	color: #2b7fb3;
}

.wpec-modal-repeats {
	font-size: 0.85em;
	color: #666;
	font-style: italic;
	margin: -0.5em 0 1em;
}

.wpec-modal-duration {
	font-size: 0.85em;
	color: #666;
	margin: -0.5em 0 1em;
}

.wpec-btn-add-calendar {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 10px 16px;
	background: #2b7fb3;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.95em;
	cursor: pointer;
}

.wpec-btn-add-calendar:hover {
	background: #24698f;
}

.wpec-modal-irc {
	margin: 12px 0 0;
	font-size: 0.9em;
	color: #444;
}

.wpec-modal-irc a {
	color: #2b7fb3;
	font-weight: 600;
	text-decoration: none;
}

.wpec-modal-irc a:hover {
	text-decoration: underline;
}

.wpec-modal-irc-manual {
	margin: 4px 0 0;
	color: #777;
}
