/* Custom Reviews Tab */
.woocommerce-tabs .custom-reviews-section {
    padding: 20px 0;
}

.custom-review {
    border: 1px solid #5e5e5e69;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 25px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.review-meta {
    display: flex;
    gap: 20px;
}
.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #777;
    font-size: 0.9em;
}

.review-rating {
    color: #ffb900;
    font-size: 1.2em;
    margin: 2px 0;
}

.review-rating .rating-value {
    color: #666;
    font-size: 0.8em;
    margin-left: 10px;
    vertical-align: middle;
}

.review-title {
    font-size: 1.2em;
    margin-top: 0 !important;
    color: #333;
}

.review-content {
    margin: 15px 0;
    line-height: 1.6;
}

.review-meta {
    background: #f9f9f9;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 14px;
}

.review-pros, .review-cons{
	margin-bottom: 0 !important;
	width: 50% !important;
}
.review-pros strong {
    color: #4CAF50;
}

.review-cons strong {
    color: #F44336;
}

.review-pagination {
    margin-top: 30px;
    text-align: center;
}

.review-pagination .page-numbers {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.review-pagination .page-numbers li {
    display: inline;
    margin: 0 5px;
}

.review-pagination .page-numbers a,
.review-pagination .page-numbers span {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.review-pagination .page-numbers .current {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.popup-inner small.compare_box_category { color: #243853 !important; }
.woocommerce-js .star-rating::before { color: #fed202 !important;}

/*======================================
======= Review form
======================================*/

/* Main styling */
.container {
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 0;
}

/* Search styling */
#product_search_input {
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
}

#product_search_input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#product_search_results {
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
}

#product_search_results a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    text-align: left;
}

#product_search_results a:hover {
    background-color: #f5f5f5;
}

/* Review form styling */
.review-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.review-form-wrapper h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}
button.open-question-modal.button {
    border-radius: 30px !important;
}
.review-form-wrapper button {
    background-color: #243853;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px !important;

    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;    border: 1.8px solid #243853 !important;
    transition: background-color 0.3s;
}

.review-form-wrapper button:hover {
    background: transparent !important;
    border: 1.8px solid #243853 !important;
    color: #243853 !important;
}

/* Rating stars */
.rating-stars {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 34px;
    color: #ddd;
    cursor: pointer;
    margin: 0;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    /* width: 30px; */
    height: 30px;
    border-radius: 15px;
    padding: 5px 15px;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.progress-step.active {
    background: #243853;
    color: #fff;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after {
  background: #243853;
}
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    .review-meta {
    display: block;}

    .review-form-wrapper {
        padding: 15px;
    }
.review-pros, .review-cons {
    width: 100% !important;
}
    .review-pros, .review-cons {
    margin-bottom: 20px !important; }
}

.rating-category {
    padding: 15px;
    background: #2438530a;
    margin-bottom: 15px;
    border-radius: 8px;
}

.step-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}



/* Form Styles */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea, .form-group select{
    border-radius: 25px !important;
}
.error-message {
    color: red;
    font-size: 11px;
    width: 100%;
    margin-bottom: 15px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    flex-direction: row-reverse; /* Key fix */
    justify-content: flex-end;
    gap: 5px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 34px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

/* Highlight selected and preceding stars */
.rating-stars input:checked ~ label {
    color: #ffc107;
}

/* Hover effect */
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

/* Likelihood Scale */
.likelihood-scale {
    display: flex;
    gap: 10px;
}

.likelihood-scale input {
    display: none;
}

.likelihood-scale label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    padding: 11.2px 20.5px 9.8px;
    border-radius: 50px;
    color: #1b1b1b;
    background-color: #fff;
    border: 1px solid #1b1b1b;
    cursor: pointer;
    font-size: 16px;
    margin: 0;
}

.likelihood-scale input:checked + label {
    background: #243853;
    color: white;
        border: 1.8px solid #243853 !important;
}
    
.scale-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}
    .rating-category h4 {
    margin-bottom: 5px !important;
    font-size: 22px;
}
/* Duration Options */
.duration-options {
    display: flex;
    gap: 10px;
}

.duration-options input {
    display: none;
}

.duration-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    padding: 11.2px 20.5px 9.8px;
    border-radius: 50px;
    color: #1b1b1b;
    background-color: #fff;
    border: 1px solid #1b1b1b;
    cursor: pointer;
    font-size: 16px;
    margin: 0;
}

