/*!
 * review-page.css
 * Page-specific styles for page ID 30881
 * Path: wp-content/themes/weltausholz/assets/css/review-page.css
 */

/* Scope examples (WordPress adds page-id-30881 to body): */
/* body.page-id-30881 .your-selector { } */

body {
    background: var(--color-light-grey);
}
.page-id-30881 .entry-title {
    display:none;
}
.custom-review-wrapper {
    max-width: 1440px;
    margin: auto;
    padding:0 15px;
}
.star-rating-name-wrap strong {
    font-weight:600;
}

.review-error {
    color: red;
    background: #ffe0e0;
    padding: 10px;
    margin-top: 10px;
    border-left: 4px solid red;
}
.review-success {
    color: green;
    margin-top: 10px;
}
.review-error {
    color: red;
    margin-top: 10px;
}

.custom-review-form label {
    margin-top: 20px;
}

.custom-review-wrapper {
    /*max-width: 700px;*/
    margin: 30px auto;

}
.custom-review-wrapper hr {
    border-color:#E8E8E8;
}
.custom-review-wrapper h2 {
    text-align: center;
}
.custom-review-form {
    background: #f7f7f7;
    padding: 20px 0;
    border-radius: 6px;
    max-width: 800px;
    margin: auto;
}

.custom-review-form label {
    display: block;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 10px;
}


button[type="submit"] {
    margin: auto;
    display: block;
    margin-top: 15px;
    background: #657b42;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
button[type="submit"]:hover {
    background: #4d6525;
}

.review-list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap:15px;
}
.review-item {
    margin-bottom: 20px;
}
.star-output .star {
    color: #ccc;
    font-size: 18px;
}
.star-output .star.active {
    color: #4d6525;
}

.review-success {
    color: green;
}
.review-error {
    color: red;
}

.rating-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 10px;
}

.rating-row .star-rating-selector label {
    font-weight: 500;
    margin: 0;

}

.stars-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.stars-input input {
    display: none;
}

.stars-input label {
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;

}

.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label {
    color: #3a4824;
}

/* Star rating container */
.star-rating-selector {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
    position: relative;
}

.star-rating-selector input {
    display: none;
}


.star-rating-selector:not(:checked) label.checkbox {
    text-indent: 0px!important;
}



/* Color when selected */
.star-rating-selector:not(:checked) input:checked ~ label.checkbox {
    color: #657b42;
}
.custom-review-item {
    border: 1px solid #ddd;
    background: #fff;
    padding: 15px 20px;
    /*margin-bottom: 20px;*/
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    width: calc(33% - 7px);
}

.custom-review-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.review-date {
    font-weight: normal;
    color: #777;
    font-size: 14px;
}

.custom-review-stars {
    margin: 4px 0 10px;
    font-size: 18px;
}

.custom-review-stars .star {
    color: #ccc;
    margin-right: 2px;
}

.custom-review-stars .star.filled {
    color: #657b42;
}

.custom-review-comment {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.star-rating-static .checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
    font-size: 16px;
    color: #ccc;
    font-weight: 300;
}


.star-rating-name-wrap {
    display: flex;
    gap:15px;
    align-items: center;
}
.rating-name-wrap {
    display: flex;
    gap: 25px;
}
.rating-name-wrap > div {
    width: 50%;
}
.rating-name-wrap  input[name="name"],#custom-review-form  textarea {
    width: 100%;
    padding:5px 10px;
}


.custom-review-wrapper .star-rating-selector,
.custom-review-wrapper .star-rating-static { display: inline-flex; gap: 4px; align-items: center; }
.custom-review-wrapper label.checkbox {
    position: relative; width: 20px; height: 20px; display: inline-block; cursor: pointer;
}
.custom-review-wrapper .rating-name-wrap label.checkbox {
    width: 23px; height: 23px;
}
.custom-review-wrapper label.checkbox img { width: 100%; height: 100%; display: block; }
.custom-review-wrapper label.checkbox .svg-full { position: absolute; inset: 0; display: none; }
.custom-review-wrapper label.checkbox .svg-empty { position: absolute; inset: 0; display: block; }
.custom-review-wrapper label.checkbox.checked .svg-full { display: block; }
.custom-review-wrapper label.checkbox.checked .svg-empty { display: none; }
.custom-review-wrapper .star-rating-selector input[type="radio"] { position: absolute; left: -9999px; }

@media(max-width:1200px) {
    .custom-review-item {
        width: calc(50% - 8px);
    }
}
@media(max-width:768px) {
    .custom-review-item {
        width: 100%;
    }
}
@media(max-width:425px) {
    .rating-name-wrap {
        flex-direction: column-reverse;
        gap:0px;
    }
    .rating-name-wrap > div {
        width: 100%;
    }
}
