.ntmmo-comments-area {
    margin-top: 40px;
    margin-bottom: 48px;
    padding: 24px 24px 36px;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-light, #EDE8E2);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.02));
    font-family: var(--font-body), inherit;
    --ntmmo-primary: var(--accent-primary, #E05A2B);
    --ntmmo-primary-hover: var(--accent-primary-dark, #C44A1E);
    --ntmmo-bg: var(--bg-surface, #ffffff);
    --ntmmo-bg-alt: var(--bg-elevated, #F5F0EB);
    --ntmmo-border: var(--border-light, #EDE8E2);
    --ntmmo-text: var(--text-secondary, #5A5A5A);
    --ntmmo-text-muted: var(--text-muted, #9A9A9A);
    --ntmmo-radius: var(--radius-md, 8px);
}

.ntmmo-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--ntmmo-border);
    margin-bottom: 24px;
    padding-bottom: 8px;
    position: relative;
}

.ntmmo-comments-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--ntmmo-primary);
}

.ntmmo-comments-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ntmmo-text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.ntmmo-comments-count {
    color: var(--ntmmo-text);
}
.ntmmo-header-icon {
    color: var(--ntmmo-text-muted);
}
.ntmmo-header-actions {
    display: flex;
    gap: 12px;
}

/* Form Styles */
.ntmmo-form {
    background: var(--ntmmo-bg-alt);
    padding: 24px;
    border-radius: var(--ntmmo-radius);
    border: 1px solid var(--ntmmo-border);
    margin-bottom: 40px;
}

.ntmmo-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.ntmmo-form-row > * {
    flex: 1;
}

@media (max-width: 600px) {
    .ntmmo-form-row {
        flex-direction: column;
        gap: 16px;
    }
}

.ntmmo-form-group {
    margin-bottom: 16px;
}

.ntmmo-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ntmmo-text);
}

.ntmmo-form-group input[type="text"],
.ntmmo-form-group input[type="email"],
.ntmmo-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) inset;
}

.ntmmo-form-group input:focus,
.ntmmo-form-group textarea:focus {
    border-color: var(--ntmmo-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.12);
}

.ntmmo-input-with-button {
    display: flex;
    gap: 8px;
}
.ntmmo-input-with-button input {
    flex: 1;
}

.ntmmo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-transform: none;
    line-height: 1.5;
}
.ntmmo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ntmmo-btn-primary {
    background: var(--ntmmo-primary);
    color: #fff;
}
.ntmmo-btn-primary:hover:not(:disabled) {
    background: var(--ntmmo-primary-hover);
    color: #fff;
}

.ntmmo-btn-secondary {
    background: transparent;
    color: var(--ntmmo-primary);
    border: 1.5px solid var(--ntmmo-primary);
}
.ntmmo-btn-secondary:hover:not(:disabled) {
    background: var(--accent-primary-light, #FFF0EB);
    color: var(--ntmmo-primary-hover);
}

.ntmmo-help-text {
    font-size: 12px;
    color: var(--ntmmo-text-muted);
    margin-top: 6px;
    margin-bottom: 0;
}

.ntmmo-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.ntmmo-submit-msg {
    font-size: 14px;
    font-weight: 500;
}
.ntmmo-submit-msg.success { color: #059669; }
.ntmmo-submit-msg.error { color: #dc2626; }

/* Comment Thread Layout (wpDiscuz Style) */
.ntmmo-comment-thread {
    margin-bottom: 15px;
}

.ntmmo-comment-wrap {
    display: flex;
    position: relative;
}

.ntmmo-comment-left {
    position: relative;
    width: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ntmmo-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 2px;
}

.ntmmo-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}
.ntmmo-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Vertical Thread Line */
.ntmmo-comment-left::after {
    content: '';
    position: absolute;
    top: 48px;
    bottom: -20px;
    left: 50%;
    width: 1px;
    background: #e5e5e5;
    z-index: 1;
}
/* Hide line for last child or non-nested */
.ntmmo-comment-thread:last-child > .ntmmo-comment-wrap > .ntmmo-comment-left::after {
    display: none;
}

.ntmmo-comment-right {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    padding-bottom: 6px;
}

/* Viền đỏ cho admin comment theo plan */
.ntmmo-comment-thread.ntmmo-is-admin > .ntmmo-comment-wrap > .ntmmo-comment-right > .ntmmo-comment-box {
    border-left: 3px solid var(--ntmmo-primary) !important;
}

.ntmmo-comment-box {
    background: var(--ntmmo-bg);
    padding: 12px 16px 8px;
    border-radius: var(--ntmmo-radius);
    border: 1px solid var(--ntmmo-border);
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
}
.ntmmo-comment-box:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.ntmmo-comment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 8px;
}

/* LEFT: name + time inline */
.ntmmo-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* RIGHT: badge + link icon */
.ntmmo-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ntmmo-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ntmmo-primary);
}

