.ft-comments-widget {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    direction: rtl;
    max-width: 100%;
}

.ft-comments-sidebar {
    flex: 0 0 30%;
    background: #f2f2f2;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 125px;
}

.ft-sidebar-stars {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.ft-stars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-star-large span {
    color: #f59e0b;
    font-size: 32px;
    line-height: 1;
    margin-left: 4px;
}

.ft-star-large span i,
.ft-star-large span svg {
    font-size: 32px;
    width: 1em;
    height: 1em;
}

.ft-sidebar-title {
    margin: 10px 0 12px;
    font-size: 30px;
    color: #111827;
}

.ft-sidebar-description {
    color: #4b5563;
    margin-bottom: 14px;
}

.ft-comments-sidebar .comment-form {
    margin-top: 8px;
}

.ft-comments-sidebar .submit {
    width: 100%;
    background: #b45309;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
}

.ft-comments-sidebar .submit:hover {
    opacity: 0.92;
}

.ft-comments-sidebar .form-submit {
    margin-bottom: 0;
}

.ft-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}

.ft-rate-star {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.ft-rate-star:hover {
    background: #ECEFF4;
}

.ft-rate-star.is-active {
    color: #b45309;
}

.ft-rate-star-empty,
.ft-rate-star-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-rate-star-empty {
    color: #9ca3af;
}

.ft-rate-star-filled {
    display: none;
    color: #b45309;
}

.ft-rate-star.is-active .ft-rate-star-empty {
    display: none;
}

.ft-rate-star.is-active .ft-rate-star-filled {
    display: inline-flex;
}

.ft-rate-star i,
.ft-rate-star svg {
    font-size: 40px;
    width: 1em;
    height: 1em;
}

.ft-comments-modal-open {
    overflow: hidden;
}

.ft-comments-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.ft-comments-modal-overlay.is-open {
    display: flex;
}

.ft-comments-modal {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 25px;
    padding: 28px;
    position: relative;
}

.ft-comments-modal-close {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    position: absolute;
    top: 12px;
    left: 12px;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.ft-comments-modal-close:hover {
    background: #ECEFF4;
}

.ft-comments-modal-logo {
    text-align: center;
    margin-bottom: 12px;
}

.ft-comments-modal-logo img {
    max-height: 42px;
    width: auto;
}

.ft-comments-brand-name {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.ft-comments-modal-header {
    text-align: center;
    margin-bottom: 12px;
}

.ft-comments-modal-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ft-comments-modal-title-icon {
    color: #6b7280;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-comments-modal-title-icon i,
.ft-comments-modal-title-icon svg {
    font-size: 20px;
    width: 1em;
    height: 1em;
}

.ft-comments-modal-help {
    margin: 0;
    color: #9ca3af;
    font-size: 15px;
}

.ft-comments-modal-form-wrap {
    margin-top: 16px;
}

.ft-comments-modal .comment-respond,
.ft-comments-modal .comment-form {
    margin: 0;
}

.ft-comments-modal .comment-form-ft-title,
.ft-comments-modal .comment-form-comment,
.ft-comments-modal .ft-comments-rating-input {
    margin-bottom: 12px;
}

.ft-comments-modal .comment-form-ft-title input,
.ft-comments-modal .comment-form-comment textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 13px 14px;
    color: #374151;
    outline: none;
    text-align: right;
}

.ft-comments-modal .comment-form-comment textarea {
    resize: vertical;
    min-height: 130px;
}

.ft-comments-modal .comment-form-ft-title input:focus,
.ft-comments-modal .comment-form-comment textarea:focus {
    border-color: #d1d5db;
}

.ft-comments-modal .form-submit {
    margin: 0;
}

.ft-comments-modal .submit {
    width: 100%;
    background: #b45309;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 18px;
}

.ft-comments-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.ft-comment-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ft-comment-main,
.ft-comment-reply-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ft-comment-profile {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.ft-avatar img,
.ft-avatar .avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
}

.ft-reply-profile .ft-avatar img,
.ft-reply-profile .ft-avatar .avatar {
    width: 40px;
    height: 40px;
}

.ft-author-name {
    margin-top: 8px;
    color: #1f2937;
    font-size: 14px;
}

.ft-comment-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.ft-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ft-comment-title {
    font-size: 16px;
    margin: 0;
    color: #111827;
}

.ft-star-small span {
    font-size: 14px;
    margin-left: 2px;
}

.ft-star-small span i,
.ft-star-small span svg {
    font-size: 14px;
    width: 1em;
    height: 1em;
}

.ft-star-small .is-active {
    color: #f59e0b;
}

.ft-star-small .is-inactive {
    color: #9ca3af;
}

.ft-comment-text,
.ft-comment-text p {
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ft-comment-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ft-comment-date {
    color: #6b7280;
    font-size: 13px;
}

.ft-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ft-comment-actions a,
.ft-comment-action-link,
.ft-comment-vote {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ft-comment-action-link,
.ft-comment-vote {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.ft-comment-action-link:hover,
.ft-comment-vote:hover {
    background: #ECEFF4;
}

.ft-comment-vote.is-locked {
    opacity: 0.65;
    cursor: default;
}

.ft-action-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ft-action-icon-wrap i,
.ft-action-icon-wrap svg {
    font-size: 13px;
    width: 1em;
    height: 1em;
}

.ft-comment-replies {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-comment-replies-depth-2,
.ft-comment-replies-depth-3,
.ft-comment-replies-depth-4,
.ft-comment-replies-depth-5 {
    margin-right: 22px;
}

.ft-comment-reply-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ft-reply-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.ft-reply-footer .ft-comment-actions {
    gap: 8px;
}

.ft-no-comments,
.ft-comments-widget-empty {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 18px;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .ft-comments-widget {
        flex-direction: column;
    }

    .ft-comments-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .ft-comments-widget,
    .ft-comments-feed,
    .ft-comment-card,
    .ft-comment-reply-item,
    .ft-comment-content {
        max-width: 100%;
    }

    .ft-comment-main,
    .ft-comment-reply-item {
        flex-direction: column;
    }

    .ft-comment-profile {
        width: 100%;
        text-align: right;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ft-author-name {
        margin-top: 0;
    }
}
