/**
 * Products Help - Ask Question about Product
 *
 * @author    Nxtal <support@nxtal.com>
 * @copyright Nxtal 2023
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 * @version   5.2.0
 *
 */
 

/* Back office */
.message-body {
	display: flow-root;
}
.message-head {
    margin: 8px 0 !important;
    padding-bottom: 20px;
}
.producthelp-message-body {
	padding: 16px 10px;
    text-align: left;
    font-size: 14px;
    margin-bottom: 20px;
    color: #353535;
    border-left: 1px solid #3ed2f0;
    border-bottom: 1px dashed #d2d2d2;
    min-height: 100px;
	display: flow-root;
}
.producthelp-question{
	margin-bottom: 25px;
	border-bottom: 1px dashed #d2d2d2;
}
.producthelp-question h2{
	margin-top: 0;
}
.producthelp-extras {
	margin: 10px 0;
	font-size: 12px;
	display: flow-root;
}
.producthelp-message-body.reply {
    border-left: none;
    border-right: 1px solid #ff9800;
}
.producthelp-message-body.reply .message-card{
	float: right;
}
.producthelp-message-employee{
	padding: 10px 0px 5px;
	color: #989493;
}
.producthelp-message-timestamp{
	font-size: 12px;
    margin: 16px 8px 0 0;
    display: inline-block;
	color: #989493;
}
.producthelp-message-timestamp i{
	font-size: 0.9rem;
}
.nxtalproducthelp-reply-form-box{
	margin-top: 20px;
	display: none;
}

.producthelp-message-file{
	margin: 10px 0 5px;
}
.producthelp-message-file i{
	font-size: 20px;
	float: left;
}
.producthelp-question .producthelp-message-file{
	display: inline-block;
}
.producthelp-question .producthelp-message-timestamp{
	float: right;
    margin: 10px 0 5px;
}
.adminproducthelp .card-body{
	margin:35px;
}


/* Front office */
.nxtal-producthelp-link {
    background: inherit;
    padding: 10px 0px;
    text-align: center;
}
.product-additional-info .nxtal-producthelp-link{
	text-align: left;
}

.quickview .nxtal-producthelp-link {
    margin-left: 2.5rem;
}

#nxtalproducthelp-modal .modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}
#nxtalproducthelp-modal .modal.fade .modal-dialog {
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out;
    -webkit-transform: translateY(-25%);
    transform: translateY(-25%);
}
#nxtalproducthelp-modal .modal.in .modal-dialog {
    -webkit-transform: translate(0);
    transform: translate(0);
}
#nxtalproducthelp-modal .modal-dialog {
    max-width: 1140px;
    width: 100%;
}
#nxtalproducthelp-modal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}
#nxtalproducthelp-modal .modal-body {
    position: relative;
    padding: 15px;
}
#nxtalproducthelp-modal .modal-title {
    color: #353943;
    font-size: 1rem;
    font-weight: 400;
}
#nxtalproducthelp-modal .product-image {
    width: 100%;
    max-width: 9.375rem;
    display: block;
    margin: 0 0 0 auto;
}
#nxtalproducthelp-modal .product-name {
    color: #2fb5d2;
    font-size: 1.125rem;
}
#nxtalproducthelp-modal .divide-right{
    border-right: 1px solid #dbdbdb;
}

#nxtalproducthelp-modal .modal-body .divide-right span {
    display: block;
    margin-bottom: .3125rem;
}
#nxtalproducthelp-modal textarea {
    resize: vertical;
    min-height: 100px;
    width: 100%;
}
.nxtalproducthelp-card .divide-left {
    border-left: 1px solid #dbdbdb;
}

.nxtalproducthelp-form .form-group{
	display: flex;
}
.nxtal-file-info {
    font-size: 12px;
    font-style: italic;
    line-height: 15px;
	color: #989493;
}
.nxtal-form-error label{
	color: #ff4c4c !important;
}

.nxtal-form-error .text-danger {
    color: #ff4c4c !important;
    font-size: 14px;
    font-style: italic;
}

.nxtal-form-error .form-control{
	border: 1px solid rgba(255,0,0,.25);
}

