.itoll-auto-forum-page {
	--iaf-blue: #064eb7;
	--iaf-blue-2: #315bc8;
	--iaf-green: #05bd4c;
	--iaf-ink: #1f2937;
	--iaf-muted: #6b7280;
	--iaf-line: #e5e7eb;
	--iaf-bg: #f6f8fb;
}

.itoll-forum {
	max-width: 860px;
	margin: 0 auto;
	padding: 36px 24px 56px;
	color: var(--iaf-ink);
	direction: rtl;
	background: var(--iaf-bg);
	box-shadow: 0 0 0 100vmax var(--iaf-bg);
	clip-path: inset(0 -100vmax);
}

.itoll-auto-forum-page .entry-header,
.itoll-auto-forum-page .hero-section,
.itoll-auto-forum-page h1.entry-title,
.itoll-auto-forum-page .ct-page-title {
	display: none !important;
	height: 0 !important;
}

.itoll-auto-forum-page .entry-content,
.itoll-auto-forum-page .ct-container,
.itoll-auto-forum-page .ct-container-full,
.itoll-auto-forum-page [data-vertical-spacing] {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.itoll-auto-forum-page .ct-container[data-vertical-spacing],
.itoll-auto-forum-page .ct-container-full[data-vertical-spacing] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.itoll-auto-forum-page,
.itoll-auto-forum-page .site-main,
.itoll-auto-forum-page main,
.itoll-auto-forum-page .entry-content {
	background: #f7f8fa !important;
}

.itoll-forum-crumbs {
	background: #fff;
	border-bottom: 1px solid var(--iaf-line);
	width: 100%;
	direction: rtl;
}

.itoll-forum-crumbs__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 13px 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--iaf-muted);
	font-weight: 500;
}

.itoll-forum-crumbs__inner a {
	color: var(--iaf-muted);
	text-decoration: none;
}

.itoll-forum-crumbs__inner a:hover {
	color: var(--iaf-blue);
}

.itoll-forum-crumbs__inner .sep {
	color: #9ca3af;
	font-size: 12px;
}

.itoll-forum-crumbs__current {
	color: var(--iaf-ink);
	font-weight: 700;
}

.itoll-forum-page-head {
	background: linear-gradient(180deg, #eef1f7 0%, #f5f5f5 100%);
	padding: 32px 24px;
	text-align: center;
	border-bottom: 1px solid var(--iaf-line);
	direction: rtl;
}

.itoll-forum-page-head h1 {
	margin: 0;
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
	color: #172337;
}

.itoll-forum-page-head__desc {
	max-width: 680px;
	margin: 8px auto 0;
	color: var(--iaf-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
}

.itoll-forum__ask {
	border: 0;
	background: var(--iaf-green);
	color: #fff;
	border-radius: 8px;
	padding: 13px 20px;
	font-weight: 900;
	font-size: 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 22px rgba(5, 189, 76, .22);
	white-space: nowrap;
}

.itoll-forum__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 28px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--iaf-line);
	border-width: 0 0 1px;
	border-radius: 8px;
	border-radius: 0;
	color: var(--iaf-muted);
	font-size: 14px;
	padding-bottom: 18px;
	flex-wrap: wrap;
}

.itoll-forum__toolbar strong {
	display: block;
	margin-bottom: 4px;
	color: var(--iaf-ink);
}

.itoll-forum__toolbar span {
	display: block;
}

.itoll-forum__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.itoll-topic-card,
.itoll-forum__empty {
	position: relative;
	background: #fff;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	padding: 22px 24px 18px;
	box-shadow: 0 2px 4px rgba(15, 23, 42, .04);
}

.itoll-topic-card {
	min-height: 250px;
	display: flex;
	flex-direction: column;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.itoll-topic-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
	transform: translateY(-1px);
}

.itoll-topic-card__badge {
	position: absolute;
	top: -12px;
	right: 18px;
	background: #fff1e8;
	color: #f97316;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 800;
}

.itoll-topic-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--iaf-muted);
	font-size: 13px;
	margin-bottom: 18px;
	justify-content: flex-start;
}

.itoll-topic-card__meta time,
.itoll-topic-card__meta span:first-child {
	background: #f3f4f6;
	border-radius: 999px;
	padding: 6px 10px;
}

.itoll-topic-card h2 {
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: 0;
	text-align: right;
}

.itoll-topic-card h2 a {
	color: #3f3f46;
	text-decoration: none;
}

.itoll-topic-card h2 a:hover {
	color: var(--iaf-blue);
}

.itoll-topic-card p {
	margin: 0;
	font-size: 15px;
	line-height: 2.1;
	color: #111827;
	text-align: right;
}

.itoll-topic-card footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eef0f3;
	margin-top: auto;
}

.itoll-topic-card__answers,
.itoll-topic-card__reply,
.itoll-forum-detail__back {
	color: var(--iaf-blue);
	background: none;
	border: 0;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
}

