.mbb-comments {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px 32px 38px;
	background: var(--mbb-white);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-xl);
	box-shadow: var(--mbb-shadow-lg);
	scroll-margin-top: 20px;
}

.mbb-comments__title {
	font-family: var(--mbb-font-display);
	font-size: 32px;
	font-weight: 400;
	line-height: 40.64px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mbb-yellow);
	paint-order: stroke fill;
	-webkit-text-stroke: 8px var(--mbb-black);
}

.mbb-comments__empty,
.mbb-comments__closed {
	font-size: 17px;
	line-height: 27px;
	color: var(--mbb-text-grey);
}

.mbb-comments__nav .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 14px;
}

.mbb-comments__nav a {
	font-size: 14px;
	font-weight: 800;
	line-height: 18.2px;
	color: var(--mbb-hot-pink);
	text-decoration: none;
}

.mbb-comments__nav a:hover {
	text-decoration: underline;
}

.mbb-comment-list,
.mbb-comment-list .children {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mbb-comment-list .children {
	margin: 22px 0 0 60px;
}

.mbb-comment__row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.mbb-avatar {
	flex: none;
	width: 46px;
	height: 46px;
	border: var(--mbb-stroke-fine) solid var(--mbb-black);
	border-radius: 50%;
	background: var(--mbb-light-pink);
	object-fit: contain;
}

.mbb-bubble {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	background: var(--mbb-soft-grey);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
}

.mbb-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 0 4px;
}

.mbb-comment__name {
	font-size: 16px;
	font-weight: 800;
	line-height: 20.8px;
	overflow-wrap: anywhere;
}

.mbb-comment__time {
	font-size: 14px;
	line-height: 18px;
	color: var(--mbb-text-grey);
}

.mbb-comment__pending {
	margin-bottom: 4px;
	font-size: 14px;
	line-height: 18px;
	color: var(--mbb-text-grey);
}

.mbb-comment__text {
	margin-bottom: 4px;
	font-size: 17px;
	line-height: 27px;
	overflow-wrap: anywhere;
}

.mbb-comment__text p + p {
	margin-top: 10px;
}

.mbb-comment__text a {
	color: var(--mbb-hot-pink);
	font-weight: 800;
}

.mbb-comment__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.mbb-comment__actions a {
	font-size: 14px;
	font-weight: 800;
	line-height: 18.2px;
	color: var(--mbb-hot-pink);
	text-decoration: none;
}

.mbb-comment__actions .comment-edit-link {
	color: var(--mbb-text-grey);
}

.mbb-comment__actions a:hover {
	text-decoration: underline;
}

.mbb-comments__compose {
	margin-top: 22px;
}

.mbb-dashed {
	height: 4px;
	margin-bottom: 20px;
	background: var(--mbb-divider);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4'%3E%3Crect width='16' height='4' rx='2'/%3E%3C/svg%3E") 0 0 / 24px 4px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4'%3E%3Crect width='16' height='4' rx='2'/%3E%3C/svg%3E") 0 0 / 24px 4px repeat-x;
}

/* comment-reply.js moves #respond under the comment */
.mbb-comment-list .mbb-respond {
	margin-top: 18px;
}

.mbb-form__reply-title {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 800;
	line-height: 20.8px;
}

.mbb-form__reply-title a {
	color: inherit;
	text-decoration: none;
}

.mbb-form__reply-title small {
	font-size: 14px;
}

.mbb-form__reply-title #cancel-comment-reply-link {
	margin-left: 8px;
	color: var(--mbb-hot-pink);
}

.mbb-form__reply-title #cancel-comment-reply-link:hover {
	text-decoration: underline;
}

.mbb-respond:not(.is-replying) .mbb-form__reply-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mbb-form {
	margin: 0;
}

.mbb-compose {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.mbb-compose__mini {
	position: relative;
	flex: none;
	width: 46px;
}

.mbb-compose__fields {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.mbb-field {
	margin: 0;
}

.mbb-input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 16px;
	background: var(--mbb-white);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-md);
	font-size: 16px;
	line-height: normal;
	color: var(--mbb-black);
}

.mbb-field--name .mbb-input {
	max-width: 340px;
}

.mbb-input--area {
	height: 110px;
	padding: 14px 16px;
	resize: none;
	line-height: 1.3;
}

.mbb-input::placeholder {
	color: var(--mbb-text-grey);
	opacity: 1;
}

.mbb-input:focus-visible {
	outline: 3px solid var(--mbb-cyan);
	outline-offset: 2px;
}

.mbb-form__as {
	font-size: 14px;
	line-height: 18px;
	color: var(--mbb-text-grey);
}

.mbb-form__as a {
	font-weight: 800;
	color: var(--mbb-hot-pink);
	text-decoration: none;
}

.mbb-form__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.mbb-form__note {
	max-width: 520px;
	font-size: 15px;
	line-height: 22px;
	color: var(--mbb-text-grey);
}

.mbb-form__submit {
	flex: none;
}

