.m-header {
    color: #555;
    background: #fff;
    font: 12px / 1.5 "Roboto", arial, "Microsoft Yahei", sans-serif;
    padding: 1px 0;
    margin: -1px 0;
    height: 100px;
}
.grid {
    max-width: 990px;
    width: auto;
    margin: 0 auto;
}
.m-header .grid {
    background-color: #fff;
}
.m-header .m-header-row {
    margin: 20px 0;
}
.m-header .m-logo-wrap {
    float: left;
}
.m-logo-wrap img {
    max-width: 50%;
}
.m-header .m-logo {
    display: block;
    float: left;
}
.m-channel-name {
    float: left;
    max-width: 180px;
    line-height: 0;
    font-size: 16px;
    font-weight: normal;
    margin-left: 20px;
    padding-top: 24px;
    color: #222;
    word-wrap: break-word;
    word-break: normal;
}
.name-content {
    display: table-cell;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
}
.appHeight.foreign {
    min-height: calc(100% - 85px - 170px);
    position: relative;
    overflow-y: auto;
} 
.contenter {
    padding: 30px 0;
    font-size: 14px;
}
.inquiry-prod-wrap {
    min-height: 52px;
    background: #f5f7fa;
    border: 1px solid #dae0e6;
}
.inquiry-com-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.inquiry-toggle-bar, .inquiry-com-hd {
    padding: 15px 40px 15px 20px;
}

span.com-name {
    color: #222;
}
ul.inquiry-prod-lst {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.inquiry-com-bd {
    padding: 20px;
    border-top: 1px solid #dae0e6;
}
.inquiry-prod-lst .lst-item .prod-img {
    position: relative;
    float: left;
    /*margin-left: -90px;*/
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}
.inquiry-prod-lst .lst-item .prod-img img {
    max-width: 70px;
    max-height: 70px;
}
.inquiry-prod-lst .lst-item .prod-img:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .03);
}
.inquiry-prod-lst .lst-item .prod-name {
    height: 48px;
    line-height: 24px;
    max-width: 500px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.link {
    text-decoration: none;
    color: #1470cc;
}
.inquiry-prod-lst .lst-item .amount-wrap {
    position: absolute;
    right: 100px;
    top: 0;
    margin-right: 0;
}
.obelisk-form .unit-input-wrap {
    display: flex;
}
.obelisk-form .text-item-r {
    background: #fff;
}
.obelisk-form .text-item, .ob-form .text-item {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    position: relative;
}
.inquiry-prod-lst .lst-item .amount-wrap .input-wrap {
    width: 243px;
}
.obelisk-form .text-item .input-wrap {
    width: 300px;
    overflow: visible;
}
.input-wrap {
    display: flex;
    border: none !important;
    outline: none;
}
select#purchaseQuantityType {
    border: 1px solid #ccc;
}

.obelisk-form .text-item-r .input-select-wrap {
    position: relative;
    z-index: 9;
    float: right;
    border-right: none;
    border-radius: 0 3px 3px 0;
}
.obelisk-form .text-item .input-cnt, 
.ob-form .text-item .input-cnt {
    overflow: hidden;
}
.obelisk-form .text-item.text-item-r .input-text, .ob-form .text-item.text-item-r .input-text {
    border-radius: 3px 0 0 3px;
    float: left;
    border-right: 0;
    margin-left: 0;
    border-left: 1px solid #ced3d9;
}
.inquiry-prod-lst .lst-item:before, 
.inquiry-prod-lst .lst-item:after {
    content: "";
    display: table;
}
.inquiry-prod-lst .lst-item:after {
    clear: both;
}
.input-cnt input,
.input-cnt input:focus,
.input-cnt input:active
 {
    height: 40px;
    border: 1px solid #ccc;
    padding: 0 0 0 10px;
    outline: none;
}

/***select*****/
.unit-select{
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    position:relative;
}

