/* ------------- common ------------- */

.product-reviews-module {
    font-size: 14px;
    color: #00171F;
    font-weight: 400;
    z-index: 9999;
}

.product-reviews-module .product-reviews-overlay {
    position: absolute;
    background-color: white;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9999;
    cursor: progress;
    opacity: 0.5;
}

.product-reviews-module .product-reviews-success {
    text-align: center;
    padding: 20px;
    font-size: 15px;
    font-weight: 400;
}

.product-reviews-module .product-reviews-error {
    color: #FF4243;
    font-size: 12px;
}

.product-reviews-module .product-reviews-error-input {
    border-color: #FF4243 !important;
}

.product-reviews-module .product-reviews-error-input + .product-reviews-error {
    margin-left: 6px;
}

.product-reviews-module .product-reviews-remove {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    background-color: #f15353;
    justify-content: center;
    align-items: center;
}

.product-reviews-module .product-reviews-remove:after {
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M432 80h-82.38l-34-56.75C306.1 8.827 291.4 0 274.6 0H173.4C156.6 0 141 8.827 132.4 23.25L98.38 80H16C7.125 80 0 87.13 0 96v16C0 120.9 7.125 128 16 128H32v320c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V128h16C440.9 128 448 120.9 448 112V96C448 87.13 440.9 80 432 80zM171.9 50.88C172.9 49.13 174.9 48 177 48h94c2.125 0 4.125 1.125 5.125 2.875L293.6 80H154.4L171.9 50.88zM352 464H96c-8.837 0-16-7.163-16-16V128h288v320C368 456.8 360.8 464 352 464zM224 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S208 183.2 208 192v208C208 408.8 215.2 416 224 416zM144 416C152.8 416 160 408.8 160 400V192c0-8.844-7.156-16-16-16S128 183.2 128 192v208C128 408.8 135.2 416 144 416zM304 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S288 183.2 288 192v208C288 408.8 295.2 416 304 416z"/></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 14px 14px;
    content: "";
    display: block;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.product-reviews-module .product-reviews-remove:hover {
    background-color: #bb0808;
}

.product-reviews-module .product-reviews-button {
    background: var(--ex-reviews-main-color);
    border: none !important;
    outline: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 30px;
    height: 40px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: .3s all;
    justify-content: center;
}

.product-reviews-module .product-reviews-button[disabled] {
    cursor: default;
    opacity: 0.5;
}

.product-reviews-module .product-reviews-button:hover {
}

.product-reviews-module .product-reviews-button-light {
    padding: 13px 25px;
    font-size: 14px;
    background-color: white;
    border: 1px solid var(--ex-reviews-main-color);
    color: var(--ex-reviews-text-color);
    white-space: nowrap;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.product-reviews-module .product-reviews-write-reset-button {
    background: transparent !important;
    border: 2px solid var(--ex-reviews-main-color);
    outline: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 30px;
    height: 40px;
    border-radius: 6px;
    color: var(--ex-reviews-text-color);
    font-size: 14px;
    font-weight: 500;
    transition: .3s all;
    justify-content: center;
}

.product-reviews-module .product-reviews-button-light:hover {
    background-color: white;
}

.product-reviews-module .product-reviews-button-text {
    background: #FFFFFF;
    color: #025BAA;
    border-color: #EEEEEE;
    fill: #025BAA;
}

.product-reviews-module .product-reviews-button-text:hover {
    background: #FFFFFF;
    color: #656C7D;
    border-color: #FFFFFF;
    fill: #656C7D;
}

.product-reviews-module .product-reviews-checkbox input[type="checkbox"] {
    margin: 0 10px 0 0;
    background: #fff;
    width: 14px;
    height: 14px;
    position: relative;
}

.product-reviews-module .product-reviews-checkbox input[type="checkbox"]:after {
    display: block;
    width: 17px;
    height: 17px;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17"><rect fill="%23fff" stroke="%23e4e4e4" stroke-miterlimit="10" x=".5" y=".5" width="16" height="16" rx="3.2" ry="3.2"/></svg>');
    position: absolute;
    top: -1px;
    right: -2px;
    background: white;
}


.product-reviews-module .product-reviews-checkbox input[type="checkbox"]:checked:after {
    display: block;
    width: 17px;
    height: 17px;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17"><rect stroke="%23000" stroke-miterlimit="10" x=".5" y=".5" width="16" height="16" rx="3.2" ry="3.2"/><path fill="none" stroke="%23fff" stroke-linecap="round" stroke-width="2px" d="M4.5,8.9l1.82,2.12c.29,.34,.79,.38,1.13,.09,.02-.02,.04-.04,.06-.06l4.99-5.34"/></svg>');
    position: absolute;
    top: -1px;
    right: -2px;
    background: white;
}

.product-reviews-module .product-reviews-checkbox span {
    color: gray;
    font-size: 14px;
}

.product-reviews-checkbox {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.product-reviews-checkbox-wrapper input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.product-reviews-checkbox-wrapper .cbx {
    margin: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

.product-reviews-checkbox-wrapper .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.product-reviews-checkbox-wrapper .cbx span:first-child {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    transform: scale(1);
    vertical-align: middle;
    border: 1px solid var(--ex-reviews-main-color);
    transition: all 0.2s ease;
}

.product-reviews-checkbox-wrapper .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.product-reviews-checkbox-wrapper .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: var(--ex-reviews-main-color);
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
}

.product-reviews-checkbox-wrapper .cbx span:last-child {
    padding-left: 8px;
}

.product-reviews-checkbox-wrapper .cbx:hover span:first-child {
    border-color: var(--ex-reviews-main-color);
}

.product-reviews-checkbox-wrapper .inp-cbx:checked + .cbx span:first-child {
    background: var(--ex-reviews-main-color);
    border-color: var(--ex-reviews-main-color);
    animation: wave-46 0.4s ease;
}

.product-reviews-checkbox-wrapper .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.product-reviews-checkbox-wrapper .inp-cbx:checked + .cbx span:first-child:before {
    transform: scale(3.5);
    opacity: 0;
    transition: all 0.6s ease;
}

@keyframes wave-46 {
    50% {
        transform: scale(0.9);
    }
}


.product-reviews-module .product-reviews-drag {
    overflow-x: auto;
    white-space: nowrap;
    transition: all .2s;
    will-change: transform;
    user-select: none;
    cursor: pointer;
    padding-bottom: 5px;
    text-align: left;
    margin-bottom: 10px;
}

.product-reviews-module .product-reviews-drag > div {
    display: inline-block;
}

.product-reviews-module .product-reviews-drag::-webkit-scrollbar {
    height: 4px;
}

.product-reviews-module .product-reviews-drag::-webkit-scrollbar-track {
    background: #eaeaea;
    border-radius: 20px;
}

.product-reviews-module .product-reviews-drag::-webkit-scrollbar-thumb {
    background-color: #a5a5a5;
    border-radius: 20px;
    border: 0;
}

.product-reviews-module .product-reviews-drag::-webkit-scrollbar-thumb:hover {
    background: #7b7b7b;
}


.product-reviews-module .product-reviews-media {
    margin: 0;
    background-color: white;
    margin-top: 12px;
    padding: 0;
    border-radius: 6px;
}

.product-reviews-module .product-reviews-media-title {
    padding: 10px 0;
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 0 !important;
    font-weight: 500;
    color: #272323;
}

.product-reviews-module .product-reviews-media-thumbnail {
    position: relative;
    border: none;
    overflow: hidden;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
    height: 64px;
    width: 64px;
    border-radius: 6px;
}

.product-reviews-module .product-reviews-media-thumbnail .product-reviews-media-image-placeholder {
    height: 100%;
}

.product-reviews-module .product-reviews-media-thumbnail-video .product-reviews-media-video-placeholder.ex-add-video {}
.product-reviews-module .product-reviews-media-thumbnail-video .product-reviews-media-video-placeholder.ex-add-video svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 20px;
    fill: #808080;
    stroke: #808080;
    background: #f4f4f4;
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
}

.product-reviews-module .product-reviews-media-thumbnail .product-reviews-media-image-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 20px;
    fill: #808080;
    stroke: #808080;
    background: #f4f4f4;
}

.product-reviews-module .product-reviews-media-thumbnail .product-reviews-media-image-placeholder svg:hover, .product-reviews-module .product-reviews-media-thumbnail-video .product-reviews-media-video-placeholder.ex-add-video svg:hover {
    fill: var(--ex-reviews-main-color);
    stroke: var(--ex-reviews-main-color);
}

.product-reviews-module .product-reviews-media-thumbnail-active {
    box-shadow: 0px 1px 6px 2px black;
}

.product-reviews-module .product-reviews-media-thumbnail-video {
    width: 120px;
}

.product-reviews-module .product-reviews-media-thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.product-reviews-module .product-reviews-media-thumbnail .product-reviews-image-crop {
    position: absolute;
    max-width: 500px !important;
    top: -40%;
    left: -40%;
    height: 126px !important;
    width: 126px !important;
}

.product-reviews-module .product-reviews-media-thumbnail:hover img,
.product-reviews-module .product-reviews-media-thumbnail:hover svg,
.product-reviews-module .product-reviews-media-video-placeholder:hover svg {
    transform: scale(1.1);
    transition: all .1s ease-in-out;
}

.product-reviews-module .product-reviews-media-thumbnail img,
.product-reviews-module .product-reviews-media-thumbnail svg,
.product-reviews-module .product-reviews-media-video-placeholder svg {
    transition: all .1s ease-in-out;
}

.product-reviews-module .product-reviews-media-video-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.product-reviews-module .product-reviews-media-video-placeholder svg {
    width: 34px;
    height: 34px;
    position: absolute;
    left: 50%;
    margin-left: -17px;
    top: 50%;
    margin-top: -17px;
    transition: all .2s ease-in-out;
    color: white;
}

.product-reviews-module .product-reviews-media-video-placeholder video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.product-reviews-module .product-reviews-media-youtube-icon {
    position: absolute;
    left: calc(50% - 15px);
    height: 100%;
    width: 30px;
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}


/* ------------- modal ------------- */
.product-reviews-module .modal-dialog {
    max-width: 500px;
}

.product-reviews-module .modal-content {
    background-color: white;
    border-color: #d3d3d3;
    padding: 0;
    border-radius: 8px;
}

.product-reviews-module .modal-header {
    background: white;
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ebebeb;
}

.product-reviews-module .modal-header.with-title {
    background: white !important;
}

.product-reviews-module .modal-title {
    font-size: 20px;
    color: var(--ex-reviews-text-color);
    font-weight: 600;
}

.product-reviews-module .modal-close {
    box-sizing: content-box;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    color: black;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat rgba(0, 0, 0, 0);
    border-radius: 0;
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: transform .3s ease-out;
    transition: transform .3s ease-out, -webkit-transform .3s ease-out;
    opacity: 1;
    outline: none !important;
    border: none !important;
    cursor: pointer;
}

.product-reviews-module .modal-close:after {
    content: "";
    display: block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M18 6L6.00081 17.9992M17.9992 18L6 6.00085" stroke="%2300171F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.product-reviews-module .modal-close:hover {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.product-reviews-module .with-title .modal-close {
}

.product-reviews-module .modal-body {
    padding: 0;
}

.product-reviews-module.product-reviews-modal-notice-success .modal-body,
.product-reviews-module.product-reviews-modal-notice-error .modal-body {
    text-align: center;
    padding: 24px;
}