.t-store__tabs__button-title.t-name.t-name_xs {
    font-family: arial;
}
   
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

    :root {
        --primary-color: rgba(255, 165, 0, 1); ;
        --text-color: #333;
        --light-gray: #f8f8f8;
        --border-color: #e5e5e5;
        --border-radius: 4px;
    }

    .reviews-container {
        max-width: 1000px;
        margin: 0 auto;
        font-family: 'Geologica';



    }
    .reviews-container_m{
        margin-left: 20px;
        margin-right: 20px;
  
    }
    .reviews-header {
        text-align: center;
        margin-bottom: 30px;


    }

    .reviews-title {
        font-size: 24px;
        font-weight: 500;
        color: black;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .overall-rating {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    .stars {
        display: flex;
        margin-right: 10px;
    }

    .star {
        /*font-size: 20px;*/
        margin-right: 2px;
    }

    .filled {
        color: var(--primary-color);
    }

    .empty {
        color: #e0e0e0;
    }

    .review-count {
        color: #888;
        font-size: 16px;
    }

    .write-review-btn {
        display: inline-block;
        padding: 8px 20px;
        border: 1px solid #ccc;
        border-radius: var(--border-radius);
        background-color: transparent;
        color: var(--text-color);
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .write-review-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .filter-section {
        margin: 30px 0;
    }

    .search-bar {
        display: flex;
        margin-bottom: 15px;
    }

    .search-input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        font-size: 14px;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    .sort-select {
        width: 150px;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-left: 10px;
        font-size: 14px;
        cursor: pointer;
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-select {
        flex: 1;
        min-width: 150px;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        font-size: 14px;
        cursor: pointer;
    }

    .review-item {
        background-color: white;
        border-radius: var(--border-radius);
        padding: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .review-rating {
        margin-bottom: 5px;
    }

    .review-title {
        font-size: 18px;
        font-weight: 500;
        color: #666;
        margin-bottom: 10px;
    }

    .review-text {
        font-size: 14px;
        margin-bottom: 15px;
        color: #4b4b4b;
    }

    .review-meta {
        font-size: 14px;
        color: #888;
        margin-bottom: 10px;
    }

    .review-shade {
        font-size: 14px;
        color: #888;
        margin-bottom: 15px;
    }

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

    .review-action {
        display: flex;
        align-items: center;
        color: #888;
        font-size: 14px;
        cursor: pointer;
    }

    .review-action i {
        margin-right: 5px;
    }

    @media (max-width: 768px) {
        .filter-options {
            flex-direction: column;
        }

        .filter-select {
            width: 100%;
        }

        .search-bar {
            flex-direction: column;
        }

        .sort-select {
            width: 100%;
            margin-left: 0;
            margin-top: 10px;
        }
    }

    /* ----- */
    /* Рейтинг звёздами */
    .stars, .rating-select label {
        font-size: 18px;
        letter-spacing: 2px;
        color: white;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    }

    .stars .filled,
    .rating-select input:checked ~ label,
    .product-rating .filled {
        color: rgba(255, 165, 0, 1);
    }

    .product-rating {
        margin: 10px 0;
        display: flex;
        justify-content: center;
    }

    /* Кнопка */
    .comments-button, .submit-button {
        background-color: #92dbe6;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        margin-top: 10px;
        height: 30px;
        font-weight: 600;
    }

    .comments-button:hover, .submit-button:hover, .btn-primary:hover, .btn-secondary:hover {
        background-color: #7bc9d6;
    }


    .reviews-modal {
        display: none;
        position: fixed;
        z-index: 9999999999;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        overflow: hidden;
        font-family: 'Geologica';
    }

    .reviews-content {
        background: #fefefe;
        max-width: 600px;
        margin: 3% auto;

        position: relative;
        font-size: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);

        display: flex;
        flex-direction: column;
        height: 90vh;
        overflow: hidden;

        padding: 20px;
        box-sizing: border-box;

    }

    .reviews-modal .close {

        position: absolute;
        right: 5px;
        top: -7px;
        cursor: pointer;
        font-size: 34px;
        color: #111;
        padding: 24px 24px 20px 24px;
    }

    /* Комментарии */
    .comment {
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }

    .comment-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .comment-author {
        font-weight: bold;
        font-size: 20px;
    }

    .comment-date {
        color: #888;
    }

    .comment-text {
        line-height: 1.5;
        text-align: left;
    }
    .tleft{
        text-align: left;
    }
    .reviews-content {
        animation: popupFadeIn 0.3s ease;
    }

    @keyframes popupFadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }
    .modal-product {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .product-thumb {
        width: 200px;
        border-radius: 8px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .product-reviews {
        flex: 1;
        min-width: 250px;
        text-align: justify;
    }

    .rating-summary-block {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 5px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        align-items: center;
    }

    .summary-left {
        min-width: 100px;
        text-align: left;
    }

    .rating-score {
        font-size: 36px;
        font-weight: bold;
        line-height: 1;
        color: black;
    }

    .rating-score .rating-star {
        font-size: 24px;
        vertical-align: middle;
        color: rgba(255, 165, 0, 1);
    }

    .rating-subtext {
        font-size: 13px;
        color: #888;
        margin-top: 4px;
    }

    .summary-bars {
        flex-grow: 1;
        min-width: 200px;
    }

    .bar-row {
        display: flex;
        align-items: center;
        font-size: 10px;
        color: rgba(255, 165, 0, 1);

    }

    .bar-row span {
        width: 28px;
    }

    .bar {
        flex-grow: 1;
        height: 6px;
        background-color: #e0e0e0;
        border-radius: 4px;
        margin-left: 8px;
        overflow: hidden;
    }

    .bar-fill {
        height: 100%;
        background-color: #92dbe6;;
        border-radius: 4px;
    }

    .summary-right {
        min-width: 150px;
        text-align: right;
    }

    .bottom-cta {
        /*position: fixed;*/
        bottom: 0;
        left: 0; right: 0;
        display: flex;
        justify-content: space-between;
        padding: 10px;
        background: white;
        border-top: 1px solid #eee;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        gap: 10px;
        height: 70px;

    }

    .btn-primary {
        flex: 1;
        background-color: #92dbe6;
        color: white;
        font-weight: bold;
        border: none;
        padding: 12px 0;
        border-radius: 16px;
        font-size: 16px;
        cursor: pointer;
    }

    .btn-secondary {
        flex: 1;
        background-color: #f2f1ee;
        color: #111;
        font-weight: bold;
        border: none;
        padding: 12px 0;
        border-radius: 16px;
        font-size: 16px;
        cursor: pointer;
    }


    .comments {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .bottom-cta {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .btn-primary, .btn-secondary {
        flex: 1;
        font-size: 16px;
        padding: 12px 0;
        border-radius: 8px;
        font-weight: bold;
        border: none;
        cursor: pointer;
        margin: 0;
        color: white;
    }

    .review-form {
        font-family: Arial, sans-serif;
        padding: 20px;
        background: white;
        border-radius: 12px;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-header {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 20px;
    }

    .product-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 8px;
    }

    .product-info {
        font-size: 14px;
        color: #444;
    }

    .rating-block {
        margin-bottom: 15px;
    }

    .rating-stars {
        direction: rtl;
        display: flex;
        justify-content: flex-start;
    }

    .rating-stars input {
        display: none;
    }

    .rating-stars label {
        font-size: 30px;
        color: #ddd;
        cursor: pointer;
        padding: 0 4px;
        transition: 0.3s;
    }

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

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

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        margin-top: 8px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 16px;
    }

    .upload-block {
        margin-bottom: 10px;
    }

    .upload-btn {
        display: inline-block;
        background: #f2f1ee;
        padding: 12px;
        border-radius: 10px;
        font-size: 15px;
        cursor: pointer;
        text-align: center;
        width: 100%;
    }

    .anon-switch {
        font-size: 14px;
        color: #555;
        margin-bottom: 20px;
    }

    .rating-select {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

    .rating-select input {
        display: none;
    }

    .rating-select label {
        cursor: pointer;
        font-size: 30px;
        color: white;
        text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
        padding: 0 2px;
    }

    .rating-select input:checked ~ label {
        color: rgba(255, 165, 0, 1);
    }

    .reviews-content,
    #reviewForm *{

        box-sizing: border-box; /* важно */
    }

    .upload-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px; /* расстояние между иконкой и текстом */
        background: #f5f3f0;
        padding: 14px 12px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        color: #222;
        transition: background 0.3s ease;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .upload-btn:hover {
        background: #eceae7;
    }

    .upload-btn svg {
        display: block;
        width: 20px;
        height: 20px;
    }
    .star-reting-title{
        min-width: 70px;
        text-align: right;
    }
    .rating-summary-title{
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 24px;

        text-align: left;

    }
    .btn-disabled {
        cursor: not-allowed;
        opacity: 0.6;
        pointer-events: none;
    }

    .review-rules {
        background: #f7fafa;
        border-left: 4px solid #cfe8ea;
        padding: 10px;
        font-size: 12px;
        line-height: 1.4;
        margin-top: 10px;
        border-radius: 8px;
        max-height: 250px;
        overflow-y: auto;
    }

    .review-rules strong {
        font-size: 12px;
        display: block;
        margin-bottom: 10px;
    }

    .review-rules ul {
        padding-left: 18px;
        margin: 5px 0 5px;
    }

    .rules-good li {
        color: #3eaa7a;
    }

    .rules-bad li {
        color: #c94a3f;
    }

    .toggle-switch {
        display: flex;
        align-items: center;
        gap: 20px;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 20px;
    }

    .toggle-option {
        padding: 10px 20px;
        border: 1px solid #ccc;
        background-color: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }

    .toggle-option.active {
        background-color: #92dbe6;
        color: white;
        border-color: #92dbe6;
    }

    .toggle-option {
        padding: 10px 20px;
        border: 1px solid #ccc;
        background-color: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        color: #333;
        box-shadow: none;
    }

    .toggle-option.active {
        background-color: #92dbe6;
        color: white;
        border-color: #92dbe6;
        box-shadow: 0 0 0 3px rgba(146, 219, 230, 0.3);
    }
    .review-count {
        color: #010101;
        font-size: 16px;
        margin-top: 6px;
    }
    .rating-main{
        margin-top: 19px;
    }
    .rating-main .stars {
        margin-right: 0;
    }
    .rating-main .stars .star {
        font-size: 14px;
    }
    .rating-main .stars .review-count {
        font-size: 11px;
    }