.mobile-quick-actions {
    display: none;
}

.mobile-quick-actions__menu {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: .55rem;
}

.mobile-quick-actions__menu[hidden] {
    display: none;
}

.mobile-quick-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .55rem;
    padding: .55rem .85rem;
    border: 1px solid #2f2f2f;
    border-radius: 999px;
    background: #181818;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.mobile-quick-action i {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #ffc107;
    font-size: 1rem;
}

.mobile-quick-action:hover,
.mobile-quick-action:focus {
    color: #fff;
    text-decoration: none;
}

.mobile-quick-actions__toggle {
    display: grid;
    width: 52px;
    height: 52px;
    margin-left: auto;
    padding: 0;
    place-items: center;
    border: 2px solid #171717;
    border-radius: 50%;
    background: #ffc107;
    color: #171717;
    font: 800 2rem/1 Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
    cursor: pointer;
}

.mobile-quick-actions__toggle span {
    display: block;
    transition: transform .18s ease;
}

.mobile-quick-actions__toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.mobile-quick-actions__toggle:focus-visible,
.mobile-quick-action:focus-visible {
    outline: 3px solid #1565c0;
    outline-offset: 3px;
}

html.dark-mode .mobile-quick-action {
    border-color: #585858;
    background: #242424;
    color: #fff;
}

html.dark-mode .mobile-quick-action:hover,
html.dark-mode .mobile-quick-action:focus {
    border-color: #ffd854;
    background: #303030;
}

html.dark-mode .mobile-quick-actions__toggle {
    border-color: #ffd854;
    background: #ffd854;
    color: #111;
}

html.dark-mode .mobile-quick-actions__toggle:focus-visible,
html.dark-mode .mobile-quick-action:focus-visible {
    outline-color: #fff;
}

@media (max-width: 767.98px) {
    .mobile-quick-actions {
        display: flex;
        position: fixed;
        z-index: 9980;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        align-items: flex-end;
        flex-direction: column;
        gap: .65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-quick-actions__toggle span {
        transition: none;
    }
}
