/* Also loaded in the editor, which leaves .editor-styles-wrapper selectors unprefixed */

.editor-styles-wrapper {
	background: var(--mbb-white);
	color: var(--mbb-black);
	font-family: var(--mbb-font-body);
	font-size: 17px;
	line-height: 27px;
}

:is(.mbb-post__content, .editor-styles-wrapper) p {
	font-size: 17px;
	line-height: 27px;
}

:is(.mbb-post__content, .editor-styles-wrapper) h2 {
	padding: 6px 22px 8px;
	border-radius: 999px;
	background: var(--mbb-black);
	font-family: var(--mbb-font-body);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-align: center;
	color: var(--mbb-yellow);
	scroll-margin-top: 24px;
}

:is(.mbb-post__content, .editor-styles-wrapper) h2 :is(strong, b, mark) {
	background: none;
	font-weight: inherit;
	color: inherit;
}

@media (max-width: 1023px) {
	:is(.mbb-post__content, .editor-styles-wrapper) h2 {
		padding: 6px 18px 7px;
		font-size: 19px;
	}
}

:is(.mbb-post__content, .editor-styles-wrapper) h3 {
	font-family: var(--mbb-font-body);
	font-size: 22px;
	font-weight: 900;
	line-height: 28px;
	color: var(--mbb-black);
	scroll-margin-top: 24px;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(h4, h5, h6) {
	font-family: var(--mbb-font-body);
	font-size: 18px;
	font-weight: 800;
	line-height: 24px;
	color: var(--mbb-black);
}

:is(.mbb-post__content, .editor-styles-wrapper) strong,
:is(.mbb-post__content, .editor-styles-wrapper) b {
	font-weight: 800;
}

:is(.mbb-post__content, .editor-styles-wrapper) a:not(.wp-block-button__link, .mbb-tag) {
	color: var(--mbb-black);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--mbb-hot-pink);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

:is(.mbb-post__content, .editor-styles-wrapper) a:not(.wp-block-button__link, .mbb-tag):hover {
	color: var(--mbb-hot-pink);
	text-decoration-color: var(--mbb-black);
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(ul, ol):not(.is-style-mbb-steps) {
	margin-block: 0;
	padding-left: 26px;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(ul, ol):not(.is-style-mbb-steps) li + li,
:is(.mbb-post__content, .editor-styles-wrapper) :is(ul, ol):not(.is-style-mbb-steps) li > :is(ul, ol) {
	margin-top: 6px;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(ul, ol):not(.is-style-mbb-steps) li::marker {
	color: var(--mbb-hot-pink);
	font-weight: 900;
}

:is(.mbb-post__content, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) {
	margin: 0;
	padding: 16px 20px 18px;
	background: var(--mbb-soft-grey);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
	font-size: 18px;
	font-weight: 800;
	line-height: 28px;
}

:is(.mbb-post__content, .editor-styles-wrapper) blockquote p {
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

:is(.mbb-post__content, .editor-styles-wrapper) blockquote p + p {
	margin-top: 10px;
}

:is(.mbb-post__content, .editor-styles-wrapper) blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	color: var(--mbb-text-grey);
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-pullquote {
	margin: 0;
	padding: 24px 26px;
	background: var(--mbb-light-pink);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-xl);
	box-shadow: var(--mbb-shadow-md);
	text-align: center;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-pullquote blockquote {
	margin: 0;
	font-size: 22px;
	font-weight: 900;
	line-height: 30px;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	line-height: 18.2px;
	text-transform: none;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-image:not(.is-style-mbb-screenshot) img,
:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-video video,
:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-embed iframe {
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-md);
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-embed iframe {
	width: 100%;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-video, .wp-block-embed, .wp-block-gallery):not(.is-style-mbb-screenshot) figcaption {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	color: var(--mbb-text-grey);
}

:is(.mbb-post__content, .editor-styles-wrapper) hr,
:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-separator {
	width: 100%;
	height: 4px;
	margin-inline: 0;
	border: 0;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, var(--mbb-divider) 0 16px, transparent 16px 24px);
	opacity: 1;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(pre, .wp-block-code, .wp-block-preformatted) {
	margin: 0;
	padding: 14px 18px;
	background: var(--mbb-soft-grey);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-md);
	font-family: var(--mbb-font-body);
	font-size: 15px;
	line-height: 22px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

:is(.mbb-post__content, .editor-styles-wrapper) :is(pre, .wp-block-code) code,
:is(.mbb-post__content, .editor-styles-wrapper) code {
	font-family: var(--mbb-font-body);
}

:is(.mbb-post__content, .editor-styles-wrapper) :not(pre) > code {
	padding: 0 5px;
	background: var(--mbb-soft-grey);
	border-radius: 6px;
	font-size: 0.9em;
	font-weight: 800;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 22px;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-table :is(th, td) {
	padding: 8px 12px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	text-align: left;
}

:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-table th,
:is(.mbb-post__content, .editor-styles-wrapper) .wp-block-table thead td {
	background: var(--mbb-light-pink);
	font-weight: 800;
}

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 53px;
	padding: 12px 22px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-sm);
	background: var(--mbb-cyan);
	box-shadow: var(--mbb-shadow-md);
	font-family: var(--mbb-font-body);
	font-size: 18px;
	font-weight: 800;
	line-height: 23.4px;
	color: var(--mbb-white);
	paint-order: stroke fill;
	-webkit-text-stroke: 5px var(--mbb-black);
	text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover {
	background: var(--mbb-yellow);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--mbb-white);
	color: var(--mbb-black);
	-webkit-text-stroke: 0;
}

.wp-block-image.is-style-mbb-screenshot {
	display: block;
	box-sizing: border-box;
	width: 560px;
	max-width: 100%;
	margin-inline: auto;
	padding: 14px 14px 12px;
	background: var(--mbb-white);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-md);
	box-shadow: var(--mbb-shadow-lg);
	transform: rotate(-2deg);
}

.wp-block-image.is-style-mbb-screenshot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 526 / 290;
	object-fit: cover;
	border: 0;
	border-radius: 8px;
}

.wp-block-image.is-style-mbb-screenshot figcaption {
	margin: 10px 0 0;
	font-family: var(--mbb-font-body);
	font-size: 14px;
	font-weight: 800;
	line-height: 18.2px;
	text-align: center;
	color: var(--mbb-black);
}

/* Steps */

ol.is-style-mbb-steps,
ul.is-style-mbb-steps {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-inline: 0;
	padding: 0;
	list-style: none;
	counter-reset: mbb-step;
}

/* fallback when items have no .mbb-step__body (editor, old content) */
.is-style-mbb-steps > li {
	position: relative;
	min-height: 40px;
	margin: 0;
	padding: 6.5px 0 6.5px 54px;
	font-size: 17px;
	line-height: 27px;
	counter-increment: mbb-step;
}

.is-style-mbb-steps > li::before {
	content: counter(mbb-step);
	position: absolute;
	top: 50%;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: 50%;
	background: var(--mbb-hot-pink);
	box-shadow: var(--mbb-shadow-sm);
	font-family: var(--mbb-font-display);
	font-size: 20px;
	font-weight: 400;
	line-height: 25.4px;
	letter-spacing: 0;
	color: var(--mbb-white);
	paint-order: stroke fill;
	-webkit-text-stroke: 8px var(--mbb-black);
}

.editor-styles-wrapper .is-style-mbb-steps > li.wp-block {
	align-self: stretch;
	max-width: none;
	margin: 0;
}

/* inc/single.php wraps each item in .mbb-step__body */
.is-style-mbb-steps > li[data-mbb-step] {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 0;
}

.is-style-mbb-steps > li[data-mbb-step]::before {
	position: static;
	flex: none;
	margin-top: 0;
}

.mbb-step__body {
	flex: 1;
	min-width: 0;
}

/* Pro tip */

.wp-block-group.is-style-mbb-pro-tip {
	box-sizing: border-box;
	padding: 16px 20px 18px;
	background: var(--mbb-yellow);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
	box-shadow: var(--mbb-shadow-md);
	color: var(--mbb-black);
}

.is-style-mbb-pro-tip > *,
.is-style-mbb-pro-tip > .wp-block-group__inner-container > * {
	max-width: none;
	margin: 0;
}

.is-style-mbb-pro-tip > * + *,
.is-style-mbb-pro-tip > .wp-block-group__inner-container > * + * {
	margin-top: 6px;
}

.is-style-mbb-pro-tip .mbb-pro-tip__label,
.is-style-mbb-pro-tip > :is(h2, h3, h4):first-child,
.is-style-mbb-pro-tip > .wp-block-group__inner-container > :is(h2, h3, h4):first-child {
	font-family: var(--mbb-font-display);
	font-size: 20px;
	font-weight: 400;
	line-height: 25.4px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--mbb-black);
	-webkit-text-stroke: 0;
}
