:root {
    --filter-primary: #0089FF;
    --filter-text: #1D1D1F;
    --filter-text-muted: #86868B;
    --filter-border: #E5E5E7;
    --filter-bg: #FFFFFF;
}

body {
    position: relative;
    right: 0;
    transition: right .5s cubic-bezier(.25, .46, .45, .94);
}
body.modal-open, body.modal-open.newClass header {
    right: var(--sidebar-width-review);
}

/* Custom WooCommerce Reviews Styles - Refined to match design */
#reviews {
    padding: 0;
    font-family: var(--bodyFont);
    color: #000;
}

.reviews-header {
    margin-bottom: 45px;
}

.reviews-header h2 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0px;
    margin: 0;
}

.total-rating-box .avg-score {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    font-family: var(--headingFont);
    margin-bottom: 15px;
    display: inline-block;
}

.total-rating-box .review-count {
    font-size: 16px;
    color: #000000;
    line-height: 18px;
}

.custom-ratings-summary {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.rating-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(rgba(26, 143, 229, 1) var(--percentage), #eee 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    padding: 4px;
}
.rating-circle .inner-circle {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
}
.rating-circle-item label {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    max-width: 100px;
    text-align: center;
    line-height: 1.3;
    font-family: var(--headingFont);
}

.btn-black {
    background: #000;
    color: #fff;
    padding: 18px 30px;
    font-weight: 600;
    border: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 5px;
    width: 100%;
}

.btn-black:hover {
    background: #333;
    transform: translateY(-2px);
}

.review-disclaimer {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.review-disclaimer .btn-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
    display: inline-block;
}

.reviews-sort-wrap {
    gap: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -25px 0 35px;
}

.reviews-sort-wrap label {
    font-weight: 600;
    font-size: 20px;
    font-family: var(--headingFont);
}

.reviews-sort-wrap .custom-select {
	border: none;
	border-bottom: 0;
	font-weight: 600;
	font-size: 20px;
	border-radius: 0;
	padding: 0px 8px 0px 0px;
	background-position: right 0 center;
	font-family: var(--headingFont);
	cursor: pointer;
	background-color: transparent;
}

/* Review Cards - Match Image */
.commentlist {
    list-style: none;
    padding: 0;
}

.commentlist a {
    margin-left: auto;
    display: block;
    width: fit-content;
    font-size: 20px;
    font-weight: 600;
    text-decoration: underline;
    font-family: var(--headingFont);
    line-height: 24px;
    color: var(--primaryClr);
}
.commentlist a:hover {
    color: #000;
}
.review-card {
    margin-bottom: 25px;
    border-radius: 15px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 30px;
}
.review-card:hover {
    box-shadow: 0px 0px 4px 0px rgba(26, 143, 229, 0.25);
}

.review-meta {
    margin: 0 0 17px;
    font-size: 16px;
}
.star-rating-wrap {
    margin-bottom: 8px;
}
.review-content-side .star-rating-wrap {
    margin-bottom: 20px !important;
}
.total-rating-box .avg-score span {
    color: var(--primaryClr);
}
.author-name {
    font-weight: 600;
    margin-right: 14px;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.45px;
    text-transform: capitalize;
    font-family: var(--headingFont);
}

.review-date {
    color: #000;
}

.review-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.review-actions {
    margin-top: 20px;
    gap: 15px;
    display: flex;
}

.btn-vote {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-family: var(--bodyFont);
}

.btn-vote i {
    flex-shrink: 0;
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50px;
    background-color: rgba(10, 35, 84, 0.05);
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-vote.share-btn {
    display: none;
}

.report-abuse {
    font-weight: 600;
    color: #007bff;
    text-decoration: underline;
    font-size: 16px;
}

/* Review Stats Side */

.stat-item {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.stat-item label {
    font-size: 16px;
    font-weight: 400;
    min-width: 60px;
    color: #000;
    width: 95px;
}

.stat-item .progress {
    height: 4px;
    background: rgba(201, 198, 189, 1);
    flex-grow: 1;
    border-radius: 10px;
    flex: 1.33;
}

.stat-item .progress-bar {
    background: var(--primaryClr);
    border-radius: 10px;
    height: 100%;
}

.review-badges {
    margin-top: 25px;
}

.badge-item {
    font-size: 16px;
    color: #000000;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-item i {
    width: 16px;
    color: #333;
}

/* Modal Implementation */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.review-modal {
    position: fixed;
    width: var(--sidebar-width-review);
    height: 100vh;
    top: 0;
    right: 0;
    background: #fff;
    z-index: 99999;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
    transform: translateX(100%);
}

.review-modal.active {
    transform: translateX(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: block;
}

.modal-container {
    padding: 60px 30px 30px;
    background-color: #fff;
    height: 100%;
    overflow-y: auto;
    position: relative;
    overflow-x: hidden;
    margin-left: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background-color: var(--primaryClr);
    color: #fff;
    border: 0;
    transition: transform 0.25s ease;
    width: 35px;
    height: 35px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
}

.close-modal:hover {
    transform: scale(1.09);
}

.modal-content h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1;
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 16px;
}
.intro-text a {
    font-weight: 600;
}
.form-section label {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    display: block;
    font-family: var(--headingFont);
}

.star-rating-input label {
    font-size: 24px;
    margin-left: 5px;
}

.slider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    padding-bottom: 20px;
}

.slider-item label {
    margin-bottom: 0;
    width: fit-content;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--bodyFont);
}
.rating-slider {
    flex-grow: 1;
    appearance: none;
    height: 4px;
    background: #eee;
    outline: none;
}

.rating-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.rating-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.slider-val {
    font-size: 14px;
    font-weight: 400;
    width: 30px;
    text-align: right;
    line-height: 24px;
}

.comment-form .form-group label {
    width: 100%;
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    color: #000;
    line-height: 24px;
}

input[type="radio"] {
    width: 25px;
    height: 25px;
    border-radius: 25px;
    border: 1px solid rgba(201, 198, 189, 1);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

input[type="radio"]:checked {
    border-color: var(--primaryClr);
}

input[type="radio"]:checked::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--primaryClr);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.comment-form .form-group .radio-group label {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-group .form-control {
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(201, 198, 189, 1);
    box-shadow: none;
    border-radius: 8px;
    height: 47px;
    font-family: var(--bodyFont);
    color: #000;
}
.comment-form .form-group textarea {
    height: 90px;
}
.help-block {
    color: #000;
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.5;
}
.comment-form .form-group {
    margin-bottom: 20px;
}
/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(201, 198, 189, 1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.file-upload-label {
    cursor: pointer;
}

.file-upload-label i {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
}

.btn-small {
    background: #fff;
    border: 1px solid #000;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
    border-radius: 8px;
    font-family: var(--headingFont);
    color: rgba(0, 0, 0, 1);
    letter-spacing: 0.1px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primaryClr);
    color: #fff;
    border-color: var(--primaryClr);
}

.file-upload-label p {
    font-size: 14px;
    color: rgba(102, 102, 102, 1);
    line-height: 24px;
}

.radio-group {
    display: flex;
    gap: 29px;
}

.form-check {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 22px;
}

.form-check + p {
    font-size: 14px !important;
    line-height: 22px !important;
    margin-top: 20px;
    color: #000 !important;
    padding-left: 33px;
}

.form-check-label {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.btn-primary.btn-block {
    background: #007bff;
    border: none;
    padding: 18px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 30px;
}
.star-rating-wrap .star-rating {
    font-size: 16px;
    letter-spacing: 5px;
    width: 105px;
    margin: 10px 0;
    float: none;
    color: #ffcc00;
}
.reviews-summary-container .row {
    display: flex;
    gap: 26px;
    margin: 0 0 20px;
}

.reviews-summary-container p {
    color: #000;
    font-size: 16px;
    line-height: 24px;
}

.review-disclaimer .read-more {
    text-transform: unset;
    text-decoration: underline;
    font-size: 20px;
}

.reviews-summary-container .row .btn {
    font-size: 20px;
    font-family: var(--headingFont);
    letter-spacing: 0;
    line-height: 24px;
    padding: 12px 30px;
    cursor: pointer;
}
.reviews-summary-container .row .btn:hover {
    background-color: var(--primaryClr);
}
.woocommerce #reviews #comments ol.commentlist::before, .woocommerce #reviews #comments ol.commentlist::after {
    display: none;
}
.reviews-summary-container .row .text-right {
    margin-left: auto;
    position: relative;
    top: 45px;
}
.woocommerce #reviews h3 {
    margin: 0 0 10px;
    font-family: var(--headingFont);
}
.woocommerce #reviews #comments ol.commentlist {
    display: flex;
    flex-wrap: wrap;
}

