/* OLA Hỏi & Đáp — chỉ class .ola-qa / .ola-qa-* / .ola-qa-toast. Không đụng theme. */
.ola-qa {
    --qa-accent: orangered;
    --qa-accent-2: #f25a93;
    --qa-indigo: #4f46e5;
    --qa-line: #e2e8f0;
    --qa-tl: #c5cad3;
    --qa-av: 36px;
    --qa-gap: 12px;
    --qa-reply-gap: 14px;
    margin: 2rem 0 0.5rem;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #334155;
    box-sizing: border-box;
}
.ola-qa *,
.ola-qa *::before,
.ola-qa *::after { box-sizing: border-box; }
.ola-qa button {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.ola-qa__head {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ola-qa__title { font-size: 1.25rem; font-weight: 800; margin: 0; color: #0f172a; line-height: 1.3; }
.ola-qa__count { font-weight: 700; color: #64748b; }
.ola-qa__sort { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ola-qa__pill {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.ola-qa__pill:hover { border-color: #94a3b8; }
.ola-qa__pill.is-on {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Form gửi hỏi — card giống panel sửa Admin */
.ola-qa__form {
    margin-bottom: 1.25rem;
    padding: 0;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--qa-line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    overflow: visible;
}
.ola-qa__form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f1f4ff 10%, #fff 100%);
    border-bottom: 1px solid var(--qa-line);
    border-radius: 16px 16px 0 0;
    color: #9d174d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow: visible;
    position: relative;
    z-index: 2;
}
.ola-qa__form-head-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.ola-qa__form-head-main > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    .ola-qa__form-head-main i {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #f29532;
        font-size: 1rem;
        flex-shrink: 0;
    }
.ola-qa__google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    min-height: 32px;
    padding: 6px 12px 6px 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    position: relative;
    z-index: 3;
    max-width: none;
    overflow: visible;
}
.ola-qa__google-btn img {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
    object-fit: contain;
}
.ola-qa__google-btn__text {
    flex: 0 0 auto;
    white-space: nowrap;
}
.ola-qa__google-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ola-qa__google-btn:focus {
    outline: none;
    border-color: #f9a8d4;
    box-shadow: 0 0 0 3px rgba(233, 48, 102, 0.12);
}
.ola-qa__google-btn.is-loading,
.ola-qa__google-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}
.ola-qa__google-btn[hidden] {
    display: none !important;
}
.ola-qa__google-spin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    border-top-color: #ea4335;
    animation: ola-qa-google-spin 0.7s linear infinite;
    flex: 0 0 14px;
}
@keyframes ola-qa-google-spin {
    to { transform: rotate(360deg); }
}
.ola-qa__form-body {
    padding: 12px 14px 14px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}
.ola-qa__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.ola-qa__form-row[hidden],
.ola-qa__identity[hidden] {
    display: none !important;
}
.ola-qa__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #e8ecf16b;
    border-radius: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.ola-qa__identity-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, #94a3b8, #64748b);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0;
}
.ola-qa__identity-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ola-qa__identity-av.is-daily {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
}
.ola-qa__identity-av.is-customer {
    background: linear-gradient(145deg, #fb7185, #e11d48);
}
.ola-qa__identity-meta {
    min-width: 0;
    flex: 1;
}
.ola-qa__identity-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f6ecb;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ola-qa__identity-sub {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}
.ola-qa__identity-sub .ola-qa__identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ola-qa__identity-sub .ola-qa__identity-badge.is-daily {
    background: #e0f2fe;
    color: #0369a1;
}
.ola-qa__identity-logout {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.ola-qa__identity-logout i {
    font-size: 0.75rem;
    opacity: 0.9;
}
.ola-qa__identity-logout:hover {
    border-color: #94a3b8;
    background: #fff;
    color: #475569;
    outline: none;
    box-shadow: none;
}
.ola-qa__identity-logout:focus,
.ola-qa__identity-logout:focus-visible {
    outline: none;
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
}
.ola-qa__identity-logout:active {
    transform: none;
}
.ola-qa__identity-logout:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
.ola-qa__replybox .ola-qa__identity {
    margin-bottom: 10px;
    padding: 8px 10px;
}
.ola-qa__replybox .ola-qa__identity-av {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
}
.ola-qa__replybox .ola-qa__identity-logout {
    font-size: 0.78rem;
    padding: 0.24rem 0.75rem;
    gap: 5px;
}
.ola-qa__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ola-qa__field > span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.ola-qa__field--body { margin-bottom: 6px; }
.ola-qa__input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-family: inherit;
    line-height: 1.4;
    color: #0f172a;
    background: #f8fafc;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ola-qa__input:focus {
    outline: none;
    background: #fff;
    border-color: #f9a8d4;
    box-shadow: 0 0 0 3px rgba(233, 48, 102, 0.12);
}
.ola-qa__format-host { margin-bottom: 8px; }
.ola-qa__fmt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 6px;
    background: linear-gradient( 255deg, #ffffff 0%, #f8fafc 100%);
    border: 0px solid var(--qa-line);
    border-radius: 12px;
}
.ola-qa__fmt-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5c6b7a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}
.ola-qa__fmt-btn:hover { background: #eef2f6; color: #0f172a; }
.ola-qa__fmt-sep {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}
.ola-qa__fmt-btn svg { display: block; }
.ola-qa__ed-wrap {
    border: 1px solid var(--qa-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ola-qa__ed-wrap:focus-within {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 3px rgba(233, 48, 102, 0.12);
}
.ola-qa__ed {
    min-height: 5.5rem;
    max-height: 12rem;
    overflow-y: auto;
    padding: 14px 16px !important;
    font-size: 0.9rem;
    line-height: 1.55;
    outline: none;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box;
}
.ola-qa__replybox .ola-qa__ed {
    padding: 12px 14px !important;
}
.ola-qa__ed:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.ola-qa__form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.ola-qa__submit {
    background: linear-gradient(270deg, #FFA600 0%, #F56F21 100%);
    color: #fff;
    border: solid 1px #ffffffb3;
    
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 48, 102, 0.28);
    transition: filter 0.15s ease;
}
.ola-qa__submit:hover { filter: brightness(1.05); }
.ola-qa__submit:disabled { opacity: 0.65; cursor: not-allowed; filter: none; }
.ola-qa__hint { font-size: 0.82rem; color: #64748b; }
.ola-qa__hint.is-ok,
.ola-qa__hint.is-err {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.35;
}
.ola-qa__hint.is-ok {
    color: #15803d;
    background: #dcfce7;
}
.ola-qa__hint.is-err {
    color: #b91c1c;
    background: #fee2e2;
}
.ola-qa__charcount {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    margin-left: auto;
}
.ola-qa__charcount.is-max {
    color: #be123c;
}

/* ========== Danh sách thread — chữ L mềm ========== */
.ola-qa__list {
    display: grid;
    gap: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.ola-qa__list.is-fading {
    opacity: 0.28;
    transform: translateY(6px);
    pointer-events: none;
}
.ola-qa__thread {
    background: #f5f8ff;
    border: 1px solid #dce2e9;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: none;
    animation: olaQaIn 0.38s ease both;
}
.ola-qa__thread:last-child { margin-bottom: 0; border-bottom: 1px solid #e8ecf1; }
.ola-qa__item {
    display: grid;
    grid-template-columns: var(--qa-av) minmax(0, 1fr);
    column-gap: var(--qa-gap);
    row-gap: 0;
    align-items: start;
    position: relative;
}
.ola-qa__item.has-kids {
    align-items: stretch;
}
.ola-qa__item.has-kids > .ola-qa__kids {
    grid-column: 2;
}
.ola-qa__item.has-kids > .ola-qa__rail {
    grid-row: 1;
}
.ola-qa__item.has-kids > .ola-qa__main {
    grid-row: 1;
}
.ola-qa__rail {
    position: relative;
    width: var(--qa-av);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
/* Cùng màu + cùng kỹ thuật 1px với nhánh L; kéo dài chồm 3px vào kids */
.ola-qa__item.has-kids > .ola-qa__rail::after {
    content: "";
    position: absolute;
    left: calc(50% - 0.5px);
    top: var(--qa-av);
    bottom: -3px;
    width: 1px;
    background: var(--qa-tl);
    pointer-events: none;
    z-index: 0;
}
.ola-qa__avatar {
    width: var(--qa-av);
    height: var(--qa-av);
    border-radius: 50%;
    background: #b0b8c4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.86rem;
    overflow: hidden;
    object-fit: cover;
    padding: 0;
    flex-shrink: 0;
    box-shadow: none;
}
img.ola-qa__avatar,
.ola-qa__avatar--img img {
    width: var(--qa-av);
    height: var(--qa-av);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ola-qa__avatar--img {
    padding: 0;
    background: #fff;
    box-shadow: none;
}
.ola-qa__avatar.is-staff {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: none;
}
.ola-qa__main { min-width: 0; }
.ola-qa__item.is-root > .ola-qa__main {
    padding: 0.1rem 0.15rem 0.35rem 0;
}
.ola-qa__item.is-reply > .ola-qa__main {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 0.7rem 0.9rem 0.75rem;
}
.ola-qa__item.is-reply.is-staff > .ola-qa__main {
    background: #f7fbff;
    border-color: #dbeafe;
}
.ola-qa__item.is-pending > .ola-qa__main {
    opacity: 0.92;
}
.ola-qa__item.is-reply.is-pending > .ola-qa__main {
    border-style: dashed;
    border-color: #fcd34d;
    background: #fffbeb;
}
.ola-qa__who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.4rem;
    margin-bottom: 0.18rem;
}
.ola-qa__name {
    font-weight: 650;
    font-size: 0.9rem;
    color: #0f172a;
    margin-right: 0;
    text-transform: capitalize;
}
.ola-qa__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    background: #14b8a6;
    color: #fff;
    border-radius: 4px;
    padding: 0.1rem 0.38rem;
    line-height: 1.2;
}
.ola-qa__staff-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--qa-accent);
    border-radius: 20px;
    padding: 0.22rem 0.4rem;
    line-height: 1.15;
}
.ola-qa__pending-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 0.18rem 0.4rem;
    line-height: 1.15;
}
.ola-qa__body {
    font-size: 0.9rem;
    line-height: 1.62;
    word-break: break-word;
    color: #475569;
    margin: 0.12rem 0 0.4rem;
}
.ola-qa__body b,
.ola-qa__body strong { font-weight: 700; }
.ola-qa__body i,
.ola-qa__body em { font-style: italic; }
.ola-qa__body u { text-decoration: underline; }
.ola-qa__body s,
.ola-qa__body strike,
.ola-qa__body del { text-decoration: line-through; }
.ola-qa__body p { margin: 0 0 0.35em; }
.ola-qa__body p:last-child { margin-bottom: 0; }
.ola-qa__body ul,
.ola-qa__body ol { margin: 0.25em 0 0.35em 1.2em; padding: 0; }
.ola-qa__body a { color: #2563eb; }
.ola-qa__timeline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #a1a8b3;
    line-height: 1;
    margin-left: 0.05rem;
}
.ola-qa__timeline i { font-size: 0.72rem; opacity: 0.9; }
.ola-qa__timeline time { color: inherit; font-style: normal; }
.ola-qa__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ola-qa__actions-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.ola-qa__reply-btn,
.ola-qa__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.28rem 0.5rem;
    line-height: 1.2;
    border-radius: 30px;
    font-family: inherit;
    text-decoration: none !important;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ola-qa__reply-btn {
    color: var(--qa-accent);
    font-size: 0.86rem;
    font-weight: 700;
    background: #e8edf38f;
}
.ola-qa__reply-btn i { font-size: 0.95rem; }
.ola-qa__link {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 650;
    background: #e8edf38f;
}
.ola-qa__link i { font-size: 0.88rem; }
.ola-qa__helpful-txt { font-family: inherit; }
.ola-qa__count-n {
    display: inline-block;
    
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    text-align: left;
}
.ola-qa__reply-btn:hover,
.ola-qa__link:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
}
.ola-qa__reply-btn:hover { background: #f9d0df; }
.ola-qa__link:hover { color: var(--qa-accent); background: #fde8ef; }
.ola-qa__reply-login {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none !important;
    padding: 0.28rem 0.5rem;
    border-radius: 30px;
    background: #e8edf38f;
    line-height: 1.2;
}
.ola-qa__reply-login:hover {
    color: var(--qa-accent);
    background: #fde8ef;
    text-decoration: none !important;
}
.ola-qa__link:hover { color: var(--qa-accent); background: #fde8ef; }

.ola-qa__stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.ola-qa__star {
    background: transparent;
    border: 0;
    padding: 0 1px;
    cursor: pointer;
    color: #c5cbd4;
    font-size: 1.05rem;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}
.ola-qa__star.is-on { color: #f5b301; }
.ola-qa__stars:hover .ola-qa__star { color: #f5b301; }
.ola-qa__stars:hover .ola-qa__star:hover ~ .ola-qa__star { color: #c5cbd4; }
.ola-qa__star-meta {
    margin-left: 4px;
    min-width: 4.2em;
    font-size: 0.75rem;
    font-weight: 650;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    white-space: nowrap;
}

.ola-qa__kids {
    position: relative;
    margin: 0.15rem 0 0;
    padding: 0.2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ola-qa__kids-list {
    display: flex;
    flex-direction: column;
    gap: var(--qa-reply-gap);
    position: relative;
}
/* L: cùng màu #c5cad3 với thân dọc, chồm lên 3px để không hở khúc trên */
.ola-qa__branch {
    position: absolute;
    left: calc(-1 * var(--qa-gap) - var(--qa-av) / 2);
    top: -3px;
    width: calc(var(--qa-gap) + var(--qa-av) / 2 - 2px);
    height: calc(var(--qa-av) / 2 + 3px);
    border: 0;
    border-left: 1px solid var(--qa-tl);
    border-bottom: 1px solid var(--qa-tl);
    border-bottom-left-radius: 12px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}
/* Reply giữa thread: nối dọc xuống reply sau, nhánh ngang tại tâm avatar */
.ola-qa__kids-list > .ola-qa__item:not(:last-child) > .ola-qa__branch {
    height: calc(100% + var(--qa-reply-gap) + 2px);
    border-bottom: 0;
    border-bottom-left-radius: 0;
}
.ola-qa__kids-list > .ola-qa__item:not(:last-child) > .ola-qa__branch::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--qa-av) / 2);
    width: 100%;
    height: 1px;
    background: var(--qa-tl);
    border-bottom-left-radius: 0;
}
.ola-qa__kids.is-collapsed > .ola-qa__kids-list > .ola-qa__item--overflow { display: none; }
.ola-qa__kids.is-expanded > .ola-qa__kids-list > .ola-qa__item--overflow {
    display: grid;
    animation: olaQaIn 0.32s ease both;
}
.ola-qa__kids.is-collapsed > .ola-qa__kids-list > .ola-qa__item:nth-child(3) > .ola-qa__branch {
    height: calc(var(--qa-av) / 2 + 1px);
    border-bottom: 1px solid var(--qa-tl);
    border-bottom-left-radius: 14px;
}
.ola-qa__kids.is-collapsed > .ola-qa__kids-list > .ola-qa__item:nth-child(3) > .ola-qa__branch::after {
    display: none;
}

.ola-qa__thread-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0.15rem 0 0.1rem 0;
    padding: 0;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    order: 99;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.ola-qa__kids.is-expanded > .ola-qa__thread-toggle {
    order: -1;
    margin: 0 0 0.2rem;
}
.ola-qa__thread-toggle:hover { color: var(--qa-accent); opacity: 0.85; text-decoration: none; }
.ola-qa__thread-toggle i { font-size: 0.68rem; }

@keyframes olaQaIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Reply box — cùng ngôn ngữ card form */
.ola-qa__replybox {
    margin-top: 0.65rem;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--qa-line);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    animation: olaQaIn 0.28s ease both;
}
.ola-qa__replybox-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--qa-line);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}
.ola-qa__replybox-head i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
    font-size: 0.7rem;
}
.ola-qa__replybox-body { padding: 10px 12px 12px; }
.ola-qa__replybox .ola-qa__form-row {
    margin-bottom: 10px;
}
.ola-qa__replybox .ola-qa__hint {
    flex: 1 1 100%;
    margin-left: 0;
}
.ola-qa__replybox .ola-qa__format-host { margin-bottom: 8px; }
.ola-qa__replybox .ola-qa__ed-wrap:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ola-qa__replybox .ola-qa__ed { min-height: 4rem; }
.ola-qa__replybox .ola-qa__form-actions {
    margin-top: 10px;
    padding-top: 10px;
}
.ola-qa__replybox .ola-qa__submit {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.ola-qa__reply-cancel {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    cursor: pointer;
}
.ola-qa__reply-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ola-qa__empty { color: #64748b; font-size: 0.9rem; padding: 0.5rem 0 1rem; }
.ola-qa__more {
    text-align: center;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}
.ola-qa__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.65rem 1.2rem;
    font-weight: 650;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
}
.ola-qa__more-btn:hover { background: #ececec; }
.ola-qa__more-btn i { font-size: 0.75rem; color: #94a3b8; }

@media (max-width: 640px) {
    .ola-qa__form-row { grid-template-columns: 1fr; }
    .ola-qa__head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .ola-qa__submit,
    .ola-qa__pill,
    .ola-qa__list,
    .ola-qa__reply-btn,
    .ola-qa__link { transition: none; }
    .ola-qa__thread,
    .ola-qa__replybox,
    .ola-qa__kids.is-expanded > .ola-qa__kids-list > .ola-qa__item--overflow {
        animation: none;
    }
    .ola-qa__list.is-fading {
        opacity: 1;
        transform: none;
    }
}

/* Toast — 1 hàng, nền phủ đủ chữ, không đụng theme */
.ola-qa-toast {
    position: fixed;
    left: 50%;
    bottom: 1.4rem;
    z-index: 1090;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    min-width: 0;
    padding: 0.72rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font: 700 0.88rem/1 "Inter", "Segoe UI", system-ui, sans-serif;
    white-space: nowrap;
    background: #15803d;
    box-shadow: 0 12px 32px rgba(21, 128, 61, 0.32);
    transform: translateX(-50%) translateY(18px) scale(0.94);
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.ola-qa-toast.is-show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.ola-qa-toast.is-error {
    background: #b91c1c;
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.34);
}
.ola-qa-toast__ico {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #15803d;
    flex-shrink: 0;
}
.ola-qa-toast.is-error .ola-qa-toast__ico { color: #b91c1c; }
.ola-qa-toast__msg {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
    .ola-qa-toast { transition: none; }
}
