/**
 * The Events Calendar Widget Calendar Full Stylesheet
 *
 * To add your own custom styles, create a stylesheet with the name
 * widget-calendar.css in the tribe-events/pro/ directory of your theme.
 * Your new stylesheet will be loaded after our own stylesheet.
 *
 * To replace our stylesheet altogether, you can use the 'tribe_events_pro_widget_calendar_stylesheet_url' filter.
 *
 * @package TribeEventsCalendarPro
 *
 */

.tribe-mini-calendar-wrapper {
	width : 100%;
}

/* calendar css */
.tribe-mini-calendar-grid-wrapper {
	margin-bottom: 10px;
}

.tribe-mini-calendar {
	border-collapse: collapse;
	margin-left: -1px;
	width: 100%;
	line-height: 1;

	td,
	th {
		width: 14.2857142857%;
		padding: 0;
		text-align     : center;
		vertical-align : top;
		border         : 1px solid #d2d2d2;
	}

	thead {
		background: #666666;
	}

	div[id*='daynum-'] a {
		display : block;
		text-decoration: none;
		padding: 5px 0 15px 0;
		position: relative;
	}

	.tribe-events-has-events {
		div[id*='daynum-'] {
			font-weight:bold;
		}

		&:hover {
			background: #444;

			a:hover {
				background: #999;
			}

			a,
			a:hover {
				color: #fff;
				text-decoration: none;
			}
		}

		div[id*='daynum-'] a:before {
			content: '';
			display: block;
			height: 7px;
			width: 7px;
			padding: 0;
			background: #999;
			margin: 5px auto 0 -4px;
			position: absolute;
			left: 50%;
			bottom: 4px;
			border-radius: 7px;
			-moz-border-radius: 7px;
			-webkit-border-radius: 7px;
		}

		&.tribe-mini-calendar-today {
			&:hover {
				background: #666;
			}

			a {
				color: #fff;
			}

			div[id*='daynum-'] a::before {
				background: #fff;
			}
		}
	}

	.tribe-events-past {
		opacity: .6;
	}
}

.tribe-events-has-events {
	&.tribe-events-present div[id*='daynum-'] a::before {
		background: #fff;
	}

	div[id*='daynum-'] a:hover::before {
		background:#fff;
	}
}

.tribe-mini-calendar-dayofweek{
	background: #ddd;
	color:#333;
	font-weight:bold;
	text-transform: uppercase;
	padding:3px 0;
}

.tribe-mini-calendar-no-event{
	color: #999;
	font-weight: bold;
	display: block;
	text-decoration: none;
	padding: 5px 5px 15px 5px;
}

.tribe-mini-calendar-nav {
	text-align     : center;
	vertical-align : middle;
	border         : 1px solid #666;
	background     : #666;
	color:#fff;

	div {
		position:relative;
	}

	span {
		font-weight:bold;
		margin:0 auto;
		display:inline-block;
		color:#fff;
		text-transform: uppercase;
	}

	span.active {
		visibility:hidden;
	}

	.tribe-mini-calendar-nav-link {
		display:inline-block;
		color:#999;
		padding: 5px;
	}

	.prev-month {
		margin: 0 20px 0 0;
	}

	.next-month {
		margin: 0 0 0 20px;
	}


	.tribe-mini-calendar-nav-link:hover {
		color:#6fb7ff;
	}
}

.tribe-mini-calendar-nav #ajax-loading-mini {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
	display: none;
	width: 16px;
	height: 16px;
}

.tribe-mini-calendar .tribe-events-present,
.tribe-mini-calendar .tribe-mini-calendar-today
{
	background-color: #666666;
}

.tribe-mini-calendar .tribe-events-present a{
	color:#fff;
}

/* event list css */

.tribe-mini-calendar-event {
	overflow:hidden;
	width:100%;
	padding-bottom : 5px;
	margin-bottom  : 5px;
	border-bottom  : 1px dotted #2f2f2f;

	&.first {
		margin-top:10px;
	}

	.list-date {
		float : left;
		overflow:hidden;
		font-weight:bold;
		margin: 10px 5% 10px 0;
		padding: 3px;
		width: 15%;
		text-align:center;
		display: inline;
		background: #666;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
	}

	.list-info {
		display: inline;
		float: left;
		margin: 10px 0;
		width: 80%;
	}

	.list-date .list-dayname {
		background: #fff;
		color: #666;
		display: block;
		font-size: 11px;
		letter-spacing: .5px;
		padding: 3px;
		text-align: center;
		text-transform: uppercase;
	}

	.list-date .list-daynumber {
		color: white;
		display: block;
		font-size: 15px;
		line-height: 1.6;
		text-align: center;
		width: 100%;
	}

	.list-date .list-daymonth {
		background: white;
		color: #666;
		display: block;
		font-size: 12px;
		line-height: 1.6;
		text-align: center;
		text-transform: uppercase;
		width: 100%;
	}

	.list-info {
		font-size: 13px;
		line-height: 1.6;

		h2 {
			font-size : 14px;
			font-weight:bold;
			line-height:18px;
			margin-top: 0;
			margin-bottom: 10px;
		}

		p {
			display: none;
			margin:5px 0;
		}
	}

	&.first .list-info p {
		display:block;
	}

	.tribe-events-divider {
		display: inline;
		font-weight: normal;
	}

	.tribe-events-event-schedule-details {
		display: inline-block;
	}
}

.tribe-mini-calendar-event-cost {
	font-weight: bold;
}

.tribe-mini-calendar-right .tribe-mini-calendar-event:last-child {
	border:0;
}

.tribe-mini-calendar-event .tribe-events-event-schedule-details,
.tribe-mini-calendar-event-venue {
	margin: 5px 0 0;
}

.tribe-mini-calendar-wrapper a.tribe-events-button {
	margin-top: 10px;
	display: inline-block;
	background-color: #666;
	color: #fff;
	background-image: none;
	font-size: 11px;
	font-weight: bold;
	padding: 6px 9px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	-webkit-border-radius: 3px;
			border-radius: 3px;
	border: 0;
	line-height: normal;
	cursor: pointer;
	-webkit-box-shadow: none;
			box-shadow: none;
	text-decoration: none;
}

/* = Twenty Fifteen theme compatibility.
=============================================*/
.tribe-theme-twentyfifteen {
	.tribe_mini_calendar_widget,
	.tribe-events-adv-list-widget,
	.tribe-events-countdown-widget {
		word-wrap: normal;
	}

	.tribe-mini-calendar-event {
		margin-left: 0;
		margin-right: 0;

		.list-date {
			width: 18%;
			margin-right: 7%;
		}

		.list-info {
			width: 75%;
		}
	}

	.tribe-mini-calendar-list-wrapper .type-tribe_events {
		margin-left: 0;
		margin-right: 0;
		box-shadow: none;
	}

	.tribe-mini-calendar div[id*='daynum-'] a {
		padding: 5px 0 15px 0;
	}
}
