.custom-msgbox {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    line-height: 1.6;
}

.custom-msgbox__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
}

.custom-msgbox__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.1em;
}

.custom-msgbox__icon-img {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: middle;
}

.custom-msgbox__title {
    flex: 1;
}

.custom-msgbox__body {
    padding: 0.75rem 0.9rem;
}

.custom-msgbox__body > *:first-child { margin-top: 0; }
.custom-msgbox__body > *:last-child  { margin-bottom: 0; }

/* tip — green */
.custom-msgbox--tip .custom-msgbox__header {
    background-color: #198754;
    color: #ffffff;
}
.custom-msgbox--tip .custom-msgbox__body {
    background-color: #d1e7dd;
    color: #0a3622;
}

/* note — blue */
.custom-msgbox--note .custom-msgbox__header {
    background-color: #0d6efd;
    color: #ffffff;
}
.custom-msgbox--note .custom-msgbox__body {
    background-color: #cfe2ff;
    color: #052c65;
}

/* warning — amber */
.custom-msgbox--warning .custom-msgbox__header {
    background-color: #ffc107;
    color: #1a1a1a;
}
.custom-msgbox--warning .custom-msgbox__body {
    background-color: #fff3cd;
    color: #4d3800;
}

/* danger — red */
.custom-msgbox--danger .custom-msgbox__header {
    background-color: #dc3545;
    color: #ffffff;
}
.custom-msgbox--danger .custom-msgbox__body {
    background-color: #f8d7da;
    color: #58151c;
}