.nxtalproducthelp-card{
	position: relative;
    display: block;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,.125);
    padding: 25px;
	box-shadow: 2px 2px 8px 0 rgb(0 0 0 / 20%);
}
.nxtalproducthelp-product{
	text-align: center;
    margin: 26px 10px 15px;
}
.nxtalproducthelp-product-info{
	margin-top: 10px;
}
.nxtalproducthelp-product-title{
	font-size: 1rem;
	margin-bottom: .5rem;
}
.nxtalproducthelp-product-attr span{
	font-size: 14px;
    display: block;
    margin-bottom: 5px;
}
.producthelp-question-title{
	margin: 10px 0px;
    font-size: 16px;
    font-weight: 600;	
}
.producthelp-display-form, .producthelp-see-more{
	cursor: pointer;
	font-weight: 600;
}
.producthelp-display-form{
	float: right;
}

.nxtalproducthelp-fileupload{
	position: relative;
	min-height: 34px;
}
.nxtalproducthelp-fileupload:before{
	content: attr(data-text);
    position: absolute;
    z-index: 1;
    background: #2fb5d2;
    top: 0;
    left: 0;
    bottom: 0;
    width: 125px;
    line-height: 44px;
    text-align: center;
    color: #fff;
}
.adminproducthelp .nxtalproducthelp-fileupload:before{
	width: 100px;
    line-height: 34px;
}
.adminproducthelp h3.card-header-title{
	padding-left: 10px;
}
.hide{
	display: none !important;
}

/* Pagination */
#module-nxtalproducthelp-help .pagination {
    display: inline-block;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0;
	width: 100%;
}

#module-nxtalproducthelp-help .pagination>div:first-child {
    line-height: 2.5rem;
}
#module-nxtalproducthelp-help .pr-0 {
    padding-right: 0!important;
}
#module-nxtalproducthelp-help .pagination .page-list {
    background: #fff;
    padding: .375rem;
    margin-bottom: 0;
    box-shadow: 2px 2px 4px 0 rgb(0 0 0 / 20%);
}
#module-nxtalproducthelp-help .pagination .page-list li {
    display: inline;
}
#module-nxtalproducthelp-help .pagination .previous {
    float: left;
}
#module-nxtalproducthelp-help .pagination .next {
    float: right;
}
#module-nxtalproducthelp-help .pagination a {
    color: #000;
    font-weight: 600;
}
#module-nxtalproducthelp-help .pagination .disabled {
    color: #7a7a7a;
}
#module-nxtalproducthelp-help .pagination .current a {
    color: #2fb5d2;
    text-decoration: none;
    font-size: 1.25rem;
}

#module-nxtalproducthelp-help .pagination a:not(.previous):not(.next) {
    letter-spacing: .125rem;
}

@media (max-width: 991px) {
	#nxtalproducthelp-modal .product-image {
		width: 100%;
		display: block;
		max-width: 15.63rem;
		margin: 0 auto .9375rem;
	}
	#nxtalproducthelp-modal .modal-dialog {
		width: calc(100% - 20px);
	}
}

@media (max-width: 767px) {
	#nxtalproducthelp-modal .product-name {
		padding: 0 .5rem;
	}
	#nxtalproducthelp-modal .modal-body .divide-right span {
		display: block;
		padding: 0 .5rem;
	}
	#nxtalproducthelp-modal .divide-right {
		border-right: none;
	}
	#nxtalproducthelp-modal .form-group {
		display: block;
		margin: 0;
	}
	#nxtalproducthelp-modal .form-control-label {
		text-align: left;
	}
	#nxtalproducthelp-modal .nxtal-file-info .form-control-label {
		padding: 0;
		height: 2px;
	}
	.nxtalproducthelp-card .divide-left {
		border-left: none;
	}
	.nxtalproducthelp-card .divide-bottom, #nxtalproducthelp-modal .divide-bottom {
		border-bottom: 1px solid #dbdbdb;
		margin-bottom: 10px;
	}
}

@media (min-width: 576px) {
	.text-sm-right {
		text-align: right!important;
	}
	#nxtalproducthelp-modal .modal-dialog {
		margin: 30px auto;
	}
	.nxtalproducthelp-fileupload{
		width: 50% !important;
		margin-right: 50%;
	}
	#nxtalproducthelp-modal .nxtalproducthelp-fileupload{
		width: 100% !important;
		margin-right: 0;
	}
}