.ntmmo-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}
.ntmmo-badge-admin {
    background: var(--ntmmo-primary);
}
.ntmmo-badge-verified {
    background: #10b981;
}

.ntmmo-comment-meta-right {
    color: #ccc;
    display: flex;
    align-items: center;
}

.ntmmo-comment-subheader {
    display: none; /* subheader removed — date/reply-to are now in header-row */
}

.ntmmo-replying-to {
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: italic;
}

.ntmmo-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ntmmo-comment-content {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 400;
}
.ntmmo-comment-content p {
    margin-bottom: 10px;
}
.ntmmo-comment-content p:last-child {
    margin-bottom: 0;
}

/* Footer Actions */
.ntmmo-comment-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    margin-top: 4px;
}

.ntmmo-btn-vote {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s, transform 0.1s;
    padding: 0;
}
.ntmmo-btn-vote:hover, .ntmmo-btn-vote.active {
    color: var(--ntmmo-primary);
    transform: scale(1.05);
}
.ntmmo-vote-count {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.ntmmo-footer-separator {
    color: #ddd;
    font-size: 12px;
}
.ntmmo-btn-reply {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}
.ntmmo-btn-reply:hover {
    color: var(--ntmmo-primary);
}

.ntmmo-action-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
}

/* Nested Children */
.ntmmo-children {
    margin-top: 15px;
    padding-left: 28px;
    border-left: 1px solid #eaeaea;
}
.ntmmo-children .ntmmo-comment-left {
    width: 40px;
}
.ntmmo-children .ntmmo-avatar-wrap {
    width: 32px;
    height: 32px;
}
.ntmmo-children .ntmmo-avatar {
    font-size: 14px;
}
.ntmmo-children .ntmmo-comment-left::after {
    top: 32px;
}