.select-title{
    padding:9px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.select-arrow{
    transition:.25s;
    margin-left: 10px;
}

.unit-select.open .select-arrow{
    transform:rotate(180deg);
}

.select-list{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    margin-top: 0px;
    display:none;
    z-index:999;
    max-height: 260px;
    /* overflow:auto; */
    box-shadow:0 8px 24px rgba(0,0,0,.1);
    max-height: 300px;
    overflow-y: auto;
    width: 150px;
}

.unit-select.open .select-list{display:block;}

.select-list-wrap{list-style:none;margin:0;padding:0;}

.select-opt{
    display:block;
    padding:10px 12px;
    text-decoration:none;
    color:#333;
}
.select-opt label{
    font-weight: normal;
}
.select-opt:hover{background:#f4f7fb}

.select-opt.selected{
    background:#e9f0ff;
    color:#2563eb;
    font-weight:600;
}

/* add other */
.select-list-add{
    border-top:1px solid #eee;
    padding:8px;
    display:flex;
    gap:6px;
}

.select-list-add input{
    flex:1;
    padding:6px 8px;
    border:1px solid #ddd;
    border-radius:4px;
}

.add-btn{
    padding:6px 10px;
    background:#2563eb;
    color:#fff;
    border-radius:4px;
    text-decoration:none;
    font-size:13px;
}

.add-btn.disabled{
    background:#ccc;
    pointer-events:none;
}
.form-item-wrap {
    margin-top: 20px;
}
.obelisk-form .form-item .form-item-title {
    line-height: 27px;
    color: #222;
    margin-bottom: 5px;
    font-size: 14px;
}
.obelisk-form .form-item .form-item-title .required {
    color: #fd2f3c;
}
.obelisk-form .form-item .form-item-cnt {
    position: relative;
}
.obelisk-form .textarea-field {
    width: 100%;
}
.obelisk-form .textarea-wrap.border-error .input-textarea, .obelisk-form .sender-email-wrap.border-error .input-textarea, .obelisk-form .validate-code-wrap.border-error .input-textarea {
    border-color: #e64545;
}
.textarea-wrap {
    position: relative;
}
.form-item {
    margin-bottom: 20px;
}
.obelisk-form .textarea-field .input-textarea {
    width: 100%;
    min-height: 153px;
    font-size: 14px;
    line-height: 24px;
    padding: 10px;
}
.obelisk-form .textarea-wrap .word-count {
    position: absolute;
    bottom: 5px;
    right: 20px;
    line-height: 24px;
    color: #888;
}
.obelisk-form .textarea-field .field, .ob-form .textarea-field .field {
    padding: 8px 10px;
    background: #f5f7fa;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #ced3d9;
    -webkit-border-radius: 0 0 3px 3px;
    -moz-border-radius: 0 0 3px 3px;
    -ms-border-radius: 0 0 3px 3px;
    -o-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
    margin-top: -5px;
}
.obelisk-form .textarea-field .upload {
    font-size: 14px;
    height: 22px;
}
.obelisk-form .textarea-field .upload, .ob-form .textarea-field .upload {
    font-size: 12px;
    color: #1470cc;
    overflow: hidden;
    position: relative;
    height: 18px;
    vertical-align: top;
    display: flex;
    gap: 5px;
    align-self: anchor-center;
}
.edit-wrap .upload-wrap {
    width: auto;
    height: 20px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    background-color: #f5f7fa;
    overflow: hidden;
    box-sizing: border-box;
    border: none 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    /* display: flex; */
    /* gap: 10px; */
}
.edit-wrap .upload-selector {
    height: 20px;
    position: absolute;
    top: 0;
    left: -820px;
    border: 0 none;
    display: block;
    font-size: 200px;
    left: -80px\9;
    width: 650px\9;
    height: 210px\9;
    opacity: 0;
    line-height: 230px;
    filter: alpha(opacity=0) !important;
    cursor: pointer;
}
.obelisk-form .textarea-field .upload .micon {
    position: relative;
    margin: 0 0 0 5px;
    vertical-align: middle;
    cursor: pointer;
}
.obelisk-form .feedback-block, .ob-form .feedback-block {
    clear: left;
}
.obelisk-form .feedback-block, .ob-form .feedback-block {
    clear: left;
}
.obelisk-form .feedback-block .error, 
.ob-form .feedback-block .error {
    margin-top: 5px;
    font-size: 14px;
    color: #e64545;
    display: inline-block;
}
.upload.false i {
    font-size: 15px;
}
.obelisk-form .form-item .form-item-cnt {
    position: relative;
}
.obelisk-form .sender-email-wrap {
    display: flex;
    align-items: center;
}
.obelisk-form .input-text {
    width: 300px;
    box-sizing: border-box;
    font-size: inherit;
    height: 40px;
    font-size: 14px;
    padding-left: 15px;
}
.obelisk-form .input-text:focus, 
.ob-form .input-text:focus,
.obelisk-form .textarea-field .input-textarea:focus {
    outline: 0;
    border: 1px solid #e64545;
    border-radius: 3px;
}
.btn-big {
    height: 40px;
    line-height: 38px;
    font-size: 16px;
    padding: 0 20px;
}
.btn-main {
    color: #fff;
    border: solid 1px #e64545;
    background-color: #e64545;
}
.obelisk-form .feedback-block .error, 
.ob-form .feedback-block .error {
    margin-top: 5px;
    font-size: 14px;
    color: #e64545;
    display: inline-block;
    font-weight: normal;
}
span.email-tip {
    color: #787a7c;
    padding-left: 15px;
}



.sender-email-wrap{
    position: relative;
}
.email-tip,
.email-error{
    display: none;
    font-size: 14px;
    margin-top: 6px;
}
.email-tip{
    color: #666;
    padding-left: 15px;
}
.email-error{
    color: #c00;
}

.feedback-block{
    display: none;
    margin-top: 6px;
}

.feedback-block .error{
    color: #c00;
    font-size: 13px;
}
.btn-main:hover,
.btn-main:focus,
.btn-main:active {
    color: #fff !important;
    border: solid 1px #d92121 !important;
    background-color: #d92121 !important;
    outline: none;
}


/****footer**********/
.m-footer {
    border-top: 1px solid #dae0e6;
    background: #e3e4e6;
    font-family: "Roboto", arial, "Microsoft Yahei";
}
.m-footer .m-footer-simple-links {
    padding: 30px 0 40px;
    text-align: center;
    color: #666;
    font-size: 0;
    position: relative;
}
.m-footer-simple-links .hitstat-pro {
    position: absolute;
    top: 30px;
    left: 0;
}
.m-footer .m-footer-simple-links .m-footer-simple-links-row {
    margin-bottom: 5px;
    font-size: 14px;
}
.m-footer .m-footer-simple-links .m-footer-simple-links-group {
    margin-bottom: 20px;
}
.m-footer a {
    color: #666;
    white-space: nowrap;
    font-size: 14px;
}
.m-footer a:hover {
    color: #e64545;
}
.m-footer .m-footer-simple-links .m-gap-line {
    border-left: 1px solid #ccc;
    margin: 3px 10px 0 10px;
    display: inline-block;
    height: 12px;
    vertical-align: top;
}
.form-item-cnt.sender-email-cnt {
    height: 55px;
}
/***notify********/
.notify-box{
    position: fixed;
    left: -360px;
    bottom: 30px;
    width: 320px;
    padding: 15px 18px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 9999;
    transition: all .4s ease;
}

.notify-box.show{
    left: 20px;
}

.notify-box.error{
    background: #dc2626;
}
button#inquirySend:hover {
    color: #fff;
    background: #e51a1a;
}

.FOCUS_UPLOAD_wrap {
    position: relative;
    display: inline-block;
}

/* Ẩn input nhưng vẫn click được */
.FOCUS_UPLOAD_selector {
    /* position: relative; */
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    cursor: pointer;
    flex: 1;
}
/* Label hiển thị */
.upload-text {
    display: inline-block;
    padding: 2px 5px;
    background: #f5f5f5;
    cursor: pointer;
}
.upload-error-msg {
    position: absolute;
    left: 160px;
    top: 0;
}
.upload.false span {
    padding-top: 2px;
}
span.howthat i {
    font-size: 20px;
    color: #1470cc;
}

span.howthat {
    padding: 2px;
}

.howthat {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wrap-tooltip {
    position: absolute;
    top: 120%; /* đổi từ bottom -> top */
    left: 50%;
    transform: translateX(-50%);
    
    width: 260px;
    padding: 10px;

    background: #333;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;

    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 999;
}

/* mũi tên quay lên trên */
.wrap-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%; /* đổi từ top -> bottom */
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* hover mới hiện */
.howthat:hover .wrap-tooltip {
    opacity: 1;
    visibility: visible;
}

.btn-upload {
    display: inline-block;
    padding: 8px 14px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.inputpic {
    margin-top: 10px;
}

.inputpic .error-msg {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

.inputpic.error .btn-upload {
    border: 1px solid red;
    background: #ffe6e6;
    color: red;
}

.inputpic input[type="file"] {
    position: absolute;
    left: -9999px;
}