/* =========================================================
 * HT123 v2.2.15 - Solution disclosure
 * Dedicated late-loaded stylesheet with filemtime cache busting.
 * ========================================================= */

html body details.ht123-solution-box {
    margin: 10px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html body details.ht123-solution-box > summary {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 112px 11px 42px !important;
    border: 1px solid #b9d6eb !important;
    border-radius: 7px !important;
    background: #eef6fc !important;
    color: #075985 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    user-select: none !important;
    list-style: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

html body details.ht123-solution-box > summary::-webkit-details-marker {
    display: none !important;
}

html body details.ht123-solution-box > summary::marker {
    content: "" !important;
}

/* Arrow drawn with borders, so it does not depend on an icon font. */
html body details.ht123-solution-box > summary::before {
    content: "" !important;
    position: absolute !important;
    left: 17px !important;
    top: 50% !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    margin-top: -6px !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 8px solid #0b6fa4 !important;
    transform: rotate(0deg) !important;
    transform-origin: 4px 6px !important;
    transition: transform .18s ease !important;
}

/* Explicit click hint. */
html body details.ht123-solution-box > summary::after {
    content: "Bấm để xem" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #0b6fa4 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 1px 4px rgba(11,111,164,.12) !important;
}

html body details.ht123-solution-box > summary:hover {
    border-color: #62add6 !important;
    background: #dff1fc !important;
    color: #064d70 !important;
}

html body details.ht123-solution-box > summary:focus-visible {
    outline: 3px solid rgba(11,111,164,.22) !important;
    outline-offset: 2px !important;
}

html body details.ht123-solution-box[open] > summary {
    border-color: #72be8d !important;
    background: #e8f7ee !important;
    color: #176b3a !important;
}

html body details.ht123-solution-box[open] > summary::before {
    border-left-color: #21864b !important;
    transform: rotate(90deg) !important;
}

html body details.ht123-solution-box[open] > summary::after {
    content: "Đang mở" !important;
    color: #176b3a !important;
}

html body details.ht123-solution-box > .ht123-solution-content {
    box-sizing: border-box !important;
    margin-top: 8px !important;
    padding: 15px 18px !important;
    border: 1px solid #dce5ec !important;
    border-left: 4px solid #0b6fa4 !important;
    border-radius: 7px !important;
    background: #fafcfd !important;
}

@media (max-width: 600px) {
    html body details.ht123-solution-box > summary {
        min-height: 46px !important;
        padding: 10px 38px 10px 38px !important;
        font-size: 15px !important;
    }

    html body details.ht123-solution-box > summary::before {
        left: 15px !important;
    }

    html body details.ht123-solution-box > summary::after {
        content: "" !important;
        right: 13px !important;
        width: 8px !important;
        height: 8px !important;
        padding: 0 !important;
        border: 0 !important;
        border-right: 2px solid #0b6fa4 !important;
        border-bottom: 2px solid #0b6fa4 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: translateY(-65%) rotate(45deg) !important;
    }

    html body details.ht123-solution-box[open] > summary::after {
        content: "" !important;
        border-color: #176b3a !important;
        transform: translateY(-35%) rotate(225deg) !important;
    }

    html body details.ht123-solution-box > .ht123-solution-content {
        padding: 12px 14px !important;
    }
}
