.star-rating-group{
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 5px 30px;
}
.at-review-photo-block {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 130px;
    height: 130px;
}
.at-reviews h2 span{
    color: #5e5e5e;
    font-weight: 400;
}
.star-rating-container {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}
.star-rating-item {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.1s ease;
}
.star-rating-item:hover {
    transform: scale(1.1);
}
.rating-section{
    background-color: white;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    margin-top: 10px;
    border-radius: 18px;
}
.rating-top-section{
    display: grid;
    grid-template-columns: 1fr 280px 140px 190px;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
}
.rating-h2{
   padding: 10px;
}
.review-card{
    background-color: white;
    border-radius: 24px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    margin-top: 10px;
    border: 1px solid #e7e7e7;
}
.review-header{
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;  
}
.review-header .user-info {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 5px;
}
.review-header .user-info img{
    width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    object-fit: cover;
}
.review-header .user-info .name{
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-items: start;
}
.review-header .user-info .name a{
    text-decoration: none;
    color: #2b2b2b;
}
.review-header .user-info .name h5{
    font-size: 21px;
    margin-right: 10px;
}
.review-header .user-info .name span{
    font-size: 12px;
    color: #1f5343;
    background-color: #edf1ef;
    border-radius: 12px;
    padding: 4px 10px; 
    border: 1px solid #d0e4da; 
}
.review-header .user-info .badge{
    color: #375e28;
    padding: 0px 0px 0px 27px;
    background: url('/assets/img/checked.svg') no-repeat 0px 0px; 
}  
.review-header .review-rating{
    height: 25px;
    display: grid;
    grid-template-columns: 26px 26px 26px 26px 26px 42px;
    align-items: center;
    justify-items: center;
    justify-content: center;
}               
.review-header .review-rating img{
    width: 25px;
    height: auto;
}
.review-header .review-rating span{
    font-size: 21px;
    font-weight: 700;
    margin-top: 3px;
}  
.review-text{
    background-color: #fcfcfc;
    border-radius: 12px;
    padding: 10px 10px;
    margin-bottom: 10px;
    margin-top: 10px;   
    border: 1px solid #f5f3f5;
}      
.review-footer{
    color: #666666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-items: stretch;
}   
.review-footer .like{
    color: #3d7652;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-items: stretch;
    gap: 5px;

    border-radius: 12px;
    padding: 5px 10px 5px 5px;
    height: 38px;
    border: 1px solid #f5f3f5;
    cursor: pointer;

    transition: transform 0.3s ease; /* Płynne przejście */
    /* 1. Zapobieganie drganiu tekstu */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    /* 2. Wymuszenie akceleracji sprzętowej (GPU) */
    transform: translateZ(0);
    /* 3. Podpowiedź dla przeglądarki o nadchodzącej zmianie */
    will-change: transform;
} 
#terms-block a{
 color: #000000;
}
@keyframes thumb-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.review-footer .like #layer1{
    fill: #a8a8a8;
}
.review-footer .like #path1{
    fill: #a8a8a8;
} 
                    
