/* BOTH */
@media screen and (max-width: 979px) {
	.cAuthorPane {
		margin-bottom: 0 !important;
	}

	.cTopicList .cBestAnswerIndicator {
		width: 24px;
		height: 24px;
		line-height: 24px;
		font-size: 14px;
	}

	.cTopicList .ipsDataItem_icon {
		min-width: 25px;
	}

	html[dir="ltr"] .cTopicList .ipsDataItem_icon + .ipsDataItem_main, 
	html[dir="ltr"] .cTopicList .ipsDataItem_icon + .ipsDataItem_main + .ipsDataItem_stats {
		margin-left: 30px !important;
	}
	html[dir="rtl"] .cTopicList .ipsDataItem_icon + .ipsDataItem_main, 
	html[dir="rtl"] .cTopicList .ipsDataItem_icon + .ipsDataItem_main + .ipsDataItem_stats {
		margin-right: 30px !important;
	}

	.cTopicList .ipsDataItem_main {
		padding: 0;
	}
	
	.cForumFluidTable .ipsDataItem_stats {
		min-width: 130px !important;
	}

	/* Fluid view juggling */
	html[dir="ltr"] .cForumFluidTable .ipsDataItem_modCheck {
		position: absolute;
		top: 15px;
		right: 0 !important;
		left: auto !important;
	}
	
	html[dir="rtl"] .cForumFluidTable .ipsDataItem_modCheck {
		position: absolute;
		right: 15px;
		left: 0 !important;
		right: auto !important;
	}
	
	/* User photo */
	html[dir="ltr"] .cForumFluidTable .cTopicList .ipsDataItem_icon {
		left: 5px;
		top: 15px;
		position: absolute;
	}
	
	html[dir="rtl"] .cForumFluidTable .cTopicList .ipsDataItem_icon {
		right: 5px;
		top: 15px;
		position: absolute;
	}
	
	/* Unread dot */
	html[dir="ltr"] .cForumFluidTable .ipsItemStatus {
		position: absolute;
		top: 60px;
		left: 15px;
	}
	
	html[dir="rtl"] .cForumFluidTable .ipsItemStatus {
		position: absolute;
		top: 60px;
		right: 15px;
	}
	
	html[dir="ltr"] .cForumFluidTable .cTopicList .ipsDataItem_icon + .ipsDataItem_main, html[dir="ltr"] .cForumFluidTable .cTopicList .ipsDataItem_icon + .ipsDataItem_main + .ipsDataItem_stats {
		margin-left: 40px !important;
	}
	
	html[dir="rtl"] .cForumFluidTable .cTopicList .ipsDataItem_icon + .ipsDataItem_main, html[dir="rtl"] .cForumFluidTable .cTopicList .ipsDataItem_icon + .ipsDataItem_main + .ipsDataItem_stats {
		margin-right: 40px !important;
	}
	
	html[dir="ltr"] .cForumFluidTable .ipsDataItem.ipsDataItem_responsivePhoto .ipsDataItem_main {
		margin-right: 10px !important;
	}
	
	html[dir="rtl"] .cForumFluidTable .ipsDataItem.ipsDataItem_responsivePhoto .ipsDataItem_main {
		margin-left: 10px !important;
	}

	.cForumMiniList_wrapper {
		display: none;
	}

		.cForumMiniList_wrapper .ipsSideMenu {
			border: 0;
		}

	.ipsDialog .cForumMiniList_wrapper,
	.cForumMiniList {
		display: block !important;
	}

	.ipsDialog #elFluidFormFilters {
		padding: 10px 15px 15px;
		border: 0;
		margin-top: 10px;
	}

	/* loading styles */
	.cForumFluidTable .ipsDataItem.ipsDataItem_loading {
		padding-left: 0;
		padding-right: 0;
	}

	html[dir="ltr"] .cForumFluidTable .ipsDataItem_loading > div > span:last-child {
		right: 15px;
	}
	html[dir="rtl"] .cForumFluidTable .ipsDataItem_loading > div > span:last-child {
		left: 15px;
	}
}