.woocommerce #reviews #comments ol.commentlist .review {
    width: 100%;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist .review .review-card {
    margin: 0;
    padding: 30px;
}
.woocommerce #reviews #comments ol.commentlist .review .row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.woocommerce #reviews #comments ol.commentlist .review .row > div:first-child {
    max-width: 715px;
    width: 100%;
}

.woocommerce #reviews #comments ol.commentlist .review .row > div:nth-child(2) {
    max-width: 325px;
    width: 100%;
}

.review-text p {
    font: inherit;
    color: #000;
}

.form-submit-container .mainBtn-review {
    background-color: var(--primaryClr);
    border: 1px solid var(--primaryClr);
    border-radius: 8px;
    font-size: 18px;
    line-height: 24px;
    font-family: var(
    --headingFont);
    padding: 10px 22px 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.form-submit-container .mainBtn-review:hover {
    background-color: #000;
    border-color: #000;
}

.star-rating-input {
    direction: rtl;
    display: inline-flex;
    margin-left: -5px;
}

.star-rating-input input {
    display: none;
}
.star-rating-input label {
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 0;
}

.star-rating-input label i {
    color: rgba(248, 170, 28, 0.4);
    transition: 0.3s;
    font-size: 18px;
    font-weight: 600;
}

.star-rating-input label:hover i, .star-rating-input label:hover ~ label i {
    content: "\f005";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: rgba(248, 170, 28, 1);
}

.star-rating-input input:checked ~ label i {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: rgba(248, 170, 28, 1);
}

.form-section.slider-section {
    margin: 20px 0 30px;
    padding: 0;
    background-color: transparent;
}

.slider-item .slider-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.slider-item input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
    top: calc(50% + 6px);
    transform: translateY(-50%);
    border-radius: 10px;
    height: 6px;
}
/* Chrome / Safari */
.slider-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primaryClr);
    border: 2px solid var(--primaryClr);
    cursor: pointer;
}

