.eco-event-card,
.eco-calendar-item {
	position: relative;
}

.eco-calendar-item__link::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	content: '';
}

.eco-calendar-item__template,
.eco-calendar-item,
.eco-nav-spot__template {
	display: none;
}

/* .eco-calendar__item--selected {
	display: block;
} */

.eco-calendar__container {
	width: 100%;
}

.eco-event-card__container {
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--50);
}

.eco-event-card {
	display: flex;
	flex-direction: column;
	list-style-type: none;
	width: calc(50% - 1.2rem);
	flex-grow: 0;
	flex-shrink: .5;
	flex-basis: auto;
	border-radius: 10px;
	border: 1px solid var(--wp--custom--color--neutral--300);
	background-color: white;
	box-shadow: 0px 4px 24px 0px #2a2c2b14;
	transition: .5s background-color;
	overflow: hidden;
}

.eco-event-card .eco-calendar-card,
.eco-event-card .eco-calendar-card .eco-event-card__padder {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	min-height: 255px;
	align-items: stretch;
}

.eco-event-card .eco-calendar-card header {
	display: block;
	width: 100%;
}

.eco-event-card .eco-calendar-card footer {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--wp--preset--spacing--50);
}

.eco-event-card--solo {
	width: auto;
}

.eco-calendar-card .eco-calendar-item__figure {
	display: flex;
	align-items: center;
	max-height: 140px;
	padding: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--custom--color--neutral--200);
}

.eco-calendar-card .eco-calendar-item__figure h3 {
	padding-left: var(--wp--preset--spacing--40);
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--wp--preset--color--primary);
}

.eco-calendar-card .eco-calendar-item__figure img {
	height: 92px;
	width: 92px;
	object-fit: contain;
}

.eco-calendar-card .eco-calendar-item__figure--full {
	padding: 0;
}

.eco-calendar-card .eco-calendar-item__figure--full img {
	height: 140px;
	width: 100%;
	object-fit: cover;
}

.eco-event-card .eco-calendar-card header {
	margin-bottom: var(--wp--preset--spacing--40);
}

.eco-calendar-card__tags {
    list-style-type: none;
    padding: 0;
	margin: 0;
    display: flex;
	gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

.eco-calendar-card__tag {
    padding: 4px 8px;
    margin: 0;
    font-weight: 700;
    border-radius: 8px;
}

.eco-event-card .eco-calendar-card .eco-event-card__infos {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	flex-direction: column;
	flex: 1 0 auto;
}

.eco-event-card .eco-calendar-card .eco-calendar-item__title {
	margin: 0;
    font-size: var(--wp--preset--font-size--m);
    font-weight: 800;
}

.eco-event-card .eco-calendar-card .eco-calendar-item__title a {
	display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
	color: var(--wp--preset--color--primary);
    overflow: hidden;
}

.eco-event-card .eco-calendar-item__description {
	display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
	margin: 0;
    overflow: hidden;
	/* min-height: 7rem; */
	font-size: var(--wp--preset--font-size--m);
}

.eco-event-card:hover {
	cursor: pointer;
	background-color: var(--wp--preset--color--primary-lighter);
}

.eco-event-card__padder {
	padding: var(--wp--preset--spacing--50);
}

.eco-calendar__content {
	display: flex;
	flex-wrap: wrap;
}

.eco-calendar__content .wp-block-heading {
	font-weight: 900;
	margin-bottom: var(--wp--preset--spacing--70);
}

.eco-calendar__columns {
	position: relative;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--50);
	width: 100%;
	min-height: 420px;
	margin-bottom: var(--wp--preset--spacing--100);
}

.eco-calendar__column-calendar {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(50% - var(--wp--preset--spacing--40)) !important;
	max-width: 396px;
	margin-bottom: var(--wp--preset--spacing--50);
	z-index: 1;
}

.eco-calendar__column-data {
	background-repeat: no-repeat;
	background-position: center;
	background-size:auto;
	background-image: url("data:image/svg+xml,%3Csvg fill='grey' width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_P7sC%7Btransform-origin:center;animation:spinner_svv2 .75s infinite linear%7D@keyframes spinner_svv2%7B100%25%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z' class='spinner_P7sC'/%3E%3C/svg%3E");
}

.eco-calendar__column-data--loaded {
	display: none;
	background: none!important;
}

.eco-calendar-item__subscribe .wp-block-button .wp-block-button__link {
    font-size: var(--wp--preset--font-size--m);
}


/*
 * Event card
 */

.eco-calendar-item {
	background-color: white;
}

/* .eco-calendar-item__img {
	height: 4.4rem;
	width: auto;
}
 */
.eco-calendar-item__dates {
	padding-left: var(--wp--preset--spacing--50);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--m);
	list-style-type: disc;
}
.eco-calendar-item__description {
	font-size: var(--wp--preset--font-size--m);
	margin: var(--wp--preset--spacing--30) 0;
}

