/* Terra Content Relations — front */
.terra-cr-offer-badge {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid #c8e6c9;
	border-radius: 6px;
	background: #f1f8f2;
}

.terra-cr-offer-badge--compact {
	display: inline-block;
	margin: 0.25em 0.5em 0.25em 0;
	padding: 0.35em 0.75em;
}

.terra-cr-offer-badge__label {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2e7d32;
	margin-right: 0.35em;
}

.terra-cr-offer-badge__link {
	font-weight: 600;
}

.terra-cr-offer-badge__note {
	color: #555;
	font-style: italic;
}

.terra-cr-offer-badge__product {
	color: #777;
	font-size: 0.9em;
}

.terra-cr-related {
	margin: 2.5em 0 1.5em;
	padding-top: 1.5em;
	border-top: 1px solid #e5e5e5;
}

.terra-cr-related__title {
	font-size: 1.5em;
	margin: 0 0 1em;
	line-height: 1.25;
}

.terra-cr-related__list {
	list-style: disc;
	margin: 0 0 0 1.25em;
	padding: 0;
}

.terra-cr-related__list li {
	margin: 0.4em 0;
}

.terra-cr-pill {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.15em 0.55em;
	border-radius: 999px;
	background: #e8f5e9;
	color: #1b5e20;
	font-size: 0.8em;
	font-weight: 600;
	text-decoration: none;
	vertical-align: middle;
}

.terra-cr-pill:hover,
.terra-cr-pill:focus {
	background: #c8e6c9;
	color: #1b5e20;
}

/* Full idea cards on product pages */
.terra-cr-ideas {
	display: flex;
	flex-direction: column;
	gap: 1.75em;
}

.terra-cr-idea {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25em;
	padding: 1.5em;
	background: #f7faf7;
	border: 1px solid #d7e5d8;
	border-radius: 10px;
}

@media (min-width: 720px) {
	.terra-cr-idea:has(.terra-cr-idea__media) {
		grid-template-columns: minmax(180px, 280px) 1fr;
		align-items: start;
	}
}

.terra-cr-idea__media {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.terra-cr-idea__media img,
.terra-cr-idea__thumb {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.terra-cr-idea__subtype {
	display: inline-block;
	margin-bottom: 0.5em;
	padding: 0.2em 0.65em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #2e5a32;
	background: #e3efe4;
	border-radius: 4px;
}

.terra-cr-idea__title {
	margin: 0 0 0.65em;
	font-size: 1.45em;
	line-height: 1.3;
}

.terra-cr-idea__title a {
	color: inherit;
	text-decoration: none;
}

.terra-cr-idea__title a:hover,
.terra-cr-idea__title a:focus {
	color: #1b5e20;
	text-decoration: underline;
}

.terra-cr-idea__content {
	font-size: 1.05em;
	line-height: 1.65;
	color: #333;
}

.terra-cr-idea__content > *:first-child {
	margin-top: 0;
}

.terra-cr-idea__content > *:last-child {
	margin-bottom: 0;
}

.terra-cr-idea__cta-wrap {
	margin: 1.25em 0 0;
}

.terra-cr-idea__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.85em 1.4em;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	background: #2e7d32;
	border-radius: 6px;
	text-decoration: none !important;
	box-shadow: 0 2px 0 #1b5e20;
}

.terra-cr-idea__cta:hover,
.terra-cr-idea__cta:focus {
	background: #1b5e20;
	color: #fff !important;
}

.terra-cr-ideas__all-wrap {
	margin: 1.75em 0 0;
	text-align: center;
}

.terra-cr-ideas__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	width: 100%;
	max-width: 42em;
	padding: 1em 1.5em;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: #1b5e20 !important;
	background: #fff;
	border: 2px solid #2e7d32;
	border-radius: 8px;
	text-decoration: none !important;
}

.terra-cr-ideas__all:hover,
.terra-cr-ideas__all:focus {
	background: #e8f5e9;
	color: #145218 !important;
}

.post-content .terra-cr-usage-note,
.terra-cr-usage-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin: 1rem 0 0.35rem;
	padding: 0.7rem 0.95rem;
	border: 1px solid #e4eee6;
	border-left: 3px solid #1f7a4d;
	border-radius: 8px;
	background: #f7faf7;
	line-height: 1.35;
}

.post-content .terra-cr-usage-note p,
.terra-cr-usage-note p {
	margin: 0;
	line-height: 1.35;
}

.terra-cr-usage-note__body {
	min-width: 0;
}

.terra-cr-usage-note__lead {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a3a24;
}

.terra-cr-usage-note__text {
	margin-top: 0.15rem;
	font-size: 0.9rem;
	color: #3d5244;
}

.post-content .terra-cr-usage-note a.terra-cr-usage-note__link,
.terra-cr-usage-note__link {
	color: #1f7a4d;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-content .terra-cr-usage-note a.terra-cr-usage-note__link:hover,
.post-content .terra-cr-usage-note a.terra-cr-usage-note__link:focus,
.terra-cr-usage-note__link:hover,
.terra-cr-usage-note__link:focus {
	color: #145c38;
}

.terra-cr-usage-note__wa {
	margin: 0;
	flex: 0 0 auto;
}

.terra-cr-usage-note__wa-btn {
	display: inline-block;
	padding: 0.32rem 0.7rem;
	background: #25d366;
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border-radius: 999px;
}

.terra-cr-usage-note__wa-btn:hover,
.terra-cr-usage-note__wa-btn:focus {
	background: #1ebe57;
	color: #fff !important;
}

@media (max-width: 640px) {
	.post-content .terra-cr-usage-note,
	.terra-cr-usage-note {
		flex-direction: column;
		align-items: flex-start;
	}
}