/* honeypot */
.mbb-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mbb-mini-trigger {
	position: relative;
	display: block;
	width: 46px;
	height: 46px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.mbb-mini-trigger__badge {
	position: absolute;
	top: 27px;
	left: 27px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: var(--mbb-cyan);
	border: 2px solid var(--mbb-black);
	border-radius: 50%;
	transition: transform 80ms ease;
}

.mbb-mini-trigger:hover .mbb-mini-trigger__badge,
.mbb-mini-trigger[aria-expanded="true"] .mbb-mini-trigger__badge {
	background: var(--mbb-yellow);
}

.mbb-mini-trigger:active .mbb-mini-trigger__badge {
	transform: scale(0.92);
}

.mbb-mini-option {
	display: block;
	width: 44px;
	height: 44px;
	padding: 0;
	overflow: hidden;
	background: var(--mbb-light-pink);
	border: var(--mbb-stroke-fine) solid var(--mbb-black);
	border-radius: 50%;
	cursor: pointer;
	transition: transform 80ms ease;
}

.mbb-mini-option img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbb-mini-option:hover {
	transform: scale(1.06);
}

.mbb-mini-option[aria-checked="true"] {
	box-shadow: 0 0 0 4px var(--mbb-yellow), 0 0 0 6px var(--mbb-black);
}

.mbb-mini-option:focus-visible {
	outline-offset: 8px;
}

/* Picker */

.mbb-picker {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 0;
	z-index: 60;
	width: 354px;
	padding: 17px;
	background: var(--mbb-white);
	border: var(--mbb-stroke) solid var(--mbb-black);
	border-radius: var(--mbb-radius-lg);
	box-shadow: 0 6px 0 var(--mbb-black);
}

.mbb-picker[hidden],
.mbb-picker-scrim[hidden] {
	display: none;
}

.mbb-picker__handle {
	display: none;
}

.mbb-picker__title {
	margin-bottom: 15px;
	font-family: var(--mbb-font-display);
	font-size: 20px;
	line-height: 25.4px;
	text-transform: uppercase;
	color: var(--mbb-black);
}

.mbb-picker__grid {
	display: grid;
	grid-template-columns: repeat(6, 44px);
	gap: 10px;
	margin-bottom: 14px;
}

.mbb-picker-scrim {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: var(--mbb-scrim);
}

.mbb-respond.mbb-js .mbb-mini-fallback,
.mbb-respond:not(.mbb-js) .mbb-compose__mini--picker {
	display: none;
}

.mbb-mini-fallback {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.mbb-mini-fallback__legend {
	margin-bottom: 12px;
	padding: 0;
	font-family: var(--mbb-font-display);
	font-size: 16px;
	line-height: 20.32px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.mbb-mini-fallback__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 6px;
}

.mbb-mini-fallback__option {
	position: relative;
	cursor: pointer;
}

.mbb-mini-fallback__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mbb-mini-fallback__option .mbb-avatar {
	width: 52px;
	height: 52px;
}

.mbb-mini-fallback__option input:checked + .mbb-avatar {
	box-shadow: 0 0 0 4px var(--mbb-yellow), 0 0 0 6px var(--mbb-black);
}

.mbb-mini-fallback__option input:focus-visible + .mbb-avatar {
	outline: 3px solid var(--mbb-cyan);
	outline-offset: 8px;
}

.mbb-held {
	scroll-margin-top: 120px;
}

.mbb-held__text {
	margin-bottom: 4px;
	font-size: 17px;
	line-height: 27px;
}

/* Mobile */

@media (max-width: 1023px) {
	.mbb-comments {
		padding: 28px 18px 38px;
	}

	.mbb-comment-list .children {
		margin-left: 24px;
	}

	.mbb-comment--crew > .mbb-comment__row .mbb-comment__time {
		flex-basis: 100%;
	}

	.mbb-field--name .mbb-input {
		max-width: none;
	}

	.mbb-form__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.mbb-picker {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		width: auto;
		max-height: 100vh;
		overflow-y: auto;
		padding: 14px 20px calc(34px + env(safe-area-inset-bottom, 0px));
		border-bottom: 0;
		border-radius: var(--mbb-radius-xl) var(--mbb-radius-xl) 0 0;
		box-shadow: none;
		animation: mbb-sheet-in 200ms ease-out;
	}

	.mbb-picker.is-dragging {
		transition: none;
	}

	.mbb-picker__handle,
	.mbb-picker__title {
		touch-action: none;
	}

	.mbb-picker__handle {
		display: block;
		width: 44px;
		height: 5px;
		margin: 0 auto 18px;
		background: var(--mbb-text-grey);
		border-radius: 3px;
	}

	.mbb-picker__title {
		margin-bottom: 18px;
		font-size: 24px;
		line-height: 30.48px;
		text-align: center;
	}

	.mbb-picker__grid {
		grid-template-columns: repeat(6, minmax(0, 52px));
		gap: 12px;
		justify-content: center;
		margin-bottom: 18px;
	}

	.mbb-picker .mbb-mini-option {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.mbb-picker-scrim {
		animation: mbb-fade-in 200ms ease-out;
	}
}

@keyframes mbb-sheet-in {
	from {
		transform: translateY(100%);
	}
}

@keyframes mbb-fade-in {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbb-picker,
	.mbb-picker-scrim,
	.mbb-mini-option,
	.mbb-mini-trigger__badge {
		animation: none;
		transition: none;
	}
}

@media (max-width: 374px) {
	.mbb-comments {
		padding-right: 14px;
		padding-left: 14px;
	}

	.mbb-comment__row {
		gap: 10px;
	}

	.mbb-comment__row > .mbb-avatar {
		width: 36px;
		height: 36px;
	}

	.mbb-comment-list .children {
		margin-left: 12px;
	}
}

/* keep the sheet phone-sized on tablets */
@media (min-width: 640px) and (max-width: 1023px) {
	.mbb-picker {
		max-width: 520px;
		margin: 0 auto;
	}
}