.itoll-forum-detail {
	display: grid;
	gap: 16px;
}

.itoll-forum-detail .itoll-topic-card {
	max-width: 780px;
	width: 100%;
	margin: 0 auto;
}

.itoll-forum-detail__replies {
	max-width: 780px;
	width: 100%;
	margin: 0 auto;
	display: grid;
	gap: 12px;
}

.itoll-forum-detail__replies h2 {
	margin: 10px 0 0;
	font-size: 20px;
}

.itoll-reply {
	background: #fff;
	border-bottom: 1px solid var(--iaf-line);
	padding: 18px 4px;
}

.itoll-reply p {
	margin: 0 0 12px;
	line-height: 2;
}

.itoll-reply footer {
	display: flex;
	gap: 12px;
	color: var(--iaf-muted);
	font-size: 13px;
}

.itoll-forum-topic-modal {
	position: fixed;
	top: 96px;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99997;
	background: rgba(17, 24, 39, .36);
	direction: rtl;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 18px;
}

.itoll-forum-topic-modal[hidden] {
	display: none;
}

.itoll-forum-topic-modal__shell {
	width: min(720px, 100%);
	max-height: min(720px, 86vh);
	color: var(--iaf-ink);
	background: #fff;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	box-shadow: 0 22px 70px rgba(15, 23, 42, .24);
	overflow: auto;
}

.itoll-forum-topic-modal__bar {
	position: sticky;
	top: 0;
	z-index: 2;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .98);
	border-bottom: 1px solid var(--iaf-line);
	backdrop-filter: blur(10px);
}

.itoll-forum-topic-modal__bar strong {
	font-size: 18px;
}

.itoll-forum-topic-modal__close {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	background: #fff;
	color: #475569;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.itoll-forum-topic-modal__body {
	width: 100%;
	margin: 0 auto;
	padding: 20px 24px 28px;
}

.itoll-forum-topic-modal__loading {
	background: #fff;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	padding: 28px;
	text-align: center;
	color: var(--iaf-muted);
}

.itoll-topic-modal-card {
	background: #fff;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	padding: 24px 28px 18px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.itoll-topic-modal-card h2 {
	margin: 14px 0;
	font-size: 20px;
	line-height: 1.8;
	letter-spacing: 0;
	color: #111827;
}

.itoll-topic-modal-card p,
.itoll-topic-modal-reply p {
	margin: 0;
	font-size: 15px;
	line-height: 2;
	color: #111827;
}

.itoll-topic-modal-card footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eef0f3;
}

.itoll-topic-modal-replies {
	margin-top: 28px;
	background: #fff;
	border: 0;
	border-radius: 0;
	overflow: hidden;
}

.itoll-topic-modal-replies h2 {
	margin: 0;
	padding: 20px 24px;
	font-size: 19px;
	border-bottom: 1px solid var(--iaf-line);
}

.itoll-topic-modal-reply {
	padding: 22px 4px;
	border-bottom: 1px solid var(--iaf-line);
}

.itoll-topic-modal-reply:last-child {
	border-bottom: 0;
}

.itoll-topic-modal-reply footer {
	display: flex;
	gap: 14px;
	margin-top: 14px;
	color: var(--iaf-muted);
	font-size: 13px;
}

.itoll-forum-pages {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.itoll-forum-pages a {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--iaf-ink);
}

.itoll-forum-pages a.is-active {
	background: var(--iaf-blue);
	color: #fff;
	border-color: var(--iaf-blue);
}

.itoll-forum-sheet,
.itoll-forum-success {
	position: fixed;
	top: 96px;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99998;
	background: rgba(17, 24, 39, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 18px;
}

.itoll-forum-sheet[hidden],
.itoll-forum-success[hidden] {
	display: none;
}

.itoll-forum-sheet__panel,
.itoll-forum-success__panel {
	width: min(560px, 100%);
	max-height: 100%;
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	position: relative;
	box-shadow: 0 22px 70px rgba(15, 23, 42, .24);
}

.itoll-forum-sheet__grab {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 34px;
	height: 34px;
	border: 1px solid var(--iaf-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	padding: 0;
}

.itoll-forum-sheet__grab::before,
.itoll-forum-sheet__grab::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: #64748b;
	border-radius: 999px;
}

.itoll-forum-sheet__grab::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.itoll-forum-sheet__grab::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.itoll-forum-form h2 {
	margin: 8px 0 14px;
	font-size: 19px;
}

.itoll-forum-form textarea {
	width: 100%;
	min-height: 150px;
	border: 1px solid #cfd6df;
	border-radius: 8px;
	padding: 13px 14px;
	font-size: 15px;
	line-height: 1.85;
	resize: vertical;
}

.itoll-forum-form textarea:focus {
	outline: 2px solid rgba(49, 91, 200, .14);
	border-color: var(--iaf-blue-2);
}

.itoll-forum-form__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--iaf-muted);
	margin: 10px 0 18px;
	font-size: 12.5px;
}

