/* ROOT */ :root { --awr-color: #ff9f00; --awr-primary-color: #1578dc } @font-face { font-family: 'uxp-awr-icon'; src: url('../fonts/uxp-awr.eot?18550935'); src: url('../fonts/uxp-awr.eot?18550935#iefix') format('embedded-opentype'), url('../fonts/uxp-awr.woff2?18550935') format('woff2'), url('../fonts/uxp-awr.woff?18550935') format('woff'), url('../fonts/uxp-awr.ttf?18550935') format('truetype'), url('../fonts/uxp-awr.svg?18550935#uxp-awr') format('svg'); font-weight: normal; font-style: normal; } /* ICON */ .icouxp { display: inline-block; font-family: 'uxp-awr-icon' !important; font-style: normal !important; font-variant: normal !important; font-weight: 400 !important; line-height: 1.2; } .icouxp-verified:before { content: '\e806'; } .icouxp-camera:before { content: '\e814'; } .icouxp-heart:before { content: '\e805'; } /* Title */ .woocommerce #reviews h3.uxp-comment-title { margin-bottom: 15px } /* Average */ .uxp-comments-overview { display: flex; flex-flow: wrap row; column-gap: 10px; margin-bottom: 15px } .uxp-comments-overview .uxp-comments__button { width: 100% } .uxp-comments-average, .uxp-comments-metebar { flex: 1 1 45%; } .uxp-comments-average { font-size: 20px; font-weight: bold; line-height: 1; text-align: center; margin-bottom: 5px; display: flex; flex-flow: wrap column; align-items: center; justify-content: center; } .uxp-comments-average__score { font-size: 50px; } .uxp-comments-average__customer { font-size: 16px; font-weight: 400; } .uxp-comments-average__customer p { margin-bottom: 5px; margin-top: 2px; } .uxp-comments-average__customer p:last-child { color: #777 } .uxp-comments-average .uxp-comments__button { width: 100% } .uxp-comments__star { top: -5px; position: relative; margin-right: 5px; } .uxp-comments__star:before { color: var(--awr-color); content: '\e801'; font-family: uxp-awr-icon !important; font-weight: 400 !important; } /* -- metebar */ .uxp-comments-metebar__num { flex: 1 1 15px; font-size: 16px; position: relative; top: 1px; } .uxp-comments-metebar__num:after { color: var(--awr-color); content: '\e801'; font-family: uxp-awr-icon !important; font-weight: 400 !important; font-size: 12px; position: relative; left: 4px; top: -2px; } .uxp-comments-metebar__item { display: flex; flex-flow: wrap row; width: 100%; align-items: center; line-height: 1.6; } .uxp-comments-metebar__status { flex: 1 1 calc(100% - 95px); background: #eee; height: 11px; border: 1px solid #eee; position: relative; overflow: hidden; border-radius: 10px; } .uxp-comments-metebar__status span { content: ''; position: absolute; top: 0; left: 0; background: #64b2fa; height: 100%; } .uxp-comments-metebar__percent { font-size: 16px; font-weight: bold; margin-left: 5px; flex: 1 1 30px; } /* -- Gallery */ .uxp-comments-photo { width: 100%; margin: 5px 0; } .uxp-comments-photo__list { display: flex; flex-flow: nowrap row; justify-content: space-between; margin-bottom: 0; gap: 5px; } .uxp-comments-photo__list { margin: 0; padding: 0 } .uxp-comments-photo__item { list-style: none; flex-basis: 24%; max-width: 24%; margin: 0 !important; position: relative; overflow: hidden; } .uxp-comments-photo--cover { position: relative; padding-bottom: 100%; overflow: hidden; border-radius: 10px; } .uxp-comments-photo--cover img { position: absolute; object-fit: cover; width: 100%; height: 100%; } .uxp-comments-photo__item.note:before { content: ""; background: rgba(0,0,0,0.6); width: 100%; display: block; height: 100%; position: absolute; top: 0; z-index: 999; border-radius: 10px; } .uxp-comments-photo__item p { position: absolute; top: 50%; left: 50%; margin: 0; font-size: 12px; color: #fff; line-height: 1.4; transform: translate(-50%,-50%); z-index: 9999; width: 65%; text-align: center; } /* Gallery Slider */ .review-thumbnail-gallery img { width: 120px; margin-right: 10px; cursor: pointer; border: 1px solid #ccc; border-radius: 6px; } .uxp-comments-gallery__popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000000cc; display: none; justify-content: center; align-items: center; z-index: 9999; /* padding: 20px; */ box-sizing: border-box; } .uxp-comments-gallery__content { position: relative; background: #fff; width: 100%; max-width: 900px; max-height: 100%; /* Chiều cao tối đa */ overflow: hidden; /* Cuộn nếu dài quá */ padding: 0; box-sizing: border-box; top: 50%; left: 50%; transform: translate(-50%, -50%); } .slider-close { position: absolute; top: 5px; right: 10px; font-size: 28px; border: none; cursor: pointer; z-index: 999; border-radius: 50%; background: #ccc; width: 45px; height: 45px; border: 1px solid #777 } .uxp-comments-gallery__review { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; /* Cho responsive nếu cần */ flex-direction: column; } .uxp-comments-gallery__thumb { width: 100%; height: 70vh; display: flex; justify-content: center; background: #d4d4d4 } .uxp-comments-gallery__thumb img { width: 100%; border-radius: 6px; height: auto; max-height: 100vh; /* Không vượt quá màn hình */ object-fit: contain; } .uxp-comments-gallery__comment.comment-text { width: 100%; font-family: Arial, sans-serif; font-size: 14px; box-sizing: border-box; padding: 0 20px; } .uxp-review-item__reviews { display: flex; margin-bottom: 10px; } .uxp-comments-gallery__review .uxp-review-item__description { height: calc(30vh - 110px); overflow-y: auto; } /* Owl nav positioning */ .owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev { height: 45px; width: 45px; position: absolute; top: 35%; transform: translateY(-50%); left: 0; display: none; } .owl-carousel .owl-nav button.owl-next { right: 0; left: auto; } .uxp-review-item__meta { margin: 0 0 10px; font-size: 18px; } /* Review Button */ .uxp-comments__button { padding: 10px 10px; border-radius: 5px; text-align: center; display: inline-block; font-size: 16px; box-sizing: border-box; background: var(--awr-primary-color); color: #fff; text-decoration: none; } .uxp-comments__button:hover { text-decoration: underline } /* Comment */ .woocommerce #reviews #comments ol.commentlist li { margin: 0; list-style: none; } .woocommerce #reviews #comments ol.commentlist > li:not(:first-child) { padding: 20px 0; border-top: 1px solid #eaeaea } .woocommerce #reviews #comments ol.commentlist > li:first-child { padding-bottom: 20px } .woocommerce #reviews #comments ol.commentlist li img.avatar { display: none; } .woocommerce #reviews #comments ol.commentlist, .woocommerce #reviews #comments ol.commentlist li .comment-text, .woocommerce #reviews #comments ol.commentlist li .comment-text .uxp-review-item__photos { border: 0; padding: 0; margin: 0; } .woocommerce #reviews #comments ol.commentlist li .comment-text p { margin: 0 0 10px; font-size: 16px; } .uxp-review-item__verified { color: #22b12a; font-size: 12px; margin-left: 10px; } .uxp-review-item__verified i { margin-right: 5px } .uxp-review-item__verified--admin { background: #ffd431; border: 1px solid #eee; padding: 3px 5px; margin-left: 5px; color: #000; border-radius: 5px; font-weight: bold; } /* -- Rating star */ .woocommerce .star-rating { font-size: 14px; } .wc-block-grid__product-rating .star-rating, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars { font-size: 18px; } .star-rating:before, .star-rating span:before, .woocommerce-page .star-rating:before { color: var(--awr-color) } .star-rating span.rating { display: none; } .woocommerce-review-link .star-rating { position: relative; display: inline-block; font-size: 20px; line-height: 1; } .star-rating:before, .woocommerce-page .star-rating:before, .woocommerce-review-link .star-rating:before, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars:before { content: '\e800\e800\e800\e800\e800'; /* full star */ font-family: uxp-awr-icon; font-weight: 900; display: block; color: #ccc; } .woocommerce-review-link .star-rating:before, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars:before { letter-spacing: 4px; } .uxp-review-item__rating .star-rating:before { letter-spacing: 3.5px; } .woocommerce-review-link .star-rating > span { position: absolute; top: 0; left: 0; overflow: hidden; height: 100%; color: #f5a623; /* màu sao đầy */ } .wc-block-grid__product-rating .wc-block-grid__product-rating__stars span { color: #f5a623; } .star-rating span:before, .woocommerce-review-link .star-rating > span:before, .woocommerce .star-rating span:before, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars span:before { content: '\e801\e801\e801\e801\e801'; font-family: uxp-awr-icon; font-weight: 900; letter-spacing: 2px; display: block; } .woocommerce .star-rating { width: 90px } .wc-block-grid__product-rating .star-rating, .wc-block-grid__product-rating .wc-block-grid__product-rating__stars { width: 110px; } .woocommerce .woocommerce-review-link .star-rating { width: 120px; } .star-rating span:before { letter-spacing: 2.5px; } .product-small .star-rating--inline { height: 16px; } .product-small .star-rating span { padding-top: 16px; } .uxp-review-item__reviews { display: flex; flex-flow: nowrap row; align-items: center; } .uxp-review-item__recommend { margin-left: 10px; border-left: 1px solid #eaeaea; line-height: 1; padding-left: 10px; font-size: 14px; } .uxp-review-item__recommend i { color: red; margin-right: 5px } .uxp-review-item__description { margin-bottom: 10px } .uxp-review-item__description { margin: 5px 0; line-height: 1.5; font-size: 16px; } /* -- Photo comment */ .uxp-review-item__photos { margin: 0; display: flex; flex-flow: wrap row; gap: 5px } .uxp-review-item__photos li { list-style: none; margin-left: 0 !important; padding: 0; position: relative; padding: 0 0 50px !important; flex-basis: 50px; max-width: 50px; } .uxp-review-item__photos img { position: absolute; object-fit: cover; width: 100%; height: 100%; cursor: pointer; } /* View + Review Button Footer */ .uxp-nav { display: flex; max-width: 500px; margin: 0 auto; justify-content: center; align-items: center; gap: 10px; } .uxp-nav__item { flex: 1 0 auto; cursor: pointer; text-align: center; } #load-more-reviews, .uxp-nav__item.uxp-comments__submit { display: block; border: 1px solid #777; padding: 10px 10px; border-radius: 5px; text-decoration: none; } .uxp-nav__item.uxp-comments__submit { border-color: var(--awr-primary-color); background: var(--awr-primary-color); color: #fff } .uxp-nav__item:hover { text-decoration: underline; } /* Comment Form */ #commentform, #review_form_wrapper { display: none; } #review_form_wrapper { visibility: hidden; opacity: 0; transition: opacity 1s; background: rgba(0, 0, 0, 0.7) !important; pointer-events: inherit !important; padding: 15px 15px; z-index: 9999; } #review_form_wrapper.overlay { position: fixed !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important; visibility: visible; opacity: 1; } #review_form_wrapper.overlay #review_form { max-height: 100%; } #review_form { margin: 0 auto; background: #fff; border-radius: 15px; max-width: 750px; position: relative; transition: all 5s ease-in-out; z-index: 999; transform: translateY(-50%); top: 50%; } #commentform { display: flex; flex-flow: wrap row; margin-bottom: 0; max-width: 780px; margin: 0 auto; padding: 15px 15px; row-gap: 0; column-gap: 15px; justify-content: center; } #commentform p, #submit { width: 100%; } #commentform p.comment-notes, #commentform p.comment-form-comment label, #commentform p.comment-form-author label, #commentform p.comment-form-email label, #commentform .comment-form-phone label { clip: rect(1px,1px,1px,1px); word-wrap: normal !important; border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; overflow-wrap: normal !important; padding: 0; position: absolute !important; width: 1px; } #commentform .hide { display: none !important; } /* -- Comment Form: Image */ .uxp-comment-form__info { min-width: 300px; text-align: center; } .uxp-comment-form__image { max-width: 120px; margin: 0 auto; } .comment-reply-title, .comment-form-rating { display: none; } #commentform .uxp-comment-form__title.hide { display: block !important } /* -- Comment Form: Star */ .uxp-comment-form__stars { display: flex; flex-flow: wrap row; max-width: 320px; margin: 15px auto; } .uxp-comment-form__star:before { color: var(--awr-color); content: '\e800'; font-family: uxp-awr-icon !important; font-weight: 400 !important; font-size: 30px; line-height: 1; } .uxp-comment-form__star.active:before { content: '\e801' } .uxp-comment-form__star { cursor: pointer; font-size: 14px; display: flex; flex-flow: wrap column; align-items: center; flex: 1; color: #777 } .uxp-comment-form__star.selected { color: var(--awr-color); font-weight: bold; } /* Comment Form: Close */ #review_form .close { position: absolute; top: 5px; right: 5px; transition: all 200ms; font-size: 40px; font-weight: bold; text-decoration: none; color: #333; z-index: 9999; height: 40px; width: 40px; text-align: center; line-height: 40px; border-radius: 50%; } /* -- Commment Form: Gallery Upload */ .upload-gallery { color: #1578dc; } .upload-gallery i { font-size: 16px; margin-right: 5px; } .upload-gallery span small { color: black; } .comment-form-gallery { display: flex; flex-flow: wrap row; width: 100%; } .comment-form-gallery__item { flex: 1; position: relative; display: inline-block; margin-right: 10px; margin-bottom: 10px; max-width: 50px; border: 1px solid #ccc; } .comment-form-gallery__item img { max-height: 60px; } #review_form .comment-form-gallery__item span.close { cursor: pointer; background: #d60202; display: inline-block; width: 20px; height: 20px; border-radius: 99px; color: #fff !important; line-height: 20px; text-align: center; font-size: 20px !important; right: -5px !important; top: -5px !important; } /* -- Comment Form: input */ .comment-form-capture, .comment-form-recommend { font-size: 16px } #commentform p.comment-form-comment textarea { min-height: 100px; padding: 10px; } #commentform p.comment-form-recommend { display: inline-flex; align-items: center; } #commentform p.comment-form-recommend label { order: 2; margin-bottom: 0 } #commentform p.comment-form-recommend input#recommend { order: 1; margin-bottom: 0 } #commentform input { box-sizing: border-box; } #commentform input:not([type="checkbox"]) { min-height: 40px; width: 100%; padding: 0 10px } #commentform input, #commentform textarea { border: 1px solid #ccc } #commentform p.comment-form-cookies-consent { display: none; } /* -- Comment Form: Submit */ #commentform #submit { min-height: 50px; margin: 8px 0 0; background: #1578dc; border: 1px solid #1578dc; } #commentform #submit[disabled="disabled"] { opacity: 0.5; cursor: not-allowed; } @media only screen and (max-width: 350px) { .uxp-comments-average, .uxp-comments-metebar { flex: 1 1 100%; } } @media only screen and (min-width: 550px) { .uxp-comments-average { width: 40%; } .uxp-comments-metebar { width: 60%; padding-left: 0; } .uxp-comments-photo { width: 100%; } } @media only screen and (min-width: 768px) { /* -- Gallery */ .uxp-comments-gallery__content { padding: 20px; border-radius: 8px; } .uxp-comments-gallery__popup { padding: 20px; } .uxp-comments-gallery__review { flex-direction: row; } .uxp-comments-gallery__thumb { max-width: 50%; background: #fff; height: auto; } .uxp-comments-gallery__comment.comment-text { padding: 0; flex: 1; } .uxp-review-item__description { height: 100%; overflow-y: auto; } .owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev { top: 50%; left: -20px; display: block; } .owl-carousel .owl-nav button.owl-next { right: -20px; left: auto; } } @media only screen and (min-width: 850px) { .uxp-comments-photo__list { gap: 4px; } .uxp-comments-photo { margin: 10px 0; } /* -- Comment Form: input */ #commentform p.comment-form-author, #commentform p.comment-form-phone, #commentform p.comment-form-recommend, #commentform p.comment-form-share, #commentform .comment-form-capture { flex: 1 1 330px; } #commentform .comment-form-capture { text-align: right; } } @media only screen and (min-width: 1024px) { .uxp-comments-overview { flex-flow: nowrap; } .uxp-comments-average { width: 230px; } .uxp-comments-average, .uxp-comments-metebar, .uxp-comments-photo { flex: 0 auto; } /* -- Metebar */ .uxp-comments-metebar__item { line-height: 20px; } .uxp-comments-metebar { width: 35%; } .uxp-comments-metebar.no-image { width: calc(100% - 230px); } /* -- Photo */ .uxp-comments-photo { width: 45%; margin: 0 } /* Review Button */ .uxp-comments__button { display: none; } } @media only screen and (min-width: 1200px) { .uxp-comments-average { width: 20%; } /* -- Metebar */ .uxp-comments-metebar__item { line-height: 26px; } .uxp-comments-metebar.no-image { width: calc(100% - 280px); } }