/**
 * Section Help Icons & SweetAlert Popup Styles
 * - LT 06/2026
 */

/* Help icons container - pinned to far right of the section header row - LT 06/2026 */
.section-help-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    z-index: 5;
}

/* Any h3 or header containing help icons must be full-width + relative - LT 06/2026 */
h3 .section-help-icons,
.ui-accordion-header .section-help-icons {
    /* already absolute from above */
}

h3:has(.section-help-icons),
div:has(> h3 .section-help-icons) > h3 {
    position: relative;
    display: block;
    width: 100%;
}

/* Fallback: JS will add this class if :has() is unsupported */
.section-help-header {
    position: relative;
    display: block;
    width: 100%;
}

/* When inside widget header block-options or modal headers, use inline flow instead of absolute positioning - LT 06/2026 */
.btn-block-option .section-help-icons,
.modal-header .section-help-icons {
    position: static;
    transform: none;
    display: inline;
    gap: 0;
}

/* Individual help icon buttons */
.section-help-icons .help-icon {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    color: inherit;
    text-decoration: none;
    padding: 2px 4px;
    line-height: 1;
}

.section-help-icons .help-icon:hover {
    opacity: 1;
    color: #5c90d2;
    text-decoration: none;
}

/* Quick help icon */
.section-help-icons .help-icon-quick {
    /* question circle */
}

/* Guide icon */
.section-help-icons .help-icon-guide {
    /* book/document */
}

/* Video icon */
.section-help-icons .help-icon-video {
    /* film/play */
}

/* SweetAlert popup bullet list styling */
.section-help-swal .section-help-bullets {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.section-help-swal .section-help-bullets li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.section-help-swal .section-help-bullets li:last-child {
    border-bottom: none;
}

.section-help-swal .section-help-bullets li::before {
    content: '\f058'; /* fa-circle-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 7px;
    color: #5c90d2;
    font-size: 13px;
}