/* TABLETS */
@media screen and (min-width: 768px) and (max-width: 979px) {
	.cForumQuestion .ipsDataItem_main {
		width: 100%;
		padding-left: 5px !important;
	}

	.cForumQuestion .ipsDataItem_main,
	.cForumQuestion .cForumQuestion_stat {
		display: table-cell;
	}
	.cForumQuestions .cForumQuestion .cForumQuestion_stat + .ipsDataItem_modCheck {
		position: absolute;
		top: 40px;
		padding: 0 4px;
	} 
}

/* PHONES */
@media screen and (max-width: 767px) {

	/* Adjust author pane for mobile display */
	.cPost.ipsComment .cAuthorPane {
		text-align: left;
		min-height: 57px;
		position: relative;
	}

		.cPost.ipsComment:not( .ipsComment_selected ):not( .ipsModerated ) .cAuthorPane {
			background: #f8f8f8;
		}

	html[dir="rtl"] .cPost.ipsComment .cAuthorPane {
		text-align: right;
	}

	.cPost.ipsComment .ipsUserPhoto {
		display: inline-block;
	}

	.cPost.ipsComment .ipsUserPhoto > img {
		width: 40px;
		height: 40px;
	}

	.cPost.ipsComment .cAuthorPane_photo {
		position: absolute;
		top: 7px;
		margin: 0;
	}
	html[dir="ltr"] .cPost.ipsComment .cAuthorPane_photo {
		left: 7px;
	}
	html[dir="rtl"] .cPost.ipsComment .cAuthorPane_photo {
		right: 7px;
	}

	html[dir="ltr"] .cPost.ipsComment .cAuthorPane_info,
	html[dir="ltr"] .cPost.ipsComment .cAuthorPane_author {
		margin-left: 45px;
	}
	html[dir="rtl"] .cPost.ipsComment .cAuthorPane_info,
	html[dir="rtl"] .cPost.ipsComment .cAuthorPane_author {
		margin-right: 45px;
	}

	.cPost.ipsComment .cAuthorPane_author {
		line-height: 16px;
		margin-top: -5px;
		max-width: calc(100% - 80px);
	}

		.cPost.ipsComment .cAuthorPane_author > a {
			font-size: 15px;
		}

	/* Adjusts meta line, e.g. posted date */
	html[dir] .cPost .ipsComment_meta {
		position: absolute;
		top: -28px;
		padding: 0;
	}
	html[dir="ltr"] .ipsComment_meta {
		left: 60px;
		right: 0;
		margin-right: 0;
	}
	html[dir="rtl"] .ipsComment_meta {
		right: 60px;
		left: 0;
		margin-left: 0;
	}

	html[dir="ltr"] .cPost.ipsComment_popular .ipsComment_meta {
		padding-right: 40px;
	}
	html[dir="rtl"] .cPost.ipsComment_popular .ipsComment_meta {
		padding-left: 40px;
	}

	.cPost .ipsComment_meta .cPost_moderator {
		position: absolute;
		top: -22px;
		margin: 0 !important;
	}
	html[dir="ltr"] .cPost .ipsComment_meta .cPost_moderator {
		right: -2px;
	}
	html[dir="rtl"] .cPost .ipsComment_meta .cPost_moderator {
		left: -2px;
	}

	/* on popular posts we show a flag, so we need to adjust positioning for that */
	.cPost.ipsComment.ipsComment_popular .ipsComment_popularFlag {
		top: -60px;
		height: 55px;
		padding-top: 18px;
	}

	html[dir] .ipsComment.ipsComment_popular [data-role="commentContent"] {
		padding-right: 0;
		padding-left: 0;
	}

	html[dir="ltr"] .cPost.ipsComment.ipsComment_popular .ipsComment_meta .cPost_moderator {
		right: 38px;
	}
	html[dir="rtl"] .cPost.ipsComment.ipsComment_popular .ipsComment_meta .cPost_moderator {
		left: 38px;
	}

	/* Q&A-specific changes */
	.cPost.cPostQuestion {
		margin-bottom: 20px;
	}

	.cPost .cRatingColumn {
		margin-bottom: 0 !important;
		padding: 7px 7px 0 7px !important;
	}

		.cPost .cRatingColumn ul.cPostRating_controls li {
			display: inline-block;
			float: left;
		}

		.cPost .cRatingColumn ul.cPostRating_controls .cPostRating_bestAnswer {
			float: right;
		}

		.cPost .cRatingColumn .cAnswerRate {
			font-size: 40px;
		}

		.cPost .cRatingColumn .cAnswerRate.cAnswerRate_up {
			top: -1px;
		}

		.cPost .cRatingColumn .cAnswerRating {
			margin: 0 10px;
			font-size: 16px;
			font-weight: bold;
		}

		.cPost .cRatingColumn .cBestAnswerIndicator {
			width: 30px;
			height: 30px;
			line-height: 30px;
			font-size: 15px;
		}

	/* ---- */

	.cForumGrid .cForumGrid_forumInfo.ipsPad {
		padding: 15px;
	}

	html[dir] .cPost .cPost_contentWrap {
		padding: 15px 0 0 0;
	}

	html[dir] .cPost .ipsComment_content {
		padding-left: 10px;
		padding-right: 10px;
		position: static;
	}
	
	.cPost .cAuthorPane + .ipsColumn {
		margin-bottom: 0;
	}

	.cPost .ipsItemControls {
		margin-bottom: -7px;
	}

	html[dir="ltr"] .cTopic .ipsComment.ipsComment_ignored {
		padding-left: 7px;
	}
	html[dir="rtl"] .cTopic .ipsComment.ipsComment_ignored {
		padding-right: 7px;
	}

	/* Forum view */
	.cForumRow .ipsItemStatus_custom {
		max-width: 26px;
	}

	html[dir="ltr"] .cForumQuestions.cTopicList .ipsDataItem_main {
		margin-left: 40px;
	}
	html[dir="rtl"] .cForumQuestions.cTopicList .ipsDataItem_main {
		margin-right: 40px;
	}

	.cForumQuestions.cTopicList .cForumQuestion_stat {
		display: inline-block !important;
	}

	.cForumQuestions .cForumQuestion .cForumQuestion_stat,
	.cForumQuestions .cForumQuestion .cForumQuestion_stat span:first-child {
		display: inline-block;
		min-width: 0;
		color: inherit;
	}

		.cForumQuestions .cForumQuestion .cForumQuestion_stat span {
			font-size: 13px;
			color: inherit;
			font-weight: bold;
		}

		html[dir="ltr"] .cForumQuestions .cForumQuestion .ipsDataItem_modCheck,
		html[dir="ltr"] .cForumQuestions .cForumQuestion .ipsDataItem_main + .cForumQuestion_stat {
			margin-left: 30px;
		}
		html[dir="rtl"] .cForumQuestions .cForumQuestion .ipsDataItem_modCheck,
		html[dir="rtl"] .cForumQuestions .cForumQuestion .ipsDataItem_main + .cForumQuestion_stat {
			margin-right: 30px;
		}

			.cForumQuestions .cForumQuestion .cForumQuestion_stat + .ipsDataItem_modCheck {
				position: absolute;
				top: 50px;
			} 
			html[dir="ltr"] .cForumQuestions .cForumQuestion .cForumQuestion_stat + .ipsDataItem_modCheck {
				left: -15px;
			}
			html[dir="rtl"] .cForumQuestions .cForumQuestion .cForumQuestion_stat + .ipsDataItem_modCheck {
				right: -15px;
			}

			html[dir="ltr"] .cForumQuestions .cForumQuestion .cForumQuestion_stat + .cForumQuestion_stat {
				margin-left: 10px;
			}
			html[dir="rtl"] .cForumQuestions .cForumQuestion .cForumQuestion_stat + .cForumQuestion_stat {
				margin-right: 10px;
			}

	/* Page header styles */
	.cForumHeader .ipsToolList {
		float: right;
		width: auto;
		margin-bottom: 0;
	}

		.cForumHeader .ipsType_pageTitle {
			line-height: 1.5;
		}

		.cForumHeader .ipsToolList .ipsButton {
			line-height: 28px;
		}
}