/* [cd_poll_cards] shortcode styles */

.cd-pc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 22px;
}

.cd-pc-card {
	display: flex;
	box-sizing: border-box;
	height: 295px;
	border: 1px solid #E0E0E0;
	border-radius: 18px;
	/* Clips the image to the card's left corners. */
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.cd-pc-card:hover,
.cd-pc-card:focus {
	text-decoration: none;
	color: inherit;
}

/* Full height of the card, fixed 191px wide. The !important rules beat the
   theme's global img height:auto. */
.cd-pc-image {
	display: block;
	flex: 0 0 191px;
	align-self: stretch;
	width: 191px !important;
	min-width: 191px;
	max-width: 191px !important;
	height: 100% !important;
	min-height: 100%;
	object-fit: cover !important;
	object-position: center center !important;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

.cd-pc-image-placeholder {
	background: #EFE7E1;
}

.cd-pc-body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	background: #FFFFFF;
	padding: 25px 25px 26px 18px;
}

/* --- Poll badge row ---------------------------------------------------- */

.cd-pc-head {
	display: flex;
	align-items: center;
}

.cd-pc-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 45px;
	width: 45px;
	height: 45px;
	border-radius: 50em;
	background: #EBE2EF;
}

.cd-pc-icon img {
	display: block;
	width: 18px !important;
	height: 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.cd-pc-label {
	margin-left: 17px;
	font-family: 'Outfit', sans-serif !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 100% !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #4B2FC5;
}

/* --- Title and rule ---------------------------------------------------- */

/* Three lines, not four: the 293px card cannot fit a fourth at this height. */
.cd-pc-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 20px;
	font-family: 'Playfair Display', serif !important;
	font-weight: 400 !important;
	font-size: 25px !important;
	line-height: 31px !important;
	letter-spacing: 0;
	color: #0B0B0B;
}

.cd-pc-rule {
	display: block;
	flex: 0 0 1px;
	width: 35px;
	height: 1px;
	margin-top: 29px;
	background: #F6599C;
}

/* --- Vote now ---------------------------------------------------------- */

/* margin-top:auto floats this flush to the bottom padding edge. */
.cd-pc-more {
	display: block;
	box-sizing: border-box;
	width: 159px;
	max-width: 100%;
	margin-top: auto;
	padding-bottom: 12px;
	border-bottom: 1px solid #4B2FC5;
	border-radius: 0;
}

.cd-pc-more-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cd-pc-more-text {
	font-family: 'Outfit', sans-serif !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 100% !important;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #4B2FC5;
}

.cd-pc-more-arrow {
	display: block;
	flex: 0 0 19px;
	width: 19px !important;
	height: 11px !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.cd-pc-empty {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	color: #666;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1280px) {
	.cd-pc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.cd-pc-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Narrow phones: the 191px image leaves too little room beside it, so the
   card stacks. */
@media (max-width: 480px) {
	.cd-pc-card {
		flex-direction: column;
		height: auto;
	}

	.cd-pc-image {
		flex: 0 0 180px;
		align-self: auto;
		width: 100% !important;
		min-width: 0;
		max-width: 100% !important;
		height: 180px !important;
		min-height: 180px;
	}

	.cd-pc-body {
		min-height: 260px;
	}
}