.duration-options input:checked + label {
    background: #243853;
    color: white;
        border: 1.8px solid #243853 !important;
}




.grid {
    display: grid;
}
.gap-30 {
    gap: 30px;
}
.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 573px) {
    .grid.cols-2,
    .grid.cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}


.user-details-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    width: 80px;
    color: #555;
}

.detail-value {
    flex: 1;
}

.submit-review {
    background-color: #243853;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}
.card.my-4.p-4.border-success h4.mb-2 {
    display: inline-block;
    border: 1px solid #243853;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    background: #243853;
    color: white;
}
.submit-review:hover {
    background-color: #3a7bc8;
}


.auth-options {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.auth-tabs li {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    text-align: center;
    flex: 1;
}

.auth-tabs li.active {
    color: #243853;
    border-bottom: 2px solid #243853;
}

.auth-tab-content {
    padding: 20px;
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
	text-align: left;
}
.form-group {text-align: left;}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 30px !important;
}

.form-control.is-invalid {
    border-color: red;
}

.btn-login, .btn-register {
    background: #243853;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}
.ajax-auth-form button.button {
    width: 100%;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.forgot-password {
    color: #666;
}
.error-message {
    display: none;
}


.review-success:has(+ .entry-title),
.review-success + .entry-title {
    display: none !important;
}
/* Main Wrapper */
.product-review-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0rem auto;
    padding: 2rem;
    background: #fff;
        border: 2px dashed #243853;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.products-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
            .page-id-929 h1.entry-title {
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
				display: none !important;
}
            .card.my-4.p-4.border-success {
    text-align: center;
}
.products-grid a {
    text-decoration: none !important;
    border-radius: 50px;
    border: 1px solid black;
    padding: 8px 20px;
    color: black;
    font-weight: 500;
    font-size: 14px;
}

.review-success {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}
.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}
.review-success h2 {
    color: #333;
    margin-bottom: 1rem;
}
.review-success p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Search Section */
.search-section {
    text-align: center;
    margin-bottom: 3rem;
}
.search-section h2 {
    color: #333;
    margin-bottom: 0.5rem;
}
.subtext {
    color: #666;
    margin-bottom: 1.5rem;
}
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
#product_search_input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
div#product_search_results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 100;
}

/* Popular Products */
.popular-products {
    margin-top: 0.6rem;
}
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h3 {
    color: #333;
    margin: 0;
}
.no-products {
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
}

h3.review-title {
    margin-top: 0;
}

/* Fontend reviews css */
/* === Container Grid === */
.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

/* === Card Styling === */
.review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 20px;
	align-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rating-category p {
    font-size: 18px !important;
}

/* === Percentage Circle === */
.circle-chart {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(#243853 var(--percent), #e0e0e0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.circle-chart .percentage {
    font-size: 1.5em;
    font-weight: bold;
}

/* === Overall Score Section === */
.review-card h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
}
.score {
    font-size: 2.5em;
    font-weight: bold;
}
.stars {
    font-size: 1.2em;
    color: #ffa000;
    margin: 5px 0;
}
.review-card p {
    font-size: 0.9em;
    color: #555;
}

/* === Category Ratings === */
.category-ratings {
    margin-top: 15px;
    text-align: left;
}
.category-ratings div {
    margin-bottom: 8px;
    font-size: 0.9em;
}
.category-ratings span {
    float: right;
}
.bar {
    background: #e0e0e0;
    border-radius: 3px;
    height: 5px;
    overflow: hidden;
    margin-top: 3px;
}
.bar span {
    display: block;
    height: 100%;
    background: #243853;
}

/* === Add Review Button === */
.add-review-btn {
       display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    border: 1px solid #243853;
    border-radius: 50px;
    color: #243853;
    width: 50%;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.add-review-btn:hover {
    background: #243853;
    color: #fff;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    background-color: #243853; 
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}
.rating-badge span {
    color: #fff; /* Star color */
    margin-left: 2px;
}

button.button.submit-question {
	border-radius: 50px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Fontend reviews css */


/* Responsive */
@media (max-width: 768px) {
    .product-review-wrapper {
        padding: 1.5rem;
        width: 95%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}