/**
 * Keyboard shortcuts panel and shortcut tips (LXP-2600) — appjs/common/ux2/shortcutsHelp.js. The panel is the shared
 * drawer (drawer.css), the tip is the notification bar (notify.css); this file only lays out the rows, the keys and the
 * tip's two buttons.
 */

/* ---------- The panel ---------- */
.ux2-sk .ux2-drawer-head h2 .bi {
    margin-right: 4px;
    color: var(--sko-primary, #1e5f69);
}

.ux2-sk-group + .ux2-sk-group {
    margin-top: 22px;
}

.ux2-sk-group h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ux2k-ink-3, #64748b);
}

.ux2-sk-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ux2-sk-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f6;
}

.ux2-sk-row:last-child {
    border-bottom: 0;
}

.ux2-sk-what {
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ux2k-ink-2, #3f4254);
}

.ux2-sk-keys {
    display: inline-flex;
    flex: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    max-width: 55%;
}

.ux2-sk-combo {
    display: inline-flex;
    gap: 3px;
}

.ux2-sk-or {
    font-size: 12px;
    color: #94a3b8;
}

.ux2-sk kbd,
.ux2-sk-tip kbd {
    min-width: 24px;
    padding: 4px 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: var(--ux2k-ink-2, #3f4254);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-width: 2px;
    border-radius: 6px;
    box-shadow: none;
}

.ux2-sk-tips {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ux2k-ink-2, #3f4254);
    cursor: pointer;
}

/* "? All shortcuts" at the end of Jump to's footer */
.ux2-qj-all {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.ux2-qj-all:hover,
.ux2-qj-all:focus-visible {
    color: var(--sko-primary, #1e5f69);
}

/* ---------- The tip ---------- */
.ux2-sk-tipstack {
    z-index: 1095;
}

.ux2-sk-tip {
    gap: 8px;
    padding: 8px 8px 8px 14px;
}

.ux2-sk-tip kbd {
    min-width: 20px;
    padding: 2px 6px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}

.ux2-sk-tip-btn {
    flex: none;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.ux2-sk-tip-btn:hover,
.ux2-sk-tip-btn:focus-visible {
    background: rgba(255, 255, 255, .24);
}

.ux2-sk-tip-btn.is-quiet {
    color: #cbd5e1;
    background: none;
}

.ux2-sk-tip-btn.is-quiet:hover,
.ux2-sk-tip-btn.is-quiet:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

html.ux2-calm .ux2-sk-tip {
    animation: none;
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
    .ux2-sk-row {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .ux2-sk-keys {
        justify-content: flex-start;
        max-width: none;
    }

    .ux2-sk-tip {
        flex-wrap: wrap;
    }
}