/* Firefox */
.slider-item input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primaryClr);
    border: 2px solid var(--primaryClr);
    cursor: pointer;
}

.comment-form .newsletter-section p {
    line-height: 26px;
    font-size: 16px;
}

.comment-form .newsletter-section {
    margin-top: 20px;
    border-top: 1px solid rgba(201, 198, 189, 1) ;
    border-bottom: 1px solid rgba(201, 198, 189, 1) ;
    padding-bottom: 15px;
    padding-top: 15px;
}
.comment-form .newsletter-section > p {
    font-weight: 500;
    line-height: 1.5;
}
.form-check input[type="checkbox"] {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(201, 198, 189, 1);
    flex-shrink: 0;
    border-radius: 5px;
    display: inline-block;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-right: 0;
}

.form-check p {
    font-size: 16px;
    line-height: 1.4;
}
.comment-form div label a, .form-check + p a {
    color: var(--primaryClr) !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 18px;
}

@media (max-width: 768px) {
    .review-stats-side {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }
}

input[type="checkbox"] {
    width: 25px;
    height: 25px;
    border: 1px solid var(--filter-border);
    border-radius: 5px;
    margin-right: 12px;
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background: var(--filter-primary);
    border-color: var(--filter-primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-checkbox-item label {
    flex: 1;
    font-size: 15px;
    color: var(--filter-text);
    cursor: pointer;
}

.filter-checkbox-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-checkbox-item.disabled input,
.filter-checkbox-item.disabled label {
    cursor: not-allowed;
}

/* Price Slider Styles */
.price-range-container {
    padding: 10px 0;
}

.price-slider-track {
    height: 3px;
    background: var(--filter-border);
    position: relative;
    margin: 20px 0 35px;
}

.price-slider-fill {
    position: absolute;
    height: 100%;
    background: var(--filter-primary);
    left: 0;
    right: 0;
}

.price-slider-handle {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #1D1D1F;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.price-inputs {
    display: flex;
    gap: 15px;
}

.price-input-group {
    flex: 1;
    border: 1px solid var(--filter-border);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.price-input-group span {
    color: var(--filter-text);
    font-size: 15px;
    margin-right: 8px;
}

.price-input-group input {
    border: none;
    width: 100%;
    font-size: 15px;
    color: var(--filter-text);
    text-align: right;
    outline: none;
}

.filter-modal-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--filter-border);
    background: var(--filter-bg);
}

.apply-button {
    width: 100%;
    background: var(--filter-text);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.apply-button:hover {
    background: #000;
}

.reset-button {
    width: 100%;
    background: transparent;
    color: var(--filter-text-muted);
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* Scrollbar */
.filter-modal-body::-webkit-scrollbar {
    width: 4px;
}
.filter-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.filter-modal-body::-webkit-scrollbar-thumb {
    background: var(--filter-border);
    border-radius: 4px;
}

.form-check input[type="checkbox"]:checked {
    background-color: var(--primaryClr);
    border-color: var(--primaryClr);
    color: #fff;
    font-size: 16px;
    position: relative;
}

.form-check input[type="checkbox"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 1px;
}