/* =========================================
   HELP ICON BUTTON
========================================= */

.hw-help-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--hw-color-muted);
}

.hw-help-trigger:hover {
    color: var(--hw-color-primary);
}

/* =========================================
   MODAL -> APP STYLE (BOTTOM SHEET)
========================================= */

#hw-global-modal.hw-modal-help {
    align-items: flex-end;
    padding-bottom: 40px;
}

#hw-global-modal.hw-modal-help .hw-modal-backdrop {
    background: rgba(15, 23, 42, 0.42);
}

#hw-global-modal.hw-modal-help .hw-modal-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 165px;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    background: var(--hw-app-surface);
    border: 1px solid var(--hw-app-line);
    box-shadow: var(--hw-app-shadow-strong);
    transform: translateY(100%);
    animation: hw-help-slide-up 0.25s ease forwards;
}

@keyframes hw-help-slide-up {
    to {
        transform: translateY(0);
    }
}

/* =========================================
   CONTENT
========================================= */

.hw-help-header h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--hw-color-text-strong);
    font-family: var(--hw-font-family-display);
}

.hw-help-body {
    font-size: var(--hw-font-sm);
    line-height: 1.5;
    color: var(--hw-color-text);
}

#hw-global-modal.hw-modal-help .hw-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* =========================================
   DESKTOP BEHAVIOR
========================================= */

@media (min-width: 768px){
    #hw-global-modal.hw-modal-help {
        align-items: center;
        padding-bottom: 0;
    }

    #hw-global-modal.hw-modal-help .hw-modal-box {
        max-width: 420px;
        border-radius: 12px;
        transform: scale(0.95);
        animation: hw-help-fade-in 0.2s ease forwards;
    }

    @keyframes hw-help-fade-in {
        to {
            transform: scale(1);
        }
    }
}
