.sozemy-chat-page {
	max-width: 1100px;
	margin: 24px auto 48px;
	padding: 0 16px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

body.sozemy-chat-lock {
	overflow: hidden;
}

.sozemy-chat-inbox,
.sozemy-chat-inbox[data-sozemy-chat-inbox] {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	min-height: min(72vh, 760px);
	padding: 0;
	overflow: hidden;
}

.sozemy-chat-list {
	border-right: 1px solid var(--sozemy-line, #e6eee8);
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.sozemy-chat-list__head {
	padding: 14px;
	display: grid;
	gap: 12px;
}

.sozemy-chat-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #dbe5de;
	border-radius: 12px;
	padding: 8px 10px;
}

.sozemy-chat-search input {
	border: 0;
	width: 100%;
	font: inherit;
	background: transparent;
}

.sozemy-chat-presence {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 12px;
	font-size: 13px;
}

.sozemy-chat-list__items {
	overflow: auto;
	flex: 1;
}

.sozemy-inbox-bar {
	display: none;
}

.sozemy-chat-row {
	width: 100%;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	border-bottom: 1px solid #eef3f0;
}

.sozemy-chat-row.is-active,
.sozemy-chat-row:hover {
	background: #f6faf7;
}

.sozemy-chat-avatar {
	position: relative;
	width: 44px;
	height: 44px;
}

.sozemy-chat-row img,
.sozemy-chat-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.sozemy-chat-row__body {
	min-width: 0;
}

.sozemy-chat-row strong,
.sozemy-chat-row em {
	display: block;
	font-style: normal;
}

.sozemy-chat-row strong {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sozemy-chat-row em {
	color: var(--sozemy-muted, #6b776f);
	font-size: 13px;
	line-height: 1.35;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sozemy-chat-row.is-unread strong,
.sozemy-chat-row.is-unread em {
	font-weight: 700;
	color: #1c2420;
}

.sozemy-chat-row__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	min-width: 44px;
}

.sozemy-chat-row__meta time {
	color: var(--sozemy-muted, #6b776f);
	font-size: 12px;
	font-style: normal;
	white-space: nowrap;
}

.sozemy-chat-row.is-unread time {
	color: #1f7a4d;
	font-weight: 600;
}

.sozemy-chat-row b {
	background: var(--sozemy-green, #1f7a4d);
	color: #fff;
	border-radius: 999px;
	min-width: 18px;
	padding: 0 5px;
	font-size: 11px;
	display: inline-grid;
	place-items: center;
}

.sozemy-chat-avatar abbr.is-on {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1f7a4d;
	border: 2px solid #fff;
	text-decoration: none;
}

.sozemy-chat-empty {
	padding: 24px;
	color: var(--sozemy-muted, #6b776f);
	text-align: center;
}

.sozemy-chat-main,
.sozemy-chat-drawer__panel [data-sozemy-chat-thread] {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.sozemy-chat-head {
	display: grid;
	grid-template-columns: auto 40px minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid var(--sozemy-line, #e6eee8);
}

.sozemy-chat-head > div {
	min-width: 0;
}

.sozemy-chat-head h2 {
	margin: 0;
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sozemy-chat-head img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.sozemy-chat-status {
	margin: 0;
	font-size: 12px;
	color: var(--sozemy-muted, #6b776f);
}

.sozemy-chat-status.is-on {
	color: #1f7a4d;
}

.sozemy-chat-gig {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	padding: 10px 14px;
	background: #f6faf7;
	border-bottom: 1px solid #edf2ee;
	font-size: 13px;
}

.sozemy-chat-log {
	flex: 1;
	overflow: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sozemy-chat-msg {
	max-width: min(78%, 420px);
	background: #f3f6f4;
	border-radius: 14px;
	padding: 10px 12px;
	align-self: flex-start;
}

.sozemy-chat-msg.is-mine {
	align-self: flex-end;
	background: #e8f6ee;
}

.sozemy-chat-msg.is-card {
	align-self: stretch;
	max-width: 100%;
	background: #fff;
	border: 1px solid #e6eee8;
	padding: 0;
}

.sozemy-offer-card,
.sozemy-event-card {
	padding: 14px;
}

.sozemy-offer-kicker {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1f7a4d;
}

.sozemy-offer-head {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-bottom: 4px;
}

.sozemy-offer-head.is-plain {
	grid-template-columns: minmax(0, 1fr);
}

.sozemy-offer-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	background: #f3f6f4;
}

@media (max-width: 360px) {
	.sozemy-offer-head {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 10px;
	}

	.sozemy-offer-thumb {
		width: 56px;
		height: 56px;
	}
}

.sozemy-offer-copy {
	min-width: 0;
}

.sozemy-offer-copy p {
	margin: 0;
	overflow-wrap: anywhere;
}

.sozemy-offer-card h3,
.sozemy-event-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.sozemy-offer-wait {
	margin: 0 0 4px;
	font-size: 13px;
	color: #5c6b64;
}

.sozemy-offer-card dl {
	display: grid;
	gap: 6px;
	margin: 10px 0;
}

.sozemy-offer-card dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.sozemy-offer-price {
	margin: 8px 0 12px;
	text-align: right;
	font-size: 18px;
	font-weight: 700;
}

.sozemy-offer-card .sozemy-chat-send,
.sozemy-event-card .sozemy-chat-send {
	width: 100%;
	margin-top: 8px;
}

.sozemy-offer-view {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid #dbe5de;
	border-radius: 10px;
	background: #fff;
	color: #1c2420;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}

.sozemy-offer-view:focus-visible {
	outline: 2px solid #1f7a4d;
	outline-offset: 2px;
}

.sozemy-offer-details h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
}

.sozemy-offer-details__body {
	margin: 0 0 14px;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.sozemy-offer-details dl {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.sozemy-offer-details dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.sozemy-offer-details__actions {
	flex-wrap: wrap;
}

@media (min-width: 901px) {
	.sozemy-chat-msg.is-card[data-offer-card] {
		max-width: min(92%, 640px);
		width: min(92%, 640px);
		align-self: flex-start;
	}

	.sozemy-chat-msg.is-card[data-offer-card].is-mine {
		align-self: flex-end;
	}
}

.sozemy-offer-text {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #3d4a44;
	font: inherit;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.sozemy-event-card.is-ok {
	background: #f3faf6;
}

.sozemy-chat-plus {
	position: relative;
	flex: 0 0 auto;
}

.sozemy-chat-plus-menu {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	z-index: 30;
	min-width: 180px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e6eee8;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(28, 50, 38, 0.12);
}

.sozemy-chat-plus-menu[hidden] {
	display: none;
}

.sozemy-chat-plus-menu button {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
}

.sozemy-chat-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	padding: 10px 14px;
	background: #f6faf7;
	border-bottom: 1px solid #edf2ee;
	font-size: 13px;
}

.sozemy-chat-active[hidden] {
	display: none;
}

.sozemy-dialog {
	position: fixed;
	inset: 0;
	z-index: 100020;
	display: grid;
	place-items: center;
	padding: 16px;
}

.sozemy-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 28, 24, 0.45);
}

.sozemy-dialog__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: min(90dvh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 16px 40px rgba(28, 50, 38, 0.16);
}

.sozemy-dialog__panel h2 {
	margin: 0 0 14px;
	font-size: 20px;
}

.sozemy-dialog__panel label {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
}

.sozemy-dialog__panel label[hidden] {
	display: none;
}

.sozemy-dialog__panel input,
.sozemy-dialog__panel textarea,
.sozemy-dialog__panel select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dbe5de;
	border-radius: 12px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	background: #fff;
}

.sozemy-dialog__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.sozemy-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
}

.sozemy-dialog__actions button[data-dialog-close] {
	border: 0;
	background: transparent;
	font: inherit;
	cursor: pointer;
	padding: 10px 12px;
}

@media (max-width: 900px) {
	.sozemy-dialog {
		padding: 0;
		align-items: stretch;
	}

	.sozemy-dialog__panel {
		width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
	}
}

.sozemy-chat-msg.is-sending {
	opacity: 0.7;
}

.sozemy-chat-msg.is-failed {
	box-shadow: inset 0 0 0 1px #fecaca;
}

.sozemy-chat-msg p {
	margin: 0 0 6px;
	white-space: pre-wrap;
	word-break: break-word;
}

.sozemy-chat-msg time,
.sozemy-chat-msg small {
	display: block;
	font-size: 11px;
	color: var(--sozemy-muted, #6b776f);
}

.sozemy-chat-image img {
	max-width: 220px;
	max-height: 220px;
	border-radius: 10px;
	display: block;
}

.sozemy-chat-video video {
	width: min(260px, 100%);
	border-radius: 10px;
	background: #111;
}

.sozemy-chat-doc {
	display: grid;
	gap: 2px;
	padding: 10px;
	border: 1px solid #dbe5de;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.sozemy-chat-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--sozemy-line, #e6eee8);
	min-width: 0;
	background: #fff;
}

.sozemy-chat-composer > .sozemy-icon-btn {
	flex: 0 0 auto;
}

.sozemy-chat-send {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: #111;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.sozemy-chat-send:hover,
.sozemy-chat-send:focus-visible {
	background: #000;
	color: #fff;
}

.sozemy-chat-send:disabled {
	opacity: 0.45;
	cursor: default;
}

.sozemy-chat-jump {
	align-self: center;
	margin: 0 12px 8px;
	border: 0;
	border-radius: 999px;
	background: var(--sozemy-green, #1f7a4d);
	color: #fff;
	font: inherit;
	font-size: 13px;
	padding: 6px 12px;
	cursor: pointer;
}

.sozemy-chat-jump[hidden] {
	display: none;
}

.sozemy-chat-composer textarea {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid #dbe5de;
	border-radius: 12px;
	padding: 10px 12px;
	background: #fff;
	font: inherit;
	resize: none;
	max-height: 140px;
}

.sozemy-chat-typing,
.sozemy-chat-warn {
	margin: 0;
	padding: 0 14px 8px;
	font-size: 12px;
	color: var(--sozemy-muted, #6b776f);
}

.sozemy-chat-progress {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 6px;
	padding: 8px 0;
	font-size: 12px;
	align-items: center;
}

.sozemy-chat-progress button {
	border: 0;
	background: transparent;
	color: var(--sozemy-muted, #6b776f);
	font: inherit;
	cursor: pointer;
	padding: 0;
}

.sozemy-chat-progress progress {
	grid-column: 1 / -1;
	width: 100%;
}

.sozemy-chat-drop {
	margin: 0;
	padding: 10px;
	text-align: center;
	background: #e8f6ee;
}

.sozemy-chat-menu-wrap {
	position: relative;
}

.sozemy-chat-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 40;
	min-width: 12.5rem;
	max-width: min(16rem, calc(100vw - 16px));
	margin: 0;
	padding: 6px;
	display: none;
	gap: 2px;
	background: #fff;
	border: 1px solid #e6eee8;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(28, 50, 38, 0.14);
}

.sozemy-chat-menu:not([hidden]) {
	display: grid;
}

.sozemy-chat-menu[hidden] {
	display: none;
}

.sozemy-chat-menu button,
.sozemy-chat-menu a {
	display: block;
	width: 100%;
	background: transparent;
	border: 0;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: left;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.sozemy-chat-menu button:hover,
.sozemy-chat-menu a:hover,
.sozemy-chat-menu button:focus-visible,
.sozemy-chat-menu a:focus-visible {
	background: #f4f7f5;
}

.sozemy-chat-menu button.sozemy-chat-menu__danger {
	color: #b42318;
}

.sozemy-chat-drawer[hidden],
.sozemy-chat-root[hidden] .sozemy-chat-drawer {
	display: none;
}

.sozemy-chat-drawer:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
}

.sozemy-chat-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 28, 24, 0.35);
}

.sozemy-chat-drawer__panel {
	position: relative;
	margin: auto 16px 16px auto;
	width: min(420px, calc(100vw - 24px));
	height: min(720px, calc(100vh - 32px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(28, 50, 38, 0.16);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.sozemy-chat-toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	width: min(320px, calc(100vw - 24px));
	background: #fff;
	border: 1px solid #edf2ee;
	border-radius: 14px;
	padding: 14px;
	box-shadow: 0 10px 30px rgba(28, 50, 38, 0.12);
}

.sozemy-chat-toast[hidden] {
	display: none;
}

.sozemy-pub-tools .sozemy-icon-btn {
	position: relative;
}

.sozemy-chat-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	border-radius: 99px;
	background: #1f7a4d;
	color: #fff;
	font-size: 10px;
	display: grid;
	place-items: center;
}

.sozemy-chat-badge[hidden] {
	display: none !important;
}

@media (max-width: 900px) {
	[data-sozemy-chat-archive],
	.sozemy-chat-split {
		display: none;
	}

	body.sozemy-messages-app .sozemy-header,
	body.sozemy-messages-app .sozemy-footer,
	body.sozemy-messages-app .sozemy-page__content > h1 {
		display: none;
	}

	body.sozemy-messages-app,
	body.sozemy-messages-app .sozemy-main,
	body.sozemy-messages-app .sozemy-page {
		background: #fff;
	}

	body.sozemy-messages-app .sozemy-page,
	body.sozemy-messages-app .sozemy-container,
	body.sozemy-messages-app .sozemy-page__content,
	body.sozemy-messages-app .sozemy-account.sozemy-chat-page {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #fff;
	}

	.sozemy-page:has(.sozemy-chat-page) {
		padding: 0;
	}

	.sozemy-container:has(.sozemy-chat-page),
	.sozemy-page__content:has(.sozemy-chat-page),
	.woocommerce-account .woocommerce-MyAccount-content:has(.sozemy-chat-page) {
		width: 100%;
		max-width: none;
		margin: 0;
		padding-left: 0;
		padding-right: 0;
		float: none;
	}

	.sozemy-account.sozemy-chat-page {
		max-width: none;
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.sozemy-chat-page {
		max-width: none;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.sozemy-inbox-intro {
		display: none;
	}

	.sozemy-inbox-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 52px;
		padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px 16px;
		border-bottom: 1px solid #e6eee8;
		background: #fff;
		position: sticky;
		top: 0;
		z-index: 4;
	}

	.sozemy-inbox-bar h1 {
		margin: 0;
		font-size: 22px;
		font-weight: 700;
		letter-spacing: -0.03em;
		line-height: 1.2;
	}

	.sozemy-inbox-bar .sozemy-icon-btn {
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: #1c2420;
		display: grid;
		place-items: center;
		cursor: pointer;
	}

	.sozemy-inbox-bar .sozemy-icon {
		width: 22px;
		height: 22px;
	}

	.sozemy-chat-list__head {
		display: none;
		padding: 8px 16px 12px;
	}

	.sozemy-chat-list__head.is-open {
		display: grid;
	}

	.sozemy-chat-inbox,
	.sozemy-chat-inbox.sozemy-card {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: none;
		min-height: 70vh;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #fff;
	}

	body.sozemy-messages-app .sozemy-chat-inbox {
		height: 100vh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100dvh;
		grid-template-rows: minmax(0, 1fr);
	}

	body.sozemy-messages-app .sozemy-chat-list {
		min-height: 0;
		height: 100%;
	}

	body.sozemy-messages-app .sozemy-chat-inbox.is-open {
		height: auto;
		min-height: 0;
	}

	.sozemy-chat-avatar,
	.sozemy-chat-row img,
	.sozemy-chat-avatar img {
		width: 52px;
		height: 52px;
	}

	.sozemy-chat-row {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		gap: 12px;
		padding: 12px 16px;
		min-height: 76px;
	}

	.sozemy-chat-row strong {
		font-size: 16px;
	}

	.sozemy-chat-row em {
		white-space: normal;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.sozemy-chat-inbox.is-open {
		overflow: visible;
		min-height: 0;
	}

	.sozemy-chat-msg {
		max-width: 85%;
	}

	.sozemy-chat-inbox.is-open .sozemy-chat-main,
	.sozemy-chat-main.is-mobile-screen {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		z-index: 100010;
		width: auto;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #fff;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		box-sizing: border-box;
	}

	.sozemy-chat-inbox.is-open .sozemy-chat-list {
		display: none;
	}

	.sozemy-chat-inbox:not(.is-open) .sozemy-chat-main {
		display: none;
	}

	.sozemy-chat-drawer:not([hidden]) {
		top: 0;
		bottom: auto;
		height: 100vh;
		height: 100dvh;
	}

	.sozemy-chat-drawer__panel {
		margin: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		border-radius: 0;
	}

	.sozemy-chat-head {
		grid-template-columns: auto 36px minmax(0, 1fr) auto auto;
	}

	.sozemy-chat-head img {
		width: 36px;
		height: 36px;
	}

	.sozemy-chat-main.is-mobile-screen,
	.sozemy-chat-drawer__panel {
		box-sizing: border-box;
	}

	.sozemy-chat-inbox.is-open .sozemy-chat-log {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.sozemy-chat-main.is-mobile-screen .sozemy-chat-composer,
	.sozemy-chat-inbox.is-open .sozemy-chat-composer,
	.sozemy-chat-drawer__panel .sozemy-chat-composer {
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.sozemy-chat-composer textarea {
		font-size: 16px;
	}

	.sozemy-chat-drawer__panel [data-sozemy-chat-thread] {
		flex: 1 1 auto;
		height: 100%;
		min-height: 0;
	}

	.sozemy-chat-drawer__panel .sozemy-chat-log,
	.sozemy-chat-inbox.is-open .sozemy-chat-log,
	.sozemy-chat-main.is-mobile-screen .sozemy-chat-log {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
	}
}

.sozemy-chat-main.is-mobile-screen {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 100010;
	width: auto;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
}

.sozemy-chat-main.is-mobile-screen .sozemy-chat-head,
.sozemy-chat-main.is-mobile-screen .sozemy-chat-composer,
.sozemy-chat-main.is-mobile-screen .sozemy-chat-gig,
.sozemy-chat-main.is-mobile-screen .sozemy-chat-menu,
.sozemy-chat-main.is-mobile-screen .sozemy-chat-typing,
.sozemy-chat-main.is-mobile-screen .sozemy-chat-warn {
	flex: 0 0 auto;
}

.sozemy-chat-main.is-mobile-screen .sozemy-chat-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

body.sozemy-chat-thread-open {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

@media (min-width: 901px) {
	.sozemy-chat-back {
		display: none;
	}

	.sozemy-chat-inbox .sozemy-chat-head [data-sozemy-chat-close] {
		display: none;
	}
}

.sozemy-inbox-filters,
.sozemy-chat-profile-btn,
.sozemy-chat-image-btn,
.sozemy-chat-send__icon,
.sozemy-chat-split {
	display: none;
}

.sozemy-chat-head-actions {
	display: contents;
}

@media (min-width: 901px) {
	body.sozemy-dashboard-messages .sozemy-inbox-intro {
		display: none;
	}

	body.sozemy-dashboard-page .sozemy-app .sozemy-chat-inbox,
	body.sozemy-dashboard-messages .sozemy-chat-inbox,
	body.sozemy-dashboard-messages .sozemy-chat-inbox[data-sozemy-chat-inbox] {
		display: grid;
		flex-direction: unset;
		flex: 1 1 auto;
		align-self: stretch;
		position: relative;
		width: 100%;
		min-width: 0;
		min-height: 0;
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #fff;
		--sozemy-conversation-width: 400px;
		grid-template-columns: var(--sozemy-conversation-width) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		overflow: hidden;
	}

	body.sozemy-dashboard-messages .sozemy-chat-list {
		grid-column: 1;
		grid-row: 1;
		position: relative;
		width: auto;
		max-width: none;
		height: 100%;
		min-width: 0;
		min-height: 0;
		background: #fff;
		border-right: 1px solid #e8eee9;
	}

	body.sozemy-dashboard-messages .sozemy-chat-inbox > .sozemy-chat-main {
		grid-column: 2;
		grid-row: 1;
		width: auto;
		min-width: 0;
	}

	body.sozemy-dashboard-messages .sozemy-chat-split {
		display: block;
		grid-column: 1;
		grid-row: 1;
		position: absolute;
		top: 0;
		bottom: 0;
		left: 100%;
		z-index: 8;
		width: 12px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		transform: translateX(-50%);
		cursor: col-resize;
		touch-action: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-split::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 1px;
		transform: translateX(-50%);
		background: transparent;
		transition: background 0.12s ease, width 0.12s ease;
	}

	body.sozemy-dashboard-messages .sozemy-chat-split:hover::before,
	body.sozemy-dashboard-messages .sozemy-chat-split:focus-visible::before,
	body.sozemy-dashboard-messages .sozemy-chat-inbox.is-resizing .sozemy-chat-split::before {
		width: 2px;
		background: #1f7a4d;
	}

	body.sozemy-dashboard-messages .sozemy-chat-split:focus-visible {
		outline: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-split:focus-visible::before {
		box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.22);
	}

	body.sozemy-dashboard-messages .sozemy-chat-inbox.is-resizing,
	body.sozemy-col-resize,
	body.sozemy-col-resize * {
		cursor: col-resize !important;
		user-select: none !important;
	}

	body.sozemy-dashboard-messages .sozemy-chat-list__head {
		flex: 0 0 auto;
		padding: 14px 16px 0;
		gap: 0;
	}

	body.sozemy-dashboard-messages .sozemy-chat-search {
		border: 0;
		border-radius: 12px;
		background: #f3f6f4;
		padding: 10px 12px;
		margin-bottom: 4px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-search .sozemy-icon {
		width: 16px;
		height: 16px;
		color: #8a958e;
	}

	body.sozemy-dashboard-messages .sozemy-chat-search input {
		font-size: 13px;
		color: #1c2420;
	}

	body.sozemy-dashboard-messages .sozemy-chat-search input::placeholder {
		color: #8a958e;
	}

	body.sozemy-dashboard-messages .sozemy-chat-presence {
		display: none;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters {
		display: flex;
		align-items: stretch;
		gap: 0;
		margin: 4px -16px 0;
		padding: 0 8px;
		border-bottom: 1px solid #eef3f0;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters button {
		flex: 1 1 0;
		position: relative;
		min-width: 0;
		margin: 0;
		padding: 12px 4px 14px;
		border: 0;
		background: transparent;
		color: #6b776f;
		font: inherit;
		font-size: 13px;
		font-weight: 500;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		cursor: pointer;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters button.is-active {
		color: #1f7a4d;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters button.is-active::after {
		content: "";
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 0;
		height: 2px;
		background: #1f7a4d;
		border-radius: 2px 2px 0 0;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters [data-sozemy-filter-unread-count] {
		display: inline-grid;
		place-items: center;
		min-width: 16px;
		height: 16px;
		margin-left: 4px;
		padding: 0 4px;
		border-radius: 999px;
		background: #1f7a4d;
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		vertical-align: middle;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters [data-sozemy-filter-unread-count][hidden] {
		display: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-list__items {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		gap: 12px;
		padding: 12px 16px;
		border-bottom: 1px solid #f1f5f2;
		background: #fff;
		box-shadow: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row:hover {
		background: #f7faf8;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row.is-active {
		background: #eef8f2;
		box-shadow: inset 3px 0 0 #1f7a4d;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row strong {
		font-size: 14px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row em {
		font-size: 13px;
		font-weight: 400;
		color: #7a857e;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row__meta time {
		font-size: 11px;
		color: #8a958e;
	}

	body.sozemy-dashboard-messages .sozemy-chat-row b {
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		background: #1f7a4d;
		font-size: 11px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-chat-main {
		height: 100%;
		min-height: 0;
		background: #fff;
		display: flex;
		flex-direction: column;
	}

	body.sozemy-dashboard-messages .sozemy-chat-empty--thread {
		margin: auto;
		padding: 24px;
		color: #8a958e;
		font-size: 14px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-head {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 12px;
		height: 72px;
		padding: 0 20px;
		border-bottom: 1px solid #e8eee9;
		background: #fff;
	}

	body.sozemy-dashboard-messages .sozemy-chat-head img {
		width: 42px;
		height: 42px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-head h2 {
		font-size: 15px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-chat-status {
		margin-top: 2px;
		font-size: 12px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-status.is-on::before {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-right: 6px;
		border-radius: 50%;
		background: #22c55e;
		vertical-align: middle;
	}

	body.sozemy-dashboard-messages .sozemy-chat-head-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
		flex: 0 0 auto;
	}

	body.sozemy-dashboard-messages .sozemy-chat-profile-btn {
		display: inline-flex;
		align-items: center;
		height: 34px;
		padding: 0 12px;
		border: 1px solid #dbe5de;
		border-radius: 10px;
		background: #fff;
		color: #1c2420;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}

	body.sozemy-dashboard-messages .sozemy-chat-profile-btn:hover {
		background: #f6faf7;
	}

	body.sozemy-dashboard-messages .sozemy-chat-gig {
		display: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-log {
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
		padding: 20px 24px 12px;
		background: #fff;
		gap: 12px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg {
		max-width: min(72%, 460px);
		padding: 10px 14px 8px;
		border-radius: 16px;
		background: #f3f4f6;
		color: #1c2420;
		font-size: 14px;
		line-height: 1.45;
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg.is-mine {
		background: #e7f6ee;
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg time {
		margin-top: 4px;
		font-size: 11px;
		color: #8a958e;
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg.is-card {
		align-self: flex-start;
		max-width: min(78%, 420px);
		padding: 0;
		background: transparent;
		border: 0;
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg.is-card[data-offer-card] {
		max-width: min(94%, 680px);
		width: min(94%, 680px);
	}

	body.sozemy-dashboard-messages .sozemy-chat-msg.is-card.is-mine {
		align-self: flex-end;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card {
		min-width: 0;
		max-width: 100%;
		padding: 12px;
		border: 1px solid #d7eee0;
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(28, 50, 38, 0.04);
	}

	body.sozemy-dashboard-messages .sozemy-offer-kicker,
	body.sozemy-dashboard-messages .sozemy-offer-card dl {
		display: none;
	}

	body.sozemy-dashboard-messages .sozemy-offer-head {
		grid-template-columns: 72px minmax(0, 1fr);
		margin-bottom: 0;
	}

	body.sozemy-dashboard-messages .sozemy-offer-thumb {
		width: 72px;
		height: 56px;
		border-radius: 10px;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card h3 {
		margin: 0 0 4px;
		font-size: 14px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-offer-copy p {
		font-size: 12px;
		color: #6b776f;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		overflow: hidden;
	}

	body.sozemy-dashboard-messages .sozemy-offer-price {
		margin: 10px 0 0;
		text-align: left;
		font-size: 18px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-offer-view {
		display: block;
		width: 100%;
		margin-top: 10px;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card .sozemy-chat-send,
	body.sozemy-dashboard-messages .sozemy-event-card .sozemy-chat-send {
		width: auto;
		min-height: 34px;
		margin-top: 10px;
		padding: 0 14px;
		border-radius: 999px;
		background: #1f7a4d;
		font-size: 13px;
		font-weight: 700;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card .sozemy-chat-send:hover,
	body.sozemy-dashboard-messages .sozemy-event-card .sozemy-chat-send:hover {
		background: #196640;
	}

	body.sozemy-dashboard-messages .sozemy-chat-active,
	body.sozemy-dashboard-messages .sozemy-chat-typing,
	body.sozemy-dashboard-messages .sozemy-chat-warn,
	body.sozemy-dashboard-messages .sozemy-chat-jump {
		flex: 0 0 auto;
	}

	body.sozemy-dashboard-messages .sozemy-chat-composer {
		flex: 0 0 auto;
		align-items: center;
		gap: 8px;
		margin: 8px 16px 16px;
		padding: 8px 8px 8px 10px;
		border: 1px solid #e2eae4;
		border-radius: 18px;
		background: #fff;
		box-shadow: 0 6px 18px rgba(28, 50, 38, 0.06);
	}

	body.sozemy-dashboard-messages .sozemy-chat-plus .sozemy-icon-btn {
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: #5c6b64;
		font-size: 20px;
		display: grid;
		place-items: center;
		cursor: pointer;
	}

	body.sozemy-dashboard-messages .sozemy-chat-composer textarea {
		min-height: 40px;
		max-height: 120px;
		padding: 10px 4px;
		border: 0;
		border-radius: 0;
		background: transparent;
		font-size: 14px;
		box-shadow: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-image-btn {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: #5c6b64;
		cursor: pointer;
		flex: 0 0 auto;
	}

	body.sozemy-dashboard-messages .sozemy-chat-image-btn svg {
		width: 20px;
		height: 20px;
		display: block;
	}

	body.sozemy-dashboard-messages .sozemy-chat-send {
		width: 40px;
		min-width: 40px;
		height: 40px;
		min-height: 40px;
		padding: 0;
		border-radius: 999px;
		background: #1f7a4d;
		color: #fff;
		display: grid;
		place-items: center;
	}

	body.sozemy-dashboard-messages .sozemy-chat-send:hover,
	body.sozemy-dashboard-messages .sozemy-chat-send:focus-visible {
		background: #196640;
		color: #fff;
	}

	body.sozemy-dashboard-messages .sozemy-chat-send__label {
		display: none;
	}

	body.sozemy-dashboard-messages .sozemy-chat-send__icon {
		display: block;
		width: 18px;
		height: 18px;
	}

	body.sozemy-dashboard-messages .sozemy-chat-offer-card .sozemy-chat-send__label,
	body.sozemy-dashboard-messages .sozemy-offer-card .sozemy-chat-send__label,
	body.sozemy-dashboard-messages .sozemy-event-card .sozemy-chat-send__label {
		display: inline;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card .sozemy-chat-send,
	body.sozemy-dashboard-messages .sozemy-event-card .sozemy-chat-send {
		width: auto;
		min-width: 0;
		height: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.sozemy-dashboard-messages .sozemy-offer-card .sozemy-chat-send__icon,
	body.sozemy-dashboard-messages .sozemy-event-card .sozemy-chat-send__icon {
		display: none;
	}
}

@media (min-width: 901px) and (max-width: 1365px) {
	body.sozemy-dashboard-messages .sozemy-chat-profile-btn {
		padding: 0 10px;
		font-size: 12px;
	}

	body.sozemy-dashboard-messages .sozemy-inbox-filters button {
		font-size: 12px;
		padding: 10px 4px 12px;
	}
}
