.ub-comment-form {
    background: #F5F8FE;
    border: 1px solid #DFE7F4;
    border-radius: 20px;
    padding: 28px;
    margin: 24px 0;
    color: #17325E;
    font-family: "Blogger Sans", Arial, sans-serif;
    min-width: 0;
}
.ub-comment-form *, .ub-comment-form *::before, .ub-comment-form *::after {
    box-sizing: border-box;
}
.ub-comment-heading {
    display: flex;
    align-items: start;
    gap: 16px;
    margin-bottom: 24px;
}
.ub-comment-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #E7EEFF;
    color: #3263D9;
    flex: 0 0 44px;
}
.ub-comment-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ub-comment-heading span {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 8px;
}
.ub-comment-heading p, .ub-comment-actions p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #627797;
}
.ub-comment-guest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.ub-comment-field { min-width: 0; }
.ub-comment-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}
.ub-comment-form .ub-comment-field input, .ub-comment-editor textarea {
    width: 100%;
    border: 1px solid #CCD9ED;
    border-radius: 11px;
    background: #FFFFFF;
    color: #17325E;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.ub-comment-field input:focus, .ub-comment-editor textarea:focus {
    outline: 3px solid #3263D926;
    outline-offset: 1px;
    border-color: #3263D9;
}
.ub-comment-editor { min-width: 0; }
.ub-comment-editor textarea {
    min-height: 170px;
    resize: vertical;
}
.ub-comment-editor .bbcodes, .ub-comment-editor .bbcodes_poll { max-width: 100%; }
.ub-comment-editor .bb-editor, .ub-comment-editor .fr-box, .ub-comment-editor .tox {
    max-width: 100%;
}
.ub-comment-editor iframe { max-width: 100%; }
.ub-comment-upload, .ub-comment-security { margin-top: 20px; }
.ub-comment-captcha { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
.ub-comment-captcha-image { max-width: 100%; }
.ub-comment-captcha-image img { max-width: 100%; }
.ub-comment-recaptcha { max-width: 100%; overflow-x: auto; }
.ub-comment-security .ub-comment-field { max-width: 360px; }
.ub-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}
.ub-comment-actions p { max-width: 410px; }
.ub-comment-actions button { flex-shrink: 0; }
@media (max-width: 600px) {
    .ub-comment-form { padding: 20px 16px; border-radius: 16px; }
    .ub-comment-guest { grid-template-columns: 1fr; }
    .ub-comment-heading { gap: 12px; }
    .ub-comment-heading h3 { font-size: 22px; }
    .ub-comment-actions { flex-direction: column; align-items: stretch; gap: 18px; }
    .ub-comment-actions p { max-width: none; }
    .ub-comment-security input { max-width: 100%; }
}

.ub-comment-actions .ub-button-primary {
    color: #FFFFFF;
    background: #3263D9;
    border: 1px solid #3263D9;
    cursor: pointer;
}
.ub-comment-actions .ub-button-primary:hover {
    background: #234FB9;
    border-color: #234FB9;
}
.ub-comment-actions .ub-button-primary:focus-visible {
    outline: 3px solid #3263D94D;
    outline-offset: 3px;
}
.ub-comment-editor-label {
    display: block;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 8px;
}

.ub-comment {
    margin: 20px 0;
    padding: 24px;
    border: 1px solid #DFE7F4;
    border-radius: 18px;
    background: #FFFFFF;
    color: #17325E;
    font-family: "Blogger Sans", Arial, sans-serif;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ub-comment *,
.ub-comment *::before,
.ub-comment *::after {
    box-sizing: border-box;
}
.ub-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.ub-comment-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    color: #3263D9;
    background: #ECF2FC;
}
.ub-comment-avatar svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ub-comment-author {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.ub-comment-author strong {
    font-size: 18px;
    line-height: 1.3;
}
.ub-comment-author a {
    color: inherit;
    text-decoration: none;
}
.ub-comment-date {
    font-size: 14px;
    line-height: 1.4;
    color: #627797;
}
.ub-comment-text {
    font-size: 17px;
    line-height: 1.6;
}
.ub-comment-text p {
    margin: 0 0 12px;
}
.ub-comment-text p:last-child {
    margin-bottom: 0;
}
.ub-comment-text img,
.ub-comment-text video,
.ub-comment-text iframe {
    max-width: 100%;
}
.ub-comment-text img {
    height: auto;
}
.ub-comment-text pre {
    max-width: 100%;
    overflow: auto;
}
.ub-comment-text blockquote,
.ub-comment-text .quote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 3px solid #3263D9;
    border-radius: 0 10px 10px 0;
    background: #F5F8FE;
}
.ub-comment-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #ECF1F8;
}
.ub-comment-replies,
.ub-comment-manage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
}
.ub-comment-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #3263D9;
    text-decoration: none;
    font-size: 15px;
}
.ub-comment-manage a {
    color: #627797;
    font-size: 14px;
}
.ub-comment a:hover {
    text-decoration: underline;
}
.ub-comment a:focus-visible {
    outline: 3px solid #3263D94D;
    outline-offset: 3px;
    border-radius: 3px;
}
@media (max-width: 600px) {
    .ub-comment {
        padding: 18px 16px;
        border-radius: 16px;
    }
    .ub-comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .ub-comment-text {
        font-size: 16px;
    }
}