.eco-calendar-item__place::before {
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='24' viewBox='0 0 20 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 10C19 17 10 23 10 23C10 23 1 17 1 10C1 7.61305 1.94821 5.32387 3.63604 3.63604C5.32387 1.94821 7.61305 1 10 1C12.3869 1 14.6761 1.94821 16.364 3.63604C18.0518 5.32387 19 7.61305 19 10Z' stroke='%230F695F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z' stroke='%230F695F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
	height: 1rem;
	width: 1rem;
	content: "";
	vertical-align: middle;
	display: inline-block;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	margin-right: var(--wp--preset--spacing--20)
}
.eco-calendar-item__place {
    display: flex;
    align-items: center;
	font-size: var(--wp--preset--font-size--m);
	padding: var(--wp--preset--spacing--30) 0;
	border-top: 1px solid var(--wp--custom--color--neutral--300);
	border-bottom: 1px solid var(--wp--custom--color--neutral--300);
	color: var(--wp--preset--color--primary);
}

.eco-event-card .eco-calendar-item__place {
	padding: 0;
	margin: 0;
	border: none;
}

.eco-calendar-item__subscribe .wp-block-button {
	display: none;
	/* margin-top: var(--wp--preset--spacing--40); */
}

.eco-calendar-item__subscribe--visible .wp-block-button {
	display: block;
}

@media screen and (min-width: 960px) and (max-width: 1100px),
screen and (max-width: 800px) {
	.eco-calendar {
		justify-content: center;
	}

	.eco-calendar__column-calendar {
		position: relative;
		width: 100% !important;
	}

	.eco-fetch-sorting__root--events .eco-calendar__events-list .eco-event-card:first-of-type {
		width: 100% !important;
		margin-left: 0 !important;
	}
}


@media screen and (max-width: 960px){
	.eco-calendar-item__subscribe .wp-block-button {
		margin-top: 0;
	}
	.eco-calendar {
		flex-wrap: wrap;
		gap: 0;
	}
	.eco-event-card__container {
		flex-wrap: wrap;
	}
	.eco-calendar__column {
		width: 100%!important;
		max-width: none;
	}
	.eco-event-card {
		flex-shrink: 0;
	}
	.eco-event-card .eco-calendar-card header {
		min-height: 0;
	}
	.eco-event-card .eco-calendar-card .eco-event-card__infos {
		flex: 1 1 auto;
	}
	.eco-event-card .eco-calendar-card .eco-calendar-item__title a {
		display: block;
	}
	.eco-calendar-item__description {
		min-height: auto;
		margin: var(--wp--preset--spacing--80) 0;
	}
}

@media screen and (max-width: 600px) {
	.eco-fetch-sorting__root--events .eco-event-card, 
	.eco-fetch-sorting__root--events .eco-calendar__events-list .eco-event-card:first-of-type:last-of-type:nth-of-type(even), 
	.eco-calendar-item__template {
		width: 100% !important;
	}
}

/* event select v2 */ 
.eco-event-select__list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 32px;
	margin-top: 0;
	margin-bottom: 32px;
} 

.eco-event-select__item {
	display: flex;
	border-top: 1px dotted var(--wp--preset--color--primary);
}

.eco-event-select__item:last-of-type {
	border-bottom: 1px dotted var(--wp--preset--color--primary);
}

.eco-event-select__item > a {
	display: flex;
	gap: 20px;
	width: 100%;
	padding: 16px 0;
}

.eco-event-select__item * {
	margin: 0;
}

.eco-event-select__item-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100px;
	min-width: 100px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
}

.eco-event-select__item-date > p {
	font-size: 64px;
	font-weight: 900;
}

.eco-event-select__item-date > span {
	margin-top: -16px;
}

.eco-event-select__item-content {
	display: flex;
	gap: 8px;
	flex-direction: column;
	align-items: flex-start;
}

.eco-event-select__item-hours {
	display: flex;
	list-style: none;
}

.eco-event-select__item-hours li + li {
	margin-left: 8px;
}

.eco-event-select__item-hours li + li::before {
	content: "⸱";
}

.eco-event-select__item-title {
	font-size: 20px;
	font-weight: 900;
	color: var(--wp--preset--color--primary);
}

.eco-event-select__item-hours {
	padding: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	border-radius: 8px;
	background: var(--wp--preset--color--primary-lighter);
}

.eco-event-select__description {
	color: var(--wp--preset--color--texte);
}

.eco-event-select__figure {
	width: 200px;
	min-width: 200px;
	height: 130px;
	margin-left: auto;
	border-radius: 16px;
	overflow: hidden;
}

.eco-event-select__figure img {
	width: 100%;
	height: 100%;
}

.eco-event-select__figure--full img {
	object-fit: cover;
}

.eco-event-select__figure--icon img {
	object-fit: contain;
}

@media screen and (max-width: 790px) {
	.eco-event-select__figure {
		display: none;
	}
}