/*-------------------------
	Leave a Review Modal
--------------------------*/
#jd-reviews-leave-review-modal,
#jd-reviews-login-to-review-modal {
    z-index: 999999999;
}
.modal-backdrop {
    z-index: 99999999 !important; /* override other modal backdrop styles */
}
#jd-reviews-leave-review-modal .modal-header {
    border-bottom-color: #c7c7c7;
}
#jd-reviews-leave-review-modal .modal-header h3,
#jd-reviews-login-to-review-modal .modal-header h3 {
    font-size: 20px;
    margin: 0;
    padding: 0;
}
#jd-reviews-leave-review-modal .modal-body {
    padding: 0;
}
#jd-reviews-leave-review-modal .jd-reviews-review-login-alert {
    border-radius: 0;
    margin: 0;
}
#jd-reviews-leave-review-modal .jd-reviews-review-login-alert > div {
    margin: 0 auto;
    max-width: 600px;
    padding: 0 20px;
}
#jd-reviews-leave-review-modal .jd-reviews-review-login-alert .btn-secondary {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 0 5px;
    padding: 2px 8px;
} 
#jd-reviews-leave-review-modal .modal-body h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 auto;
    max-width: 600px;
    padding: 0 0 10px;
}

/* Modal Trigger */
#jd-reviews-trigger-leave-review-modal {
    display: none;
}

/* Login to Review Modal */
#jd-reviews-login-to-review-modal .modal-body {
    padding: 20px;
}
#jd-reviews-login-to-review-modal .modal-body h4 {
    font-size: 24px;
    margin-bottom: 0;
    padding-bottom: 10px;
    text-align: center;
}
#jd-reviews-login-to-review-modal .modal-body p {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 0;
    text-align: center;
}
#jd-reviews-login-to-review-modal .modal-body p:first-of-type {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 6px;
    padding: 0;
}
#jd-reviews-login-to-review-modal .modal-body p > span {
    font-weight: bold;
}

/* Leave Review - Product Callout */
.jd-reviews-review-product-callout {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin: 0 auto 10px;
    max-width: 600px;
}
.jd-reviews-review-product-callout > img {
    border-radius: 10px;
    max-width: 80px;
}
.jd-reviews-review-product-callout > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}
.jd-reviews-review-product-callout h3 {
    font-size: 18px;
    margin: 0;
    padding: 0;
}
.jd-reviews-item-purchased-date {
    background-color: #0082ca!important;
    border-radius: 50rem;
    color: #fff;
    display: inline-block;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    margin-top: 3px;
    max-width: 224px;
    padding: .35em .65em;
    text-align: center;
    text-transform: uppercase;
    vertical-align: baseline;
    white-space: nowrap;
}

/* Leave a Review Form */
#jd-reviews-leave-review-form {
    margin: 0 auto;
    max-width: 600px;
    padding: 20px;
}
#jd-reviews-leave-review-form label {
    font-weight: 600;
}
#jd-reviews-leave-review-form input,
#jd-reviews-leave-review-form textarea {
    border: 1px solid #dbdfe6;
    border-radius: 6px!important;
    color: #565656;
    font-size: 16px;
    padding: 0.375rem 0.75rem !important;
}
#jd-reviews-leave-review-form #jd-reviews-review-author-input {
    border-end-start-radius: 0 !important;
    border-start-start-radius: 0 !important;
}
#jd-reviews-leave-review-form .mb-3:last-child {
    margin-bottom: 0 !important;
}
#jd-reviews-leave-review-form .input-group .form-text {
    display: block;
    width: 100%;
}
    /* Form Validation Styles */
#jd-reviews-leave-review-form input.is-invalid,
#jd-reviews-leave-review-form textarea.is-invalid {
    animation: shake-fields 0.75s ease;
    border-color: #e55353;
    padding-right: 32px !important;
}
#jd-reviews-leave-review-form input.is-valid,
#jd-reviews-leave-review-form textarea.is-valid {
    border-color: #1b9e3e;
    padding-right: 32px !important;
}
#jd-reviews-leave-review-form .input-group .is-invalid ~ .form-text {
    display: none;
}

/* Star Rating - Review Component */
.jd-reviews-star-rating-component > a {
    color: #FFD700;
    display: inline-block;
    font-size: 28px;
    height: 1em;
    line-height: 1em;
    margin-right: 1px;
    position: relative;
    text-decoration: none;
    text-indent: -999em;
    width: 1em;
}
.jd-reviews-star-rating-component > a:before {
    content: "\e021";
    display: block;
    font-family: 'WooCommerce';
    height: 1em;
    left: 0;
    line-height: 1;
    position: absolute;
    text-indent: 0;
    top: 0;
    width: 1em;
}
.jd-reviews-star-rating-component.jdr-selected > a:before {
    content: "\e020";
}
.jd-reviews-star-rating-component.jdr-selected > a.active ~ a:before {
    content: "\e021";
}
.jd-reviews-star-rating-component > a:has(~ a:hover):before,
.jd-reviews-star-rating-component > a:hover:before {
    content: "\e020";
}

/* Numeric Rating - Review Component */
.jd-reviews-numeric-rating-component {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    row-gap: 20px;
}
.jd-reviews-numeric-rating-component > a {
    align-items: center;
    border-radius: 6px;
    border: 2px solid #0082CA;
    box-shadow: 1px 2px 3px rgba(0,0,0,.2);
    color: #0082ca;
    display: flex;
    font-size: 24px;
    height: 2em;
    justify-content: center;
    line-height: 1;
    margin: 0 .7%;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-indent: -999em;
    width: 2em;
}
.jd-reviews-numeric-rating-component > a:before {
    align-items: center;
    content: attr(data-number);
    display: flex;
    font-size: .92em;
    font-weight: 500;
    height: 2em;
    justify-content: center;
    left: 0;
    line-height: 1;
    position: absolute;
    text-indent: 0;
    top: 0;
    width: 2em;
}
.jd-reviews-numeric-rating-component > a:hover {
    background-color: rgba(0, 130, 202, .75);
    color: #fff;
}
.jd-reviews-numeric-rating-component > a.active {
    background-color: rgba(0, 130, 202, 1);
    color: #fff;
}
.jd-reviews-numeric-rating-component.jdr-circle > a {
    border-radius: 200px;
}
.jd-reviews-numeric-rating-component.jdr-count-5 > a {
    margin: 0 2%;
}

@media screen and (max-width: 1000px), screen and (max-device-width: 1000px) {
    .jd-reviews-numeric-rating-component {
        flex-wrap: wrap;
        max-width: 374px;
    }
    .jd-reviews-numeric-rating-component > a {
        margin: 0 2%;
    }
}
@media screen and (max-width: 360px), screen and (max-device-width: 360px) {
    .jd-reviews-numeric-rating-component > a {
        font-size: 20px;
    }
}