/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_BetterProductReviews
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

#mp-review-summary .block-content, #mp-review-form, #mp-review-list {
    margin-top: 10px;
    border-radius: 0.125rem;
    --tw-bg-opacity: 1;
    background-color: #fff;
    padding: 1rem;
    --tw-shadow: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
}

#mp-review-summary .block-title h2 {
    font-weight: 300;
    color: #333;
    line-height: 1.1;
    font-size: 1.8rem;
}

#mp-review-summary .mp-review-details .stars-process-active {
    background-color: #f6e05e;
}

#mp-review-summary .rating-summary svg {
    width: 38px;
    height: 38px;
}

.mp-review-statistic span.hidden {
    display: none;
}

#mp-review-write-review-button {
    background: #1D4ED8;
    border: 1px solid #1D4ED8;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.0rem;
    box-sizing: border-box;
    vertical-align: middle;
}

.summary-points .summary-points-text {
    font-size: 3.5rem;
}

.recommend-product span {
    font-size: 1.6rem;
    width: 75px;
}

#mp-review-summary .mp-review-details .stars-title {
    width: 55px;
}

#mp-review-list #mp-review-sort {
    line-height: 1.2rem;
    width: 135px;
    padding: 6px 10px;
}

#mp-review-list .mp-review-helpful button {
    color: #000;
    font-size: 1.0rem;
    padding: 3px 30px;
    border-radius: 3px;
}

/*css form review*/
.review-add .block-title {
    display: none;
}

.fieldset .review-legend.legend strong {
    display: block;
}

.legend.review-legend {
    border: none;
    margin-bottom: 1.5rem;
}

.review-field-ratings .label {
    margin-bottom: 0;
}

.review-field-ratings .mt-4 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.review-field-ratings, .review-field-nickname, .review-field-summary, .review-field-text {
    margin-bottom: 20px;
}

.review-field-recommend label {
    display: inline-block;
    margin-left: 5px;
    font-weight: 300;
}

.review-form-actions {
    border-top: 0;
    display: block;
}

.review-field-term a {
    color: #1D4ED8;
}

.review-field-term .label {
    display: inline-block;
    margin-left: 9px;
}

.review-form label.label {
    font-size: 16px ;
}

#nickname_field, #summary_field, #review_field {
    width: 100%;
}

:disabled {
    opacity: .5;
    pointer-events: none;
}

.field.required legend.label:after {
    position: relative;
    top: -0.25rem;
    font-size: .75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: #DC2626;
    content: "";
    --tw-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12m5.196-9L6.804 15m0-6 10.392 6'/%3E%3C/svg%3E");
    --tw-icon-size: 1em;
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentcolor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: var(--tw-icon);
    mask-image: var(--tw-icon);
}

div.mage-error {
    color: #f86c6b;
    font-size: 16px ;
    margin-top: 7px;
}

input.mage-error, select.mage-error, textarea.mage-error {
    border-color: #ed8380;
}

@media only screen and (min-width: 640px) {
    .review-form {
        max-width: 550px;
    }
}

#mp-review-products .mp-review-product-content {
    overflow: hidden;
}

#mp-review-products .review-carousel-container {
    display: flex;
    position: relative;
    gap: 0;
    margin: 0 auto;
}

.review-product-item {
    flex: 0 0 20%;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center;
    transition: transform 0.5s ease;
}

.review-product-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.mp-review-product-link a {
    padding: 9px 15px;
    background: #1D4ED8;
    color: #fff;
    border-radius: 3px;
}

#mp-review-products .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00000080;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 100;
}

#mp-review-products .carousel-nav.left {
    left: 0;
}

#mp-review-products .carousel-nav.right {
    right: 0;
}

#mp-review-products button.carousel-nav[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.mp-review-load-more .load-more {
    background: #1D4ED8;
    border: 1px solid #1D4ED8;
    color: #fff;
    padding: 7px 15px;
    cursor: pointer;
}

.mbpr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000CC;
    z-index: 9998;
}

.mbpr-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.mbpr-image-popup .mbpr-content {
    height: 90%;
}

.mbpr-image-popup .mbpr-content img {
    max-width: 100%;
    height: 100%;
    display: block;
}

.mbpr-video-popup .mbpr-content {
    background: #fff;
    padding: 20px;
}