/* ================================================================
   Challenge Tooltip
   Dynamic values (bg, color, width) are output inline by PHP.
================================================================ */
#challenge-tooltip-frontend {
    position: absolute;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    display: none;
    z-index: 99999;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}
#challenge-tooltip-frontend p { margin: 0 0 12px 0 !important; }
#challenge-tooltip-frontend p:last-child { margin-bottom: 0 !important; }
#challenge-tooltip-frontend br { display: block; margin-top: 8px; content: ""; }

/* ================================================================
   Challenge Notification Box
   Dynamic values (display, position, pos offsets, bg, color,
   btn colors, width) are output inline by PHP.
================================================================ */
#challenge-notification-modal {
    z-index: 999999;
    max-width: calc(100vw - 40px);
    padding: 16px 18px;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    box-sizing: border-box;
    animation: ctFadeIn .4s ease;
}
@keyframes ctFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ct-modal-body {
    font-size: 13px;
    line-height: 1.55;
    flex: 1;
}
.ct-modal-body p  { margin: 0 0 6px; }
.ct-modal-body p:last-child { margin-bottom: 0; }
.ct-modal-footer  { flex-shrink: 0; }
#challenge-modal-ok-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
#challenge-modal-ok-btn:hover { opacity: .85; }

/* ================================================================
   Site Notification Boxes
   Dynamic values (bg, color, btn colors, width, position offsets)
   are output as per-ID inline styles by PHP.
================================================================ */
.sn-box {
    display: none;
    position: fixed;
    z-index: 999997;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    box-sizing: border-box;
    padding: 16px 18px;
    animation: snFadeIn .4s ease;
}
.sn-tooltip-mode { position: absolute; }
.sn-box-body {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
}
.sn-box-body p            { margin: 0 0 6px; }
.sn-box-body p:last-child { margin-bottom: 0; }
.sn-box-body a            { text-decoration: underline; }
.sn-box-footer { flex-shrink: 0; }
.sn-dismiss-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.sn-dismiss-btn:hover { opacity: .85; }
@keyframes snFadeIn { from { opacity: 0; } to { opacity: 1; } }
