/* --- Global Container --- */
.okVisa-main-container {
    margin: 0 auto;
    direction: rtl;
    font-family: "Anjoman Max", "Anjoman", sans-serif;
}

/* --- Comment List Layout --- */
.okVisa-comment-list-container {
    display: flex;
    justify-content: center;
}

.okVisa-comment-list {
    list-style: none;
    max-width: 1190px;
    padding: 0;
    flex: 1;
}

.okVisa-comment-node {
    list-style: none;
    margin-bottom: 16px;
}

/* --- Comment Card Design --- */
.okVisa-comment-card {
    background: #F8F8F8;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.okVisa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.okVisa-author {
    color: #2E247A;
    font-size: 22px;
    font-weight: 700;
}

.okVisa-time {
    color: #7B7B7B;
    font-size: 18px;
    font-weight: 400;
}

.okVisa-content {
    color: #000;
    font-size: 20px;
    line-height: 30px;
    text-align: right;
}

.okVisa-reply-btn {
    display: flex;
    justify-content: flex-end;
}

.okVisa-reply-btn a {
    color: #C51A1B;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

/* --- Nested Replies Logic --- */
/* Flatten bottom of parent if it has children */
.okVisa-comment-node:has(> .children) > .okVisa-comment-card {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Style the children container to merge with parent */
.okVisa-comment-node > .children {
    background: #F8F8F8;
    list-style: none;
    margin: 0;
    padding: 0 0 16px 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Add top border and specific radius to child cards */
.children .okVisa-comment-card {
    border-top: 1px solid #BEBBD6;
    border-radius: 0 0 20px 20px;
}

/* --- Comment Form Styling --- */
#okVisa-respond {
    margin-top: 40px;
    padding: 20px;
}

.okVisa-form-header h3 {
    color: #2E247A;
    font-size: 32px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 8px;
}

.okVisa-form-header p {
    color: #7B7B7B;
    font-size: 18px;
    text-align: right;
    margin-bottom: 24px;
}

.okVisa-form-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.okVisa-input-group {
    flex: 1 1 calc(50% - 25px)!important;
    display: flex!important;
    flex-direction: column!important;
    gap: 6px!important;
}

.okVisa-input-group.okVisa-full {
    flex: 1 1 100%!important;
}

.okVisa-input-group label {
    color: #344054!important;
    font-size: 14px!important;
    font-weight: 500!important;
    text-align: right!important;
}

.okVisa-input-group input, 
.okVisa-input-group textarea {
    background: white!important;
    border: 1px solid #D0D5DD!important;
    border-radius: 8px!important;
    padding: 10px 14px!important;
    font-size: 16px!important;
    color: #667085!important;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05)!important;
    outline: none!important;
    text-align: right!important;
}

.okVisa-submit-btn {
    background: #2E247A !important;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    border: none !important;
    cursor: pointer;
    box-shadow: 0px 3px 12px rgba(255, 255, 255, 0.25) inset;
    margin-top: 14px;
}

.okVisa-main-container .main-header{
    font-weight:700;
    color:#2E247A;
    font-size:32px;
}
/* Helpers */
.form-submit {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

#cancel-comment-reply-link {
    color: #2E247A !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .okVisa-input-group { flex: 1 1 100%; }
    .okVisa-author { font-size: 18px; }
    .okVisa-content { font-size: 16px; }
    .okVisa-form-header h3 { font-size: 24px; }
}