/* Floating help button, help drawer and guided tour overlay. */

.help-fab {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 105;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-fab:hover,
.help-fab:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.help-fab i {
    font-size: 1.6rem;
    line-height: 1;
}

.help-fab__dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-danger);
    border: 2px solid var(--bs-body-bg);
}

/* Keep the theme's scroll-to-top button clear of the help button. */
body .scrolltop {
    bottom: 90px;
}

.help-drawer {
    z-index: 110;
}

.help-drawer__body {
    overflow-y: auto;
}

.help-faq-question {
    cursor: pointer;
}

.help-faq-answer {
    display: none;
}

.help-faq-item.is-open .help-faq-answer {
    display: block;
}

.help-faq-item.is-open .help-faq-question .help-faq-caret {
    transform: rotate(90deg);
}

.help-faq-caret {
    transition: transform 0.15s ease;
}

.help-faq-answer img {
    max-width: 100%;
    height: auto;
}

.oat-tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background-color: transparent;
}

.oat-tour-spotlight {
    position: absolute;
    z-index: 1081;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.6);
    pointer-events: none;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.oat-tour-spotlight--hidden {
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 0;
}

.oat-tour-popover {
    position: absolute;
    z-index: 1082;
    width: 340px;
    max-width: calc(100vw - 32px);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 20px;
}

.oat-tour-popover__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.oat-tour-popover__body {
    font-size: 0.925rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.oat-tour-popover__footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oat-tour-popover__progress {
    font-size: 0.8rem;
    color: var(--bs-gray-600);
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .oat-tour-popover {
        width: calc(100vw - 24px);
    }

    .help-fab {
        right: 16px;
        bottom: 16px;
    }
}