/* WooCommerce Rating Summary */
.ntmmo-rating-summary {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr;
    gap: 24px;
    background: var(--ntmmo-bg);
    border-radius: 12px;
    padding: 16px 24px;
    border: 1px solid var(--ntmmo-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
    align-items: center;
}
@media (max-width: 768px) {
    .ntmmo-rating-summary {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
}
.ntmmo-rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-right: 1px solid #f0f0f0;
    padding-right: 24px;
}
@media (max-width: 768px) {
    .ntmmo-rating-score {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 16px;
    }
}
.ntmmo-rating-action-mobile-helper {
    /* Responsive helper for action column */
}
@media (max-width: 768px) {
    .ntmmo-rating-action {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #f0f0f0;
        padding-top: 16px;
        width: 100%;
    }
}
.ntmmo-rating-score-value {
    font-size: 48px;
    font-weight: 800;
    color: #111111;
    line-height: 1;
    letter-spacing: -1.5px;
}
.ntmmo-rating-score-stars {
    font-size: 22px;
    margin: 4px 0;
    display: flex;
    gap: 2px;
}
.ntmmo-rating-score-count {
    font-size: 13px;
    color: var(--ntmmo-text-muted);
}
@media (max-width: 768px) {
    .ntmmo-rating-score-value {
        font-size: 30px;
        letter-spacing: -0.5px;
        white-space: nowrap;
    }
    .ntmmo-rating-score-stars {
        margin: 0;
        align-items: center;
    }
    .ntmmo-rating-score-count {
        white-space: nowrap;
    }
}
.ntmmo-rating-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.ntmmo-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ntmmo-text-muted);
}
.ntmmo-rating-bar-wrap {
    flex: 1;
    height: 6px;
    background: #e5e5ea;
    border-radius: 99px;
    overflow: hidden;
}
.ntmmo-rating-bar-fill {
    height: 100%;
    background: var(--ntmmo-primary);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.ntmmo-star {
    color: #d1d1d6;
}
.ntmmo-star-filled {
    color: var(--ntmmo-primary) !important;
}

.ntmmo-stars-interactive {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.ntmmo-stars-interactive .ntmmo-star {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
    display: inline-block;
}
.ntmmo-stars-interactive .ntmmo-star:hover {
    transform: scale(1.2);
}

/* Toast Notifications */
.ntmmo-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.ntmmo-toast {
    background: #fff;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    animation: ntmmo-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    border-left: 4px solid var(--ntmmo-primary);
}
.ntmmo-toast.success {
    border-left-color: #10b981;
}
.ntmmo-toast.error {
    border-left-color: #ef4444;
}
.ntmmo-toast.hiding {
    animation: ntmmo-toast-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ntmmo-toast-in {
    to { transform: translateY(0); opacity: 1; }
}
@keyframes ntmmo-toast-out {
    to { transform: translateY(10px); opacity: 0; }
}

/* Modal and Filter Styles */
@keyframes ntmmo-modal-in {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ntmmo-modal-overlay {
    transition: background-color 0.25s ease;
}

.ntmmo-filter-btn:hover {
    border-color: var(--ntmmo-primary) !important;
    color: var(--ntmmo-primary) !important;
    background-color: var(--accent-primary-light, #FFF0EB) !important;
}

.ntmmo-filter-btn.active {
    background-color: var(--ntmmo-primary) !important;
    color: #ffffff !important;
    border-color: var(--ntmmo-primary) !important;
}

.twr-upload-area {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.twr-upload-area:hover {
    border-color: var(--ntmmo-primary) !important;
    background-color: var(--accent-primary-light, #FFF0EB) !important;
}

/* Pagination Styling */
.ntmmo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.ntmmo-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f5f5f7;
    color: #333;
    outline: none;
}
.ntmmo-page-btn:hover {
    background: #e5e5ea;
    transform: scale(1.05);
}
.ntmmo-page-ellipsis {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
}

/* Custom Height Collapse and Fading Gradient (Le Van Toan Blog Style) */
.ntmmo-comments-list-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fading Gradient Overlay placed directly behind the button when collapsed */
.ntmmo-toggle-wrap.ntmmo-collapsed-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.98) 60%, rgba(255, 255, 255, 1) 100%);
    padding-top: 85px; /* height of gradient fadeout */
    padding-bottom: 16px;
    display: flex;
    justify-content: center;
    margin: 0;
}

.ntmmo-toggle-wrap.ntmmo-expanded-btn {
    position: relative;
    background: none;
    padding: 24px 0 12px;
    display: flex;
    justify-content: center;
    margin: 0;
    z-index: 10;
}

.ntmmo-btn-toggle-reviews {
    background: var(--ntmmo-bg) !important;
    border: 1.5px solid var(--ntmmo-border) !important;
    color: var(--ntmmo-primary) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px !important;
    border-radius: 99px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ntmmo-btn-toggle-reviews:hover {
    color: var(--ntmmo-primary-hover) !important;
    border-color: var(--ntmmo-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 90, 43, 0.15);
}

.ntmmo-btn-toggle-reviews:active {
    transform: translateY(0);
}

/* SVG Chevron transition rotation */
.ntmmo-chevron-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.ntmmo-toggle-wrap.ntmmo-expanded-btn .ntmmo-chevron-icon {
    transform: rotate(180deg);
}

/* Loop stars scaling */
.ntmmo-loop-stars .ntmmo-star {
    width: 14px !important;
    height: 14px !important;
    margin-right: 0 !important;
}

/* ── Mobile filter trigger ── */
.ntmmo-filter-mobile-wrap { display: none; }

.ntmmo-filter-mobile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9f9fb;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ntmmo-filter-mobile-btn:hover {
    border-color: var(--ntmmo-primary);
    box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.08);
}
.ntmmo-filter-active-chip {
    margin-left: auto;
    background: var(--ntmmo-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Bottom sheet overlay ── */
.ntmmo-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    align-items: flex-end;
    justify-content: center;
}
.ntmmo-sheet-overlay.open { display: flex; }

.ntmmo-filter-sheet {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    padding-bottom: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ntmmo-sheet-overlay.open .ntmmo-filter-sheet { transform: translateY(0); }

.ntmmo-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px auto 0;
}
.ntmmo-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.ntmmo-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.ntmmo-sheet-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
}
.ntmmo-sheet-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 20px 8px;
}
.ntmmo-sheet-chips .ntmmo-filter-btn {
    padding: 13px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--ntmmo-border);
    background: var(--ntmmo-bg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    text-align: center;
    box-shadow: none;
    white-space: nowrap;
}
.ntmmo-sheet-chips .ntmmo-filter-btn:hover {
    border-color: var(--ntmmo-primary);
    color: var(--ntmmo-primary);
}
.ntmmo-sheet-chips .ntmmo-filter-btn.active {
    background: var(--ntmmo-primary) !important;
    color: #fff !important;
    border-color: var(--ntmmo-primary) !important;
}

@media (max-width: 600px) {
    .ntmmo-filter-bar-desktop { display: none !important; }
    .ntmmo-filter-mobile-wrap { display: block; margin-bottom: 20px; }
}

/* ── Admin inline avatar (inside box, visible only on mobile) ── */
.ntmmo-admin-inline-avatar {
    display: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(224,90,43,0.25);
    align-self: center;
}
.ntmmo-admin-inline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Admin reply banner + Verified buyer banner (inside box, top strip) ── */
.ntmmo-admin-reply-banner,
.ntmmo-verified-banner {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    /* bleed to full box width, sit flush at top */
    padding: 6px 14px;
    margin: -12px -16px 10px;
    border-radius: 9px 9px 0 0;
    letter-spacing: 0.2px;
}
.ntmmo-admin-reply-banner {
    background: var(--accent-primary-light, #FFF0EB);
    color: var(--ntmmo-primary-hover);
}
.ntmmo-verified-banner {
    background: #d1fae5;
    color: #065f46;
}
.ntmmo-banner-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-weight: 500;
    font-size: 11px;
    opacity: 0.85;
}

@media (max-width: 600px) {
    /* Hiện banner bên trong box */
    .ntmmo-admin-reply-banner { display: flex; }
    .ntmmo-verified-banner    { display: flex; }

    /* Breakout: admin reply card breaks out of .ntmmo-children indent */
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin {
        margin-left: -28px;
        width: calc(100% + 28px);
    }
    /* Ẩn cột avatar ngoài + restore padding cho nội dung bên phải */
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin > .ntmmo-comment-wrap > .ntmmo-comment-left {
        display: none;
    }
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin > .ntmmo-comment-wrap > .ntmmo-comment-right {
        padding-left: 0;
    }
    /* Hiện avatar mini bên trong box */
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin .ntmmo-admin-inline-avatar {
        display: flex;
    }
    /* Admin: ẩn "🔁 Trả lời" replying-to + badge "✓ Người bán" + timestamp (đã có trong banner) */
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin .ntmmo-replying-to {
        display: none;
    }
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin .ntmmo-badge-admin {
        display: none;
    }
    .ntmmo-children .ntmmo-comment-thread.ntmmo-is-admin .ntmmo-header-right {
        display: none;
    }
    /* Footer (Like | Trả lời) của admin reply: HIỆN bình thường */

    /* Verified buyer: ẩn badge trong card (đã có banner), ẩn timestamp */
    .ntmmo-comment-thread[data-verified="1"] .ntmmo-badge-verified {
        display: none;
    }
    .ntmmo-comment-thread[data-verified="1"] .ntmmo-header-right {
        display: none;
    }
}

/* ── Mobile responsive comment header ── */
@media (max-width: 520px) {
    .ntmmo-comment-header-row {
        flex-wrap: wrap;
        gap: 4px;
    }
    .ntmmo-header-left {
        flex-wrap: nowrap;
        max-width: calc(100% - 80px);
        overflow: hidden;
    }
    .ntmmo-author-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    .ntmmo-replying-to {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ntmmo-badge {
        font-size: 10px !important;
        padding: 2px 5px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ntmmo-header-right {
        margin-left: auto;
        gap: 4px;
    }
    .ntmmo-date {
        font-size: 11px;
        white-space: nowrap;
    }
    .ntmmo-comment-box {
        padding: 10px 12px 6px;
    }
    .ntmmo-comment-content {
        font-size: 13px;
    }
}

/* ── Upload area (image/video) ── */
.twr-upload-area {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.twr-upload-area:hover,
.twr-upload-area.drag-over {
    border-color: var(--ntmmo-primary) !important;
    background-color: var(--accent-primary-light, #FFF0EB) !important;
}

/* Media preview thumbnails */
#ntmmo-media-preview .ntmmo-preview-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #c8dff0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4fb;
    flex-shrink: 0;
}
#ntmmo-media-preview .ntmmo-preview-thumb img,
#ntmmo-media-preview .ntmmo-preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#ntmmo-media-preview .ntmmo-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
#ntmmo-media-preview .ntmmo-preview-remove:hover {
    background: rgba(220, 38, 38, 0.85);
}

/* Verified buyer badge — tighter */
.ntmmo-badge-verified {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Photo/Video thumbnails in comment display */
.ntmmo-photo-thumb {
    transition: transform 0.2s, box-shadow 0.2s;
}
.ntmmo-photo-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.ntmmo-video-thumb {
    cursor: pointer;
}


