.cmp-popup-trigger {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 2.5rem;
	margin: 0.22rem 0.3rem 0.22rem 0;
	padding: 0.45rem 0.78rem;
	border: 1px solid #c2185b;
	border-radius: 0.35rem;
	background: #e91e63;
	color: #ffffff;
	font: inherit;
	line-height: 1.4;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	vertical-align: middle;
	cursor: pointer;
	transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.cmp-popup-trigger:hover {
	border-color: #ad1457;
	background: #c2185b;
	color: #ffffff;
}

.cmp-popup-trigger:active {
	border-color: #880e4f;
	background: #ad1457;
	color: #ffffff;
}

.cmp-popup-trigger:focus-visible {
	border-color: #880e4f;
	background: #e91e63;
	color: #ffffff;
}

.cmp-popup-trigger:focus-visible,
.cmp-comment-dialog__close:focus-visible {
	outline: 3px solid #8a414b;
	outline-offset: 3px;
}

.cmp-comment-dialog {
	width: min(36rem, calc(100% - 2rem));
	max-width: none;
	max-height: min(80vh, 42rem);
	padding: 0;
	border: 1px solid #e8ddda;
	border-top: 4px solid #8a414b;
	border-radius: 0.55rem;
	color: #302c2c;
	background: #fffdfb;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 28%);
}

.cmp-comment-dialog::backdrop {
	background: rgb(0 0 0 / 60%);
}

.cmp-comment-dialog__panel {
	position: relative;
	padding: 1.75rem 1.85rem;
}

.cmp-comment-dialog__title {
	margin: 0 3rem 1.15rem 0;
	color: #713e45;
	font-size: 1.4rem;
	line-height: 1.35;
}

.cmp-comment-dialog__content {
	max-height: calc(80vh - 7rem);
	overflow: auto;
	overflow-wrap: anywhere;
	font-size: 1.05rem;
	line-height: 1.75;
}

.cmp-comment-dialog__content > :first-child {
	margin-top: 0;
}

.cmp-comment-dialog__content > :last-child {
	margin-bottom: 0;
}

.cmp-comment-dialog__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	padding: 0;
	border: 1px solid #e2d4d1;
	border-radius: 0.35rem;
	background: #fffaf8;
	color: #713e45;
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.cmp-comment-dialog__close:hover {
	border-color: #9b5960;
	background: #f7edeb;
}

.cmp-assigned-messages {
	margin-top: 2rem;
}

.cmp-assigned-messages__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

@media (max-width: 480px) {
	.cmp-popup-trigger {
		min-height: 2.75rem;
		margin-right: 0.25rem;
		padding: 0.5rem 0.7rem;
	}

	.cmp-comment-dialog {
		width: calc(100% - 1.25rem);
		max-height: 85vh;
	}

	.cmp-comment-dialog__panel {
		padding: 1.35rem 1.2rem;
	}

	.cmp-comment-dialog__title {
		margin-right: 3rem;
		font-size: 1.25rem;
	}

	.cmp-comment-dialog__content {
		max-height: calc(85vh - 6.5rem);
		font-size: 1rem;
	}
}
