/**
 * Phleb-Finders — PF Tutorials styles.
 * Floating replay button + light branding over driver.js popovers.
 */

.pf-tutorials-help-item > a.pf-tutorials-help-link {
    cursor: pointer;
}

.pf-tutorials-help-item .icon {
    font-size: 15px;
}

.pf-tutorials-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

.pf-tutorials-menu > li > a {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pf-tutorials-menu .pf-tutorials-done-mark {
    color: #27ae60;
    font-weight: 700;
}

.pf-tutorials-menu-empty {
    padding: 6px 15px;
}

.pf-tutorials-view-help-btn {
    margin-left: 8px;
}

.pf-tutorials-view-help-btn .fa-question-circle {
    margin-right: 4px;
}

@media (max-width: 767px) {
    /* Keep the record button row compact on phones: icon only. */
    .pf-tutorials-view-help-btn > span:last-child {
        display: none;
    }

    .pf-tutorials-view-help-btn .fa-question-circle {
        margin-right: 0;
    }
}

/* Fallback button, used only when no standard navbar is present. */
.pf-tutorials-help-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040; /* below Espo modals (1050) and the driver.js overlay */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1a2530;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 38px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.pf-tutorials-help-btn:hover {
    opacity: 1;
}

.pf-tutorials-help-btn.hidden {
    display: none;
}

.driver-popover.pf-tutorials-popover {
    max-width: 340px;
}

.driver-popover.pf-tutorials-popover .driver-popover-title {
    font-size: 16px;
}

.driver-popover.pf-tutorials-popover button.driver-popover-next-btn,
.driver-popover.pf-tutorials-popover button.driver-popover-prev-btn {
    text-shadow: none;
}
