/**
 * Shared WYSIWYG styles — loaded in TinyMCE (iframe body) and on public pages (.rich-text-content).
 */
body.rich-text-content,
.rich-text-content {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: inherit;
	word-wrap: break-word;
}

body.rich-text-content > *:first-child,
.rich-text-content > *:first-child {
	margin-top: 0;
}

body.rich-text-content > *:last-child,
.rich-text-content > *:last-child {
	margin-bottom: 0;
}

body.rich-text-content p,
.rich-text-content p {
	margin: 0 0 1rem;
}

body.rich-text-content h1,
.rich-text-content h1 {
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0.67em 0;
	text-transform: none;
}

body.rich-text-content h2,
.rich-text-content h2 {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0.75em 0 0.5em;
	text-transform: none;
}

body.rich-text-content h3,
.rich-text-content h3 {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0.75em 0 0.5em;
	text-transform: none;
}

body.rich-text-content h4,
.rich-text-content h4,
body.rich-text-content h5,
.rich-text-content h5,
body.rich-text-content h6,
.rich-text-content h6 {
	font-weight: 700;
	line-height: 1.4;
	margin: 0.75em 0 0.5em;
	text-transform: none;
}

body.rich-text-content h4,
.rich-text-content h4 {
	font-size: 1.125em;
}

body.rich-text-content h5,
.rich-text-content h5 {
	font-size: 1em;
}

body.rich-text-content h6,
.rich-text-content h6 {
	font-size: 0.875em;
}

body.rich-text-content ul,
.rich-text-content ul,
body.rich-text-content ol,
.rich-text-content ol {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

body.rich-text-content li,
.rich-text-content li {
	margin-bottom: 0.25rem;
}

body.rich-text-content img,
.rich-text-content img {
	max-width: 100%;
	height: auto;
}

body.rich-text-content figure,
.rich-text-content figure {
	display: table;
	margin: 1rem auto;
	max-width: 100%;
}

body.rich-text-content figure img,
.rich-text-content figure img {
	display: block;
}

body.rich-text-content figcaption,
.rich-text-content figcaption {
	display: block;
	margin-top: 0.25rem;
	text-align: center;
	color: #666;
	font-size: 0.875em;
}

body.rich-text-content table,
.rich-text-content table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1rem;
}

body.rich-text-content table:not([cellpadding]) th,
body.rich-text-content table:not([cellpadding]) td,
.rich-text-content table:not([cellpadding]) th,
.rich-text-content table:not([cellpadding]) td {
	padding: 0.4rem;
}

body.rich-text-content table[border]:not([border='0']):not([style*='border-width']) th,
body.rich-text-content table[border]:not([border='0']):not([style*='border-width']) td,
.rich-text-content table[border]:not([border='0']):not([style*='border-width']) th,
.rich-text-content table[border]:not([border='0']):not([style*='border-width']) td {
	border-width: 1px;
}

body.rich-text-content table[border]:not([border='0']):not([style*='border-style']) th,
body.rich-text-content table[border]:not([border='0']):not([style*='border-style']) td,
.rich-text-content table[border]:not([border='0']):not([style*='border-style']) th,
.rich-text-content table[border]:not([border='0']):not([style*='border-style']) td {
	border-style: solid;
}

body.rich-text-content table[border]:not([border='0']):not([style*='border-color']) th,
body.rich-text-content table[border]:not([border='0']):not([style*='border-color']) td,
.rich-text-content table[border]:not([border='0']):not([style*='border-color']) th,
.rich-text-content table[border]:not([border='0']):not([style*='border-color']) td {
	border-color: #ccc;
}

body.rich-text-content blockquote,
.rich-text-content blockquote {
	border-left: 2px solid #ccc;
	margin: 1rem 0 1rem 1.5rem;
	padding-left: 1rem;
}

body.rich-text-content[dir='rtl'] blockquote,
.rich-text-content[dir='rtl'] blockquote {
	border-left: 0;
	border-right: 2px solid #ccc;
	margin-left: 0;
	margin-right: 1.5rem;
	padding-left: 0;
	padding-right: 1rem;
}

body.rich-text-content hr,
.rich-text-content hr {
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1.5rem 0;
}

body.rich-text-content pre,
.rich-text-content pre {
	background: #f5f5f5;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	overflow-x: auto;
	margin-bottom: 1rem;
}

body.rich-text-content code,
.rich-text-content code {
	background-color: #e8e8e8;
	border-radius: 3px;
	padding: 0.1rem 0.2rem;
}

body.rich-text-content a,
.rich-text-content a {
	color: var(--cnvs-themecolor, #1abc9c);
	text-decoration: underline;
}

body.rich-text-content iframe,
.rich-text-content iframe {
	max-width: 100%;
}

/* Canvas portfolio product page overrides generic h2 title styles inside descriptions */
.portfolio-single-content .rich-text-content h2,
.portfolio-single-content .rich-text-content .h2 {
	font-size: 1.5em !important;
	font-weight: 700 !important;
	margin: 0.75em 0 0.5em !important;
	padding: 0 !important;
	text-transform: none !important;
}

.portfolio-single-content .entry-content.rich-text-content {
	margin-top: 0;
}