.review-footer .liked #layer1{
    fill: #2a8251;
}
.review-footer .liked #path1{
    fill: #2a8251;
    animation: thumb-up 0.3s ease-in-out;
}
.review-footer .like:hover{
        transform: scale(1.1) translateZ(0);
}    
.btn-centered{
    margin: 0px auto;
}  
.btn-ext {
    width: fit-content;
    display: grid;
    grid-template-columns: 1fr 31px;
    align-items: center;
    justify-items: center;
    column-gap: 10px;
    background: linear-gradient(135deg, #318555, #6c9c4d);
    color: white;
    padding: 0px 0px 0px 10px;
    border-radius: 11px;
    font-weight: 400;
    border: 1px solid #3d7652;
    cursor: pointer;
    position: relative;
    font-size: 15px;
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #3d76523d,  
        1px -1px 0 #3d76523d, 
        -1px  1px 0 #3d76523d, 
        1px  1px 0 #3d76523d;
    text-decoration: none;
    transition: 0.2s ease;                  
}
.btn-ext:hover{
    background: linear-gradient(135deg, #6c9c4d, #318555);
    box-shadow: 0 4px 12px rgba(73, 149, 42, 0.3);
}
.btn-ext:hover span.arrow-right{
        border-left: 1px solid #297048;
}                 
.btn-ext span.arrow-right span{
    display: block;
    border-left: 1px solid #ffffff21;
    height: 100%;
    width: 100%;
}
.btn-ext span.arrow-right{
    border-left: 1px solid #448033;
    height: 43px;
    width: 31px;
    background: url('/assets/img/arrow_right_white.svg') no-repeat 8px 14px; 
}
.btn-outline, .btn-outline-blank{
    display: grid;
    column-gap: 10px;
    align-items: center;
    justify-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 15px;
    position: relative;
}
.btn-outline{
    grid-template-columns: 1fr 31px;
    padding: 0px 0px 0px 10px;
}
.btn-outline-blank{
    height: 43px;
    grid-template-columns: 1fr;
    padding: 0px 10px 0px 10px;
}
.btn-outline:hover, .btn-outline-blank:hover{                   
    box-shadow: 0 4px 12px rgba(163, 163, 163, 0.3);
}            
.btn-outline span.arrow-right{
    border-left: 1px solid #e0e0e0;
    height: 43px;
    width: 31px;
    background: url('/assets/img/arrow_right_grey.svg') no-repeat 8px 14px;  
}
.social-auth-divider {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin: 12px 0 25px 0px;
    color: #888;
    z-index: 5;
    background-color: #ffffff;
}
.social-auth-divider span{
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 85px);
    display: block;
    padding: 2px 5px;
    background-color: #ffffff;
    z-index: 5;
}
.social-auth-divider::before{
    width: 100%;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    border: 1px solid #afaeaeff;
    z-index: 4;
}
.social-auth-buttons {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 10px;
    padding: 10px 80px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.social-btn {
    width:300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 17px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.social-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}
.social-btn i {
    margin-right: 10px;
    font-size: 1.2em;
}
.btn-code i {
    margin-right: 0px;
    margin-left: 10px;
    font-size: 1.2em;
}
button.btn-email, button.btn-code {
    background: linear-gradient(135deg, #6c9c4d, #318555);
    color: #ffffff;
}
button.btn-email:hover {
    color: #ffffff;
}
.btn-facebook {
    background-color: #3b5998;
}
.btn-google {
    background-color: #db4437;
}
.em_mod{
    display: grid;
    grid-template-columns: 180px 120px;
}
.em_input{
    width: 100%;
    border: 1px solid #777777;
    background: #ffffff;
    border-radius: 4px 0px 0px 4px;
    padding: 15px 17px;
    font-family: var(--font-family);
    font-size: 14px;
}
.em_mod button{
    width: 120px;
    padding: 5px 10px;
    border-radius: 0px 4px 4px 0px;
}
.social-section{
    position: relative;
    height: 1px;
    background-color: #dddddd;
    width: 100%;
    margin: 6px 10%;
}
.social-section::before{
    position: absolute;
    content: "lub";
    font-size: 12px;
    color: #dddddd;
    background-color: #ffffff;
    padding: 0px 10px;
    bottom: -9px;
    left: calc(50% - 17px);
}
#rating-form div.form-group{
    margin-bottom: 11px;
}
.effect1{
    box-shadow: 0 4px 42px rgba(73, 149, 42, 0.3);
    transition: box-shadow 0.3s ease;
}
.effect1 .em_code{
    background-color: #7dbe93;
    transition: background-color 0.3s linear;
}
.effect2{
    box-shadow: 0 4px 42px rgba(243, 30, 23, 0.3);
    transition: box-shadow 0.3s ease;
}
.effect2 .em_code{
    background-color: #ff5757;
    transition: background-color 0.3s linear;
}
@media (max-width: 1200px) {
    .rating-top-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: center;
        text-align: center;
    }
    
    .rating-top-section > div:nth-child(1) {
        margin-bottom: 10px;
    }
    
    .rating-top-section > div:nth-child(2) {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .rating-top-section > div:nth-child(3),
    .rating-top-section > div:nth-child(4) {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-ext, .btn-outline, .btn-outline-blank{
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 500px) {
    .rating-top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .rating-top-section > div:nth-child(1) {
        display: none;
    }
    .review-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review-header .user-info {
        grid-template-columns: 60px 1fr;
    }

    .review-header .user-info img {
        width: 60px;
        height: 60px;
    }
    
    .review-header .user-info .name {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .review-header .user-info .name h5 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .review-header .review-rating {
        justify-self: start;
        margin-left: 65px; 
        margin-top: -10px;
    }
    .social-auth-buttons {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
        gap: 15px;
        padding: 10px 30px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
}
@media (max-width: 600px) {
    .review-header .user-info .name {
        font-size: 21px;
        display: flex;
        align-items: flex-start;
        justify-items: start;
        flex-direction: column;
    }
    .rating-h2{
        text-align: center;
    }
}