/* Approved company comments only. Theme review__card + btn_blue classes remain in use. */
.tincraft-company-reviews {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 32px 0 56px;
}
.tincraft-company-reviews__list {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 32px;
}
.tincraft-company-reviews .tincraft-company-reviews__card {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    flex: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 22px;
    height: auto;
    border: 1px solid #e7e9ed;
    border-radius: 12px;
    background: #f7f7f8;
    box-shadow: 0 3px 15px rgb(0 0 0 / 4%);
}
.tincraft-company-reviews .tincraft-company-reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
}
.tincraft-company-reviews__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.tincraft-company-reviews .tincraft-company-reviews__avatar {
    flex: none;
    display: block;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: #e9eef4;
    object-fit: contain;
}
.tincraft-company-reviews__author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.tincraft-company-reviews__author .review__card-username {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.tincraft-company-reviews__author time {
    font-size: 12px;
    color: #83909c;
    line-height: 1.4;
}
.tincraft-company-reviews__score {
    flex: none;
    font-size: 17px;
    font-weight: 700;
    color: #354151;
}
.tincraft-company-reviews__score small {
    font-size: 12px;
    color: #8d959e;
    font-weight: 400;
}
.tincraft-company-reviews__stars {
    display: flex;
    gap: 3px;
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1;
    color: #cbd2d9;
}
.tincraft-company-reviews__stars .is-filled {
    color: #f5b400;
}
.tincraft-company-reviews .tincraft-company-reviews__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #26313b;
    overflow-wrap: anywhere;
    white-space: normal;
}
/* Maintain WordPress's comment_form() with the site's usual submit button. */
.tincraft-company-reviews .comment-respond {
    box-sizing: border-box;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #e0e6ec;
    border-radius: 12px;
    background: #f7f9fa;
}
.tincraft-company-reviews .comment-reply-title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    margin: 0 0 18px;
}
.tincraft-company-reviews .logged-in-as,
.tincraft-company-reviews .comment-notes,
.tincraft-company-reviews .must-log-in {
    font-size: 13px;
    line-height: 1.6;
    color: #677484;
}
/* The owner's guest-review policy: only a name field, before rating/text. */
.tincraft-company-reviews .comment-form-author {
    margin: 18px 0;
}
.tincraft-company-reviews .comment-form-author label {
    display: block;
    font-weight: 600;
    margin: 0 0 9px;
}
.tincraft-company-reviews .comment-form-author input {
    display: block;
    box-sizing: border-box;
    width: min(100%, 420px);
    max-width: 100%;
    height: 46px;
    padding: 11px 14px;
    border: 1px solid #ccd6df;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.tincraft-company-reviews .comment-form-author input:focus-visible {
    outline: 2px solid #2389ce;
    outline-offset: 2px;
}

.tincraft-company-reviews .comment-form-comment label {
    display: block;
    font-weight: 600;
    margin-bottom: 9px;
}
.tincraft-company-reviews .comment-form-comment textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ccd6df;
    border-radius: 8px;
    font: inherit;
    line-height: 1.55;
}
.tincraft-company-reviews .comment-form-comment textarea:focus-visible {
    outline: 2px solid #2389ce;
    outline-offset: 2px;
}
.tincraft-company-reviews .form-submit {
    margin-bottom: 0;
}
.tincraft-company-reviews .form-submit .submit {
    cursor: pointer;
}
/* Optional 1–5 rating: keyboard-operable native radios, labels in theme gold. */
.tincraft-review-rating {
    border: 0;
    padding: 0;
    margin: 22px 0 18px;
    min-width: 0;
}
.tincraft-review-rating legend {
    font-size: 15px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 9px;
}
.tincraft-review-rating legend small {
    font-weight: 400;
    font-size: 12px;
    color: #85919d;
}
.tincraft-review-rating__choices {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2px;
}
.tincraft-review-rating__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.tincraft-review-rating__star {
    display: inline-block;
    margin: 0;
    padding: 2px 3px;
    font-size: 31px;
    line-height: 1.15;
    color: #bcc7d2;
    cursor: pointer;
    transition: color .12s ease;
}
.tincraft-review-rating__input:checked ~ .tincraft-review-rating__star,
.tincraft-review-rating__star:hover,
.tincraft-review-rating__star:hover ~ .tincraft-review-rating__star {
    color: #f5b400;
}
.tincraft-review-rating__input:focus-visible + .tincraft-review-rating__star {
    outline: 2px solid #208bd4;
    outline-offset: 1px;
    border-radius: 4px;
}
/* Success appears inline under the form, never as an obstructive fixed toast. */
.tincraft-review-feedback,
.tincraft-review-feedback:not(.is-visible),
.tincraft-review-feedback[hidden] {
    display: none !important;
}
.tincraft-review-feedback.is-visible:not([hidden]) {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 0;
    padding: 20px 22px;
    background: #f0f8f3;
    border: 1px solid #b6ddc5;
    border-left: 4px solid #278755;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(19 73 41 / 7%);
    color: #233d30;
    scroll-margin-top: 110px;
}
.tincraft-review-feedback__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    margin-top: 1px;
    border-radius: 50%;
    background: #278755;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.tincraft-review-feedback__content {
    min-width: 0;
    flex: 1;
}
.tincraft-review-feedback__title {
    display: block;
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.4;
}
.tincraft-review-feedback__content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.tincraft-review-feedback [data-review-state] {
    display: none !important;
}
.tincraft-review-feedback[data-notice-state="pending"] [data-review-state="pending"],
.tincraft-review-feedback[data-notice-state="published"] [data-review-state="published"] {
    display: block !important;
}
.tincraft-review-feedback__close {
    flex: none;
    min-width: 32px;
    min-height: 32px;
    margin: -4px -8px 0 0;
    border: 0;
    padding: 0 6px;
    border-radius: 5px;
    background: transparent;
    color: #365543;
    line-height: 1;
    font-size: 25px;
    cursor: pointer;
}
.tincraft-review-feedback__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
@media (max-width: 650px) {
    .tincraft-company-reviews__list {
        grid-template-columns: minmax(0, 1fr);
    }
    .tincraft-company-reviews .tincraft-company-reviews__card {
        padding: 18px;
    }
    .tincraft-review-feedback.is-visible:not([hidden]) {
        padding: 18px 15px;
    }
}
