/* =========================
   Community Page
========================= */

.housealrimi-community-page {
	width: 100%;
	max-width: 480px;
	min-height: 100%;
	margin: 0 auto;
	padding: 16px 12px 80px;
	background: #fff;
	color: #111827;
}


/* =========================
   Header
========================= */

.housealrimi-community-head {
	margin-bottom: 14px;
}

.housealrimi-community-title {
	margin: 0 0 5px;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.housealrimi-community-description {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
}


/* =========================
   Compose
========================= */

.housealrimi-community-compose {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e7eb;
}

.housealrimi-community-compose-row {
	display: flex;
	align-items: flex-end;
	gap: 7px;
}

.housealrimi-community-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	min-height: 42px;
	max-height: 110px;
	padding: 10px 11px;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	outline: none;
	background: #fff;
	color: #111827;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	resize: none;
	overflow-y: auto;
}

.housealrimi-community-input::placeholder {
	color: #94a3b8;
}

.housealrimi-community-input:focus {
	border-color: #1151e9;
	box-shadow:
		0 0 0 2px
		rgba(17, 81, 233, 0.08);
}

.housealrimi-community-submit {
	flex: 0 0 auto;
	height: 42px;
	padding: 0 15px;
	border: 0;
	border-radius: 6px;
	background: #1151e9;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.housealrimi-community-submit:disabled {
	opacity: 0.55;
	cursor: default;
}

.housealrimi-community-compose-bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-top: 6px;
	color: #94a3b8;
	font-size: 11px;
	line-height: 1.4;
}

.housealrimi-community-length {
	flex: 0 0 auto;
	white-space: nowrap;
}


/* =========================
   Reply Mode
========================= */

.housealrimi-community-reply {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: -5px 0 12px;
	padding: 8px 10px;
	border-radius: 5px;
	background: #eff6ff;
	color: #1151e9;
	font-size: 12px;
	font-weight: 600;
}

.housealrimi-community-reply[hidden] {
	display: none;
}

.housealrimi-community-reply-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
}

.housealrimi-community-reply-head button {
	flex: 0 0 auto;
	padding: 3px 5px;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 11px;
	cursor: pointer;
}


/* =========================
   Community List
========================= */

.housealrimi-community-list {
	width: 100%;
}

.housealrimi-community-item {
	padding: 14px 3px 8px;
	border-bottom: 1px solid #e5e7eb;
}

.housealrimi-community-item:first-child {
	padding-top: 5px;
}

.housealrimi-community-item-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.housealrimi-community-author {
	color: #334155;
	font-size: 13px;
	font-weight: 700;
}

.housealrimi-community-time {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 400;
}

.housealrimi-community-item
.housealrimi-community-content,
.housealrimi-community-reply-item
.housealrimi-community-content {
	display: block;
	width: 100%;

	margin: 0;
	padding: 0px 10px;

	color: #1f2937;

	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;

	text-align: left;

	white-space: pre-line;
	word-break: break-word;
}


.housealrimi-community-item,
.housealrimi-community-reply-item {
	text-align: left !important;
}

/* =========================
   Actions
========================= */

.housealrimi-community-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 11px;
	margin-top: 6px;
}

.housealrimi-community-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	cursor: pointer;
}

.housealrimi-community-action:active {
	color: #475569;
}

.housealrimi-community-action.is-delete {
	color: #94a3b8;
}

.housealrimi-community-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
}

.housealrimi-community-action-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =========================
   Replies
========================= */

.housealrimi-community-replies {
	margin-top: 9px;
	margin-left: 16px;
	border-left: 2px solid #e2e8f0;
}

.housealrimi-community-reply-item {
	position: relative;
	padding: 10px 4px 9px 12px;
}

.housealrimi-community-reply-item
+ .housealrimi-community-reply-item {
	border-top: 1px solid #f1f5f9;
}

.housealrimi-community-reply-item::before {
	content: '';
	position: absolute;
	left: -2px;
	top: 19px;
	width: 8px;
	height: 1px;
	background: #cbd5e1;
}


/* =========================
   Empty / Loading
========================= */

.housealrimi-community-loading,
.housealrimi-community-empty {
	padding: 42px 12px;
	color: #94a3b8;
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}


/* =========================
   Report Modal
========================= */

.housealrimi-community-report-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.housealrimi-community-report-modal[hidden] {
	display: none;
}

.housealrimi-community-report-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
}

.housealrimi-community-report-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	padding:
		18px
		14px
		calc(
			18px
			+ env(safe-area-inset-bottom)
		);
	border-radius: 16px 16px 0 0;
	background: #fff;
	box-shadow:
		0 -8px 30px
		rgba(15, 23, 42, 0.12);
}

.housealrimi-community-report-panel h2 {
	margin: 0 0 12px;
	color: #111827;
	font-size: 17px;
	font-weight: 700;
}

.housealrimi-community-report-panel button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 46px;
	padding: 0 9px;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	background: transparent;
	color: #334155;
	font-family: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.housealrimi-community-report-panel button:active {
	background: #f8fafc;
}

.housealrimi-community-report-panel button:disabled {
	opacity: 0.5;
}

.housealrimi-community-report-panel
.housealrimi-community-report-cancel {
	justify-content: center;
	margin-top: 8px;
	border: 0;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	text-align: center;
}


/* =========================
   Modal Body Lock
========================= */

body.housealrimi-community-modal-open {
	overflow: hidden;
}


/* =========================
   Small Screen
========================= */

@media (max-width: 360px) {

	.housealrimi-community-page {
		padding-left: 9px;
		padding-right: 9px;
	}

	.housealrimi-community-submit {
		padding:
			0
			12px;
	}

	.housealrimi-community-compose-bottom {
		font-size: 11px;
	}

	.housealrimi-community-replies {
		margin-left: 11px;
	}
}

/* =========================
   Large Font - Community
========================= */

html.housealrimi-font-large
.housealrimi-community-title {
	font-size: 21px;
}

html.housealrimi-font-large
.housealrimi-community-description {
	font-size: 14px;
}

html.housealrimi-font-large
.housealrimi-community-input {
	font-size: 15px;
}

html.housealrimi-font-large
.housealrimi-community-submit {
	font-size: 15px;
}

html.housealrimi-font-large
.housealrimi-community-compose-bottom {
	font-size: 12px;
}

html.housealrimi-font-large
.housealrimi-community-reply {
	font-size: 13px;
}

html.housealrimi-font-large
.housealrimi-community-reply-head button {
	font-size: 12px;
}

html.housealrimi-font-large
.housealrimi-community-author {
	font-size: 14px;
}

html.housealrimi-font-large
.housealrimi-community-time {
	font-size: 12px;
}

html.housealrimi-font-large
.housealrimi-community-item
.housealrimi-community-content,
html.housealrimi-font-large
.housealrimi-community-reply-item
.housealrimi-community-content {
	font-size: 16px;
}

html.housealrimi-font-large
.housealrimi-community-action {
	font-size: 12px;
}

html.housealrimi-font-large
.housealrimi-community-loading,
html.housealrimi-font-large
.housealrimi-community-empty {
	font-size: 14px;
}

html.housealrimi-font-large
.housealrimi-community-report-panel h2 {
	font-size: 18px;
}

html.housealrimi-font-large
.housealrimi-community-report-panel button {
	font-size: 15px;
}