.itoll-forum-form__meta small {
	color: var(--iaf-blue);
}

.itoll-forum-form button[type="submit"],
.itoll-forum-success button {
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 13px;
	background: var(--iaf-blue-2);
	color: #fff;
	font-weight: 900;
	font-size: 15px;
	cursor: pointer;
}

.itoll-forum-form button[type="submit"]:disabled {
	background: #a3a3a3;
	cursor: not-allowed;
}

.itoll-forum-success {
	align-items: center;
}

.itoll-forum-success__panel {
	border-radius: 8px;
	text-align: center;
	max-width: 480px;
	padding-top: 34px;
}

.itoll-forum-success__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #05985a;
	color: #fff;
	font-size: 44px;
	font-weight: 900;
	margin-bottom: 20px;
}

.itoll-forum-success p {
	font-size: 16px;
	line-height: 2;
	margin: 0 0 22px;
	font-weight: 700;
}

@media (max-width: 760px) {
	.itoll-forum-crumbs__inner {
		padding: 12px 18px;
		font-size: 12px;
	}

	.itoll-forum-page-head {
		padding: 26px 16px 20px;
	}

	.itoll-forum-page-head h1 {
		font-size: 24px;
	}

	.itoll-forum {
		width: min(100%, 390px);
		max-width: none;
		padding: 16px 12px 112px;
	}

	.itoll-forum > .itoll-forum__ask,
	.itoll-forum__toolbar .itoll-forum__ask {
		position: fixed;
		right: 22px;
		bottom: 76px;
		z-index: 50;
		padding: 15px 22px;
		font-size: 18px;
		box-shadow: 0 14px 24px rgba(5, 189, 76, .32);
	}

	.itoll-forum__toolbar .itoll-forum__ask {
		width: auto;
	}

	.itoll-forum__toolbar {
		align-items: center;
		flex-direction: column;
		text-align: center;
		padding: 0 0 18px;
		gap: 14px;
	}

	.itoll-forum__list {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.itoll-topic-card {
		padding: 34px 22px 18px;
		min-height: 0;
	}

	.itoll-topic-card__meta {
		justify-content: center;
		margin-bottom: 24px;
	}

	.itoll-topic-card h2 {
		font-size: 19px;
		line-height: 1.9;
		text-align: center;
	}

	.itoll-topic-card p {
		text-align: center;
		font-size: 16px;
		line-height: 2;
	}

	.itoll-topic-card footer {
		font-size: 14px;
		padding-top: 16px;
	}

	.itoll-forum-sheet__panel {
		width: min(680px, 100%);
		border-radius: 8px 8px 0 0;
		padding: 26px 24px 18px;
		box-shadow: 0 -20px 60px rgba(15, 23, 42, .2);
	}

	.itoll-forum-sheet,
	.itoll-forum-success {
		top: 20vh;
		bottom: 72px;
		padding: 0 10px;
		align-items: flex-end;
	}

	.itoll-forum-sheet__grab {
		top: 12px;
		left: 50%;
		transform: translateX(-50%);
		width: 72px;
		height: 5px;
		border: 0;
		border-radius: 999px;
		background: #d1d5db;
	}

	.itoll-forum-sheet__grab::before,
	.itoll-forum-sheet__grab::after {
		display: none;
	}

	.itoll-forum-form h2 {
		margin: 24px 0 14px;
		font-size: 20px;
	}

	.itoll-forum-form textarea {
		min-height: 190px;
		padding: 16px;
		font-size: 16px;
		line-height: 1.9;
	}

	.itoll-forum-form button[type="submit"],
	.itoll-forum-success button {
		padding: 15px;
		font-size: 17px;
	}

	.itoll-forum-success__panel {
		max-width: 560px;
		padding-top: 46px;
	}

	.itoll-forum-success__icon {
		width: 86px;
		height: 86px;
		font-size: 54px;
		margin-bottom: 28px;
	}

	.itoll-forum-success p {
		font-size: 18px;
		margin-bottom: 28px;
	}

	.itoll-forum-topic-modal {
		top: 20vh;
		bottom: 72px;
		padding: 0 10px;
		align-items: flex-end;
	}

	.itoll-forum-topic-modal__shell {
		width: min(840px, 100%);
		max-height: 100%;
		border-radius: 8px 8px 0 0;
		box-shadow: 0 -18px 50px rgba(15, 23, 42, .2);
	}

	.itoll-forum-topic-modal__bar {
		justify-content: center;
		height: 52px;
		padding: 0 56px;
	}

	.itoll-forum-topic-modal__body {
		width: 100%;
		margin: 0;
		padding: 18px 18px 32px;
	}

	.itoll-topic-modal-card {
		padding: 24px 18px 18px;
	}

	.itoll-topic-modal-card h2 {
		font-size: 20px;
		text-align: center;
	}

	.itoll-topic-modal-card p,
	.itoll-topic-modal-reply p {
		font-size: 16px;
		text-align: center;
	}
}
