/*
 * Ochanta — base commune des listes « simples » (articles, produits, catégories de produits) et
 * de leurs carrousels : grille, séparateurs, image à gauche / à droite / au-dessus, calque de
 * survol, titre, méta, extrait, bouton.
 *
 * Variables posées par les réglages : --content-wrapper-flex-flow, --thumb-order, --thumb-margin,
 * --content-width (position de l'image), --image-size, --image-spacing, --divider-width,
 * --grid-row-gap, --wide-desktop-columns. Les règles par appareil (séparateurs de la 1re rangée,
 * colonnes en grand écran) sont calculées par le widget (generate_inline_css).
 */

[class*="the7-simple-widget-"] {
	--image-size: 80px;
	--image-spacing: 20px;
	--content-wrapper-flex-flow: row nowrap;
	--thumb-margin: 0 var(--image-spacing) 0 0;
	--thumb-order: 0;
	--content-width: calc(100% - var(--image-size) - var(--image-spacing));
}

/* Titre du widget */
[class*="the7-simple-widget-"] .rp-heading {
	margin-bottom: 20px;
}

/* Grille */
[class*="the7-simple-widget-"] .dt-css-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	grid-row-gap: var(--grid-row-gap, 20px);
	grid-column-gap: 20px;
}

[class*="the7-simple-widget-"] .wf-cell {
	position: relative;
	display: flex;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

[class*="the7-simple-widget-"] .wf-cell.hidden,
[class*="the7-simple-widget-"] .wf-cell.och-filtered-out,
[class*="the7-simple-widget-"] .wf-cell.och-page-hidden {
	display: none;
}

/* Séparateur au-dessus de chaque élément (masqué sur la 1re rangée). */
[class*="the7-simple-widget-"].widget-divider-on .wf-cell:before {
	position: absolute;
	top: calc(var(--grid-row-gap, 20px) / -2);
	left: 0;
	width: 100%;
	content: "";
	border-bottom: var(--divider-width, 1px) solid rgba(0, 0, 0, 0.1);
	pointer-events: none;
}

/* Élément */
[class*="the7-simple-widget-"] .post.wrapper {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: flex-start;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 0 solid transparent;
	transition: background .3s, border-color .3s, box-shadow .3s;
}

[class*="the7-simple-widget-"] .post-content-wrapper {
	display: flex;
	flex: 1 1 auto;
	flex-flow: var(--content-wrapper-flex-flow);
	align-items: flex-start;
	width: 100%;
	min-width: 0;
}

.auto-height-y [class*="the7-simple-widget-"] .post.wrapper,
.auto-height-y [class*="the7-simple-widget-"] .post-content-wrapper {
	height: 100%;
}

/* Image */
[class*="the7-simple-widget-"] .the7-simple-post-thumb,
[class*="the7-simple-widget-"] .the7-related-product-thumb,
.the7-simple-widget-product-categories .post-thumbnail-wrap {
	position: relative;
	flex: 0 0 auto;
	order: var(--thumb-order);
	box-sizing: border-box;
	width: var(--image-size);
	max-width: 100%;
	margin: var(--thumb-margin);
	overflow: hidden;
	border: 0 solid transparent;
	line-height: 0;
	transition: border-color .3s, box-shadow .3s;
}

[class*="the7-simple-widget-"] .post-entry-content {
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
	box-sizing: border-box;
	width: var(--content-width);
	min-width: 0;
}

[class*="the7-simple-widget-"] .no-img .post-entry-content,
.hide-post-image[class*="the7-simple-widget-"] .post-entry-content {
	width: 100%;
}

.icon-box-vertical-align-center [class*="the7-simple-widget-"] .post-entry-content {
	justify-content: center;
}

.icon-box-vertical-align-bottom [class*="the7-simple-widget-"] .post-entry-content {
	justify-content: flex-end;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity .3s, filter .3s, transform .3s;
}

/* Calque de survol : :before au repos, :after au survol (couleurs réglées dans le widget). */
[class*="the7-simple-widget-"] .post-thumbnail-rollover:before,
[class*="the7-simple-widget-"] .post-thumbnail-rollover:after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	border-radius: inherit;
	pointer-events: none;
	transition: opacity .3s ease;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover:after {
	opacity: 0;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover:hover:before,
[class*="the7-simple-widget-"] a.wf-cell:hover .post-thumbnail-rollover:before {
	opacity: 0;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover:hover:after,
[class*="the7-simple-widget-"] a.wf-cell:hover .post-thumbnail-rollover:after {
	opacity: 1;
}

[class*="the7-simple-widget-"] .the7-hover-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity .3s;
	pointer-events: none;
}

[class*="the7-simple-widget-"] .the7-hover-icon:empty {
	display: none;
}

[class*="the7-simple-widget-"] .the7-hover-icon svg {
	width: 1em;
	height: auto;
	fill: currentColor;
}

[class*="the7-simple-widget-"] .post-thumbnail-rollover:hover .the7-hover-icon,
[class*="the7-simple-widget-"] a.wf-cell:hover .the7-hover-icon {
	opacity: 1;
}

[class*="the7-simple-widget-"] .not-clickable-item {
	cursor: default;
}

/* Textes */
[class*="the7-simple-widget-"] .heading {
	margin: 0;
	max-width: 100%;
}

[class*="the7-simple-widget-"] .post-title {
	color: inherit;
	text-decoration: none;
	transition: color .3s;
}

[class*="the7-simple-widget-"] .entry-meta {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: inherit;
	margin-top: 5px;
	max-width: 100%;
}

.slide-h-position-center [class*="the7-simple-widget-"] .entry-meta {
	justify-content: center;
}

.slide-h-position-right [class*="the7-simple-widget-"] .entry-meta {
	justify-content: flex-end;
}

[class*="the7-simple-widget-"] .entry-meta .meta-item {
	display: inline-flex;
	align-items: center;
	color: var(--meta-color, inherit);
	text-decoration: none;
	transition: color .3s;
}

[class*="the7-simple-widget-"] .entry-meta .meta-item a {
	color: inherit;
	text-decoration: none;
}

[class*="the7-simple-widget-"] .entry-meta .meta-item:not(:first-child):before {
	content: "•";
	margin: 0 0.4em;
}

[class*="the7-simple-widget-"] .short-description {
	margin: 5px 0 0;
	max-width: 100%;
	transition: color .3s;
}

[class*="the7-simple-widget-"] .post-entry-content .box-button {
	margin-top: 10px;
}

/* Titre ou extrait sur une ligne. */
.title-to-line[class*="the7-simple-widget-"] .heading,
.title-to-line[class*="the7-simple-widget-"] .heading a,
.desc-to-line[class*="the7-simple-widget-"] .short-description {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.title-to-line[class*="the7-simple-widget-"] .heading a {
	display: block;
}

/* Pagination (décor : the7-filter-decorations-base.css) */
[class*="the7-simple-widget-"] ~ .paginator,
[class*="the7-simple-widget-"] .paginator {
	margin-top: 30px;
}
