@font-face {
    font-family: 'star';
    src: url('../fonts/star.eot');
    src: url('../fonts/star.eot?#iefix') format('embedded-opentype'),
    url('../fonts/star.woff') format('woff'),
    url('../fonts/star.ttf') format('truetype'),
    url('../fonts/star.svg#star') format('svg');
    font-weight: normal;
    font-style: normal;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @font-face {
        font-family: 'star';
        src: url("../fonts/star.svg") format("svg");
    }
}

.woocommerce-photo-reviews-form-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box !important;
}

.woocommerce-photo-reviews-form-container * {
    box-sizing: border-box !important;
}

.woocommerce-photo-reviews-form {
    max-width: 600px;
}

.woocommerce-photo-reviews-form-product {
    max-width: 250px;
}

.comment-form-rating label {
    display: block;
}

.woocommerce-photo-reviews-form-meta-reviews .woocommerce-product-rating {
    line-height: 1em;
    margin: 5px 0;
}

/*custom fields*/
.wcpr-custom-field {
    margin: 8px 0;
}

.wcpr-custom-field .wcpr-custom-field-name {
    font-size: 16px;
}

.wcpr-custom-field .wcpr-custom-field-input {
    display: flex;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
}

.wcpr-custom-field .wcpr-custom-field-input > div {
    width: 48%;
}

.wcpr-custom-field .wcpr-custom-field-input > div input,
.wcpr-custom-field-input > div select {
    width: 100%;
    padding: 5px;
    margin: 0;
    font-size: 14px;
}

/*star*/
.woocommerce-photo-reviews-form p.stars a {
    position: relative;
    height: 1em;
    width: 1em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
    border: none;
    margin: 0;
    font-size: 14px;
}

.woocommerce-photo-reviews-form p.stars a:after {
    position: static;
}

.woocommerce-photo-reviews-form p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: "star";
    content: "\53" !important;
    text-indent: 0;
    color: #ffb600;
    opacity: .3;
}

.woocommerce-photo-reviews-form p.stars a:hover ~ a::before {
    opacity: .3;
}

.woocommerce-photo-reviews-form p.stars:hover a::before {
    opacity: 1;
}

.woocommerce-photo-reviews-form p.stars.selected a.active::before {
    opacity: 1;
}

.woocommerce-photo-reviews-form p.stars.selected a.active ~ a::before {
    opacity: .3;
}

.woocommerce-photo-reviews-form p.stars.selected a:not(.active)::before {
    opacity: 1;
}

/*rating*/
.woocommerce-photo-reviews-form-product .star-rating span {
    font-family: "star" !important;
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.woocommerce-photo-reviews-form-product .star-rating {
    margin: 0 0 5px;
    text-align: left;
    display: block;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1em;
    font-family: "star" !important;
    float: left;
    padding-top: 1.5em;
    font-size: 14px;
    width: 5.5em;
    letter-spacing: 1px;
}

.woocommerce-photo-reviews-form-product .star-rating:before {
    color: #ffb600;
    content: "\53\53\53\53\53";
    opacity: .3;
    float: left;
    top: 0;
    left: 0;
    position: absolute;

}

.woocommerce-photo-reviews-form-product .star-rating span:before {
    backface-visibility: hidden;
    color: #ffb600;
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
}

.woocommerce-photo-reviews-form-product .star-rating span {
    height: 22px;
}

.woocommerce-photo-reviews-form-product .star-rating:before,
.woocommerce-photo-reviews-form-product .star-rating span:before {
    color: #ffb600;
}

.woocommerce-photo-reviews-form-product .star-rating:before {
    opacity: 0.3 !important;
}

.rtl .woocommerce-photo-reviews-form-product .star-rating {
    float: right;
}

.woocommerce-photo-reviews-form-meta-price {
    clear: both;
}

/*custom fields in review*/
span.wcpr-review-custom-field-value {
    font-weight: 500;
}

span.wcpr-review-custom-field-name {
    font-weight: 300;
}

@media screen and (max-width: 768px) {
    .woocommerce-photo-reviews-form-container {
        flex-wrap: wrap;
    }
}
