:root {
    --primary-color: #1b76d6;
    --primary-hover: #007bff;
    --secondary-color: #475569;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-gray: #f1f5f9;
    --medium-gray: #e2e8f0;
    --dark-gray: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.review_block {
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    padding: 15px;
}

@media (max-width: 767px) {
    .review_block {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: 15px;
        border-radius: 0;
        border: none;

    }
}

/* standard ui button */
.standard_btn {
    background-color: #ff7e00;
    background-image: linear-gradient(to right, #ff7e00, #ff9500);
    border: none;
    padding: 0px 20px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 126, 0, 0.3);
    border-radius: 19px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.standard_btn:hover {
    background-color: #ff9500;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 126, 0, 0.5);
    transform: translateY(-1px);
}

.standard_btn:active {
    background-color: #ff7e00;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
    color: #fff;
    text-decoration: none;
}

.standard_btn.blue {
    background-color: #1b76d6;
    background-image: linear-gradient(to right, #1b76d6, #007bff);
    box-shadow: 0 2px 8px rgba(27, 118, 214, 0.3);
}
.standard_btn.blue:hover {
    background-color: #007bff;
    box-shadow: 0 4px 12px rgba(27, 118, 214, 0.5);
}
.standard_btn.blue:active {
    background-color: #1b76d6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* overall star rating */
.overall_star_rating_result {
    margin-bottom: 10px;
}

.overall_star_rating_result h2 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 5px;
}

.overall_star_rating_result .rating_remarks {
    font-size: 12px;
    color: var(--text-light);
}

/* product rating table */
.product_rating_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.product_rating_table th,
.product_rating_table td {
    padding: 8px 12px 8px 0px;
    text-align: left;
}

.product_rating_table.each_item th,
.product_rating_table.each_item td {
    padding: 2px 12px 2px 0px;
    font-size: 12px;
}

.product_rating_table th {
    background: #f8f8f8;
    font-weight: bold;
}

.product_rating_table td:first-child {
    white-space: nowrap;
    width: 1%;
    font-weight: 600;
}

.product_rating_table td .star_rating {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.write_review_button_wrap {
    text-align: left;
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

/* review entry */
.review_entry {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.review_entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review_entry .review_title {
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.review_entry .top_section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-secondary);
}

.review_entry .top_section .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.review_entry .top_section .avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 1px solid #ddd; */
}

.review_entry .top_section .review_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review_entry .content_section {
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
    padding-left: 62px;
    line-height: 1.8;
}

.review_entry .content_section .review_point {
    margin-bottom: 20px;
}

.review_entry .content_section .review_point .caption {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    line-height: 1.8em;
}

.review_entry .content_section .review_point .last_update {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.review_entry .feedback_section {
    padding-left: 62px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    gap: 15px;
}

@media (max-width: 767px) {
    .review_entry .content_section {
        padding-left: 0;
    }
}


.review-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-top: 20px;
}

.review-sorting {
    flex: 1;
}

.sorting-label {
    font-weight: 500;
    color: #4a4a4a;
    margin-right: 10px;
    font-size: 14px;
}

.sorting-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sort-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.sort-option:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
    color: #333;
}

.sort-option.selected {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #c6d8f8;
}

.sort-icon {
    margin-right: 6px;
    vertical-align: middle;
}

.review-count {
    display: flex;
    margin-top: 12px;
    width: 100%;
}

@media (min-width: 576px) {
    .review-count {
        width: auto;
        margin-top: 0;
    }

    .sorting-options {
        margin-top: 0;
        display: inline-flex;
    }
}

.count-badge {
    font-size: 13px;
    color: #666;
    background-color: #fff;

    display: inline-flex;
    align-items: center;
}

.count-number {
    font-weight: 600;
    color: #333;
    margin-left: 5px;
    margin-right: 5px;
}

.count-divider {
    margin: 0 8px;
    color: #bbb;
}

.count-order {
    color: #1a73e8;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .review-controls {}

    .sort-option {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.review_info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating_stars {
    display: inline-block;
}

.rating_stars img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    height: 18px;
}

.line_one {
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #374151;
}

.user_link {
    font-weight: 600;
    color: #0086e6;
    text-decoration: none;
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s;
}

.review_count {
    font-size: 13px;
    color: #6b7280;
}

.review_time {
    font-size: 13px;
    color: #6b7280;
    position: relative;
    padding-left: 12px;
}

.review_time svg {
    position: absolute;
    left: 0;
    top: 2px;
}

.used_time {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommend_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.recommend_positive {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.recommend_negative {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.recommend_neutral {
    background-color: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.duration_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feedback-section {
    margin-left: 62px !important;
    margin: 20px 0;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .feedback-section {
        margin-left: 0 !important;
    }
}

.rating-box {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.rating-icon {
    color: var(--primary-color);
}

.rating-score {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
}

.rate-review-box {
    border-top: 1px solid rgba(229, 231, 235, 0.7);
    padding-top: 12px;
}

.result-text {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.rate-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-helpful {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-unhelpful {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edit-review-container {
    margin-bottom: 20px;
}

.edit-review-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4B5563;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #F3F4F6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.edit-review-button:hover {
    background-color: #E5E7EB;
    color: #374151;
}

.edit-icon {
    color: #6B7280;
}

.edit-text {
    vertical-align: middle;
}

div.bigstars div.rateit-range {
    background: url(images/star_png.png);
    height: 27px;
}

div.bigstars div.rateit-hover {
    background: url(images/star_png.png);
    background-position: 0 -27px;
}

div.bigstars div.rateit-selected {
    background: url(images/star_png.png);
    background-position: 0 -27px;
}

.no-review-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    min-height: 300px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.no-review-icon {
    margin-bottom: 1.5rem;
    color: #8a94a6;
}

.no-review-text {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.button-spacer {
    height: 1.5rem;
}

.button-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.button-text {
    vertical-align: middle;
}

.button-margin {
    margin-bottom: 1rem;
}