/*
	SHORTCODE [g2] - LISTA COMPACTA DE CAMPANHAS
*/

.g2-campanhas{
	--g2-blue: #4857c0;
	--g2-green: #1bbc81;
	--g2-yellow: #ffd700;
	--g2-navy: #253259;
	--g2-muted: #8a91a8;
	--g2-border: #e3e7f0;

	width: 100%;
	margin: 0 auto 30px;
	font-family: 'Open Sans', sans-serif;
}

.g2-campanhas *,
.g2-campanhas *::before,
.g2-campanhas *::after{
	box-sizing: border-box;
}

/* CABEÇALHO */
.g2-cabecalho{
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding-left: 4px;
}

.g2-cabecalho__icone{
	font-size: 26px;
	line-height: 1;
}

.g2-campanhas .g2-cabecalho h2{
	margin: 0 !important;
	padding: 0 !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--g2-navy) !important;
	text-transform: none !important;
	border: 0 !important;
}

/* LISTA */
.g2-lista{
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.g2-campanhas a.g2-item{
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--g2-border);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(37, 50, 89, .05);
	color: var(--g2-navy);
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.g2-campanhas a.g2-item:hover{
	transform: translateY(-2px);
	border-color: #cdd3ec;
	box-shadow: 0 10px 24px rgba(37, 50, 89, .1);
}

.g2-item__thumb{
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	background: #f0f2f6;
}

.g2-item__thumb img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.g2-item__body{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.g2-item__titulo{
	display: block;
	max-width: 100%;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--g2-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g2-item__detalhes{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 12px;
	color: var(--g2-muted);
}

.g2-item__detalhes i{
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #c9cede;
}

.g2-item__preco{
	font-weight: 700;
	color: var(--g2-green);
}

.g2-item__preco small{
	font-weight: 400;
	font-size: 12px;
	color: var(--g2-muted);
}

.g2-item__progresso{
	display: block;
	width: 100%;
	max-width: 260px;
	height: 5px;
	border-radius: 5px;
	background: #edf0f6;
	overflow: hidden;
}

.g2-item__progresso span{
	display: block;
	height: 100%;
	min-width: 4px;
	border-radius: 5px;
	background: var(--g2-green);
}

.g2-item__botao{
	display: inline-block;
	margin-top: 2px;
	padding: 7px 14px;
	border-radius: 7px;
	background: var(--g2-green);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1);
}

.g2-item--encerrada .g2-item__botao{
	background: var(--g2-blue);
}

.g2-item--esgotada .g2-item__botao{
	background: var(--g2-yellow);
	color: var(--g2-navy);
}

.g2-item__seta{
	flex: 0 0 auto;
	display: flex;
	color: #b4bacb;
	transition: color .15s ease, transform .15s ease;
}

.g2-campanhas a.g2-item:hover .g2-item__seta{
	color: var(--g2-blue);
	transform: translateX(3px);
}

.g2-vazio{
	padding: 20px;
	border: 1px dashed var(--g2-border);
	border-radius: 14px;
	text-align: center;
	color: var(--g2-muted);
}

@media(max-width: 540px){
	.g2-campanhas .g2-cabecalho h2{
		font-size: 22px !important;
	}
	.g2-campanhas a.g2-item{
		gap: 12px;
		padding: 12px;
	}
	.g2-item__thumb{
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}
	.g2-item__titulo{
		font-size: 14px;
	}
	.g2-item__detalhes{
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
	.g2-item__detalhes i{
		display: none;
	}
	.g2-item__seta svg{
		width: 18px;
		height: 18px;
	}
}
