/*
 * Project-level isolated custom CSS.
 * Keep new standalone CSS here instead of mixing it into shared files.
 */

.t5s-category-related-news {
    padding-bottom: 24px;
}

.t5s-category-related-news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.t5s-category-related-news__title {
    color: #2b1e16;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.t5s-category-related-news__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid #7a4e2d;
    border-radius: 5px;
    color: #7a4e2d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.t5s-category-related-news__all:hover {
    background: #7a4e2d;
    color: #fff;
}

.t5s-category-related-news__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.t5s-category-related-news__item {
    min-width: 0;
}

.t5s-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid #b8926a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #6b4d37;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    margin-right: 0 !important;
}

.t5s-modal-close svg {
    width: 18px;
    height: 18px;
}

.t5s-modal-close:hover,
.t5s-modal-close:focus-visible {
    background: #c49a6c;
    border-color: #c49a6c;
    color: #fff;
    transform: scale(1.04);
    outline: none;
}

.t5s-review-form .comment-notes.t5s-review-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: -2px 0 4px;
    color: #8a7a69;
    font-size: 10px;
    line-height: 1.4;
}

.t5s-review-form .comment-notes.t5s-review-note em {
    font-style: italic;
}

.t5s-review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 4px;
}

.t5s-review-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.t5s-review-stars label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 42px;
    height: 42px; */
    margin: 0;
    /* border: 1px solid #d8c6b1; */
    /* border-radius: 6px; */
    background: #fff;
    color: #c7b8a5;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.t5s-review-stars label:hover {
    transform: translateY(-1px);
}

.t5s-review-stars input:checked~label,
.t5s-review-stars label:hover,
.t5s-review-stars label:hover~label {
    /* background: #e3b94f; */
    /* border-color: #e3b94f; */
    color: #e3b94f;
}

@media (max-width: 1023px) {
    .t5s-category-related-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .t5s-category-related-news__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .t5s-category-related-news__grid {
        grid-template-columns: 1fr;
    }
}