.news-rating-component{clear:both;display:flow-root;}
.content-page .news-rating-component{order:4;min-width:0;}
.news-rating-component .area-rate{display:flow-root;padding:20px;background:#fff;border-radius:10px;}
@media(max-width:767px){.news-rating-component .area-rate{padding:10px;}}
/* Đánh giá */
.news-usefulness { margin:0; }
.news-usefulness h2 { margin: 0 0 15px; font-size: 17px; font-weight:bold }

.face-rating-choices{display:grid; grid-template-columns:repeat(5,1fr); gap:20px; justify-content:center; align-items:center; padding: 0 0px} 
.face-rating-choices button{margin:0; border:none; background:none; outline:none; padding:0; display:flex; align-items:center; justify-content:center; flex-direction:column}
.face-rating-choices button .icon{width:100%; aspect-ratio:1/0.8; background:#fef5e4; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:10px 0px 20px 0px; flex-direction:column; gap:4px;}
.face-rating-choices button .icon img{max-width:64px; width:100%;}
.face-rating-choices button .icon span{font-weight:500;}
.face-rating-choices button .star{display:flex; gap:2px; background:#fff; box-shadow: 0 0 0 1px #fff; height:22px; margin-top:-13px;  border-radius:20px; align-items:center; justify-content:center; padding: 0 10px;}
.face-rating-choices button .star i{font-size:12px; color:#ff9f00;}
.face-rating-choices button .star i.star-disabled{color:#b3b4b7;}

@media (max-width: 767px) {
    .face-rating-choices{grid-template-columns:repeat(1,1fr); gap:8px;}
    .face-rating-choices button{position:relative;}
    .face-rating-choices button .icon{aspect-ratio:initial!important; flex-direction:initial!important; justify-content:start; padding: 10px; gap:15px;}
    .face-rating-choices button .icon img{max-width:32px;}
    .face-rating-choices button .star{position:absolute; margin: -10px 0 0 0; right:10px; top:50%; height:19px; padding: 0 6px;}
    .face-rating-choices button .star i{font-size:10px;}
}
@media (min-width:768px) and (max-width: 991px) {
    .face-rating-choices { gap: 5px; }
    .face-rating-choices button .icon span{font-size:13px;}
    .face-rating-choices button .icon img{max-width:52px;}
    .face-rating-choices button .star{padding: 0 6px;}
}

@media (min-width:1200px) and (max-width: 1439px) {
    .face-rating-choices { gap: 5px; }
    .face-rating-choices button .icon span{font-size:13px;}
    .face-rating-choices button .icon img{max-width:52px;}
    .face-rating-choices button .star{padding: 0 6px;}
}

.news-my-rating-card { padding:0; display:grid; grid-template-columns:1fr 120px; padding:20px; background:#f7faff; border-radius: 7px; border-left:3px solid var(--color-blue); }
.news-my-rating-card .news-seed-cta { margin:0; padding:0px; position:relative;  }
.news-my-rating-card .news-seed-cta label{margin:0 0 10px 0; font-weight:bold; color:var(--color-blue)}
.news-my-rating-card .news-seed-cta .rating-info{display:grid; grid-template-columns: 50px 1fr;}
.news-my-rating-card .news-seed-cta .rating-info .col-left{display:flex; padding-top:5px;}
.news-my-rating-card .news-seed-cta .rating-info .col-left .star{font-size:30px; font-weight:bold; position:relative; float:left;}
.news-my-rating-card .news-seed-cta .rating-info .col-left .star:before{font-family: "Font Awesome 5"; content: "\f005"; font-weight: 900; font-size: 14px; color: #ff9f00; margin-left: 5px; position:absolute; top:-2px; right:0;}
.news-my-rating-card .news-seed-cta .rating-info .col-left .star:after{content:'/5'; font-size:14px; opacity:.5; font-weight:500; padding-left:2px;}
.news-my-rating-card .news-seed-cta .rating-info .col-right{display:flex; flex-wrap:wrap; gap:5px 10px ; align-content:center; flex-direction:initial}
.news-my-rating-card .news-seed-cta .rating-info .col-right .mood{font-weight:bold;}
.news-my-rating-card .news-seed-cta .rating-info .col-right .status{font-size:12px; background:#fff; font-weight:500; height:18px; border-radius:20px; padding: 0 10px; display:flex; align-items:center; background:var(--color-red); color:#fff;  }
.news-my-rating-card .news-seed-cta .rating-info .col-right .status.is-check{box-shadow: 0 0 0 1px var(--color-green); background:var(--color-green) }
.news-my-rating-card .news-seed-cta .rating-info .col-right .info{flex-basis:100%!important; font-size:14px;}
.news-my-rating-card .news-seed-cta .rating-info .col-right .info:before{content:'Nội dung:'; font-size:13px; font-weight:500; opacity:.7; padding-right:5px;}
.news-my-rating-card .news-edit-rating { border-radius: 7px; background: var(--color-blue); color: #fff; font-weight: 500; cursor: pointer; height:32px; border:none; font-size:13px; }

@media (max-width: 767px) {
    .news-my-rating-card{padding:15px; grid-template-columns:1fr; gap:10px;} 
    .news-my-rating-card .news-edit-rating{max-width:150px;}
}

.empty-rating-box{width:100%; float:left; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#f7faff; border-radius:10px; padding:20px; gap:10px; margin-top:20px;}
.empty-rating-box i{font-size:40px; color:rgba(0,0,0,.3)}
.empty-rating-box p{font-size:15px; margin:0; font-weight:400; text-align:center;}
.empty-rating-box .wrap-nav{display:flex; gap:10px; align-items:center; margin-top:0px;}
.empty-rating-box .wrap-nav span{opacity:.7; font-style:italic; font-size:13px;}
.empty-rating-box .wrap-nav button{line-height:42px; padding: 0 20px; background:var(--color-blue); color:#fff; border-radius:5px; font-size:14px; font-weight:500; border:none;}
.empty-rating-box .wrap-nav b{font-weight:bold;}

@media (max-width: 767px) {
    .empty-rating-box .wrap-nav{flex-direction:column; gap:2px;}    
    .empty-rating-box .wrap-nav span{padding-top:5px;}
}

/* Modal */
.news-rating-modal{ position: fixed; z-index: 10050; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; }
.news-rating-modal:before{content:''; width:100%; height:100%; background: rgba(2, 11, 39, .5); opacity:.5; position:absolute; top:0; left:0;}
.news-rating-modal.open { display: flex; }
.news-rating-modal .news-rating-dialog { position: relative; width: min(600px,100%); border-radius: 7px; background: #fff;  z-index:2; }
.news-rating-modal .news-rating-dialog .news-rating-head { padding: 0px 20px; height:44px; display:flex; align-items:end}
.news-rating-modal .news-rating-dialog .news-rating-head h2 { margin: 0; font-size: 16px; font-weight:bold; }
.news-rating-modal .news-rating-close { width: 32px; height: 32px; top: 15px; right: 15px; position: absolute; color: rgba(0, 0, 0, .5); background: var(--color-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .3s; border:none}
.news-rating-modal .news-rating-close:hover{transform: rotate(90deg); color: var(--color);}
.news-rating-modal .news-rating-body { padding: 20px; }
.news-rating-modal .news-rating-body .news-rating-text{ width: 100%; min-height: 116px; margin-top: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 7px; resize: vertical; font-size: 14px; outline:none; transition:.3s; }
.news-rating-modal .news-rating-body .news-rating-text:focus{border-color:var(--color-blue)}
.news-rating-modal .news-rating-body .news-rating-counter { margin: 5px 0 0 0; text-align: right; font-size: 11px; }
.news-rating-modal .news-rating-body .news-usefulness-message {margin: -20px 0 0; color: var(--color-green); font-weight:normal; float:left; }
.news-rating-modal .news-rating-body .news-rating-submit { width: 100%; min-height: 42px; border: 0; border-radius: 7px; background: var(--color-blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; margin-top:15px; }
.news-rating-modal .news-rating-body .news-rating-submit:disabled { opacity: .65; cursor: wait; }


.news-rating-success { padding: 34px 25px; text-align: center; }
.news-rating-success-icon { display: block; margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: #e8f1ff; color: #2563e9; font-size: 42px; line-height: 64px; }
.news-rating-success p { margin: 8px 0 24px; color: #5d6575; }

.news-rating-dialog .face-rating-choices{gap:6px;}
.news-rating-dialog .face-rating-choices button .icon img{max-width:48px;}
.news-rating-dialog .face-rating-choices button .icon span{font-size:13px; color:#000}
.news-rating-dialog .face-rating-choices button .star i{font-size:10px;}
.news-rating-dialog .face-rating-choices button .star{height:18px; margin-top:-11px; padding: 0 8px;}
.news-rating-dialog .face-rating-choices button.selected .icon{box-shadow:inset 0 0 0 2px #ff9f00}
.news-rating-dialog .face-rating-choices button.selected .star{box-shadow:0 1px #ff9f00}

@media (max-width: 767px) {
    .news-rating-dialog .face-rating-choices button .icon img{max-width:32px}
}


/* Comment */
.news-product-rating {width:100%; display:none; margin-top:20px;}
.news-product-rating .news-product-rating-toggle { display: flex; flex-direction:column; justify-content:left; align-items:start; width: 100%; gap: 0; border: 0; background: transparent; cursor: pointer; }
.news-product-rating .news-product-rating-toggle strong{ display: block; font-size: 17px; }
.news-product-rating .news-product-rating-toggle small{ display: block; margin-top: 4px; color: #657084; font-size: 14px; font-weight: 400; }
.news-product-rating .news-product-rating-body {display:flex; flex-direction:column; padding-top:10px; }
.news-product-rating .news-product-rating-body .news-product-rating-top{display:grid; grid-template-columns:180px 1fr; padding-bottom:25px; align-items:center; justify-content:space-between;  position:relative;}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average {min-width:180px; display: flex; flex-wrap:wrap; gap:0px;}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average i{ font-size: 35px; color:#ff9f00; padding-right:5px; padding-top:5px; }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average b { font-size:50px; font-weight:900; line-height:1; }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average em { padding-top: 15px;font-weight: 500; font-size: 25px;opacity: .7; font-style:initial}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average small { grid-column: 1/-1; margin-top: 10px; font-size: 15px; font-weight:500 }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars{ display: grid; gap: 8px; width:100% }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar { display: grid; grid-template-columns: 90px 1fr 40px; gap:0; align-items: center; font-size: 14px; }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar .news-rating-stars{color: #ff9f00; display:flex; gap:3px;}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar .news-rating-stars i{font-size:12px;}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar .news-rating-stars i.star-disabled{color:#b3b4b7}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar .news-rating-track { height: 8px; border-radius: 999px; background: #e9edf2; overflow: hidden; }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar .news-rating-track i { display: block; height: 100%; border-radius: inherit; background: #ff9f00; }
.news-product-rating .news-product-rating-body .news-product-rating-top .news-rating-bars .news-rating-bar b{text-align:left; padding-left:10px; font-weight:500;}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-btn-rating{padding:20px 0 0px 180px; grid-column:1/3; grid-row:2/3}
.news-product-rating .news-product-rating-body .news-product-rating-top .news-btn-rating .news-rating-cta { line-height: 42px; padding: 0 30px; text-align: center; background: var(--color-blue); border-radius: 7px; color: #fff; display: inline-block; font-weight: 500;font-size: 14px; border:none; outline:none}

@media (max-width: 767px) {
    .news-product-rating .news-product-rating-body .news-product-rating-top{grid-template-columns:1fr;}
    .news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average{min-width:100%;}
    .news-product-rating .news-product-rating-body .news-product-rating-top .news-product-average small{flex-basis:100%; margin-top:0;}
}

.news-rating-filter { display: flex; align-items: center; gap: 9px; padding: 18px 0; border-top:1px solid var(--color-border) }
.news-rating-filter>span { margin-right: 5px; font-weight: 700; }
.news-rating-filter button{ box-shadow: 0 0 0 1px var(--color-border); height:32px; border-radius: 18px; padding: 6px 12px; border:none!important; background:none; cursor: pointer; transition:.3s; position:relative; }
.news-rating-filter button:after{font-family: "Font Awesome 5"; content: "\f005";font-weight: 900;font-size: 14px; color: #ff9f00; margin-left: 5px;}
.news-rating-filter button.active {box-shadow: 0 0 0 1px var(--color-blue); color:var(--color-blue); font-weight:500; padding-left:32px; }
.news-rating-filter button.active:before{font-family: "Font Awesome 5";content: "\f00c";font-weight: 500;line-height: 22px;font-size: 12px; text-align: center;background: var(--color2); color: #fff; width: 22px;height: 22px;border-radius: 50%;position: absolute;top: 5px;left: 5px;}

@media (max-width: 767px) {
    .news-rating-filter{padding-top:40px; position:relative;gap:6px; }
    .news-rating-filter>span{position:absolute; top:10px; left:0;}
    .news-rating-filter button{flex:1; padding: 0 6px 0 8px; height:28px; display:flex; align-items:center; justify-content:center; }
    .news-rating-filter button:after{font-size:12px;}
    .news-rating-filter button.active{padding-left:28px}
    .news-rating-filter button.active:before{line-height: 18px;font-size: 10px; width: 18px;height: 18px; font-weight:400}
}


.news-rating-public-list { display: grid; gap: 20px; }
.news-rating-public-list .news-rating-public-item { display: grid; grid-template-columns: 42px 1fr; gap: 10px; }
.news-rating-public-list .news-rating-public-item .news-rating-public-avatar {display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: #e5e7eb; color: #4b5563; font-weight: 700; }
.news-rating-public-list .news-rating-public-item .news-rating-public-name { font-weight: 600; font-size:14px; }
.news-rating-public-list .news-rating-public-item .news-rating-public-stars { display:flex; gap:2px; font-size:12px; color:#ff9f00; padding-top:2px;}
.news-rating-public-list .news-rating-public-item .news-rating-public-stars i.star-disabled{color:#b3b4b7}
.news-rating-public-list .news-rating-public-item .news-rating-public-content {padding-top:10px; }
.news-rating-public-date { margin-top: 4px; color: #657084; font-size: 13px; }
.news-rating-empty { margin: 0; color: #657084; }
.news-rating-more { margin-top: 16px; border: 0; background: none; color: #0866d8; font-weight: 700; cursor: pointer; }

@media(max-width:767px) {
    .news-product-rating-top { grid-template-columns: 1fr; gap: 18px; }
    .news-rating-cta { width: 100%; }
    .news-product-average { width: max-content; }
}
